summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/style/OutlineValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/style/OutlineValue.h')
-rw-r--r--Source/WebCore/rendering/style/OutlineValue.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/WebCore/rendering/style/OutlineValue.h b/Source/WebCore/rendering/style/OutlineValue.h
index f380af628..202932c7c 100644
--- a/Source/WebCore/rendering/style/OutlineValue.h
+++ b/Source/WebCore/rendering/style/OutlineValue.h
@@ -22,8 +22,7 @@
*
*/
-#ifndef OutlineValue_h
-#define OutlineValue_h
+#pragma once
#include "BorderValue.h"
@@ -32,14 +31,9 @@ namespace WebCore {
class OutlineValue : public BorderValue {
friend class RenderStyle;
public:
- OutlineValue()
- : m_offset(0)
- {
- }
-
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 m_width == o.m_width && m_style == o.m_style && m_color == o.m_color && m_offset == o.m_offset && m_isAuto == o.m_isAuto;
}
bool operator!=(const OutlineValue& o) const
@@ -47,13 +41,11 @@ public:
return !(*this == o);
}
- int offset() const { return m_offset; }
+ float offset() const { return m_offset; }
OutlineIsAuto isAuto() const { return static_cast<OutlineIsAuto>(m_isAuto); }
private:
- int m_offset;
+ float m_offset { 0 };
};
} // namespace WebCore
-
-#endif // OutlineValue_h