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/style/parallel.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/style/parallel.rs')
-rw-r--r-- | components/style/parallel.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/style/parallel.rs b/components/style/parallel.rs index e3f4eaf50b1..1017e5fd900 100644 --- a/components/style/parallel.rs +++ b/components/style/parallel.rs @@ -6,7 +6,7 @@ //! //! This code is highly unsafe. Keep this file small and easy to audit. -use dom::{OpaqueNode, StylingMode, TElement, TNode, UnsafeNode}; +use dom::{OpaqueNode, TElement, TNode, UnsafeNode}; use rayon; use std::sync::atomic::Ordering; use traversal::{STYLE_SHARING_CACHE_HITS, STYLE_SHARING_CACHE_MISSES}; @@ -21,7 +21,6 @@ pub fn traverse_dom<N, C>(root: N, where N: TNode, C: DomTraversalContext<N> { - debug_assert!(root.as_element().unwrap().styling_mode() != StylingMode::Stop); if opts::get().style_sharing_stats { STYLE_SHARING_CACHE_HITS.store(0, Ordering::SeqCst); STYLE_SHARING_CACHE_MISSES.store(0, Ordering::SeqCst); |