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

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

Issue 2913723002: Generate enum/getters/setters/mappings for text-orientation. (Closed)
Patch Set: 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
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 kDot, 283 kDot,
284 kCircle, 284 kCircle,
285 kDoubleCircle, 285 kDoubleCircle,
286 kTriangle, 286 kTriangle,
287 kSesame, 287 kSesame,
288 kCustom 288 kCustom
289 }; 289 };
290 290
291 enum class TextEmphasisPosition { kOver, kUnder }; 291 enum class TextEmphasisPosition { kOver, kUnder };
292 292
293 enum class TextOrientation { kMixed, kUpright, kSideways };
294
295 enum TextOverflow { kTextOverflowClip = 0, kTextOverflowEllipsis }; 293 enum TextOverflow { kTextOverflowClip = 0, kTextOverflowEllipsis };
296 294
297 enum class EImageRendering { 295 enum class EImageRendering {
298 kAuto, 296 kAuto,
299 kOptimizeSpeed, 297 kOptimizeSpeed,
300 kOptimizeQuality, 298 kOptimizeQuality,
301 kOptimizeContrast, 299 kOptimizeContrast,
302 kPixelated 300 kPixelated
303 }; 301 };
304 302
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // fraction, which leaves 20 bits for the integer part, making 1048575 425 // fraction, which leaves 20 bits for the integer part, making 1048575
428 // the largest number. 426 // the largest number.
429 427
430 static const int kBorderWidthFractionalBits = 6; 428 static const int kBorderWidthFractionalBits = 6;
431 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 429 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
432 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 430 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
433 431
434 } // namespace blink 432 } // namespace blink
435 433
436 #endif // ComputedStyleConstants_h 434 #endif // ComputedStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698