aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/css.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-11-27 14:37:04 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-11-30 23:23:42 +0100
commitddfb8805dc1c2df97f0596cf063935b4f3c5b90b (patch)
tree14454c36600563df3b624fc30c86571daa5e14f2 /components/script/dom/css.rs
parent973f77c00698938c1333c0df7da30993075264d1 (diff)
downloadservo-ddfb8805dc1c2df97f0596cf063935b4f3c5b90b.tar.gz
servo-ddfb8805dc1c2df97f0596cf063935b4f3c5b90b.zip
Make WebIDL static methods take a more specific global if possible
Diffstat (limited to 'components/script/dom/css.rs')
-rw-r--r--components/script/dom/css.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/css.rs b/components/script/dom/css.rs
index f2256007aeb..2e04aed50bc 100644
--- a/components/script/dom/css.rs
+++ b/components/script/dom/css.rs
@@ -6,7 +6,7 @@ use cssparser::serialize_identifier;
use dom::bindings::error::Fallible;
use dom::bindings::reflector::Reflector;
use dom::bindings::str::DOMString;
-use dom::globalscope::GlobalScope;
+use dom::window::Window;
#[dom_struct]
pub struct CSS {
@@ -15,7 +15,7 @@ pub struct CSS {
impl CSS {
// http://dev.w3.org/csswg/cssom/#serialize-an-identifier
- pub fn Escape(_: &GlobalScope, ident: DOMString) -> Fallible<DOMString> {
+ pub fn Escape(_: &Window, ident: DOMString) -> Fallible<DOMString> {
let mut escaped = String::new();
serialize_identifier(&ident, &mut escaped).unwrap();
Ok(DOMString::from(escaped))