mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
merge from master
This commit is contained in:
commit
6e774ea6eb
1044 changed files with 46059 additions and 1506 deletions
|
@ -153,7 +153,7 @@ impl HTMLCanvasElement {
|
|||
}
|
||||
|
||||
match *self.context.borrow().as_ref().unwrap() {
|
||||
CanvasContext::Context2d(ref context) => Some(context.root()),
|
||||
CanvasContext::Context2d(ref context) => Some(Root::from_ref(&*context)),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ impl HTMLCanvasElement {
|
|||
}
|
||||
|
||||
if let Some(CanvasContext::WebGL(ref context)) = *self.context.borrow() {
|
||||
Some(context.root())
|
||||
Some(Root::from_ref(&*context))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue