| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 AppliedTextDecoration_h | 5 #ifndef AppliedTextDecoration_h |
| 6 #define AppliedTextDecoration_h | 6 #define AppliedTextDecoration_h |
| 7 | 7 |
| 8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
| 9 #include "platform/graphics/Color.h" | 9 #include "platform/graphics/Color.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class AppliedTextDecoration { | 14 class AppliedTextDecoration { |
| 15 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 15 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 16 | 16 |
| 17 public: | 17 public: |
| 18 AppliedTextDecoration(TextDecoration, TextDecorationStyle, Color); | 18 AppliedTextDecoration(TextDecoration, TextDecorationStyle, Color); |
| 19 | 19 |
| 20 TextDecoration Lines() const { return static_cast<TextDecoration>(lines_); } | 20 TextDecoration Lines() const { return static_cast<TextDecoration>(lines_); } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 unsigned lines_ : kTextDecorationBits; | 33 unsigned lines_ : kTextDecorationBits; |
| 34 unsigned style_ : 3; // TextDecorationStyle | 34 unsigned style_ : 3; // TextDecorationStyle |
| 35 Color color_; | 35 Color color_; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace blink | 38 } // namespace blink |
| 39 | 39 |
| 40 #endif // AppliedTextDecoration_h | 40 #endif // AppliedTextDecoration_h |
| OLD | NEW |