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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2454543002: Correct the initial value of CSS independent transform properties (Closed)
Patch Set: git cl format Created 4 years, 2 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 8d8f5902488d524177fa92ba7b103c54eb6e591c..37146235752dcfb69bae422e2dd955c5662a39d3 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1700,8 +1700,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// Independent transform properties.
// translate
static PassRefPtr<TranslateTransformOperation> initialTranslate() {
- return TranslateTransformOperation::create(
- Length(0, Fixed), Length(0, Fixed), 0, TransformOperation::Translate3D);
+ return nullptr;
}
TranslateTransformOperation* translate() const {
return m_rareNonInheritedData->m_transform->m_translate.get();
@@ -1712,8 +1711,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// rotate
static PassRefPtr<RotateTransformOperation> initialRotate() {
- return RotateTransformOperation::create(0, 0, 1, 0,
- TransformOperation::Rotate3D);
+ return nullptr;
}
RotateTransformOperation* rotate() const {
return m_rareNonInheritedData->m_transform->m_rotate.get();
@@ -1723,10 +1721,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// scale
- static PassRefPtr<ScaleTransformOperation> initialScale() {
- return ScaleTransformOperation::create(1, 1, 1,
- TransformOperation::Scale3D);
- }
+ static PassRefPtr<ScaleTransformOperation> initialScale() { return nullptr; }
ScaleTransformOperation* scale() const {
return m_rareNonInheritedData->m_transform->m_scale.get();
}

Powered by Google App Engine
This is Rietveld 408576698