Chromium Code Reviews| Index: third_party/WebKit/Source/core/style/BorderValue.h | 
| diff --git a/third_party/WebKit/Source/core/style/BorderValue.h b/third_party/WebKit/Source/core/style/BorderValue.h | 
| index 9c97bfcda155c9b0726d7f34fd3fa0df352cf24d..18b285a7087196d2080025670cccfc403b15d1d9 100644 | 
| --- a/third_party/WebKit/Source/core/style/BorderValue.h | 
| +++ b/third_party/WebKit/Source/core/style/BorderValue.h | 
| @@ -39,8 +39,8 @@ class BorderValue { | 
| public: | 
| BorderValue() | 
| : m_color(0), | 
| - m_colorIsCurrentColor(true), | 
| m_width(3), | 
| + m_colorIsCurrentColor(true), | 
| m_style(BorderStyleNone), | 
| m_isAuto(OutlineIsAutoOff) {} | 
| @@ -78,16 +78,16 @@ class BorderValue { | 
| : StyleColor(m_color); | 
| } | 
| - int width() const { return m_width; } | 
| + float width() const { return m_width; } | 
| 
 
pdr.
2017/01/24 06:57:31
I'm a little worried about the compatibility of th
 
Karl Øygard
2017/01/24 22:42:58
I'm trying to figure out how WebKit and FF are han
 
 | 
| EBorderStyle style() const { return static_cast<EBorderStyle>(m_style); } | 
| void setStyle(EBorderStyle style) { m_style = style; } | 
| protected: | 
| Color m_color; | 
| + float m_width; | 
| 
 
pdr.
2017/01/24 06:57:31
What range of values does this need to store? I do
 
pdr.
2017/01/24 19:52:12
Looking at this a bit closer... border width is on
 
Karl Øygard
2017/01/24 22:42:58
Unless I overlooked something, outline-width uses
 
 | 
| unsigned m_colorIsCurrentColor : 1; | 
| - unsigned m_width : 26; | 
| unsigned m_style : 4; // EBorderStyle | 
| // This is only used by OutlineValue but moved here to keep the bits packed. |