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

Unified Diff: Source/core/rendering/style/StyleTransformData.cpp

Issue 644953003: Store [-webkit-]transform-origin as a TransformOrigin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Almost forgot: drop unused ctor. (+ rebase). Created 6 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
« no previous file with comments | « Source/core/rendering/style/StyleTransformData.h ('k') | Source/core/rendering/style/TransformOrigin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/StyleTransformData.cpp
diff --git a/Source/core/rendering/style/StyleTransformData.cpp b/Source/core/rendering/style/StyleTransformData.cpp
index 6b91807c38adb377d6be0e1e45b680d00c70c125..8a1cd62e9d8f54ba4ed56a5db8b406b42cba38f9 100644
--- a/Source/core/rendering/style/StyleTransformData.cpp
+++ b/Source/core/rendering/style/StyleTransformData.cpp
@@ -28,24 +28,20 @@ namespace blink {
StyleTransformData::StyleTransformData()
: m_operations(RenderStyle::initialTransform())
- , m_x(RenderStyle::initialTransformOriginX())
- , m_y(RenderStyle::initialTransformOriginY())
- , m_z(RenderStyle::initialTransformOriginZ())
+ , m_origin(RenderStyle::initialTransformOrigin())
{
}
StyleTransformData::StyleTransformData(const StyleTransformData& o)
: RefCounted<StyleTransformData>()
, m_operations(o.m_operations)
- , m_x(o.m_x)
- , m_y(o.m_y)
- , m_z(o.m_z)
+ , m_origin(o.m_origin)
{
}
bool StyleTransformData::operator==(const StyleTransformData& o) const
{
- return m_x == o.m_x && m_y == o.m_y && m_z == o.m_z && m_operations == o.m_operations;
+ return m_origin == o.m_origin && m_operations == o.m_operations;
}
} // namespace blink
« no previous file with comments | « Source/core/rendering/style/StyleTransformData.h ('k') | Source/core/rendering/style/TransformOrigin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698