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

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

Issue 2625873010: Resolve CSS url(...) non-<image> values against the correct base (Closed)
Patch Set: Rebase 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 #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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 case CSSSyntaxType::Percentage: 148 case CSSSyntaxType::Percentage:
149 return consumePercent(range, ValueRange::ValueRangeAll); 149 return consumePercent(range, ValueRange::ValueRangeAll);
150 case CSSSyntaxType::LengthPercentage: 150 case CSSSyntaxType::LengthPercentage:
151 return consumeLengthOrPercent(range, HTMLStandardMode, 151 return consumeLengthOrPercent(range, HTMLStandardMode,
152 ValueRange::ValueRangeAll); 152 ValueRange::ValueRangeAll);
153 case CSSSyntaxType::Color: 153 case CSSSyntaxType::Color:
154 return consumeColor(range, HTMLStandardMode); 154 return consumeColor(range, HTMLStandardMode);
155 case CSSSyntaxType::Image: 155 case CSSSyntaxType::Image:
156 return consumeImage(range, context); 156 return consumeImage(range, context);
157 case CSSSyntaxType::Url: 157 case CSSSyntaxType::Url:
158 return consumeUrl(range); 158 return consumeUrl(range, context);
159 case CSSSyntaxType::Integer: 159 case CSSSyntaxType::Integer:
160 return consumeInteger(range); 160 return consumeInteger(range);
161 case CSSSyntaxType::Angle: 161 case CSSSyntaxType::Angle:
162 return consumeAngle(range); 162 return consumeAngle(range);
163 case CSSSyntaxType::Time: 163 case CSSSyntaxType::Time:
164 return consumeTime(range, ValueRange::ValueRangeAll); 164 return consumeTime(range, ValueRange::ValueRangeAll);
165 case CSSSyntaxType::Resolution: 165 case CSSSyntaxType::Resolution:
166 return consumeResolution(range); 166 return consumeResolution(range);
167 case CSSSyntaxType::TransformFunction: 167 case CSSSyntaxType::TransformFunction:
168 return nullptr; // TODO(timloh): Implement this. 168 return nullptr; // TODO(timloh): Implement this.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 for (const CSSSyntaxComponent& component : m_syntaxComponents) { 205 for (const CSSSyntaxComponent& component : m_syntaxComponents) {
206 if (const CSSValue* result = 206 if (const CSSValue* result =
207 consumeSyntaxComponent(component, range, context)) 207 consumeSyntaxComponent(component, range, context))
208 return result; 208 return result;
209 } 209 }
210 return CSSVariableParser::parseRegisteredPropertyValue(range, true, 210 return CSSVariableParser::parseRegisteredPropertyValue(range, true,
211 isAnimationTainted); 211 isAnimationTainted);
212 } 212 }
213 213
214 } // namespace blink 214 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/filters/resources/filters.css ('k') | third_party/WebKit/Source/core/css/CSSURIValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698