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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Add a short comment. Created 3 years, 7 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 661cda8f99283eca964bb9533b57f79f9053c816..9e040fd20e8a092203b605d5553174be67ff9845 100644
--- a/third_party/WebKit/Source/core/frame/RootFrameViewport.h
+++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.h
@@ -60,6 +60,7 @@ class CORE_EXPORT RootFrameViewport final
LayoutRect ScrollIntoView(const LayoutRect& rect_in_content,
const ScrollAlignment& align_x,
const ScrollAlignment& align_y,
+ bool is_smooth,
ScrollType = kProgrammaticScroll) override;
IntRect VisibleContentRect(
IncludeScrollbarsInRect = kExcludeScrollbars) const override;
@@ -94,6 +95,7 @@ class CORE_EXPORT RootFrameViewport final
ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override;
bool ScrollAnimatorEnabled() const override;
PlatformChromeClient* GetChromeClient() const override;
+ SmoothScrollSequencer* GetSmoothScrollSequencer() const override;
void ServiceScrollAnimations(double) override;
void UpdateCompositorScrollAnimations() override;
void CancelProgrammaticScrollAnimation() override;
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/frame/RootFrameViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698