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

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAlignment.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Revised according to the comments. We are still missing tests. 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/layout/ScrollAlignment.h
diff --git a/third_party/WebKit/Source/core/layout/ScrollAlignment.h b/third_party/WebKit/Source/core/layout/ScrollAlignment.h
index 80caf57e3ac9485cd4e2eae471a68b6324cf4af9..e1a62d5bc724a1854f47c854078564f302342590 100644
--- a/third_party/WebKit/Source/core/layout/ScrollAlignment.h
+++ b/third_party/WebKit/Source/core/layout/ScrollAlignment.h
@@ -82,8 +82,11 @@ struct CORE_EXPORT ScrollAlignment {
static const ScrollAlignment alignCenterIfNeeded;
static const ScrollAlignment alignToEdgeIfNeeded;
static const ScrollAlignment alignCenterAlways;
+ static const ScrollAlignment alignClosestEdgeAlways;
static const ScrollAlignment alignTopAlways;
static const ScrollAlignment alignBottomAlways;
+ static const ScrollAlignment alignLeftAlways;
+ static const ScrollAlignment alignRightAlways;
ScrollAlignmentBehavior m_rectVisible;
ScrollAlignmentBehavior m_rectHidden;

Powered by Google App Engine
This is Rietveld 408576698