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

Unified Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Created 3 years, 11 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/RootFrameViewport.h
diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.h b/third_party/WebKit/Source/core/frame/RootFrameViewport.h
index f84a9511e2fb7bb818b8f586b068041a4e5cf209..9cc7d9b4b4ab62b065f86cbc3b3b0efe9d595b9f 100644
--- a/third_party/WebKit/Source/core/frame/RootFrameViewport.h
+++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.h
@@ -60,7 +60,8 @@ class CORE_EXPORT RootFrameViewport final
LayoutRect scrollIntoView(const LayoutRect& rectInContent,
const ScrollAlignment& alignX,
const ScrollAlignment& alignY,
- ScrollType = ProgrammaticScroll) override;
+ ScrollType = ProgrammaticScroll,
+ ScrollBehavior = ScrollBehaviorAuto) override;
IntRect visibleContentRect(
IncludeScrollbarsInRect = ExcludeScrollbars) const override;
bool shouldUseIntegerScrollOffset() const override;
@@ -96,6 +97,8 @@ class CORE_EXPORT RootFrameViewport final
ScrollResult userScroll(ScrollGranularity, const FloatSize&) override;
bool scrollAnimatorEnabled() const override;
HostWindow* getHostWindow() const override;
+ ProgrammaticScrollCoordinator* getProgrammaticScrollCoordinator()
+ const override;
void serviceScrollAnimations(double) override;
void updateCompositorScrollAnimations() override;
void cancelProgrammaticScrollAnimation() override;

Powered by Google App Engine
This is Rietveld 408576698