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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Use only gpuBenchmarking. 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/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 1192364103285936c159c24209515a8382b4ff2e..15e7c9cef78e76a12c8e994b486b8e62c5830658 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -3661,6 +3661,14 @@ const CSSValue* ComputedStyleCSSValueMapping::Get(
case CSSPropertyScrollSnapDestination:
return ValueForScrollSnapDestination(style.ScrollSnapDestination(),
style);
+ case CSSPropertyScrollBoundaryBehavior:
+ if (style.ScrollBoundaryBehaviorX() == style.ScrollBoundaryBehaviorY())
+ return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorX());
+ return nullptr;
+ case CSSPropertyScrollBoundaryBehaviorX:
+ return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorX());
+ case CSSPropertyScrollBoundaryBehaviorY:
+ return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorY());
case CSSPropertyTranslate: {
if (!style.Translate())
return CSSIdentifierValue::Create(CSSValueNone);

Powered by Google App Engine
This is Rietveld 408576698