StyleMultiColData.h [plain text]
#ifndef StyleMultiColData_h
#define StyleMultiColData_h
#include "BorderValue.h"
#include "Length.h"
#include "RenderStyleConstants.h"
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class StyleMultiColData : public RefCounted<StyleMultiColData> {
public:
static PassRef<StyleMultiColData> create() { return adoptRef(*new StyleMultiColData); }
PassRef<StyleMultiColData> copy() const;
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;
Color 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; unsigned m_axis : 2; unsigned m_progression : 2;
private:
StyleMultiColData();
StyleMultiColData(const StyleMultiColData&);
};
}
#endif // StyleMultiColData_h