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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp

Issue 2898133002: CSS: Use count unitless 0 supplied as <angle> (Closed)
Patch Set: test Created 3 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
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 #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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698