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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Added SimTest. Created 3 years, 10 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.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index 87bb281ccff57b105c3f128336bc70b21f6c845e..9366d03bea9a67a1a9625fabf7cec51b7b001ed2 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -240,6 +240,9 @@ class CORE_EXPORT PaintLayerScrollableArea final
HostWindow* getHostWindow() const override;
+ ProgrammaticScrollCoordinator* getProgrammaticScrollCoordinator()
+ const override;
+
// For composited scrolling, we allocate an extra GraphicsLayer to hold
// onto the scrolling content. The layer can be shifted on the GPU and
// composited at little cost.
@@ -376,7 +379,8 @@ class CORE_EXPORT PaintLayerScrollableArea final
LayoutRect scrollIntoView(const LayoutRect&,
const ScrollAlignment& alignX,
const ScrollAlignment& alignY,
- ScrollType = ProgrammaticScroll) override;
+ ScrollType = ProgrammaticScroll,
+ bool isSmooth = false) override;
// Returns true if scrollable area is in the FrameView's collection of
// scrollable areas. This can only happen if we're scrollable, visible to hit

Powered by Google App Engine
This is Rietveld 408576698