StyleMultiColData.cpp [plain text]
#include "config.h"
#include "StyleMultiColData.h"
#include "RenderStyle.h"
namespace WebCore {
StyleMultiColData::StyleMultiColData()
: count(RenderStyle::initialColumnCount())
, autoWidth(true)
, autoCount(true)
, fill(static_cast<unsigned>(RenderStyle::initialColumnFill()))
, columnSpan(false)
, axis(static_cast<unsigned>(RenderStyle::initialColumnAxis()))
, progression(static_cast<unsigned>(RenderStyle::initialColumnProgression()))
{
}
inline StyleMultiColData::StyleMultiColData(const StyleMultiColData& other)
: RefCounted<StyleMultiColData>()
, width(other.width)
, count(other.count)
, rule(other.rule)
, visitedLinkColumnRuleColor(other.visitedLinkColumnRuleColor)
, autoWidth(other.autoWidth)
, autoCount(other.autoCount)
, fill(other.fill)
, columnSpan(other.columnSpan)
, axis(other.axis)
, progression(other.progression)
{
}
Ref<StyleMultiColData> StyleMultiColData::copy() const
{
return adoptRef(*new StyleMultiColData(*this));
}
bool StyleMultiColData::operator==(const StyleMultiColData& other) const
{
return width == other.width && count == other.count
&& rule == other.rule && visitedLinkColumnRuleColor == other.visitedLinkColumnRuleColor
&& autoWidth == other.autoWidth && autoCount == other.autoCount
&& fill == other.fill && columnSpan == other.columnSpan
&& axis == other.axis && progression == other.progression;
}
}