diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-07-27 20:22:13 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-07-27 23:00:17 +0200 |
commit | 944d8b00b05c41a272f59eb8d24886ece8bcc95b (patch) | |
tree | 706088bb79c7f33c954837352228dd03170a8171 /src/components/script/dom/domparser.rs | |
parent | 38a658d561a316031f190f3f1f2055b0be78553f (diff) | |
download | servo-944d8b00b05c41a272f59eb8d24886ece8bcc95b.tar.gz servo-944d8b00b05c41a272f59eb8d24886ece8bcc95b.zip |
Call the generated rather than the hand-written traits (fixes #2936).
Diffstat (limited to 'src/components/script/dom/domparser.rs')
-rw-r--r-- | src/components/script/dom/domparser.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/script/dom/domparser.rs b/src/components/script/dom/domparser.rs index 44f34bc5d75..65273cab756 100644 --- a/src/components/script/dom/domparser.rs +++ b/src/components/script/dom/domparser.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::DOMParserBinding; +use dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods; use dom::bindings::codegen::Bindings::DOMParserBinding::SupportedTypeValues::{Text_html, Text_xml}; use dom::bindings::error::{Fallible, FailureUnknown}; use dom::bindings::global::{GlobalRef, Window}; @@ -36,11 +37,6 @@ impl DOMParser { } } -pub trait DOMParserMethods { - fn ParseFromString(&self, _s: DOMString, ty: DOMParserBinding::SupportedType) - -> Fallible<Temporary<Document>>; -} - impl<'a> DOMParserMethods for JSRef<'a, DOMParser> { fn ParseFromString(&self, _s: DOMString, |