#include "core/rendering/style/BorderValue.h"
-namespace WebCore {
+namespace blink {
class OutlineValue : public BorderValue {
friend class RenderStyle;
bool operator==(const OutlineValue& o) const
{
- return m_width == o.m_width && m_style == o.m_style && m_color == o.m_color && m_colorIsValid == o.m_colorIsValid && m_offset == o.m_offset && m_isAuto == o.m_isAuto;
+ return BorderValue::operator==(o) && m_offset == o.m_offset && m_isAuto == o.m_isAuto;
}
bool operator!=(const OutlineValue& o) const
return !(*this == o);
}
+ bool visuallyEqual(const OutlineValue& o) const
+ {
+ if (m_style == BNONE && o.m_style == BNONE)
+ return true;
+ return *this == o;
+ }
+
int offset() const { return m_offset; }
+ void setOffset(int offset) { m_offset = offset; }
+
OutlineIsAuto isAuto() const { return static_cast<OutlineIsAuto>(m_isAuto); }
+ void setIsAuto(OutlineIsAuto isAuto) { m_isAuto = isAuto; }
private:
int m_offset;
};
-} // namespace WebCore
+} // namespace blink
#endif // OutlineValue_h