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

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

Issue 1801753002: First programmatic smooth scroll should run on the compositor if it can (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot compile error Created 4 years, 9 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 36f962068c3dd39c9ee25752b4aa7b901fa75685..31e85e92d8b2c4da74820377d8afe0e809c405de 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -721,6 +721,12 @@ bool VisualViewport::shouldDisableDesktopWorkarounds() const
|| (constraints.minimumScale == constraints.maximumScale && constraints.minimumScale != -1);
}
+CompositorAnimationTimeline* VisualViewport::compositorAnimationTimeline() const
+{
+ ScrollingCoordinator* c = frameHost().page().scrollingCoordinator();
+ return c ? c->compositorAnimationTimeline() : nullptr;
+}
+
String VisualViewport::debugName(const GraphicsLayer* graphicsLayer) const
{
String name;

Powered by Google App Engine
This is Rietveld 408576698