1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:57:34 +00:00

LibWeb: Update "appropriate template contents owner document" AO

This was moved from HTMLTemplateElement to Document at some point,
so let's match the spec and move it here too.
This commit is contained in:
Andreas Kling 2022-10-29 13:06:24 +02:00
parent ccd72a2add
commit a4de30de5a
4 changed files with 42 additions and 29 deletions

View file

@ -277,11 +277,8 @@ public:
void set_active_element(Element*);
bool created_for_appropriate_template_contents() const { return m_created_for_appropriate_template_contents; }
void set_created_for_appropriate_template_contents(bool value) { m_created_for_appropriate_template_contents = value; }
Document* associated_inert_template_document() { return m_associated_inert_template_document.ptr(); }
Document const* associated_inert_template_document() const { return m_associated_inert_template_document.ptr(); }
void set_associated_inert_template_document(Document& document) { m_associated_inert_template_document = &document; }
JS::NonnullGCPtr<Document> appropriate_template_contents_owner_document();
String ready_state() const;
void update_readiness(HTML::DocumentReadyState);
@ -505,6 +502,7 @@ private:
bool m_created_for_appropriate_template_contents { false };
JS::GCPtr<Document> m_associated_inert_template_document;
JS::GCPtr<Document> m_appropriate_template_contents_owner_document;
HTML::DocumentReadyState m_readiness { HTML::DocumentReadyState::Loading };
String m_content_type { "application/xml" };