aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablecellelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-05-22 13:25:07 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-05-24 10:54:57 +0200
commitcdc7bca944b6ffebc59169d42331fffbee7f71ee (patch)
treeb727287bb85a82b9ff16c1eac1737d09749be2f4 /components/script/dom/htmltablecellelement.rs
parent7b467ee52d59d1d2f078948acc9e4d188eac7338 (diff)
downloadservo-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/htmltablecellelement.rs')
-rw-r--r--components/script/dom/htmltablecellelement.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index 79cb31ced03..036771e178a 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -8,6 +8,7 @@ use dom::bindings::codegen::Bindings::HTMLTableCellElementBinding::HTMLTableCell
use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
use dom::bindings::inheritance::Castable;
use dom::bindings::js::LayoutJS;
+use dom::bindings::str::DOMString;
use dom::document::Document;
use dom::element::{Element, RawLayoutElementHelpers};
use dom::htmlelement::HTMLElement;
@@ -15,7 +16,7 @@ use dom::htmltablerowelement::HTMLTableRowElement;
use dom::node::Node;
use dom::virtualmethods::VirtualMethods;
use string_cache::Atom;
-use util::str::{DOMString, LengthOrPercentageOrAuto};
+use util::str::LengthOrPercentageOrAuto;
const DEFAULT_COLSPAN: u32 = 1;
@@ -120,9 +121,9 @@ impl VirtualMethods for HTMLTableCellElement {
fn parse_plain_attribute(&self, local_name: &Atom, value: DOMString) -> AttrValue {
match *local_name {
- atom!("colspan") => AttrValue::from_u32(value, DEFAULT_COLSPAN),
- atom!("bgcolor") => AttrValue::from_legacy_color(value),
- atom!("width") => AttrValue::from_nonzero_dimension(value),
+ atom!("colspan") => AttrValue::from_u32(value.into(), DEFAULT_COLSPAN),
+ atom!("bgcolor") => AttrValue::from_legacy_color(value.into()),
+ atom!("width") => AttrValue::from_nonzero_dimension(value.into()),
_ => self.super_type().unwrap().parse_plain_attribute(local_name, value),
}
}