aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-08-23 17:32:06 +0200
committerMs2ger <Ms2ger@gmail.com>2016-08-23 17:32:06 +0200
commit938569e3c79d47781314a4af6b77b80076feec29 (patch)
tree95b3b5a889f5f90eb624864f0f2ed719869c3322 /components/layout/construct.rs
parent7524e5549f8cda195d8453929770cf26218929c5 (diff)
downloadservo-938569e3c79d47781314a4af6b77b80076feec29.tar.gz
servo-938569e3c79d47781314a4af6b77b80076feec29.zip
Pass SharedLayoutContext to ImageFragmentInfo::new.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index cf8d69cbbf3..9d4b28b42f4 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -308,13 +308,13 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
Some(LayoutNodeType::Element(LayoutElementType::HTMLImageElement)) => {
let image_info = box ImageFragmentInfo::new(node,
node.image_url(),
- &self.layout_context);
+ &self.layout_context.shared);
SpecificFragmentInfo::Image(image_info)
}
Some(LayoutNodeType::Element(LayoutElementType::HTMLObjectElement)) => {
let image_info = box ImageFragmentInfo::new(node,
node.object_data(),
- &self.layout_context);
+ &self.layout_context.shared);
SpecificFragmentInfo::Image(image_info)
}
Some(LayoutNodeType::Element(LayoutElementType::HTMLTableElement)) => {
@@ -1267,7 +1267,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
Some(ref url) => {
let image_info = box ImageFragmentInfo::new(node,
Some((*url).clone()),
- &self.layout_context);
+ &self.layout_context.shared);
vec![Fragment::new(node, SpecificFragmentInfo::Image(image_info), self.layout_context)]
}
None => {