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

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

Issue 2126323002: Add support for touch-action: pinch-zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check in scroll begin for pointer count and add test Created 4 years, 3 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 23d3b172a14fb8cf40de6a0d323e4f1704f79f85..f54a05166b9a0e7d3a6393d83c60241ade78b119 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -957,14 +957,17 @@ static CSSValue* touchActionFlagsToCSSValue(TouchAction touchAction)
list->append(*CSSPrimitiveValue::createIdentifier(CSSValuePanLeft));
else if (touchAction & TouchActionPanRight)
list->append(*CSSPrimitiveValue::createIdentifier(CSSValuePanRight));
-
if ((touchAction & TouchActionPanY) == TouchActionPanY)
list->append(*CSSPrimitiveValue::createIdentifier(CSSValuePanY));
else if (touchAction & TouchActionPanUp)
list->append(*CSSPrimitiveValue::createIdentifier(CSSValuePanUp));
else if (touchAction & TouchActionPanDown)
list->append(*CSSPrimitiveValue::createIdentifier(CSSValuePanDown));
+
+ if ((touchAction & TouchActionPinchZoom) == TouchActionPinchZoom)
+ list->append(*CSSPrimitiveValue::createIdentifier(CSSValuePinchZoom));
}
+
ASSERT(list->length());
return list;
}

Powered by Google App Engine
This is Rietveld 408576698