diff options
Diffstat (limited to 'components/script/dom/htmlcanvaselement.rs')
-rw-r--r-- | components/script/dom/htmlcanvaselement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlcanvaselement.rs b/components/script/dom/htmlcanvaselement.rs index 2c889dcb1de..472ed51c081 100644 --- a/components/script/dom/htmlcanvaselement.rs +++ b/components/script/dom/htmlcanvaselement.rs @@ -119,7 +119,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLCanvasElement> { if recreate { let (w, h) = (self.width.get() as i32, self.height.get() as i32); match self.context.get() { - Some(ref context) => context.root().r().recreate(Size2D(w, h)), + Some(context) => context.root().r().recreate(Size2D(w, h)), None => () } } @@ -147,7 +147,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLCanvasElement> { if recreate { let (w, h) = (self.width.get() as i32, self.height.get() as i32); match self.context.get() { - Some(ref context) => context.root().r().recreate(Size2D(w, h)), + Some(context) => context.root().r().recreate(Size2D(w, h)), None => () } } |