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

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

Issue 2913703002: Make TextAlignLast an enum class. (Closed)
Patch Set: make enum class Created 3 years, 6 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 inline TextDecorationSkip operator|(TextDecorationSkip a, 241 inline TextDecorationSkip operator|(TextDecorationSkip a,
242 TextDecorationSkip b) { 242 TextDecorationSkip b) {
243 return TextDecorationSkip(static_cast<unsigned>(a) | 243 return TextDecorationSkip(static_cast<unsigned>(a) |
244 static_cast<unsigned>(b)); 244 static_cast<unsigned>(b));
245 } 245 }
246 inline TextDecorationSkip& operator|=(TextDecorationSkip& a, 246 inline TextDecorationSkip& operator|=(TextDecorationSkip& a,
247 TextDecorationSkip b) { 247 TextDecorationSkip b) {
248 return a = a | b; 248 return a = a | b;
249 } 249 }
250 250
251 enum TextAlignLast { 251 enum class TextAlignLast {
252 kTextAlignLastAuto, 252 kAuto,
253 kTextAlignLastStart, 253 kStart,
254 kTextAlignLastEnd, 254 kEnd,
255 kTextAlignLastLeft, 255 kLeft,
256 kTextAlignLastRight, 256 kRight,
257 kTextAlignLastCenter, 257 kCenter,
258 kTextAlignLastJustify 258 kJustify
259 }; 259 };
260 260
261 enum TextUnderlinePosition { 261 enum TextUnderlinePosition {
262 // FIXME: Implement support for 'under left' and 'under right' values. 262 // FIXME: Implement support for 'under left' and 'under right' values.
263 kTextUnderlinePositionAuto, 263 kTextUnderlinePositionAuto,
264 kTextUnderlinePositionUnder 264 kTextUnderlinePositionUnder
265 }; 265 };
266 266
267 enum ETransformStyle3D { kTransformStyle3DFlat, kTransformStyle3DPreserve3D }; 267 enum ETransformStyle3D { kTransformStyle3DFlat, kTransformStyle3DPreserve3D };
268 268
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // fraction, which leaves 20 bits for the integer part, making 1048575 434 // fraction, which leaves 20 bits for the integer part, making 1048575
435 // the largest number. 435 // the largest number.
436 436
437 static const int kBorderWidthFractionalBits = 6; 437 static const int kBorderWidthFractionalBits = 6;
438 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 438 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
439 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 439 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
440 440
441 } // namespace blink 441 } // namespace blink
442 442
443 #endif // ComputedStyleConstants_h 443 #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