1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +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:
Karol Kosek 2023-01-28 20:22:52 +01:00 committed by Andreas Kling
parent 9a7f786262
commit 2cc108a15e
7 changed files with 8 additions and 8 deletions

View file

@ -996,7 +996,7 @@ Messages::WebDriverClient::GetElementShadowRootResponse WebDriverConnection::get
auto* element = TRY(get_known_connected_element(element_id));
// 4. Let shadow root be element's shadow root.
auto* shadow_root = element->shadow_root();
auto* shadow_root = element->shadow_root_internal();
// 5. If shadow root is null, return error with error code no such shadow root.
if (!shadow_root)