StyleTransformData.cpp [plain text]
#include "config.h"
#include "StyleTransformData.h"
#include "RenderStyle.h"
namespace WebCore {
StyleTransformData::StyleTransformData()
: operations(RenderStyle::initialTransform())
, x(RenderStyle::initialTransformOriginX())
, y(RenderStyle::initialTransformOriginY())
, z(RenderStyle::initialTransformOriginZ())
, transformBox(RenderStyle::initialTransformBox())
{
}
inline StyleTransformData::StyleTransformData(const StyleTransformData& other)
: RefCounted<StyleTransformData>()
, operations(other.operations)
, x(other.x)
, y(other.y)
, z(other.z)
, transformBox(other.transformBox)
{
}
Ref<StyleTransformData> StyleTransformData::copy() const
{
return adoptRef(*new StyleTransformData(*this));
}
bool StyleTransformData::operator==(const StyleTransformData& other) const
{
return x == other.x && y == other.y && z == other.z && transformBox == other.transformBox && operations == other.operations;
}
}