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 723373006: Add CSS parsing support for the scroll-blocks-on property (in place of touch-action-delay) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Apply CR feedback 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 | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperties.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 53cbbc8fb01f7a42d05f8e2aaab4dcd037f57b62..42e25438adef0d25ff0f235804846d2f8b998401 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -4465,33 +4465,23 @@ template<> inline CSSPrimitiveValue::operator EIsolation() const
return IsolationAuto;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TouchActionDelay t)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (t) {
- case TouchActionDelayNone:
- m_value.valueID = CSSValueNone;
- break;
- case TouchActionDelayScript:
- m_value.valueID = CSSValueScript;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator TouchActionDelay() const
+template<> inline CSSPrimitiveValue::operator ScrollBlocksOn() const
{
switch (m_value.valueID) {
case CSSValueNone:
- return TouchActionDelayNone;
- case CSSValueScript:
- return TouchActionDelayScript;
+ return ScrollBlocksOnNone;
+ case CSSValueStartTouch:
+ return ScrollBlocksOnStartTouch;
+ case CSSValueWheelEvent:
+ return ScrollBlocksOnWheelEvent;
+ case CSSValueScrollEvent:
+ return ScrollBlocksOnScrollEvent;
default:
break;
}
ASSERT_NOT_REACHED();
- return TouchActionDelayNone;
+ return ScrollBlocksOnNone;
}
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(CSSBoxType cssBox)
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698