mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add is_connected flag to node and use it to replace most uses of is_in_doc
This commit is contained in:
parent
640fc04743
commit
441357b74e
29 changed files with 111 additions and 96 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue