#ifndef StyleMultiColData_h
#define StyleMultiColData_h
#include "core/rendering/style/BorderValue.h"
#include "core/rendering/style/RenderStyleConstants.h"
#include "platform/Length.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace WebCore {
class StyleMultiColData : public RefCounted<StyleMultiColData> {
public:
static PassRefPtr<StyleMultiColData> create() { return adoptRef(new StyleMultiColData); }
PassRefPtr<StyleMultiColData> copy() const { return adoptRef(new StyleMultiColData(*this)); }
bool operator==(const StyleMultiColData& o) const;
bool operator!=(const StyleMultiColData &o) const
{
return !(*this == o);
}
unsigned short ruleWidth() const
{
if (m_rule.style() == BNONE || m_rule.style() == BHIDDEN)
return 0;
return m_rule.width();
}
float m_width;
unsigned short m_count;
float m_gap;
BorderValue m_rule;
StyleColor m_visitedLinkColumnRuleColor;
bool m_autoWidth : 1;
bool m_autoCount : 1;
bool m_normalGap : 1;
unsigned m_fill : 1;
unsigned m_columnSpan : 1;
unsigned m_breakBefore : 2;
unsigned m_breakAfter : 2;
unsigned m_breakInside : 2;
private:
StyleMultiColData();
StyleMultiColData(const StyleMultiColData&);
};
}
#endif