mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
parent
a0b44ff5e7
commit
85b424464a
Notes:
github-actions[bot]
2025-01-21 16:49:39 +00:00
Author: https://github.com/trflynn89
Commit: 85b424464a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3335
191 changed files with 574 additions and 574 deletions
|
@ -85,11 +85,11 @@ void Event::append_to_path(EventTarget& invocation_target, GC::Ptr<EventTarget>
|
|||
|
||||
// 2. If invocationTarget is a node and its root is a shadow root, then set invocationTargetInShadowTree to true.
|
||||
if (is<Node>(invocation_target)) {
|
||||
auto& invocation_target_node = verify_cast<Node>(invocation_target);
|
||||
auto& invocation_target_node = as<Node>(invocation_target);
|
||||
if (is<ShadowRoot>(invocation_target_node.root()))
|
||||
invocation_target_in_shadow_tree = true;
|
||||
if (is<ShadowRoot>(invocation_target_node)) {
|
||||
auto& invocation_target_shadow_root = verify_cast<ShadowRoot>(invocation_target_node);
|
||||
auto& invocation_target_shadow_root = as<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.mode() == Bindings::ShadowRootMode::Closed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue