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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Change the default setting. 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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 28598f2479907ea541c3db299340c2ed4f5eb14a..df75c5ecd87a16d93eaa01185740dc5b705d0f90 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -630,13 +630,15 @@ bool LayoutObject::ScrollRectToVisible(const LayoutRect& rect,
const ScrollAlignment& align_x,
const ScrollAlignment& align_y,
ScrollType scroll_type,
- bool make_visible_in_visual_viewport) {
+ bool make_visible_in_visual_viewport,
+ ScrollBehavior scroll_behavior) {
LayoutBox* enclosing_box = this->EnclosingBox();
if (!enclosing_box)
return false;
enclosing_box->ScrollRectToVisible(rect, align_x, align_y, scroll_type,
- make_visible_in_visual_viewport);
+ make_visible_in_visual_viewport,
+ scroll_behavior);
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/ScrollAlignment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698