Keegan McAllister
f3533ecfc1
Update comment with spec link
2013-10-17 13:04:34 -07:00
Keegan McAllister
5f14ee617b
Check for allocation failure in domstring_to_jsval
2013-10-17 12:59:05 -07:00
bors-servo
79f4d9a47f
auto merge of #1080 : Ms2ger/servo/get_jsobject-cast, r=jdm
2013-10-17 10:40:27 -07:00
Ms2ger
f58c7874b2
Remove an unnecessary cast::transmute call.
2013-10-17 19:35:53 +02:00
bors-servo
c14c2cc63f
auto merge of #1066 : Ms2ger/servo/priv-owner-doc, r=jdm
...
When `Document` is a `Node`, we can only set its `owner_doc` after creating the `AbstractDocument`, and thus the `Document`, and thus the `Node`; i.e., when creating the `Node`, the `AbstractDocument` can't exist yet. That means that we'll need to turn `owner_doc` back into an `Option`. We don't want to expose that to everyone, though, so this adds encapsulation so we'll be able to just `unwrap` in the `owner_doc()` function rather than at all call sites.
2013-10-17 09:49:20 -07:00
Ms2ger
c08e4fe36b
Make Node.owner_doc private.
2013-10-17 18:44:26 +02:00
Simon Sapin
a4c2e9dcf1
CSS: rexport types and variants for computed values.
2013-10-17 17:38:33 +01:00
bors-servo
34f89b27b3
auto merge of #1078 : Ms2ger/servo/triedToWrap, r=jdm
2013-10-17 08:19:11 -07:00
Ms2ger
25cae74093
Remove unused aTriedToWrap argument.
2013-10-17 16:43:28 +02:00
Keegan McAllister
591ded06cb
Test non-ASCII tag names
2013-10-16 16:18:23 -07:00
Keegan McAllister
2c302a4627
Convert between JS and Rust strings in a way that handles Unicode
...
This doesn't handle invalid UTF-16 and may not be efficient. It's just a small
change to make things better until we decide what we're doing about strings in
the long run.
Fixes #1068 .
2013-10-16 16:18:12 -07:00
bors-servo
6db57e6f72
auto merge of #1075 : SimonSapin/servo/newnewcss, r=kmcallister
...
I believe this is all the preparatory work discussed in #1006 and #1057 : The new 'style' crate implements the whole style system (including parsing, matching and cascading) and only depends on cssparser and util, so that gfx, script and main can all depend on it.
Next: porting the layout code to this. (Really, this time! I think.)
2013-10-16 15:37:42 -07:00
Simon Sapin
a509755447
Failing for a blank line before the license, really?
2013-10-16 23:28:36 +01:00
Keegan McAllister
279ae53b7b
Pass scripts as ~str to support non-ASCII string literals etc.
...
Of course scripts on the Web are not always encoded as UTF-8 and we will have
to deal with that at some point.
2013-10-16 14:59:05 -07:00
Simon Sapin
b0f694d5b0
CSS: Use libutil’s traits in Selector matching to not depend on libscript.
2013-10-16 20:20:29 +01:00
Simon Sapin
6d808fbdd0
Move AbastractNode::is_element to the TreeNodeRef trait.
2013-10-16 19:22:44 +01:00
Simon Sapin
6c41be9c13
Add a with_imm_element_like() method.
...
… gives a generic element from a generic node.
2013-10-16 18:44:41 +01:00
Simon Sapin
62f1f03c16
Move Element::get_attr to a trait defined in util::tree
...
… and add a get_local_name() method to that trait.
2013-10-16 18:10:39 +01:00
bors-servo
c539945401
auto merge of #1074 : saneyuki/servo/macro, r=jdm
2013-10-16 07:25:13 -07:00
Simon Sapin
f38b4ab9bb
CSS: Use the actual Au type for lengths
2013-10-16 14:55:07 +01:00
Simon Sapin
a325905fa6
Move the gfx::geometry module to servo_util::geometry.
...
This is part of #1006 , in order to use Au from the script crate
without introducing a circular crate dependency.
2013-10-16 14:55:07 +01:00
Simon Sapin
321f56c242
CSS: separate cascading from selector matching, add style attributes.
2013-10-16 14:55:07 +01:00
Tetsuharu OHZEKI
320f7985b0
Clean up macros to handle html tags.
2013-10-16 20:38:59 +09:00
Tetsuharu OHZEKI
f08f44f8c6
Unify macros which generate binding codes.
2013-10-16 20:14:08 +09:00
bors-servo
02ef301770
auto merge of #1070 : kmcallister/servo/test-bindings, r=jdm
2013-10-16 03:01:11 -07:00
bors-servo
509934cf65
auto merge of #1072 : Ms2ger/servo/crash-domparser, r=jdm
...
Turns out that documents without a window `fail!` a lot, because we need the `cx` all over.
2013-10-16 02:37:09 -07:00
Ms2ger
60b6d1bb57
Issue #1071 - Ensure that Documents always have a non-null Window.
2013-10-16 10:15:09 +02:00
Keegan McAllister
20b58ddab9
Revise DOMParser test
...
This is commented out for now (as it was in test_bindings.html) because it
causes a task failure. I'll open a ticket about that.
2013-10-15 15:25:27 -07:00
Keegan McAllister
396a375e9c
Replace test_bindings.html with various content tests
...
Fixes #631 .
2013-10-15 13:30:01 -07:00
Keegan McAllister
4bb2a70e08
harness: Support more assertion types
2013-10-15 13:30:01 -07:00
Keegan McAllister
e701ba4d43
harness: Truncate messages to one line
2013-10-15 13:18:44 -07:00
Keegan McAllister
4a93d92095
gitignore dirs like build.foo
2013-10-15 13:18:44 -07:00
bors-servo
c9c9eec3d8
auto merge of #1064 : saneyuki/servo/cleanup, r=jdm
...
This pull request is based on #1063 .
2013-10-15 10:34:09 -07:00
Tetsuharu OHZEKI
f5e2b2ec67
Auto-generate some binding codes for HTMLElement, Element, CharacterData.
2013-10-16 00:37:15 +09:00
Tetsuharu OHZEKI
776ab67905
Rename the element field of the DOM Node hierarchy.
...
See #924
2013-10-16 00:20:20 +09:00
Tetsuharu OHZEKI
fc9a3baa71
Add line breaks for readability.
2013-10-16 00:02:34 +09:00
bors-servo
9efd1d361a
auto merge of #1063 : saneyuki/servo/th, r=jdm
2013-10-15 07:12:52 -07:00
Tetsuharu OHZEKI
0de35fdc2f
Implement HTMLTableDataCellElement & HTMLTableHeaderCellElement.
2013-10-15 22:37:06 +09:00
bors-servo
74d84ba099
auto merge of #1061 : saneyuki/servo/th, r=larsbergstrom
2013-10-15 04:27:47 -07:00
Tetsuharu OHZEKI
31b873789b
Handle th tag as HTMLTableCellElement. #1060
2013-10-15 20:22:32 +09:00
bors-servo
c268417ff1
auto merge of #1048 : ttaubert/servo/documenttype, r=jdm
...
This should fix #1046 .
2013-10-15 00:00:49 -07:00
Tim Taubert
189bb6c95f
Remove View type parameter from DocumentType
2013-10-14 17:32:38 -07:00
bors-servo
a3d3337aed
auto merge of #1058 : Ms2ger/servo/get_cx-followup, r=jdm
...
These changes landed in parallel.
2013-10-14 15:30:55 -07:00
bors-servo
ef524aec0d
auto merge of #1059 : SimonSapin/servo/newnewcss, r=kmcallister
...
Some progress on #1006 and #1057 .
2013-10-14 14:52:25 -07:00
Simon Sapin
8b0fdf9efd
Add CSS parser support for 'vertical-align'.
2013-10-14 21:44:24 +01:00
Simon Sapin
9048bce3be
Restore the font shorthand, accidentally dropped in commit 622bc5705c
2013-10-14 21:44:24 +01:00
Simon Sapin
9a0cabb38c
Change the range of percentages to 0..1 in specified and computed values.
2013-10-14 21:44:24 +01:00
Simon Sapin
2fe127f880
Add the margin and padding shorthands.
2013-10-14 21:44:24 +01:00
Simon Sapin
e3b536e20d
Flat is better than nested.
2013-10-14 21:44:24 +01:00
Simon Sapin
dc882b8ecf
Move the content of 'script/style' into the new 'style' crate.
2013-10-14 21:44:24 +01:00