mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce ShadowIncluding enum for tree traversals
This commit is contained in:
parent
2674a3e717
commit
3ccd622c9b
14 changed files with 58 additions and 50 deletions
|
@ -24,7 +24,7 @@ use crate::dom::document::Document;
|
|||
use crate::dom::documentfragment::DocumentFragment;
|
||||
use crate::dom::element::Element;
|
||||
use crate::dom::htmlscriptelement::HTMLScriptElement;
|
||||
use crate::dom::node::{Node, UnbindContext};
|
||||
use crate::dom::node::{Node, ShadowIncluding, UnbindContext};
|
||||
use crate::dom::text::Text;
|
||||
use crate::dom::window::Window;
|
||||
use dom_struct::dom_struct;
|
||||
|
@ -978,7 +978,7 @@ impl RangeMethods for Range {
|
|||
// Step 4.
|
||||
for node in fragment_node
|
||||
.upcast::<Node>()
|
||||
.traverse_preorder(/* shadow incluing */ false)
|
||||
.traverse_preorder(ShadowIncluding::No)
|
||||
{
|
||||
if let Some(script) = node.downcast::<HTMLScriptElement>() {
|
||||
script.set_already_started(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue