Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / style / OutlineValue.h
index ccf3c27..877c9ef 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "core/rendering/style/BorderValue.h"
 
-namespace WebCore {
+namespace blink {
 
 class OutlineValue : public BorderValue {
 friend class RenderStyle;
@@ -39,7 +39,7 @@ public:
 
     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
@@ -47,13 +47,23 @@ public:
         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