mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -459,7 +459,7 @@ impl HTMLElementMethods for HTMLElement {
|
|||
let element = self.upcast::<Element>();
|
||||
|
||||
// Step 1.
|
||||
let element_not_rendered = !node.is_in_doc() || !element.has_css_layout_box();
|
||||
let element_not_rendered = !node.is_connected() || !element.has_css_layout_box();
|
||||
if element_not_rendered {
|
||||
return node.GetTextContent().unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue