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

Unified Diff: Source/core/css/CSSPrimitiveValueMappings.h

Issue 766023002: Rename 'instant' value of scroll-behavior CSS property to 'auto' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « LayoutTests/fast/scroll-behavior/subframe-scrollTop.html ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/Source/core/css/CSSPrimitiveValueMappings.h b/Source/core/css/CSSPrimitiveValueMappings.h
index b9172ce902fa11a382f0e32565214805e5307506..84e4fd98de100ca17d48551fcead29b8c474ba2f 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -4754,14 +4754,14 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ScrollBehavior behavior)
{
m_primitiveUnitType = CSS_VALUE_ID;
switch (behavior) {
- case ScrollBehaviorInstant:
- m_value.valueID = CSSValueInstant;
+ case ScrollBehaviorAuto:
+ m_value.valueID = CSSValueAuto;
break;
case ScrollBehaviorSmooth:
m_value.valueID = CSSValueSmooth;
break;
- case ScrollBehaviorAuto:
- // Behavior 'auto' is only allowed in ScrollOptions arguments passed to
+ case ScrollBehaviorInstant:
+ // Behavior 'instant' is only allowed in ScrollOptions arguments passed to
// CSSOM scroll APIs.
ASSERT_NOT_REACHED();
}
@@ -4770,15 +4770,15 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ScrollBehavior behavior)
template<> inline CSSPrimitiveValue::operator ScrollBehavior() const
{
switch (getValueID()) {
- case CSSValueInstant:
- return ScrollBehaviorInstant;
+ case CSSValueAuto:
+ return ScrollBehaviorAuto;
case CSSValueSmooth:
return ScrollBehaviorSmooth;
default:
break;
}
ASSERT_NOT_REACHED();
- return ScrollBehaviorInstant;
+ return ScrollBehaviorAuto;
}
}
« no previous file with comments | « LayoutTests/fast/scroll-behavior/subframe-scrollTop.html ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698