| 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/css/CSSCustomPropertyDeclaration.h" | 7 #include "core/css/CSSCustomPropertyDeclaration.h" |
| 8 #include "core/css/CSSURIValue.h" | 8 #include "core/css/CSSURIValue.h" |
| 9 #include "core/css/CSSValueList.h" | 9 #include "core/css/CSSValueList.h" |
| 10 #include "core/css/CSSVariableReferenceValue.h" | 10 #include "core/css/CSSVariableReferenceValue.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 return consumeImage(range, strictCSSParserContext()); | 158 return consumeImage(range, strictCSSParserContext()); |
| 159 case CSSSyntaxType::Url: | 159 case CSSSyntaxType::Url: |
| 160 return consumeUrl(range); | 160 return consumeUrl(range); |
| 161 case CSSSyntaxType::Integer: | 161 case CSSSyntaxType::Integer: |
| 162 return consumeInteger(range); | 162 return consumeInteger(range); |
| 163 case CSSSyntaxType::Angle: | 163 case CSSSyntaxType::Angle: |
| 164 return consumeAngle(range); | 164 return consumeAngle(range); |
| 165 case CSSSyntaxType::Time: | 165 case CSSSyntaxType::Time: |
| 166 return consumeTime(range, ValueRange::ValueRangeAll); | 166 return consumeTime(range, ValueRange::ValueRangeAll); |
| 167 case CSSSyntaxType::Resolution: | 167 case CSSSyntaxType::Resolution: |
| 168 return nullptr; // TODO(timloh): Implement this. | 168 return consumeResolution(range); |
| 169 case CSSSyntaxType::TransformFunction: | 169 case CSSSyntaxType::TransformFunction: |
| 170 return nullptr; // TODO(timloh): Implement this. | 170 return nullptr; // TODO(timloh): Implement this. |
| 171 case CSSSyntaxType::CustomIdent: | 171 case CSSSyntaxType::CustomIdent: |
| 172 return consumeCustomIdent(range); | 172 return consumeCustomIdent(range); |
| 173 default: | 173 default: |
| 174 NOTREACHED(); | 174 NOTREACHED(); |
| 175 return nullptr; | 175 return nullptr; |
| 176 } | 176 } |
| 177 } | 177 } |
| 178 | 178 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 204 range.consumeWhitespace(); | 204 range.consumeWhitespace(); |
| 205 for (const CSSSyntaxComponent& component : m_syntaxComponents) { | 205 for (const CSSSyntaxComponent& component : m_syntaxComponents) { |
| 206 if (const CSSValue* result = consumeSyntaxComponent(component, range)) | 206 if (const CSSValue* result = consumeSyntaxComponent(component, range)) |
| 207 return result; | 207 return result; |
| 208 } | 208 } |
| 209 return CSSVariableParser::parseRegisteredPropertyValue(range, true, | 209 return CSSVariableParser::parseRegisteredPropertyValue(range, true, |
| 210 isAnimationTainted); | 210 isAnimationTainted); |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| OLD | NEW |