LibWeb: Remove unused BrowsingContext::scroll_offset_did_change()

This commit is contained in:
Andreas Kling 2023-09-20 08:10:57 +02:00
parent 93e4a0de16
commit 413cc1774e
Notes: sideshowbarker 2024-07-17 07:06:47 +09:00
2 changed files with 0 additions and 21 deletions

View File

@ -682,25 +682,6 @@ void BrowsingContext::set_window_proxy(JS::GCPtr<WindowProxy> window_proxy)
m_window_proxy = move(window_proxy);
}
void BrowsingContext::scroll_offset_did_change()
{
// https://w3c.github.io/csswg-drafts/cssom-view-1/#scrolling-events
// Whenever a viewport gets scrolled (whether in response to user interaction or by an API), the user agent must run these steps:
// 1. Let doc be the viewports associated Document.
auto* doc = active_document();
VERIFY(doc);
// 2. If doc is already in docs pending scroll event targets, abort these steps.
for (auto& target : doc->pending_scroll_event_targets()) {
if (target.ptr() == doc)
return;
}
// 3. Append doc to docs pending scroll event targets.
doc->pending_scroll_event_targets().append(*doc);
}
BrowsingContextGroup* BrowsingContext::group()
{
return m_group;

View File

@ -203,8 +203,6 @@ private:
void reset_cursor_blink_cycle();
void scroll_offset_did_change();
WeakPtr<Page> m_page;
Web::EventHandler m_event_handler;