aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssstyledeclaration.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-01-27 17:11:11 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 10:17:45 +0200
commit441357b74e38b604a60206ff38e5cf3719a15e08 (patch)
tree58cc06819fac57dfe6687807842a903bdb1b2cb0 /components/script/dom/cssstyledeclaration.rs
parent640fc04743e38491e582a6ba30ded5bebb0a3ebb (diff)
downloadservo-441357b74e38b604a60206ff38e5cf3719a15e08.tar.gz
servo-441357b74e38b604a60206ff38e5cf3719a15e08.zip
Add is_connected flag to node and use it to replace most uses of is_in_doc
Diffstat (limited to 'components/script/dom/cssstyledeclaration.rs')
-rw-r--r--components/script/dom/cssstyledeclaration.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
index 2dabe431496..5cc2f64af11 100644
--- a/components/script/dom/cssstyledeclaration.rs
+++ b/components/script/dom/cssstyledeclaration.rs
@@ -246,7 +246,7 @@ impl CSSStyleDeclaration {
},
CSSStyleOwner::Element(ref el) => {
let node = el.upcast::<Node>();
- if !node.is_in_doc() {
+ if !node.is_connected() {
// TODO: Node should be matched against the style rules of this window.
// Firefox is currently the only browser to implement this.
return DOMString::new();