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

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

Issue 2844083005: Generate enum/getters/setters/mappings for box-decoration-break. (Closed)
Patch Set: Rebase Created 3 years, 7 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 }; 107 };
108 108
109 enum OutlineIsAuto { kOutlineIsAutoOff = 0, kOutlineIsAutoOn }; 109 enum OutlineIsAuto { kOutlineIsAutoOff = 0, kOutlineIsAutoOn };
110 110
111 enum EMarginCollapse { 111 enum EMarginCollapse {
112 kMarginCollapseCollapse, 112 kMarginCollapseCollapse,
113 kMarginCollapseSeparate, 113 kMarginCollapseSeparate,
114 kMarginCollapseDiscard 114 kMarginCollapseDiscard
115 }; 115 };
116 116
117 // Box decoration attributes. Not inherited.
118
119 enum class EBoxDecorationBreak { kSlice, kClone };
120
121 // Random visual rendering model attributes. Not inherited. 117 // Random visual rendering model attributes. Not inherited.
122 118
123 enum class EVerticalAlign : unsigned { 119 enum class EVerticalAlign : unsigned {
124 kBaseline, 120 kBaseline,
125 kMiddle, 121 kMiddle,
126 kSub, 122 kSub,
127 kSuper, 123 kSuper,
128 kTextTop, 124 kTextTop,
129 kTextBottom, 125 kTextBottom,
130 kTop, 126 kTop,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // fraction, which leaves 20 bits for the integer part, making 1048575 469 // fraction, which leaves 20 bits for the integer part, making 1048575
474 // the largest number. 470 // the largest number.
475 471
476 static const int kBorderWidthFractionalBits = 6; 472 static const int kBorderWidthFractionalBits = 6;
477 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 473 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
478 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 474 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
479 475
480 } // namespace blink 476 } // namespace blink
481 477
482 #endif // ComputedStyleConstants_h 478 #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