| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TabSize_h | 5 #ifndef TabSize_h |
| 6 #define TabSize_h | 6 #define TabSize_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" |
| 9 |
| 8 namespace blink { | 10 namespace blink { |
| 9 | 11 |
| 10 struct TabSize { | 12 struct TabSize { |
| 13 DISALLOW_NEW(); |
| 11 TabSize(float pixels) | 14 TabSize(float pixels) |
| 12 : m_floatValue(pixels) | 15 : m_floatValue(pixels) |
| 13 , m_isSpaces(0) | 16 , m_isSpaces(0) |
| 14 { | 17 { |
| 15 } | 18 } |
| 16 | 19 |
| 17 TabSize(int spaces) | 20 TabSize(int spaces) |
| 18 : m_floatValue(spaces) | 21 : m_floatValue(spaces) |
| 19 , m_isSpaces(1) | 22 , m_isSpaces(1) |
| 20 { | 23 { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 } | 43 } |
| 41 | 44 |
| 42 inline bool operator!=(const TabSize& a, const TabSize& b) | 45 inline bool operator!=(const TabSize& a, const TabSize& b) |
| 43 { | 46 { |
| 44 return !(a == b); | 47 return !(a == b); |
| 45 } | 48 } |
| 46 | 49 |
| 47 } // namespace blink | 50 } // namespace blink |
| 48 | 51 |
| 49 #endif // TabSize_h | 52 #endif // TabSize_h |
| OLD | NEW |