Bobby Holley
5bcc4192bf
Stop using Ref::map for selected_style and resolved_style.
...
Same concept as the previous patch.
MozReview-Commit-ID: RFC8s7qQPM
2016-10-02 19:19:52 -07:00
Bobby Holley
18d552a1e9
Stop using Ref::map for style().
...
It's not possible to implement a Ref::map equivalent method on AtomicRefCell
while having AtomicRefCell implemented on top of RwArc. We could potentially
reimplement AtomicRefCell to be more like RefCell and add a Ref::map equivalent
method, but I (and pcwalton) think we should try just cloning a few extra
Arcs at these callsites instead.
MozReview-Commit-ID: 6H8vAWguO3z
2016-10-02 19:19:52 -07:00
Bobby Holley
4aa3e589c0
Introduce the LayoutIterator newtype and return it for all children() methods in style and layout.
2016-09-20 17:48:31 -07:00
Bobby Holley
e6bbff110a
Split out is_element and is_text_node into a helper trait.
2016-09-20 17:16:27 -07:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Bobby Holley
470368ecce
Move rev_children and traverse_preorder to LayoutNode.
...
These impose additional requirements on the traversal code that we want to
avoid for Gecko (for now).
2016-08-26 09:36:53 -07:00
Simon Sapin
bc71e8b65b
Add some fmt::Debug implementations
2016-08-21 03:40:28 +02:00
Simon Sapin
fdb2071b2d
Update to selectors 0.8.2
2016-08-09 18:18:38 +02:00
Simon Sapin
6d0e48f6cc
Remove some type aliases that are now just re-exports.
2016-07-20 08:42:47 +02:00
Bobby Holley
1d8d1cb9d9
Upgrade rust-selectors.
2016-07-05 18:03:40 -07: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
0d0b268138
Move LayoutNode and related traits to script_layout_interface.
2016-06-20 19:07:54 +02:00