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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollTypes.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Sequenced-smooth-scrolls only happen on main thread for now. Created 3 years, 6 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/platform/scroll/ScrollTypes.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollTypes.h b/third_party/WebKit/Source/platform/scroll/ScrollTypes.h
index 63a564a53903fd834a80933e7d51ab4ccdd51c4f..008835351d83fc8580ccc8ae13b1b36a65ac924f 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollTypes.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollTypes.h
@@ -76,14 +76,16 @@ enum ScrollType {
kProgrammaticScroll,
kClampingScroll,
kCompositorScroll,
- kAnchoringScroll
+ kAnchoringScroll,
+ kSequencedSmoothScroll
};
// An explicit scroll is one that was requested by the user or the webpage.
// An implicit scroll is a side effect of a layout change.
inline bool IsExplicitScrollType(ScrollType scroll_type) {
return scroll_type == kUserScroll || scroll_type == kProgrammaticScroll ||
- scroll_type == kCompositorScroll;
+ scroll_type == kCompositorScroll ||
+ scroll_type == kSequencedSmoothScroll;
}
// Convert logical scroll direction to physical. Physical scroll directions are
@@ -181,6 +183,8 @@ enum ScrollInertialPhase {
enum ScrollbarOrientation { kHorizontalScrollbar, kVerticalScrollbar };
+enum ScrollOrientation { kHorizontalScroll, kVerticalScroll };
+
enum ScrollbarMode { kScrollbarAuto, kScrollbarAlwaysOff, kScrollbarAlwaysOn };
enum ScrollbarControlSize { kRegularScrollbar, kSmallScrollbar };

Powered by Google App Engine
This is Rietveld 408576698