mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
LibWeb: Make ShadowRoot.mode return ShadowRootMode instead of String
This commit is contained in:
parent
34913c48d3
commit
9a7f786262
3 changed files with 6 additions and 9 deletions
|
@ -83,7 +83,7 @@ void Event::append_to_path(EventTarget& invocation_target, JS::GCPtr<EventTarget
|
|||
if (is<ShadowRoot>(invocation_target_node)) {
|
||||
auto& invocation_target_shadow_root = verify_cast<ShadowRoot>(invocation_target_node);
|
||||
// 4. If invocationTarget is a shadow root whose mode is "closed", then set root-of-closed-tree to true.
|
||||
root_of_closed_tree = invocation_target_shadow_root.closed();
|
||||
root_of_closed_tree = invocation_target_shadow_root.mode() == Bindings::ShadowRootMode::Closed;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue