Emilio Cobos Álvarez
611e611215
style: Rewrite the restyle hints code to allow different kinds of element snapshots, and use it for Gecko.
...
This is a rewrite for how style interfaces with its consumers in order to allow
different representations for an element snapshot.
This also changes the requirements of an element snapshot, requiring them to
only implement MatchAttr, instead of MatchAttrGeneric. This is important for
stylo since implementing MatchAttrGeneric is way more difficult for us given the
atom limitations. This also allows for more performant implementations in the
Gecko side of things.
2016-07-21 14:24:04 -07:00
Simon Sapin
6d0e48f6cc
Remove some type aliases that are now just re-exports.
2016-07-20 08:42:47 +02:00
Simon Sapin
789807b7b0
Remove the ComputedValue traits and style_struct_traits
2016-07-20 08:42:40 +02:00
Shing Lyu
f754cacbd5
Only restyle viewport-relative nodes on viewport size change
2016-07-18 11:01:42 +08:00
Bobby Holley
187a47d89d
Remove get_attr from TElement. \o/
2016-07-05 18:03:41 -07:00
Bobby Holley
1d8d1cb9d9
Upgrade rust-selectors.
2016-07-05 18:03:40 -07:00
Bobby Holley
364c8e2976
Add attr_equals to TElement.
...
Same reasons as the previous patch.
2016-07-05 18:03:38 -07:00
Bobby Holley
96af00fbb9
Add has_attr method to TElement.
...
If this is all the information the caller needs, we can get it from gecko without
worrying about atomization and string conversions.
2016-07-05 18:03:36 -07:00
Bobby Holley
7947afc699
Remove get_attrs from TElement.
...
This should just be a helper.
2016-07-05 18:03:35 -07:00
Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
Anthony Ramine
a5b524d559
Move util::vec::ForgetfulSink to style::sink and simplify it
2016-07-04 16:48:14 +02:00
Simon Sapin
f7f81e0ed0
Use our copy of RefCell for style data.
...
This allows removing `#![feature(as_unsafe_cell)]` in geckolib
and make progress towards #11815 .
2016-06-23 16:13:49 +02:00
Ms2ger
7bbabf2766
Remove unused re-exports from layout_interface.
2016-06-20 19:08:08 +02:00
Ms2ger
68d603a6d0
Move TrustedNodeAddress to script_layout_interface.
2016-06-20 19:08:06 +02:00
Ms2ger
0616a60fd9
Move ServoLayoutNode and related structs to script.
2016-06-20 19:08:05 +02:00