Support transform-box to switch sizing box in SVG
[WebKit-https.git] / Source / WebCore / rendering / style / StyleTransformData.cpp
index c3f91ea..eba3222 100644 (file)
 namespace WebCore {
 
 StyleTransformData::StyleTransformData()
-    : m_operations(RenderStyle::initialTransform())
-    , m_x(RenderStyle::initialTransformOriginX())
-    , m_y(RenderStyle::initialTransformOriginY())
-    , m_z(RenderStyle::initialTransformOriginZ())
+    : operations(RenderStyle::initialTransform())
+    , x(RenderStyle::initialTransformOriginX())
+    , y(RenderStyle::initialTransformOriginY())
+    , z(RenderStyle::initialTransformOriginZ())
+    , transformBox(RenderStyle::initialTransformBox())
 {
 }
 
-inline StyleTransformData::StyleTransformData(const StyleTransformData& o)
+inline StyleTransformData::StyleTransformData(const StyleTransformData& other)
     : RefCounted<StyleTransformData>()
-    , m_operations(o.m_operations)
-    , m_x(o.m_x)
-    , m_y(o.m_y)
-    , m_z(o.m_z)
+    , operations(other.operations)
+    , x(other.x)
+    , y(other.y)
+    , z(other.z)
+    , transformBox(other.transformBox)
 {
 }
 
-PassRef<StyleTransformData> StyleTransformData::copy() const
+Ref<StyleTransformData> StyleTransformData::copy() const
 {
     return adoptRef(*new StyleTransformData(*this));
 }
 
-bool StyleTransformData::operator==(const StyleTransformData& o) const
+bool StyleTransformData::operator==(const StyleTransformData& other) const
 {
-    return m_x == o.m_x && m_y == o.m_y && m_z == o.m_z && m_operations == o.m_operations;
+    return x == other.x && y == other.y && z == other.z && transformBox == other.transformBox && operations == other.operations;
 }
 
 } // namespace WebCore