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

Unified Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 2826893003: Remove ScrollableArea::GetFrameViewBase and move ScheduleAnimation into subclasses. (Closed)
Patch Set: Remove UNREACHED Created 3 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/AutoscrollController.cpp
diff --git a/third_party/WebKit/Source/core/page/AutoscrollController.cpp b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
index f44a334f6e8a11f5499b59e21edf64b289fa6e1e..4765eafa763028118062592e6d089c936ef68715 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.cpp
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
@@ -366,14 +366,15 @@ void AutoscrollController::Animate(double) {
}
break;
}
- if (autoscroll_type_ != kNoAutoscroll && autoscroll_layout_object_)
+ if (autoscroll_type_ != kNoAutoscroll && autoscroll_layout_object_) {
page_->GetChromeClient().ScheduleAnimation(
- autoscroll_layout_object_->GetFrame()->View());
+ autoscroll_layout_object_->GetFrame());
+ }
}
void AutoscrollController::StartAutoscroll() {
page_->GetChromeClient().ScheduleAnimation(
- autoscroll_layout_object_->GetFrame()->View());
+ autoscroll_layout_object_->GetFrame());
}
void AutoscrollController::UpdateMiddleClickAutoscrollState(

Powered by Google App Engine
This is Rietveld 408576698