aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlobjectelement.rs
diff options
context:
space:
mode:
authorPhilipp Hartwig <ph@phhart.de>2015-09-30 22:02:56 +0200
committerPhilipp Hartwig <ph@phhart.de>2015-09-30 22:02:56 +0200
commitbae4abd388fd4f27335704f8dfe590809691f765 (patch)
treefcbd9fc4c6b16ef8ec5e81c81b4d3ad98755a188 /components/script/dom/htmlobjectelement.rs
parenta72d7a4f5222d029a34b2b4a7da21ebe095fde53 (diff)
downloadservo-bae4abd388fd4f27335704f8dfe590809691f765.tar.gz
servo-bae4abd388fd4f27335704f8dfe590809691f765.zip
Refactor FormControl trait
The trait is now implemented for HTMLFooElement instead of &HTMLFooElement and does no longer require an impl body.
Diffstat (limited to 'components/script/dom/htmlobjectelement.rs')
-rw-r--r--components/script/dom/htmlobjectelement.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs
index e197f1d60c4..fb6c7a39860 100644
--- a/components/script/dom/htmlobjectelement.rs
+++ b/components/script/dom/htmlobjectelement.rs
@@ -10,7 +10,7 @@ use dom::bindings::codegen::InheritTypes::HTMLObjectElementDerived;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast};
use dom::bindings::js::Root;
use dom::document::Document;
-use dom::element::{AttributeMutation, Element, ElementTypeId};
+use dom::element::{AttributeMutation, ElementTypeId};
use dom::eventtarget::{EventTarget, EventTargetTypeId};
use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
use dom::htmlformelement::{FormControl, HTMLFormElement};
@@ -119,8 +119,4 @@ impl VirtualMethods for HTMLObjectElement {
}
}
-impl<'a> FormControl<'a> for &'a HTMLObjectElement {
- fn to_element(self) -> &'a Element {
- ElementCast::from_ref(self)
- }
-}
+impl FormControl for HTMLObjectElement {}