Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp

Issue 1840113005: Move viewport actions into an ApplyScroll callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
index e94b0942f014b88381f00892add468525deb4abe..59255bf6fda2ce0bca34d32b0528cb6fc8527ae0 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp
@@ -26,6 +26,11 @@ void ScrollCustomizationCallbacks::setApplyScroll(Element* element, ScrollStateC
m_applyScrollCallbacks.set(element, scrollStateCallback);
}
+void ScrollCustomizationCallbacks::removeApplyScroll(Element* element)
+{
+ m_applyScrollCallbacks.remove(element);
+}
+
ScrollStateCallback* ScrollCustomizationCallbacks::getApplyScroll(Element* element)
{
auto it = m_applyScrollCallbacks.find(element);
@@ -37,7 +42,7 @@ ScrollStateCallback* ScrollCustomizationCallbacks::getApplyScroll(Element* eleme
#if !ENABLE(OILPAN)
tdresser 2016/04/05 19:31:12 While you're here, can you remove everything with
bokan 2016/04/06 15:21:01 Done.
void ScrollCustomizationCallbacks::removeCallbacksForElement(Element* element)
{
- m_applyScrollCallbacks.remove(element);
+ removeApplyScroll(element);
m_distributeScrollCallbacks.remove(element);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698