summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-01 16:19:55 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-05 12:42:46 +0200
commit29a4266367f8798f84219e0dad5c026886d3bbb0 (patch)
tree4196cf83dea970733686ecb0e2198136a0af4353
parentb6307f73a2e263b098149353006dd30f6d499527 (diff)
downloadserenity-29a4266367f8798f84219e0dad5c026886d3bbb0.zip
LibWeb: Add the "is initial about:blank" flag to DOM::Document
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h
index 0119d94d41..21a87925dc 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.h
+++ b/Userland/Libraries/LibWeb/DOM/Document.h
@@ -364,6 +364,10 @@ public:
bool has_active_favicon() const { return m_active_favicon; }
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:
explicit Document(const AK::URL&);
@@ -480,6 +484,9 @@ private:
bool m_needs_full_style_update { false };
HashTable<NodeIterator*> m_node_iterators;
+
+ // https://html.spec.whatwg.org/multipage/dom.html#is-initial-about:blank
+ bool m_is_initial_about_blank { false };
};
}