aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2017-02-08 15:13:21 -0800
committerBobby Holley <bobbyholley@gmail.com>2017-02-10 10:34:27 -0800
commit5873de3fb670bdcf38af0375a217b888d92220b2 (patch)
tree125c80fc2a5ced4802dd92aa22b6962f3c3d29ca /components/script/layout_wrapper.rs
parent1c530f927971cde1dcfa00eee1e237e7041c217e (diff)
downloadservo-5873de3fb670bdcf38af0375a217b888d92220b2.tar.gz
servo-5873de3fb670bdcf38af0375a217b888d92220b2.zip
Allow the ComputedValues in ComputedStyle to be null.
This is necessary to start synthesizing the styles in match_element and avoid round-tripping them through the caller.
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index a5baec25745..43068100b16 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -777,7 +777,7 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
debug_assert!(self.is_text_node());
let parent = self.node.parent_node().unwrap().as_element().unwrap();
let parent_data = parent.get_data().unwrap().borrow();
- parent_data.styles().primary.values.clone()
+ parent_data.styles().primary.values().clone()
}
fn debug_id(self) -> usize {