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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 4e4ff7a468afeee5f77e1ac9d841b71245719009..a172946d81a98602e132dadf8a2bb795fe0dbdc9 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -203,7 +203,7 @@ DEFINE_TRACE(PaintLayerScrollableArea) {
ScrollableArea::Trace(visitor);
}
-HostWindow* PaintLayerScrollableArea::GetHostWindow() const {
+PlatformChromeClient* PaintLayerScrollableArea::GetChromeClient() const {
if (Page* page = Box().GetFrame()->GetPage())
return &page->GetChromeClient();
return nullptr;
@@ -1902,8 +1902,8 @@ bool PaintLayerScrollableArea::VisualViewportSuppliesScrollbars() const {
}
bool PaintLayerScrollableArea::ScheduleAnimation() {
- if (HostWindow* window = GetHostWindow()) {
- window->ScheduleAnimation(Box().GetFrame());
+ if (PlatformChromeClient* client = GetChromeClient()) {
+ client->ScheduleAnimation(Box().GetFrame());
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698