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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update the test 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/core/css/parser/CSSParserFastPaths.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
index d7561142cc0c0a0d6740eb9c1402f1118c4a135f..450fbc907497f6b7f4af98add49fbc55bb7203a1 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
@@ -845,6 +845,12 @@ bool CSSParserFastPaths::IsValidKeywordPropertyAndValue(
DCHECK(RuntimeEnabledFeatures::CSSScrollSnapPointsEnabled());
return value_id == CSSValueNone || value_id == CSSValueMandatory ||
value_id == CSSValueProximity;
+ case CSSPropertyScrollBoundaryBehaviorX:
+ return value_id == CSSValueAuto || value_id == CSSValueContain ||
+ value_id == CSSValueNone;
+ case CSSPropertyScrollBoundaryBehaviorY:
+ return value_id == CSSValueAuto || value_id == CSSValueContain ||
+ value_id == CSSValueNone;
default:
NOTREACHED();
return false;
@@ -958,6 +964,8 @@ bool CSSParserFastPaths::IsKeywordPropertyID(CSSPropertyID property_id) {
case CSSPropertyWordWrap:
case CSSPropertyWritingMode:
case CSSPropertyScrollSnapType:
+ case CSSPropertyScrollBoundaryBehaviorX:
+ case CSSPropertyScrollBoundaryBehaviorY:
return true;
case CSSPropertyJustifyContent:
case CSSPropertyAlignContent:

Powered by Google App Engine
This is Rietveld 408576698