mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Pass SharedStyleContext to CanvasFragmentInfo::new.
This commit is contained in:
parent
d00d9994e9
commit
7524e5549f
2 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue