mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add a flag for UA internal shadow roots
This commit is contained in:
committed by
Sam Atkins
parent
853526200a
commit
73fcbb0666
Notes:
github-actions[bot]
2026-02-06 10:46:15 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/73fcbb06666 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7721 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/konradekk
@@ -182,6 +182,7 @@ void HTMLMeterElement::create_shadow_tree_if_needed()
|
||||
return;
|
||||
|
||||
auto shadow_root = realm().create<DOM::ShadowRoot>(document(), *this, Bindings::ShadowRootMode::Closed);
|
||||
shadow_root->set_user_agent_internal(true);
|
||||
set_shadow_root(shadow_root);
|
||||
|
||||
auto meter_bar_element = MUST(DOM::create_element(document(), HTML::TagNames::div, Namespace::HTML));
|
||||
|
||||
Reference in New Issue
Block a user