mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -9,6 +9,7 @@ use dom::bindings::codegen::Bindings::HTMLBodyElementBinding::{self, HTMLBodyEle
|
|||
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{LayoutJS, Root};
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::document::Document;
|
||||
use dom::element::{AttributeMutation, Element, RawLayoutElementHelpers};
|
||||
use dom::eventtarget::EventTarget;
|
||||
|
@ -19,7 +20,6 @@ use script_traits::ScriptMsg as ConstellationMsg;
|
|||
use string_cache::Atom;
|
||||
use time;
|
||||
use url::Url;
|
||||
use util::str::DOMString;
|
||||
|
||||
/// How long we should wait before performing the initial reflow after `<body>` is parsed, in
|
||||
/// nanoseconds.
|
||||
|
@ -141,8 +141,10 @@ impl VirtualMethods for HTMLBodyElement {
|
|||
fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue {
|
||||
match *name {
|
||||
atom!("bgcolor") |
|
||||
atom!("text") => AttrValue::from_legacy_color(value),
|
||||
atom!("background") => AttrValue::from_url(document_from_node(self).url(), value),
|
||||
atom!("text") => AttrValue::from_legacy_color(value.into()),
|
||||
atom!("background") => {
|
||||
AttrValue::from_url(document_from_node(self).url(), value.into())
|
||||
},
|
||||
_ => self.super_type().unwrap().parse_plain_attribute(name, value),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue