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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h

Issue 2618553003: CSS Properties & Values API: Support <resolution> values (Closed)
Patch Set: Created 3 years, 11 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSPropertyParserHelpers_h 5 #ifndef CSSPropertyParserHelpers_h
6 #define CSSPropertyParserHelpers_h 6 #define CSSPropertyParserHelpers_h
7 7
8 #include "core/css/CSSCustomIdentValue.h" 8 #include "core/css/CSSCustomIdentValue.h"
9 #include "core/css/CSSIdentifierValue.h" 9 #include "core/css/CSSIdentifierValue.h"
10 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 ValueRange, 45 ValueRange,
46 UnitlessQuirk = UnitlessQuirk::Forbid); 46 UnitlessQuirk = UnitlessQuirk::Forbid);
47 CSSPrimitiveValue* consumePercent(CSSParserTokenRange&, ValueRange); 47 CSSPrimitiveValue* consumePercent(CSSParserTokenRange&, ValueRange);
48 CSSPrimitiveValue* consumeLengthOrPercent( 48 CSSPrimitiveValue* consumeLengthOrPercent(
49 CSSParserTokenRange&, 49 CSSParserTokenRange&,
50 CSSParserMode, 50 CSSParserMode,
51 ValueRange, 51 ValueRange,
52 UnitlessQuirk = UnitlessQuirk::Forbid); 52 UnitlessQuirk = UnitlessQuirk::Forbid);
53 CSSPrimitiveValue* consumeAngle(CSSParserTokenRange&); 53 CSSPrimitiveValue* consumeAngle(CSSParserTokenRange&);
54 CSSPrimitiveValue* consumeTime(CSSParserTokenRange&, ValueRange); 54 CSSPrimitiveValue* consumeTime(CSSParserTokenRange&, ValueRange);
55 CSSPrimitiveValue* consumeResolution(CSSParserTokenRange&);
55 56
56 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); 57 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&);
57 CSSIdentifierValue* consumeIdentRange(CSSParserTokenRange&, 58 CSSIdentifierValue* consumeIdentRange(CSSParserTokenRange&,
58 CSSValueID lower, 59 CSSValueID lower,
59 CSSValueID upper); 60 CSSValueID upper);
60 template <CSSValueID, CSSValueID...> 61 template <CSSValueID, CSSValueID...>
61 inline bool identMatches(CSSValueID id); 62 inline bool identMatches(CSSValueID id);
62 template <CSSValueID... allowedIdents> 63 template <CSSValueID... allowedIdents>
63 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); 64 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&);
64 65
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 !identMatches<names...>(range.peek().id())) 115 !identMatches<names...>(range.peek().id()))
115 return nullptr; 116 return nullptr;
116 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); 117 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id());
117 } 118 }
118 119
119 } // namespace CSSPropertyParserHelpers 120 } // namespace CSSPropertyParserHelpers
120 121
121 } // namespace blink 122 } // namespace blink
122 123
123 #endif // CSSPropertyParserHelpers_h 124 #endif // CSSPropertyParserHelpers_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698