diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-08-31 01:06:45 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-08-31 02:34:07 +0200 |
commit | acc38aa8c2c35e27038d20d1de48e32c6503082a (patch) | |
tree | d366a5620bdcbb1b9922a54d15cc597cfe01c846 /components/script/layout_wrapper.rs | |
parent | c50e6add4ac975c91d19bf35155c846bc5921aac (diff) | |
download | servo-acc38aa8c2c35e27038d20d1de48e32c6503082a.tar.gz servo-acc38aa8c2c35e27038d20d1de48e32c6503082a.zip |
Use Arc<PropertyDeclarationBlock> everwhere it’s appropriate.
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 906bde60550..2b6c8080f06 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -451,9 +451,9 @@ impl<'le> TElement for ServoLayoutElement<'le> { ServoLayoutNode::from_layout_js(self.element.upcast()) } - fn style_attribute(&self) -> &Option<PropertyDeclarationBlock> { + fn style_attribute(&self) -> Option<&Arc<PropertyDeclarationBlock>> { unsafe { - &*self.element.style_attribute() + (*self.element.style_attribute()).as_ref() } } |