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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into scroll-boundary Created 3 years, 9 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 7ec9c51f4b883e324eb9c95b7648f71c4b11c2e2..8a56c28376fcd49cf2c85d194e4a207b4f3376a5 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1613,6 +1613,18 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
SET_VAR(m_rareNonInheritedData, m_scrollSnapType, b);
}
+ // scroll-boundary-behavior
+ static ScrollBoundaryBehavior initialScrollBoundaryBehavior() {
+ return ScrollBoundaryBehaviorPropagate;
+ }
+ ScrollBoundaryBehavior getScrollBoundaryBehavior() const {
+ return static_cast<ScrollBoundaryBehavior>(
+ m_rareNonInheritedData->m_scrollBoundaryBehavior);
+ }
+ void setScrollBoundaryBehavior(ScrollBoundaryBehavior b) {
+ SET_VAR(m_rareNonInheritedData, m_scrollBoundaryBehavior, b);
+ }
+
// shape-image-threshold (aka -webkit-shape-image-threshold)
static float initialShapeImageThreshold() { return 0; }
float shapeImageThreshold() const {

Powered by Google App Engine
This is Rietveld 408576698