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

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

Issue 2669433002: Moved table-layout property to be generated in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 years, 10 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.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 15 matching lines...) Expand all
26 */ 26 */
27 27
28 #ifndef ComputedStyleConstants_h 28 #ifndef ComputedStyleConstants_h
29 #define ComputedStyleConstants_h 29 #define ComputedStyleConstants_h
30 30
31 #include "core/ComputedStyleBaseConstants.h" 31 #include "core/ComputedStyleBaseConstants.h"
32 #include <cstddef> 32 #include <cstddef>
33 33
34 namespace blink { 34 namespace blink {
35 35
36 // Some enums are automatically generated in ComputedStyleBaseConstants
37
36 // TODO(sashab): Change these enums to enum classes with an unsigned underlying 38 // TODO(sashab): Change these enums to enum classes with an unsigned underlying
37 // type. Enum classes provide better type safety, and forcing an unsigned 39 // type. Enum classes provide better type safety, and forcing an unsigned
38 // underlying type prevents msvc from interpreting enums as negative numbers. 40 // underlying type prevents msvc from interpreting enums as negative numbers.
39 // See: crbug.com/628043 41 // See: crbug.com/628043
40 42
41 // Sides used when drawing borders and outlines. The values should run clockwise 43 // Sides used when drawing borders and outlines. The values should run clockwise
42 // from top. 44 // from top.
43 enum BoxSide { BSTop, BSRight, BSBottom, BSLeft }; 45 enum BoxSide { BSTop, BSRight, BSBottom, BSLeft };
44 46
45 // See core/dom/stylerecalc.md for an explanation on what each state means 47 // See core/dom/stylerecalc.md for an explanation on what each state means
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 kSub, 162 kSub,
161 kSuper, 163 kSuper,
162 kTextTop, 164 kTextTop,
163 kTextBottom, 165 kTextBottom,
164 kTop, 166 kTop,
165 kBottom, 167 kBottom,
166 kBaselineMiddle, 168 kBaselineMiddle,
167 kLength 169 kLength
168 }; 170 };
169 171
170 enum class ETableLayout : unsigned { kAuto, kFixed };
171
172 enum TextCombine { TextCombineNone, TextCombineAll }; 172 enum TextCombine { TextCombineNone, TextCombineAll };
173 173
174 enum EFillAttachment { 174 enum EFillAttachment {
175 ScrollBackgroundAttachment, 175 ScrollBackgroundAttachment,
176 LocalBackgroundAttachment, 176 LocalBackgroundAttachment,
177 FixedBackgroundAttachment 177 FixedBackgroundAttachment
178 }; 178 };
179 179
180 enum EFillBox { BorderFillBox, PaddingFillBox, ContentFillBox, TextFillBox }; 180 enum EFillBox { BorderFillBox, PaddingFillBox, ContentFillBox, TextFillBox };
181 181
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 ScrollSnapTypeNone, 607 ScrollSnapTypeNone,
608 ScrollSnapTypeMandatory, 608 ScrollSnapTypeMandatory,
609 ScrollSnapTypeProximity 609 ScrollSnapTypeProximity
610 }; 610 };
611 611
612 enum AutoRepeatType { NoAutoRepeat, AutoFill, AutoFit }; 612 enum AutoRepeatType { NoAutoRepeat, AutoFill, AutoFit };
613 613
614 } // namespace blink 614 } // namespace blink
615 615
616 #endif // ComputedStyleConstants_h 616 #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