Alan Jeffrey
348a68fe2c
Bump string_cache version to 0.2.5.
...
Atom::to_lower_case() now returns an Atom rather than a String,
so there are a few asserts that need a different collection of &s and *s.
2015-12-15 17:00:36 -06:00
GauriGNaik
fc81276c8e
Add pipeline information to CSS error reporting.
2015-12-14 11:18:30 -05:00
Anthony Ramine
8f01790f06
Introduce UnbindContext
...
This holds the context that describes the original node that was removed from a tree
when unbinding from a tree.
2015-12-13 21:14:31 +01:00
Simon Sapin
0a8a2c299e
Add link to issue for :visited
2015-12-05 21:36:13 +01:00
bors-servo
63762d2b52
Auto merge of #8786 - eefriedman:localname-atom, r=jdm
...
Remove unnecessary conversion to/from DOMString for localName.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8786 )
<!-- Reviewable:end -->
2015-12-03 15:05:22 +05:30
Sam Gibson
9668500e97
Makes setting negative values to maxLength throw an IndexSize exception
2015-12-03 14:00:59 +11:00
Sam Gibson
2ba1750c40
Resolves long-running merge conflicts
2015-12-03 14:00:53 +11:00
Sam Gibson
eecdfdf6c1
Makes int_getter macro, and uses -1 as default maxlength instead of maxint
2015-12-03 14:00:52 +11:00
Eli Friedman
e42dcb3712
Remove unnecessary conversion to/from DOMString for localName.
2015-12-02 13:42:45 -08:00
bors-servo
99223656fb
Auto merge of #8675 - GuillaumeGomez:master, r=nox
...
Add XMLDocument object
Fixes #8000
(Still working on it)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8675 )
<!-- Reviewable:end -->
2015-11-27 19:29:04 +05:30
Guillaume Gomez
adf8b359bb
Add XMLDocument object
2015-11-27 14:55:41 +01:00
GauriGNaik
996e9e06b2
Defined new trait ParseErrorReporter and added error_reporter member to ParserContext
2015-11-25 18:28:30 -05:00
Alan Jeffrey
3dec6edd10
Update string_cache to 0.2.
...
Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock.
Removed references to string_cache_plugin.
Import atom! and ns! from string_cache.
Replaced ns!("") by ns!().
Replaced ns!(XML) and co by ns!(xml) and co.
Replaced atom!(foo) by atom!("foo").
Replaced Atom::from_slice by Atom::from.
Replaced atom.as_slice() by &*atom.
2015-11-25 10:13:21 -06:00
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
bors-servo
b6f519cd0a
Auto merge of #8533 - Ms2ger:legacy, r=nox
...
Remove the `legacy` module.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8533 )
<!-- Reviewable:end -->
2015-11-15 19:13:13 +05:30
Ms2ger
f2be9eb735
Move the from_declaration to its only caller and remove the empty legacy module.
2015-11-15 13:57:22 +01:00
Ms2ger
9c1d678b1b
Remove get_unsigned_integer_attribute.
2015-11-15 11:24:03 +01:00
Ms2ger
5417df6397
Introduce a get_colspan method on LayoutJS<Element>.
2015-11-15 11:16:17 +01:00
Corey Farwell
02a8e8dd16
Implement <hr> element 'width' attribute
2015-11-14 16:46:59 -05:00
Alan Jeffrey
84bde75b42
Replaced DOMString constructor by conversion functions.
...
Replaced DOMString(...) by DOMString::from(...).
Replaced ....0 by String::from(...).
Removed any uses of .to_owner() in DOMString::from("...").
2015-11-12 17:52:59 -06:00
bors-servo
5e6efd62c1
Auto merge of #8459 - frewsxcv:namednodemap-iter, r=Ms2ger
...
Simplify iterating over Element attributes
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8459 )
<!-- Reviewable:end -->
2015-11-11 20:19:49 +05:30
Corey Farwell
a7c470de09
Simplify iterating over Element attributes
2015-11-10 21:42:48 -05:00
bors-servo
fd5540df62
Auto merge of #8453 - frewsxcv:atoms, r=jdm
...
Prefer Atoms over strs for comparison
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8453 )
<!-- Reviewable:end -->
2015-11-11 06:55:39 +05:30
Bobby Holley
7fa7936657
Implement attribute restyle hints.
...
Fixes #6942 .
2015-11-10 11:57:24 -08:00
Corey Farwell
55477eb618
Prefer Atoms over strs for comparison
2015-11-10 08:58:57 -05:00
Eli Friedman
4b68fc18c3
Move storage of bgcolor for <tr>
and <tbody>
.
2015-11-09 12:27:16 -08:00
Eli Friedman
af78173243
Move more unsafe layout calls onto LayoutJS.
2015-11-09 10:47:38 -08:00
Eli Friedman
5293afc122
Move unsafe layout calls onto LayoutJS.
2015-11-09 10:47:37 -08:00
Corey Farwell
ee0800abe9
Implement <hr> 'color' attribute
2015-11-08 18:34:27 -05:00
Bobby Holley
7dba4447f1
Store pristine element state rather than a set of changes.
...
This is the strategy we'll need to take for attributes, and so this change
puts us in a position to handle attributes and state the same way.
This does mean that we stop taking care to track the situations where our
state has reverted to the original state, with no net change. I think that's
probably of negligible value though.
2015-11-04 19:09:58 -08:00
Ms2ger
6b75078503
Make DOMString a newtype around String, rather than a typedef.
...
This should make it somewhat easier to experiment with alternative
representations in the future. To reduce churn, this commit leaves the String
field public, though.
Also, this will allow us to use the default String type to represent the IDL
USVString type, which explicitly forbids unpaired surrogates, ans as such is
a better match to the Rust String type.
2015-11-04 12:09:11 +01:00
Ms2ger
e6aa976462
Use DOMString::new() somewhat consistently.
2015-11-04 12:09:10 +01:00
David Zbarsky
722aa86c89
Get rid of a bunch of explicit derefs
2015-11-03 19:51:46 -08:00
rohan.prinja
425c0b85d9
make test-tidy happy + fix some merge errors
2015-11-03 19:11:01 +09:00
rohan.prinja
6e774ea6eb
merge from master
2015-11-03 19:01:23 +09:00
Ms2ger
0dacd33102
Remove RawLayoutHTMLInputElementHelpers.
2015-11-02 11:42:39 +01:00
David Zbarsky
00980ea595
Implement calc expressions for more value types
2015-11-01 23:16:14 -08:00
bors-servo
53d8f04ac4
Auto merge of #8260 - martiansideofthemoon:my-code-fix, r=Manishearth
...
Implementing activation behavior for <label>
Attempt to resolve #8179
@Manishearth , could you give me some resources having more information about what each function in `Activatable` does? The code compiles on my machine but I guess a lot more is needed
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8260 )
<!-- Reviewable:end -->
2015-10-31 22:25:27 +05:30
KALPESH KRISHNA
af91c980f2
Implementing activation behavior for <label>
2015-10-31 21:12:22 +05:30
nxnfufunezn
d8ef3809a6
Removed JS::root Fixes #8251
2015-10-31 18:15:16 +05:30
Bobby Holley
79ac365a68
Move EventState to rust-selectors.
2015-10-30 21:02:35 -07:00
Bobby Holley
f7f27a8146
Hoist checked and indeterminate state into EventState.
...
This is necessary for those selectors to take advantage of restyle hints.
2015-10-30 21:01:50 -07:00
Michael Wu
434a5f1d8b
Initialize dom struct fields in declaration order
2015-10-30 15:40:43 -04:00
Michael Wu
7e786fb8ac
Infer types when appropriate
2015-10-30 15:23:29 -04:00
rohan.prinja
51df8e310b
rearrange imports to be in alphabetical order
2015-10-30 20:28:59 +09:00
rohan.prinja
9fd823e449
replace InheritTypes imports with inheritance imports
2015-10-30 20:26:30 +09:00
rohan.prinja
45224028db
more refactoring
2015-10-30 20:26:29 +09:00
rohan.prinja
bb2536cd01
move Castable into dom::bindings::inheritance
2015-10-30 20:24:42 +09:00
Bobby Holley
069c40f788
Check modified event state from layout and dirty it there.
...
This adds some overhead, but also provides the small performance benefit of
avoiding dirtying in the case where an event state is toggled an even
number of times between reflows.
The main benefit here though is that it sets us up to be smarter about
what we mark as dirty using restyle hints.
2015-10-27 12:48:48 -07:00
Tetsuharu OHZEKI
04967ed97e
script: Element.webkitMatchesSelector()
...
spec:
9ac9c15486
2015-10-25 15:27:20 +09:00