mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
LibWeb: Give Document a "target element"
The target element is the one matching the URL fragment. We don't yet set it to anything.
This commit is contained in:
parent
28aa4ca767
commit
13b4bf48a8
4 changed files with 28 additions and 1 deletions
|
@ -295,6 +295,9 @@ public:
|
|||
|
||||
void set_active_element(Element*);
|
||||
|
||||
Element const* target_element() const { return m_target_element.ptr(); }
|
||||
void set_target_element(Element*);
|
||||
|
||||
bool created_for_appropriate_template_contents() const { return m_created_for_appropriate_template_contents; }
|
||||
|
||||
JS::NonnullGCPtr<Document> appropriate_template_contents_owner_document();
|
||||
|
@ -565,6 +568,7 @@ private:
|
|||
|
||||
JS::GCPtr<Element> m_focused_element;
|
||||
JS::GCPtr<Element> m_active_element;
|
||||
JS::GCPtr<Element> m_target_element;
|
||||
|
||||
bool m_created_for_appropriate_template_contents { false };
|
||||
JS::GCPtr<Document> m_associated_inert_template_document;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue