diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-08-23 16:58:45 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-08-23 17:13:11 +0200 |
commit | 7524e5549f8cda195d8453929770cf26218929c5 (patch) | |
tree | f1fd9aa930ea2f095d86f2723dd4ba21de7faf36 /components/layout/construct.rs | |
parent | d00d9994e9285fddfb4f808bca03fb0e3dfec0d4 (diff) | |
download | servo-7524e5549f8cda195d8453929770cf26218929c5.tar.gz servo-7524e5549f8cda195d8453929770cf26218929c5.zip |
Pass SharedStyleContext to CanvasFragmentInfo::new.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index bb7f0372189..cf8d69cbbf3 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -332,7 +332,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> } Some(LayoutNodeType::Element(LayoutElementType::HTMLCanvasElement)) => { let data = node.canvas_data().unwrap(); - SpecificFragmentInfo::Canvas(box CanvasFragmentInfo::new(node, data, self.layout_context)) + SpecificFragmentInfo::Canvas(box CanvasFragmentInfo::new(node, data, self.style_context())) } _ => { // This includes pseudo-elements. |