mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move DOMString back to script
This entirely removes the 'non-geckolib' feature of the util crate.
This commit is contained in:
parent
7b467ee52d
commit
cdc7bca944
188 changed files with 501 additions and 529 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue