mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-03 04:42:19 +02:00
LibWeb: Rename Element::shadow_root_internal() to shadow_root()
And let the old shadow_root(), which was only supposed to be used by bindings, be called shadow_root_for_bindings() instead. This makes it much easier to read DOM code, and we don't have to worry about when to use shadow_root_internal() or why. (cherry picked from commit f4bdf562127c12a7af18029777a88d4260af82d3)
This commit is contained in:
committed by
Nico Weber
parent
1c5f0e8daf
commit
c8206fa070
@@ -721,7 +721,7 @@ Optional<String> HTMLInputElement::placeholder_value() const
|
||||
|
||||
void HTMLInputElement::create_shadow_tree_if_needed()
|
||||
{
|
||||
if (shadow_root_internal())
|
||||
if (shadow_root())
|
||||
return;
|
||||
|
||||
switch (type_state()) {
|
||||
|
||||
Reference in New Issue
Block a user