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

Side by Side Diff: Source/core/rendering/style/AppliedTextDecoration.h

Issue 219633002: Proper support for multiple text decorations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months 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
(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 #include "core/rendering/style/RenderStyleConstants.h"
9 #include "platform/graphics/Color.h"
10
11 namespace WebCore {
12
13 class AppliedTextDecoration {
14 public:
15 AppliedTextDecoration(TextDecoration, TextDecorationStyle, Color);
16 AppliedTextDecoration() { }
esprehn 2014/03/31 17:41:24 This leaves values uninitialized. I don't think yo
17 AppliedTextDecoration(const AppliedTextDecoration&);
18
19 TextDecoration line() const { return static_cast<TextDecoration>(m_line); }
20 TextDecorationStyle style() const { return static_cast<TextDecorationStyle>( m_style); }
21 const Color& color() const { return m_color; }
22
23 bool operator==(const AppliedTextDecoration&) const;
24 bool operator!=(const AppliedTextDecoration& o) const { return !(*this == o) ; }
25
26 private:
27
28 unsigned m_line : TextDecorationBits;
29 unsigned m_style : 3; // TextDecorationStyle
30 Color m_color;
31 };
32
33 } // namespace WebCore
34
35 #endif // AppliedTextDecoration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698