|
@@ -1,11 +1,12 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2022-2023, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
|
+ * Copyright (c) 2022-2024, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2024, Sam Atkins <atkinssj@serenityos.org>
|
|
* Copyright (c) 2024, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <AK/Debug.h>
|
|
#include <AK/Debug.h>
|
|
|
|
+#include <LibWeb/DOM/ShadowRoot.h>
|
|
#include <LibWeb/Layout/AvailableSpace.h>
|
|
#include <LibWeb/Layout/AvailableSpace.h>
|
|
#include <LibWeb/Layout/BlockContainer.h>
|
|
#include <LibWeb/Layout/BlockContainer.h>
|
|
#include <LibWeb/Layout/InlineNode.h>
|
|
#include <LibWeb/Layout/InlineNode.h>
|
|
@@ -209,6 +210,10 @@ void LayoutState::commit(Box& root)
|
|
node.set_paintable(nullptr);
|
|
node.set_paintable(nullptr);
|
|
return IterationDecision::Continue;
|
|
return IterationDecision::Continue;
|
|
});
|
|
});
|
|
|
|
+ root.document().for_each_shadow_including_inclusive_descendant([&](DOM::Node& node) {
|
|
|
|
+ node.set_paintable(nullptr);
|
|
|
|
+ return IterationDecision::Continue;
|
|
|
|
+ });
|
|
|
|
|
|
HashTable<Layout::TextNode*> text_nodes;
|
|
HashTable<Layout::TextNode*> text_nodes;
|
|
|
|
|