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/htmltableelement.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/htmltableelement.rs')
-rw-r--r-- | components/script/dom/htmltableelement.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs index 8ab213f6225..15961b3d514 100644 --- a/components/script/dom/htmltableelement.rs +++ b/components/script/dom/htmltableelement.rs @@ -11,6 +11,7 @@ use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods; use dom::bindings::error::{Error, ErrorResult, Fallible}; use dom::bindings::inheritance::Castable; use dom::bindings::js::{JS, LayoutJS, MutNullableHeap, Root, RootedReference}; +use dom::bindings::str::DOMString; use dom::document::Document; use dom::element::{AttributeMutation, Element, RawLayoutElementHelpers}; use dom::htmlcollection::{CollectionFilter, HTMLCollection}; @@ -24,7 +25,7 @@ use dom::virtualmethods::VirtualMethods; use std::cell::Cell; use string_cache::Atom; use style::attr::parse_unsigned_integer; -use util::str::{DOMString, LengthOrPercentageOrAuto}; +use util::str::LengthOrPercentageOrAuto; #[dom_struct] pub struct HTMLTableElement { @@ -419,9 +420,9 @@ impl VirtualMethods for HTMLTableElement { fn parse_plain_attribute(&self, local_name: &Atom, value: DOMString) -> AttrValue { match *local_name { - atom!("border") => AttrValue::from_u32(value, 1), - atom!("width") => AttrValue::from_nonzero_dimension(value), - atom!("bgcolor") => AttrValue::from_legacy_color(value), + atom!("border") => AttrValue::from_u32(value.into(), 1), + atom!("width") => AttrValue::from_nonzero_dimension(value.into()), + atom!("bgcolor") => AttrValue::from_legacy_color(value.into()), _ => self.super_type().unwrap().parse_plain_attribute(local_name, value), } } |