mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibWeb: Remove unused BrowsingContext::scroll_offset_did_change()
This commit is contained in:
parent
93e4a0de16
commit
413cc1774e
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/413cc1774e Pull-request: https://github.com/SerenityOS/serenity/pull/21167 Reviewed-by: https://github.com/AtkinsSJ ✅
@ -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 viewport’s associated Document.
|
||||
auto* doc = active_document();
|
||||
VERIFY(doc);
|
||||
|
||||
// 2. If doc is already in doc’s pending scroll event targets, abort these steps.
|
||||
for (auto& target : doc->pending_scroll_event_targets()) {
|
||||
if (target.ptr() == doc)
|
||||
return;
|
||||
}
|
||||
|
||||
// 3. Append doc to doc’s pending scroll event targets.
|
||||
doc->pending_scroll_event_targets().append(*doc);
|
||||
}
|
||||
|
||||
BrowsingContextGroup* BrowsingContext::group()
|
||||
{
|
||||
return m_group;
|
||||
|
@ -203,8 +203,6 @@ private:
|
||||
|
||||
void reset_cursor_blink_cycle();
|
||||
|
||||
void scroll_offset_did_change();
|
||||
|
||||
WeakPtr<Page> m_page;
|
||||
|
||||
Web::EventHandler m_event_handler;
|
||||
|
Loading…
Reference in New Issue
Block a user