diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-25 09:00:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 09:00:44 -0800 |
commit | d98abaec20e624aa89a3abddf4cf2a6399951ef1 (patch) | |
tree | b0df4474a5b049d6b24614e8bb4aca0175642d09 /components/layout/wrapper.rs | |
parent | beec035eb0ff6babf48ce836184329e60e795177 (diff) | |
parent | 900ad112386d65984e4f4c93926f323d12abbaf5 (diff) | |
download | servo-d98abaec20e624aa89a3abddf4cf2a6399951ef1.tar.gz servo-d98abaec20e624aa89a3abddf4cf2a6399951ef1.zip |
Auto merge of #14300 - bholley:restyle_driven_traversal, r=emilio
stylo: Basic infrastructure for RestyleHint-driven traversal
Gecko Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=131701
(Don't review yet, will flag on the gecko bug when the time comes)
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14300)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/wrapper.rs')
-rw-r--r-- | components/layout/wrapper.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 9c1645c5f5e..32f24558ec0 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -37,8 +37,6 @@ use script_layout_interface::wrapper_traits::{LayoutNode, ThreadSafeLayoutElemen use script_layout_interface::wrapper_traits::GetLayoutData; use style::atomic_refcell::{AtomicRef, AtomicRefCell, AtomicRefMut}; use style::computed_values::content::{self, ContentItem}; -use style::dom::TElement; -use style::traversal::prepare_for_styling; pub type NonOpaqueStyleAndLayoutData = AtomicRefCell<PersistentLayoutData>; @@ -97,9 +95,6 @@ impl<T: LayoutNode> LayoutNodeHelpers for T { ptr: unsafe { NonZero::new(ptr as *mut AtomicRefCell<PartialPersistentLayoutData>) } }; unsafe { self.init_style_and_layout_data(opaque) }; - if let Some(el) = self.as_element() { - let _ = prepare_for_styling(el, el.get_data().unwrap()); - } }; } |