mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Rename DOM::shadow_root() to shadow_root_internal()
The shadowRoot property getter that will be added in subsequent commits has an additional check that checks whether the shadow root is opened. I didn't update the function logic to match with the IDL interface, because it's very likely we don't want that check in the existing code, so that for example closed shadow root elements can still be updated.
This commit is contained in:
parent
9a7f786262
commit
2cc108a15e
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/krkk
Commit: 2cc108a15e
Pull-request: https://github.com/SerenityOS/serenity/pull/17225
7 changed files with 8 additions and 8 deletions
|
@ -247,7 +247,7 @@ void Node::invalidate_style()
|
|||
node.m_needs_style_update = true;
|
||||
if (node.has_children())
|
||||
node.m_child_needs_style_update = true;
|
||||
if (auto* shadow_root = node.is_element() ? static_cast<DOM::Element&>(node).shadow_root() : nullptr) {
|
||||
if (auto* shadow_root = node.is_element() ? static_cast<DOM::Element&>(node).shadow_root_internal() : nullptr) {
|
||||
node.m_child_needs_style_update = true;
|
||||
shadow_root->m_needs_style_update = true;
|
||||
if (shadow_root->has_children())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue