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

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

Issue 87973002: add pan-x and pan-y support to CSS touch-action parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments and merge to trunk Created 7 years 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/CSSParser-in.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
old mode 100644
new mode 100755
index 4b5b0a4c8493ad9548173f1ff8e6c1a91db761cc..3f386133793d5f76d7d855d3902bd8385b9c0eec
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -4866,20 +4866,6 @@ template<> inline CSSPrimitiveValue::operator EMaskType() const
return MT_LUMINANCE;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TouchAction t)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (t) {
- case TouchActionNone:
- m_value.valueID = CSSValueNone;
- break;
- case TouchActionAuto:
- m_value.valueID = CSSValueAuto;
- break;
- }
-}
-
template<> inline CSSPrimitiveValue::operator TouchAction() const
{
ASSERT(isValueID());
@@ -4888,6 +4874,10 @@ template<> inline CSSPrimitiveValue::operator TouchAction() const
return TouchActionNone;
case CSSValueAuto:
return TouchActionAuto;
+ case CSSValuePanX:
+ return TouchActionPanX;
+ case CSSValuePanY:
+ return TouchActionPanY;
default:
break;
}
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698