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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 46353003: Switch AutoscrollController to use animation system instead of timer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gclient
Patch Set: addresses review feedback Created 7 years, 1 month 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
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/web/PageWidgetDelegate.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 3d954cb794ed7849745b14f672c1601dfaa9d0a6..88e69775c2c4adf680a38e2e673bef1937ef0639 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -39,6 +39,7 @@
#include "core/html/HTMLElement.h"
#include "core/html/HTMLHtmlElement.h"
#include "core/html/HTMLTableElement.h"
+#include "core/page/AutoscrollController.h"
#include "core/page/EventHandler.h"
#include "core/frame/Frame.h"
#include "core/frame/FrameView.h"
@@ -2558,10 +2559,10 @@ void RenderObject::willBeDestroyed()
if (children)
children->destroyLeftoverChildren();
- // If this renderer is being autoscrolled, stop the autoscroll timer
+ // If this renderer is being autoscrolled, stop the autoscrolling.
if (Frame* frame = this->frame()) {
if (frame->page())
- frame->page()->stopAutoscrollIfNeeded(this);
+ frame->page()->autoscrollController().stopAutoscrollIfNeeded(this);
frame->animation().cancelAnimations(this);
}
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/web/PageWidgetDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698