Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: sky/engine/core/rendering/style/AppliedTextDecoration.h

Issue 736373003: Fix sky include guards to match Chromium style (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Reran script after fixing missing break Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 SKY_ENGINE_CORE_RENDERING_STYLE_APPLIEDTEXTDECORATION_H_
6 #define AppliedTextDecoration_h 6 #define SKY_ENGINE_CORE_RENDERING_STYLE_APPLIEDTEXTDECORATION_H_
7 7
8 #include "sky/engine/core/css/StyleColor.h" 8 #include "sky/engine/core/css/StyleColor.h"
9 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" 9 #include "sky/engine/core/rendering/style/RenderStyleConstants.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class AppliedTextDecoration { 13 class AppliedTextDecoration {
14 public: 14 public:
15 AppliedTextDecoration(TextDecoration, TextDecorationStyle, StyleColor); 15 AppliedTextDecoration(TextDecoration, TextDecorationStyle, StyleColor);
16 explicit AppliedTextDecoration(TextDecoration); 16 explicit AppliedTextDecoration(TextDecoration);
17 AppliedTextDecoration(); 17 AppliedTextDecoration();
18 18
19 TextDecoration line() const { return static_cast<TextDecoration>(m_line); } 19 TextDecoration line() const { return static_cast<TextDecoration>(m_line); }
20 TextDecorationStyle style() const { return static_cast<TextDecorationStyle>( m_style); } 20 TextDecorationStyle style() const { return static_cast<TextDecorationStyle>( m_style); }
21 21
22 bool isSimpleUnderline() const { return m_line == TextDecorationUnderline && m_style == TextDecorationStyleSolid && m_color.isCurrentColor(); } 22 bool isSimpleUnderline() const { return m_line == TextDecorationUnderline && m_style == TextDecorationStyleSolid && m_color.isCurrentColor(); }
23 bool operator==(const AppliedTextDecoration&) const; 23 bool operator==(const AppliedTextDecoration&) const;
24 bool operator!=(const AppliedTextDecoration& o) const { return !(*this == o) ; } 24 bool operator!=(const AppliedTextDecoration& o) const { return !(*this == o) ; }
25 25
26 private: 26 private:
27 unsigned m_line : TextDecorationBits; 27 unsigned m_line : TextDecorationBits;
28 unsigned m_style : 3; // TextDecorationStyle 28 unsigned m_style : 3; // TextDecorationStyle
29 StyleColor m_color; 29 StyleColor m_color;
30 }; 30 };
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 #endif // AppliedTextDecoration_h 34 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_APPLIEDTEXTDECORATION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/line/WordMeasurement.h ('k') | sky/engine/core/rendering/style/BasicShapes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698