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

Side by Side Diff: Source/core/css/parser/CSSParserValues.h

Issue 1169803004: Make __qems a CSSPrimitiveValue unit type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments Created 5 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
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | 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) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 CSSParserValueList* valueList; 121 CSSParserValueList* valueList;
122 struct { 122 struct {
123 UChar32 start; 123 UChar32 start;
124 UChar32 end; 124 UChar32 end;
125 } m_unicodeRange; 125 } m_unicodeRange;
126 }; 126 };
127 enum { 127 enum {
128 Operator = 0x100000, 128 Operator = 0x100000,
129 Function = 0x100001, 129 Function = 0x100001,
130 ValueList = 0x100002, 130 ValueList = 0x100002,
131 Q_EMS = 0x100003,
132 HexColor = 0x100004, 131 HexColor = 0x100004,
133 // Represents a dimension by a list of two values, a CSS_NUMBER and an C SS_IDENT 132 // Represents a dimension by a list of two values, a CSS_NUMBER and an C SS_IDENT
134 DimensionList = 0x100006, 133 DimensionList = 0x100006,
135 // Represents a unicode range by a pair of UChar32 values 134 // Represents a unicode range by a pair of UChar32 values
136 UnicodeRange = 0x100007, 135 UnicodeRange = 0x100007,
137 }; 136 };
138 int unit; 137 int unit;
139 138
140 inline void setFromNumber(double value, int unit = CSSPrimitiveValue::CSS_NU MBER); 139 inline void setFromNumber(double value, int unit = CSSPrimitiveValue::CSS_NU MBER);
141 inline void setFromOperator(UChar); 140 inline void setFromOperator(UChar);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 { 273 {
275 id = CSSValueInvalid; 274 id = CSSValueInvalid;
276 this->valueList = valueList.leakPtr(); 275 this->valueList = valueList.leakPtr();
277 unit = ValueList; 276 unit = ValueList;
278 isInt = false; 277 isInt = false;
279 } 278 }
280 279
281 } 280 }
282 281
283 #endif 282 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698