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

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

Issue 2528283002: Move text-transform to be generated in ComputedStyleBase (Closed)
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 Right, 348 Right,
349 Center, 349 Center,
350 Justify, 350 Justify,
351 WebkitLeft, 351 WebkitLeft,
352 WebkitRight, 352 WebkitRight,
353 WebkitCenter, 353 WebkitCenter,
354 Start, 354 Start,
355 End, 355 End,
356 }; 356 };
357 357
358 enum class ETextTransform : unsigned { Capitalize, Uppercase, Lowercase, None };
napper 2016/11/28 04:24:45 Any reason why "None" is not at 0? E.g. { None,
sashab 2016/11/30 00:41:38 It's a good question - that's because the ordering
alancutter (OOO until 2018) 2016/11/30 03:42:40 I would call it initial instead of default to be c
359
360 static const size_t TextDecorationBits = 4; 358 static const size_t TextDecorationBits = 4;
361 enum TextDecoration { 359 enum TextDecoration {
362 TextDecorationNone = 0x0, 360 TextDecorationNone = 0x0,
363 TextDecorationUnderline = 0x1, 361 TextDecorationUnderline = 0x1,
364 TextDecorationOverline = 0x2, 362 TextDecorationOverline = 0x2,
365 TextDecorationLineThrough = 0x4, 363 TextDecorationLineThrough = 0x4,
366 TextDecorationBlink = 0x8 364 TextDecorationBlink = 0x8
367 }; 365 };
368 inline TextDecoration operator|(TextDecoration a, TextDecoration b) { 366 inline TextDecoration operator|(TextDecoration a, TextDecoration b) {
369 return TextDecoration(int(a) | int(b)); 367 return TextDecoration(int(a) | int(b));
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 ScrollSnapTypeNone, 713 ScrollSnapTypeNone,
716 ScrollSnapTypeMandatory, 714 ScrollSnapTypeMandatory,
717 ScrollSnapTypeProximity 715 ScrollSnapTypeProximity
718 }; 716 };
719 717
720 enum AutoRepeatType { NoAutoRepeat, AutoFill, AutoFit }; 718 enum AutoRepeatType { NoAutoRepeat, AutoFill, AutoFit };
721 719
722 } // namespace blink 720 } // namespace blink
723 721
724 #endif // ComputedStyleConstants_h 722 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698