StyleMultiColData.cpp [plain text]
#include "config.h"
#include "StyleMultiColData.h"
#include "RenderStyle.h"
namespace WebCore {
StyleMultiColData::StyleMultiColData()
: count(RenderStyle::initialColumnCount())
, autoWidth(true)
, autoCount(true)
, normalGap(true)
, fill(RenderStyle::initialColumnFill())
, columnSpan(false)
, axis(RenderStyle::initialColumnAxis())
, progression(RenderStyle::initialColumnProgression())
{
}
inline StyleMultiColData::StyleMultiColData(const StyleMultiColData& other)
: RefCounted<StyleMultiColData>()
, width(other.width)
, count(other.count)
, gap(other.gap)
, rule(other.rule)
, visitedLinkColumnRuleColor(other.visitedLinkColumnRuleColor)
, autoWidth(other.autoWidth)
, autoCount(other.autoCount)
, normalGap(other.normalGap)
, 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 && gap == other.gap
&& rule == other.rule && visitedLinkColumnRuleColor == other.visitedLinkColumnRuleColor
&& autoWidth == other.autoWidth && autoCount == other.autoCount && normalGap == other.normalGap
&& fill == other.fill && columnSpan == other.columnSpan
&& axis == other.axis && progression == other.progression;
}
}