OLD | NEW |
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 #include "core/css/CSSSyntaxDescriptor.h" | 5 #include "core/css/CSSSyntaxDescriptor.h" |
6 | 6 |
7 #include "core/animation/CSSColorInterpolationType.h" | 7 #include "core/animation/CSSColorInterpolationType.h" |
8 #include "core/animation/CSSLengthInterpolationType.h" | 8 #include "core/animation/CSSLengthInterpolationType.h" |
9 #include "core/animation/CSSValueInterpolationType.h" | 9 #include "core/animation/CSSValueInterpolationType.h" |
10 #include "core/css/CSSCustomPropertyDeclaration.h" | 10 #include "core/css/CSSCustomPropertyDeclaration.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 case CSSSyntaxType::kColor: | 157 case CSSSyntaxType::kColor: |
158 return ConsumeColor(range, kHTMLStandardMode); | 158 return ConsumeColor(range, kHTMLStandardMode); |
159 case CSSSyntaxType::kImage: | 159 case CSSSyntaxType::kImage: |
160 return ConsumeImage(range, context); | 160 return ConsumeImage(range, context); |
161 case CSSSyntaxType::kUrl: | 161 case CSSSyntaxType::kUrl: |
162 return ConsumeUrl(range, context); | 162 return ConsumeUrl(range, context); |
163 case CSSSyntaxType::kInteger: | 163 case CSSSyntaxType::kInteger: |
164 return ConsumeInteger(range); | 164 return ConsumeInteger(range); |
165 case CSSSyntaxType::kAngle: | 165 case CSSSyntaxType::kAngle: |
166 return ConsumeAngle(range, *context, | 166 return ConsumeAngle(range, *context, |
167 UseCounter::kUnitlessZeroAngleCustomProperty); | 167 WTF::Optional<UseCounter::Feature>()); |
168 case CSSSyntaxType::kTime: | 168 case CSSSyntaxType::kTime: |
169 return ConsumeTime(range, ValueRange::kValueRangeAll); | 169 return ConsumeTime(range, ValueRange::kValueRangeAll); |
170 case CSSSyntaxType::kResolution: | 170 case CSSSyntaxType::kResolution: |
171 return ConsumeResolution(range); | 171 return ConsumeResolution(range); |
172 case CSSSyntaxType::kTransformFunction: | 172 case CSSSyntaxType::kTransformFunction: |
173 return nullptr; // TODO(timloh): Implement this. | 173 return nullptr; // TODO(timloh): Implement this. |
174 case CSSSyntaxType::kCustomIdent: | 174 case CSSSyntaxType::kCustomIdent: |
175 return ConsumeCustomIdent(range); | 175 return ConsumeCustomIdent(range); |
176 default: | 176 default: |
177 NOTREACHED(); | 177 NOTREACHED(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 for (const CSSSyntaxComponent& component : syntax_components_) { | 210 for (const CSSSyntaxComponent& component : syntax_components_) { |
211 if (const CSSValue* result = | 211 if (const CSSValue* result = |
212 ConsumeSyntaxComponent(component, range, context)) | 212 ConsumeSyntaxComponent(component, range, context)) |
213 return result; | 213 return result; |
214 } | 214 } |
215 return CSSVariableParser::ParseRegisteredPropertyValue(range, *context, true, | 215 return CSSVariableParser::ParseRegisteredPropertyValue(range, *context, true, |
216 is_animation_tainted); | 216 is_animation_tainted); |
217 } | 217 } |
218 | 218 |
219 } // namespace blink | 219 } // namespace blink |
OLD | NEW |