diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-08-18 14:25:24 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-08-18 14:46:24 +0200 |
commit | d690bd2382300c84f402b8c17ff7d633007ade03 (patch) | |
tree | f8c98308663787d9c4e6c0915643b0f036494227 /components/script | |
parent | 4e7c689a815198a51f96fdcac48a15eabf2157c0 (diff) | |
download | servo-d690bd2382300c84f402b8c17ff7d633007ade03.tar.gz servo-d690bd2382300c84f402b8c17ff7d633007ade03.zip |
Update selectors to 0.10, with ToCss serialization.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/Cargo.toml | 2 | ||||
-rw-r--r-- | components/script/dom/element.rs | 2 | ||||
-rw-r--r-- | components/script/layout_wrapper.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 135ead85732..ac1467fda00 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -65,7 +65,7 @@ regex = "0.1.43" rustc-serialize = "0.3" script_layout_interface = {path = "../script_layout_interface"} script_traits = {path = "../script_traits"} -selectors = {version = "0.9", features = ["heap_size"]} +selectors = {version = "0.10", features = ["heap_size"]} serde = "0.8" smallvec = "0.1" string_cache = {version = "0.2.23", features = ["heap_size", "unstable"]} diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index f74f253aa78..860818c024c 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -2250,7 +2250,7 @@ impl<'a> ::selectors::MatchAttrGeneric for Root<Element> { }; match attr.namespace { NamespaceConstraint::Specific(ref ns) => { - self.get_attribute(ns, local_name) + self.get_attribute(&ns.url, local_name) .map_or(false, |attr| { test(&attr.value()) }) diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 13fcdc41df9..cbf04b48e5b 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -483,7 +483,7 @@ impl<'le> ::selectors::MatchAttrGeneric for ServoLayoutElement<'le> { }; match attr.namespace { NamespaceConstraint::Specific(ref ns) => { - self.get_attr(ns, name).map_or(false, |attr| test(attr)) + self.get_attr(&ns.url, name).map_or(false, |attr| test(attr)) }, NamespaceConstraint::Any => { let attrs = unsafe { @@ -970,7 +970,7 @@ impl<'le> ::selectors::MatchAttrGeneric for ServoThreadSafeLayoutElement<'le> { where F: Fn(&str) -> bool { match attr.namespace { NamespaceConstraint::Specific(ref ns) => { - self.get_attr(ns, &attr.name).map_or(false, |attr| test(attr)) + self.get_attr(&ns.url, &attr.name).map_or(false, |attr| test(attr)) }, NamespaceConstraint::Any => { unsafe { |