mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Remove more hand-rolled type information :^)
Hoo boy, we've really accumulated a lot of this stuff.
This commit is contained in:
parent
d2613403e0
commit
3bb0cb2202
Notes:
sideshowbarker
2024-07-19 00:15:51 +09:00
Author: https://github.com/awesomekling
Commit: 3bb0cb2202
15 changed files with 5 additions and 40 deletions
|
@ -57,7 +57,7 @@ static EventTarget* retarget(EventTarget* left, [[maybe_unused]] EventTarget* ri
|
|||
|
||||
auto* left_node = downcast<Node>(left);
|
||||
auto* left_root = left_node->root();
|
||||
if (!left_root->is_shadow_root())
|
||||
if (!is<ShadowRoot>(left_root))
|
||||
return left;
|
||||
|
||||
// FIXME: If right is a node and left’s root is a shadow-including inclusive ancestor of right, return left.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue