StyleDeprecatedFlexibleBoxData.cpp [plain text]
#include "config.h"
#include "StyleDeprecatedFlexibleBoxData.h"
#include "RenderStyle.h"
namespace WebCore {
StyleDeprecatedFlexibleBoxData::StyleDeprecatedFlexibleBoxData()
: flex(RenderStyle::initialBoxFlex())
, flexGroup(RenderStyle::initialBoxFlexGroup())
, ordinalGroup(RenderStyle::initialBoxOrdinalGroup())
, align(RenderStyle::initialBoxAlign())
, pack(RenderStyle::initialBoxPack())
, orient(RenderStyle::initialBoxOrient())
, lines(RenderStyle::initialBoxLines())
{
}
inline StyleDeprecatedFlexibleBoxData::StyleDeprecatedFlexibleBoxData(const StyleDeprecatedFlexibleBoxData& other)
: RefCounted<StyleDeprecatedFlexibleBoxData>()
, flex(other.flex)
, flexGroup(other.flexGroup)
, ordinalGroup(other.ordinalGroup)
, align(other.align)
, pack(other.pack)
, orient(other.orient)
, lines(other.lines)
{
}
Ref<StyleDeprecatedFlexibleBoxData> StyleDeprecatedFlexibleBoxData::copy() const
{
return adoptRef(*new StyleDeprecatedFlexibleBoxData(*this));
}
bool StyleDeprecatedFlexibleBoxData::operator==(const StyleDeprecatedFlexibleBoxData& other) const
{
return flex == other.flex && flexGroup == other.flexGroup
&& ordinalGroup == other.ordinalGroup && align == other.align
&& pack == other.pack && orient == other.orient && lines == other.lines;
}
}