mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Allow to set a root mode value when constructing a ShadowRoot
This commit is contained in:
committed by
Andreas Kling
parent
01e2cc5330
commit
9ed4fe7049
Notes:
sideshowbarker
2024-07-17 00:53:25 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/9ed4fe7049 Pull-request: https://github.com/SerenityOS/serenity/pull/17225
@@ -382,7 +382,7 @@ void HTMLInputElement::create_shadow_tree_if_needed()
|
||||
break;
|
||||
}
|
||||
|
||||
auto shadow_root = heap().allocate<DOM::ShadowRoot>(realm(), document(), *this).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
auto shadow_root = heap().allocate<DOM::ShadowRoot>(realm(), document(), *this, Bindings::ShadowRootMode::Closed).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
auto initial_value = m_value;
|
||||
if (initial_value.is_null())
|
||||
initial_value = DeprecatedString::empty();
|
||||
|
||||
Reference in New Issue
Block a user