diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-22 13:25:07 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-24 10:54:57 +0200 |
commit | cdc7bca944b6ffebc59169d42331fffbee7f71ee (patch) | |
tree | b727287bb85a82b9ff16c1eac1737d09749be2f4 /components/script/dom/htmliframeelement.rs | |
parent | 7b467ee52d59d1d2f078948acc9e4d188eac7338 (diff) | |
download | servo-cdc7bca944b6ffebc59169d42331fffbee7f71ee.tar.gz servo-cdc7bca944b6ffebc59169d42331fffbee7f71ee.zip |
Move DOMString back to script
This entirely removes the 'non-geckolib' feature of the util crate.
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index db7728ca710..8cec0aa6659 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -19,6 +19,7 @@ use dom::bindings::global::GlobalRef; use dom::bindings::inheritance::Castable; use dom::bindings::js::{Root, LayoutJS}; use dom::bindings::reflector::Reflectable; +use dom::bindings::str::DOMString; use dom::customevent::CustomEvent; use dom::document::Document; use dom::element::{AttributeMutation, Element, RawLayoutElementHelpers}; @@ -42,7 +43,7 @@ use string_cache::Atom; use style::context::ReflowGoal; use url::Url; use util::prefs; -use util::str::{DOMString, LengthOrPercentageOrAuto}; +use util::str::LengthOrPercentageOrAuto; pub fn mozbrowser_enabled() -> bool { prefs::get_pref("dom.mozbrowser.enabled").as_boolean().unwrap_or(false) @@ -539,9 +540,9 @@ impl VirtualMethods for HTMLIFrameElement { fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue { match name { - &atom!("sandbox") => AttrValue::from_serialized_tokenlist(value), - &atom!("width") => AttrValue::from_dimension(value), - &atom!("height") => AttrValue::from_dimension(value), + &atom!("sandbox") => AttrValue::from_serialized_tokenlist(value.into()), + &atom!("width") => AttrValue::from_dimension(value.into()), + &atom!("height") => AttrValue::from_dimension(value.into()), _ => self.super_type().unwrap().parse_plain_attribute(name, value), } } |