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:
Karol Kosek 2023-01-28 20:22:52 +01:00 committed by Andreas Kling
commit 2cc108a15e
Notes: sideshowbarker 2024-07-17 03:35:16 +09:00
7 changed files with 8 additions and 8 deletions

View file

@ -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())