aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlcanvaselement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-27 20:22:13 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-27 23:00:17 +0200
commit944d8b00b05c41a272f59eb8d24886ece8bcc95b (patch)
tree706088bb79c7f33c954837352228dd03170a8171 /src/components/script/dom/htmlcanvaselement.rs
parent38a658d561a316031f190f3f1f2055b0be78553f (diff)
downloadservo-944d8b00b05c41a272f59eb8d24886ece8bcc95b.tar.gz
servo-944d8b00b05c41a272f59eb8d24886ece8bcc95b.zip
Call the generated rather than the hand-written traits (fixes #2936).
Diffstat (limited to 'src/components/script/dom/htmlcanvaselement.rs')
-rw-r--r--src/components/script/dom/htmlcanvaselement.rs9
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()