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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.h

Issue 17450016: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied code review suggestions. Also rebased. Created 6 years, 8 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 CSS_DPI = 31, 107 CSS_DPI = 31,
108 CSS_DPCM = 32, 108 CSS_DPCM = 32,
109 CSS_FR = 33, 109 CSS_FR = 33,
110 CSS_PAIR = 100, // We envision this being exposed as a means of getting computed style values for pairs (border-spacing/radius, background-position, etc .) 110 CSS_PAIR = 100, // We envision this being exposed as a means of getting computed style values for pairs (border-spacing/radius, background-position, etc .)
111 CSS_UNICODE_RANGE = 102, 111 CSS_UNICODE_RANGE = 102,
112 112
113 // These next types are just used internally to allow us to translate ba ck and forth from CSSPrimitiveValues to CSSParserValues. 113 // These next types are just used internally to allow us to translate ba ck and forth from CSSPrimitiveValues to CSSParserValues.
114 CSS_PARSER_OPERATOR = 103, 114 CSS_PARSER_OPERATOR = 103,
115 CSS_PARSER_INTEGER = 104, 115 CSS_PARSER_INTEGER = 104,
116 CSS_PARSER_HEXCOLOR = 105, 116 CSS_PARSER_HEXCOLOR = 105,
117 CSS_PARSER_IDSEL = 106,
117 118
118 // This is used internally for unknown identifiers 119 // This is used internally for unknown identifiers
119 CSS_PARSER_IDENTIFIER = 106, 120 CSS_PARSER_IDENTIFIER = 107,
120 121
121 // These are from CSS3 Values and Units, but that isn't a finished stand ard yet 122 // These are from CSS3 Values and Units, but that isn't a finished stand ard yet
122 CSS_TURN = 107, 123 CSS_TURN = 108,
123 CSS_REMS = 108, 124 CSS_REMS = 109,
124 CSS_CHS = 109, 125 CSS_CHS = 110,
125 126
126 // This is used internally for counter names (as opposed to counter valu es) 127 // This is used internally for counter names (as opposed to counter valu es)
127 CSS_COUNTER_NAME = 110, 128 CSS_COUNTER_NAME = 111,
128 129
129 // This is used by the CSS Shapes draft 130 // This is used by the CSS Shapes draft
130 CSS_SHAPE = 111, 131 CSS_SHAPE = 112,
131 132
132 // Used by border images. 133 // Used by border images.
133 CSS_QUAD = 112, 134 CSS_QUAD = 113,
134 135
135 CSS_CALC = 113, 136 CSS_CALC = 114,
136 CSS_CALC_PERCENTAGE_WITH_NUMBER = 114, 137 CSS_CALC_PERCENTAGE_WITH_NUMBER = 115,
137 CSS_CALC_PERCENTAGE_WITH_LENGTH = 115, 138 CSS_CALC_PERCENTAGE_WITH_LENGTH = 116,
138 139
139 CSS_PROPERTY_ID = 117, 140 CSS_PROPERTY_ID = 117,
140 CSS_VALUE_ID = 118 141 CSS_VALUE_ID = 118
141 }; 142 };
142 143
143 enum LengthUnitType { 144 enum LengthUnitType {
144 UnitTypePixels = 0, 145 UnitTypePixels = 0,
145 UnitTypePercentage, 146 UnitTypePercentage,
146 UnitTypeFontSize, 147 UnitTypeFontSize,
147 UnitTypeFontXSize, 148 UnitTypeFontXSize,
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } m_value; 437 } m_value;
437 }; 438 };
438 439
439 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; 440 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray;
440 441
441 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 442 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
442 443
443 } // namespace WebCore 444 } // namespace WebCore
444 445
445 #endif // CSSPrimitiveValue_h 446 #endif // CSSPrimitiveValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698