Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef AppliedTextDecoration_h | |
| 6 #define AppliedTextDecoration_h | |
| 7 | |
| 8 | |
| 9 #include "core/css/StyleColor.h" | |
| 10 #include "core/rendering/style/RenderStyleConstants.h" | |
| 11 | |
| 12 namespace WebCore { | |
| 13 | |
| 14 class AppliedTextDecoration { | |
| 15 public: | |
| 16 AppliedTextDecoration(TextDecoration, TextDecorationStyle, StyleColor); | |
| 17 AppliedTextDecoration(TextDecoration); | |
|
esprehn
2014/05/01 17:17:55
missing explicit
| |
| 18 AppliedTextDecoration(); | |
| 19 | |
| 20 TextDecoration line() const { return static_cast<TextDecoration>(m_line); } | |
| 21 TextDecorationStyle style() const { return static_cast<TextDecorationStyle>( m_style); } | |
| 22 | |
| 23 bool isSimple() const { return m_style == TextDecorationStyleSolid && m_colo r.isCurrentColor(); } | |
| 24 bool operator==(const AppliedTextDecoration&) const; | |
| 25 bool operator!=(const AppliedTextDecoration& o) const { return !(*this == o) ; } | |
| 26 | |
| 27 private: | |
| 28 unsigned m_line : TextDecorationBits; | |
| 29 unsigned m_style : 3; // TextDecorationStyle | |
| 30 StyleColor m_color; | |
| 31 }; | |
| 32 | |
| 33 } // namespace WebCore | |
| 34 | |
| 35 #endif // AppliedTextDecoration_h | |
| OLD | NEW |