| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ValueRange::kValueRangeAll); | 156 ValueRange::kValueRangeAll); |
| 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); | 166 return ConsumeAngle(range, *context, |
| 167 UseCounter::kUnitlessZeroAngleCustomProperty); |
| 167 case CSSSyntaxType::kTime: | 168 case CSSSyntaxType::kTime: |
| 168 return ConsumeTime(range, ValueRange::kValueRangeAll); | 169 return ConsumeTime(range, ValueRange::kValueRangeAll); |
| 169 case CSSSyntaxType::kResolution: | 170 case CSSSyntaxType::kResolution: |
| 170 return ConsumeResolution(range); | 171 return ConsumeResolution(range); |
| 171 case CSSSyntaxType::kTransformFunction: | 172 case CSSSyntaxType::kTransformFunction: |
| 172 return nullptr; // TODO(timloh): Implement this. | 173 return nullptr; // TODO(timloh): Implement this. |
| 173 case CSSSyntaxType::kCustomIdent: | 174 case CSSSyntaxType::kCustomIdent: |
| 174 return ConsumeCustomIdent(range); | 175 return ConsumeCustomIdent(range); |
| 175 default: | 176 default: |
| 176 NOTREACHED(); | 177 NOTREACHED(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 for (const CSSSyntaxComponent& component : syntax_components_) { | 210 for (const CSSSyntaxComponent& component : syntax_components_) { |
| 210 if (const CSSValue* result = | 211 if (const CSSValue* result = |
| 211 ConsumeSyntaxComponent(component, range, context)) | 212 ConsumeSyntaxComponent(component, range, context)) |
| 212 return result; | 213 return result; |
| 213 } | 214 } |
| 214 return CSSVariableParser::ParseRegisteredPropertyValue(range, *context, true, | 215 return CSSVariableParser::ParseRegisteredPropertyValue(range, *context, true, |
| 215 is_animation_tainted); | 216 is_animation_tainted); |
| 216 } | 217 } |
| 217 | 218 |
| 218 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |