aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorBoris Zbarsky <bzbarsky@mit.edu>2017-01-04 13:48:23 -0500
committerBoris Zbarsky <bzbarsky@mit.edu>2017-01-04 23:13:46 -0500
commit61f6025dc31619151908c5f82c052821802e1095 (patch)
tree516b152c7558eee29e8da2439216e0ecbf344f73 /components/layout/construct.rs
parent09c74190b99ccd20091aaa1c64ef9b199b7e6ecb (diff)
downloadservo-61f6025dc31619151908c5f82c052821802e1095.tar.gz
servo-61f6025dc31619151908c5f82c052821802e1095.zip
Bug 1298588 part 9, servo piece. Pass through useful default styles to cascade(). r=bholley
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 1d9c1212ad6..7c039d38729 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -661,7 +661,8 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
if node_is_input_or_text_area {
style = self.style_context()
.stylist
- .style_for_anonymous_box(&PseudoElement::ServoInputText, &style)
+ .style_for_anonymous_box(&PseudoElement::ServoInputText, &style,
+ &self.style_context().default_computed_values)
}
self.create_fragments_for_node_text_content(&mut initial_fragments, node, &style)
@@ -1093,7 +1094,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
let wrapper_style = self.style_context()
.stylist
.style_for_anonymous_box(&PseudoElement::ServoTableWrapper,
- &table_style);
+ &table_style, &self.style_context().default_computed_values);
let wrapper_fragment =
Fragment::from_opaque_node_and_style(node.opaque(),
PseudoElementType::Normal,
@@ -2064,7 +2065,7 @@ impl Legalizer {
let reference_block = reference.as_block();
let mut new_style = reference_block.fragment.style.clone();
for pseudo in pseudos {
- new_style = context.stylist.style_for_anonymous_box(pseudo, &new_style)
+ new_style = context.stylist.style_for_anonymous_box(pseudo, &new_style, &context.default_computed_values)
}
let fragment = reference_block.fragment
.create_similar_anonymous_fragment(new_style,