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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.h

Issue 2914613002: Add keyword_subset field template and generate text-decoration-line. (Closed)
Patch Set: Rebase Created 3 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 enum BackgroundEdgeOrigin { kTopEdge, kRightEdge, kBottomEdge, kLeftEdge }; 142 enum BackgroundEdgeOrigin { kTopEdge, kRightEdge, kBottomEdge, kLeftEdge };
143 143
144 // CSS Mask Source Types 144 // CSS Mask Source Types
145 enum EMaskSourceType { kMaskAlpha, kMaskLuminance }; 145 enum EMaskSourceType { kMaskAlpha, kMaskLuminance };
146 146
147 // CSS3 Image Values 147 // CSS3 Image Values
148 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE }; 148 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE };
149 149
150 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused }; 150 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused };
151 151
152 static const size_t kTextDecorationBits = 4;
153 enum class TextDecoration : unsigned {
154 kNone = 0x0,
155 kUnderline = 0x1,
156 kOverline = 0x2,
157 kLineThrough = 0x4,
158 kBlink = 0x8
159 };
160 inline TextDecoration operator|(TextDecoration a, TextDecoration b) {
161 return static_cast<TextDecoration>(static_cast<unsigned>(a) |
162 static_cast<unsigned>(b));
163 }
164 inline TextDecoration& operator|=(TextDecoration& a, TextDecoration b) {
165 return a = static_cast<TextDecoration>(static_cast<unsigned>(a) |
166 static_cast<unsigned>(b));
167 }
168 inline TextDecoration& operator^=(TextDecoration& a, TextDecoration b) {
169 return a = static_cast<TextDecoration>(static_cast<unsigned>(a) ^
170 static_cast<unsigned>(b));
171 }
172
173 static const size_t kTextDecorationSkipBits = 3; 152 static const size_t kTextDecorationSkipBits = 3;
174 enum class TextDecorationSkip { kNone = 0x0, kObjects = 0x1, kInk = 0x2 }; 153 enum class TextDecorationSkip { kNone = 0x0, kObjects = 0x1, kInk = 0x2 };
175 inline TextDecorationSkip operator&(TextDecorationSkip a, 154 inline TextDecorationSkip operator&(TextDecorationSkip a,
176 TextDecorationSkip b) { 155 TextDecorationSkip b) {
177 return TextDecorationSkip(static_cast<unsigned>(a) & 156 return TextDecorationSkip(static_cast<unsigned>(a) &
178 static_cast<unsigned>(b)); 157 static_cast<unsigned>(b));
179 } 158 }
180 inline TextDecorationSkip operator|(TextDecorationSkip a, 159 inline TextDecorationSkip operator|(TextDecorationSkip a,
181 TextDecorationSkip b) { 160 TextDecorationSkip b) {
182 return TextDecorationSkip(static_cast<unsigned>(a) | 161 return TextDecorationSkip(static_cast<unsigned>(a) |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 enum SnapAlignment { 292 enum SnapAlignment {
314 kSnapAlignmentNone, 293 kSnapAlignmentNone,
315 kSnapAlignmentStart, 294 kSnapAlignmentStart,
316 kSnapAlignmentEnd, 295 kSnapAlignmentEnd,
317 kSnapAlignmentCenter 296 kSnapAlignmentCenter
318 }; 297 };
319 298
320 } // namespace blink 299 } // namespace blink
321 300
322 #endif // ComputedStyleConstants_h 301 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698