1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibWeb: Implement and use "scroll to the fragment" algorithm

This will eventually be used by Navigable but for now, it's just when
traversing the history.
This commit is contained in:
Sam Atkins 2023-08-11 20:26:02 +01:00 committed by Andreas Kling
parent be9c975b2e
commit 8bd3b74e3a
3 changed files with 64 additions and 5 deletions

View file

@ -298,6 +298,9 @@ public:
Element const* target_element() const { return m_target_element.ptr(); }
void set_target_element(Element*);
void scroll_to_the_fragment();
void scroll_to_the_beginning_of_the_document();
bool created_for_appropriate_template_contents() const { return m_created_for_appropriate_template_contents; }
JS::NonnullGCPtr<Document> appropriate_template_contents_owner_document();