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

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

Issue 2531753002: CSS Independent Transform Properties: support rotate: <axes> <angle> (Closed)
Patch Set: tests Created 4 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
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 0c8ab2472cb5acb14d08a98fa94207d8f447c4ba..a430ade4e04af1a2a691b07e84dcdb437a66ae47 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -3552,8 +3552,6 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
CSSPrimitiveValue::UnitType::Degrees);
CSSValueList* list = CSSValueList::createSpaceSeparated();
- list->append(*CSSPrimitiveValue::create(
- style.rotate()->angle(), CSSPrimitiveValue::UnitType::Degrees));
if (style.rotate()->x() != 0 || style.rotate()->y() != 0 ||
style.rotate()->z() != 1) {
list->append(*CSSPrimitiveValue::create(
@@ -3563,6 +3561,8 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
list->append(*CSSPrimitiveValue::create(
style.rotate()->z(), CSSPrimitiveValue::UnitType::Number));
}
+ list->append(*CSSPrimitiveValue::create(
+ style.rotate()->angle(), CSSPrimitiveValue::UnitType::Degrees));
return list;
}
case CSSPropertyScale: {

Powered by Google App Engine
This is Rietveld 408576698