diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-08-12 16:32:00 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-08-16 10:58:17 -0700 |
commit | fc12841cd38a6a3f8fa75748e98d023678b9c49e (patch) | |
tree | bc6ff4a6de919fa6f482d769cfeaa7b35f89f73e | |
parent | 9e88a495c84047d9df0ea07d95342639907c35d6 (diff) | |
download | servo-fc12841cd38a6a3f8fa75748e98d023678b9c49e.tar.gz servo-fc12841cd38a6a3f8fa75748e98d023678b9c49e.zip |
style: Remove the block that explicitly checked for the style attribute, since now it's useless.
-rw-r--r-- | components/style/traversal.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/components/style/traversal.rs b/components/style/traversal.rs index 9bab63b2692..0a5fdd2cfcd 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -370,20 +370,6 @@ pub fn recalc_style_at<'a, N, C>(context: &'a C, // NB: flow construction updates the bloom filter on the way up. put_thread_local_bloom_filter(bf, &unsafe_layout_node, context.shared_context()); - // Mark the node as DIRTY_ON_VIEWPORT_SIZE_CHANGE is it uses viewport - // percentage units. - if !node.needs_dirty_on_viewport_size_changed() { - if let Some(element) = node.as_element() { - if let Some(ref property_declaration_block) = *element.style_attribute() { - if property_declaration_block.declarations().any(|d| d.0.has_viewport_percentage()) { - unsafe { - node.set_dirty_on_viewport_size_changed(); - } - } - } - } - } - if nonincremental_layout { RestyleResult::Continue } else { |