From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/rendering/style/OutlineValue.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'Source/WebCore/rendering/style/OutlineValue.h') 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(m_isAuto); } private: - int m_offset; + float m_offset { 0 }; }; } // namespace WebCore - -#endif // OutlineValue_h -- cgit v1.2.1