mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb: Add "allow declarative shadow roots" flag to Document
This commit is contained in:
parent
637ccbec35
commit
f3070118b1
Notes:
sideshowbarker
2024-07-16 22:24:48 +09:00
Author: https://github.com/awesomekling
Commit: f3070118b1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/278
Reviewed-by: https://github.com/mattco98
Reviewed-by: https://github.com/nico
3 changed files with 23 additions and 1 deletions
|
@ -400,6 +400,9 @@ public:
|
|||
bool is_fully_active() const;
|
||||
bool is_active() const;
|
||||
|
||||
[[nodiscard]] bool allow_declarative_shadow_roots() const;
|
||||
void set_allow_declarative_shadow_roots(bool);
|
||||
|
||||
JS::NonnullGCPtr<HTML::History> history();
|
||||
JS::NonnullGCPtr<HTML::History> history() const;
|
||||
|
||||
|
@ -929,6 +932,9 @@ private:
|
|||
// instead they generate boxes as if they were siblings of the root element.
|
||||
OrderedHashTable<JS::NonnullGCPtr<Element>> m_top_layer_elements;
|
||||
OrderedHashTable<JS::NonnullGCPtr<Element>> m_top_layer_pending_removals;
|
||||
|
||||
// https://dom.spec.whatwg.org/#document-allow-declarative-shadow-roots
|
||||
bool m_allow_declarative_shadow_roots { false };
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue