diff options
Diffstat (limited to 'src/components/script/dom/htmlcanvaselement.rs')
-rw-r--r-- | src/components/script/dom/htmlcanvaselement.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/components/script/dom/htmlcanvaselement.rs b/src/components/script/dom/htmlcanvaselement.rs index e9d742cb62c..bf5208be532 100644 --- a/src/components/script/dom/htmlcanvaselement.rs +++ b/src/components/script/dom/htmlcanvaselement.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::HTMLCanvasElementBinding; +use dom::bindings::codegen::Bindings::HTMLCanvasElementBinding::HTMLCanvasElementMethods; use dom::bindings::codegen::InheritTypes::HTMLCanvasElementDerived; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast}; use dom::bindings::global::Window; @@ -57,14 +58,6 @@ impl HTMLCanvasElement { } } -pub trait HTMLCanvasElementMethods { - fn Width(&self) -> u32; - fn SetWidth(&self, width: u32); - fn Height(&self) -> u32; - fn SetHeight(&self, height: u32); - fn GetContext(&self, id: DOMString) -> Option<Temporary<CanvasRenderingContext2D>>; -} - impl<'a> HTMLCanvasElementMethods for JSRef<'a, HTMLCanvasElement> { fn Width(&self) -> u32 { self.width.get() |