1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:37:44 +00:00

LibWeb: Add the "is initial about:blank" flag to DOM::Document

This commit is contained in:
Andreas Kling 2022-08-01 16:19:55 +02:00
parent b6307f73a2
commit 29a4266367

View file

@ -364,6 +364,10 @@ public:
bool has_active_favicon() const { return m_active_favicon; } bool has_active_favicon() const { return m_active_favicon; }
void check_favicon_after_loading_link_resource(); void check_favicon_after_loading_link_resource();
// https://html.spec.whatwg.org/multipage/dom.html#is-initial-about:blank
bool is_initial_about_blank() const { return m_is_initial_about_blank; }
void set_is_initial_about_blank(bool b) { m_is_initial_about_blank = b; }
private: private:
explicit Document(const AK::URL&); explicit Document(const AK::URL&);
@ -480,6 +484,9 @@ private:
bool m_needs_full_style_update { false }; bool m_needs_full_style_update { false };
HashTable<NodeIterator*> m_node_iterators; HashTable<NodeIterator*> m_node_iterators;
// https://html.spec.whatwg.org/multipage/dom.html#is-initial-about:blank
bool m_is_initial_about_blank { false };
}; };
} }