mirror of
https://github.com/RGBCube/serenity
synced 2025-07-13 15:07:34 +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
7 changed files with 8 additions and 8 deletions
|
@ -218,7 +218,7 @@ void run_unfocusing_steps(DOM::Node* old_focus_target)
|
|||
// context's DOM anchor, then set old focus target to that currently focused area of a top-level browsing
|
||||
// context.
|
||||
if (is_shadow_host(old_focus_target)) {
|
||||
auto* shadow_root = static_cast<DOM::Element*>(old_focus_target)->shadow_root();
|
||||
auto* shadow_root = static_cast<DOM::Element*>(old_focus_target)->shadow_root_internal();
|
||||
if (shadow_root->delegates_focus()) {
|
||||
auto& top_level_browsing_context = old_focus_target->document().browsing_context()->top_level_browsing_context();
|
||||
if (auto currently_focused_area = top_level_browsing_context.currently_focused_area()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue