servo: Merge #6794 - Remove StyledNode (from Ms2ger:StyledNode); r=pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 0b447651e4e5309c057f2cf2af58b3aa733bb4c4
This commit is contained in:
Ms2ger
2015-07-28 17:26:42 -06:00
parent 70742c23df
commit b7afa848f3
13 changed files with 33 additions and 69 deletions

View File

@@ -15,7 +15,6 @@
use block::BlockFlow;
use context::LayoutContext;
use css::node_style::StyledNode;
use data::{HAS_NEWLY_CONSTRUCTED_FLOW, LayoutDataWrapper};
use floats::FloatKind;
use flow::{Descendants, AbsDescendants};
@@ -1248,9 +1247,9 @@ impl<'a> FlowConstructor<'a> {
return false
}
let mut style = node.style().clone();
let mut layout_data_ref = node.mutate_layout_data();
let layout_data = layout_data_ref.as_mut().expect("no layout data");
let mut style = (*node.get_style(&layout_data)).clone();
let damage = layout_data.data.restyle_damage;
match node.construction_result_mut(layout_data) {
&mut ConstructionResult::None => true,