mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Remove BrowsingContext::scroll_to()
Let's use navigable directly instead of going through browsing context to request a scroll.
This commit is contained in:
parent
0c92c80544
commit
7ad0767aa0
3 changed files with 2 additions and 17 deletions
|
@ -1879,8 +1879,8 @@ void Document::scroll_to_the_fragment()
|
|||
void Document::scroll_to_the_beginning_of_the_document()
|
||||
{
|
||||
// FIXME: Actually implement this algorithm
|
||||
if (auto browsing_context = this->browsing_context())
|
||||
browsing_context->scroll_to({ 0, 0 });
|
||||
if (auto navigable = this->navigable())
|
||||
navigable->perform_scroll_of_viewport({ 0, 0 });
|
||||
}
|
||||
|
||||
StringView Document::ready_state() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue