mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Remove the block that explicitly checked for the style attribute, since now it's useless.
This commit is contained in:
parent
9e88a495c8
commit
fc12841cd3
1 changed files with 0 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue