style: Remove the block that explicitly checked for the style attribute, since now it's useless.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-12 16:32:00 -07:00
parent 9e88a495c8
commit fc12841cd3
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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 {