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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 2829613002: Remove ScheduleAnimation proxy methods, call HostWindow directly (Closed)
Patch Set: 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/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index b5f5e4236d675625417e873faac8ad0f3cfd5ca9..cc2251298cae6ba96f87e7bc755dcae069422c48 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -675,7 +675,11 @@ LocalFrame* VisualViewport::MainFrame() const {
}
bool VisualViewport::ScheduleAnimation() {
- return MainFrame()->ScheduleAnimation(GetHostWindow());
+ if (HostWindow* window = GetHostWindow()) {
+ window->ScheduleAnimation(MainFrame());
+ return true;
+ }
+ return false;
}
void VisualViewport::ClampToBoundaries() {
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698