mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Clean up shadow root of meter element
This commit is contained in:
committed by
Andreas Kling
parent
34fa49c344
commit
ca94df3c88
Notes:
sideshowbarker
2024-07-17 08:35:21 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/ca94df3c88 Pull-request: https://github.com/SerenityOS/serenity/pull/22176
@@ -5,7 +5,6 @@
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/ShadowRoot.h>
|
||||
#include <LibWeb/HTML/HTMLMeterElement.h>
|
||||
@@ -188,6 +187,11 @@ void HTMLMeterElement::inserted()
|
||||
create_shadow_tree_if_needed();
|
||||
}
|
||||
|
||||
void HTMLMeterElement::removed_from(DOM::Node*)
|
||||
{
|
||||
set_shadow_root(nullptr);
|
||||
}
|
||||
|
||||
void HTMLMeterElement::create_shadow_tree_if_needed()
|
||||
{
|
||||
if (shadow_root_internal())
|
||||
|
||||
Reference in New Issue
Block a user