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

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: Add exception for mac 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 d362ad3ed16f1828ee47cc99cdce66ee2ddaf6cc..d95f1f656d63f77101dd2168c2af526c5b1cb519 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -966,14 +966,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