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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPISize.cpp

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPISize.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPISize.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPISize.cpp
index afc34cc4151f38187187b9bb53faf2af4e161587..7e871d2c592916f398568c4a841cc127cdbcbcee 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPISize.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPISize.cpp
@@ -18,7 +18,7 @@ static CSSValue* consumePageSize(CSSParserTokenRange& range) {
const CSSValue* CSSPropertyAPISize::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext& context) {
+ const CSSParserContext* context) {
CSSValueList* result = CSSValueList::createSpaceSeparated();
if (range.peek().id() == CSSValueAuto) {
@@ -27,9 +27,9 @@ const CSSValue* CSSPropertyAPISize::parseSingleValue(
}
if (CSSValue* width = CSSPropertyParserHelpers::consumeLength(
- range, context.mode(), ValueRangeNonNegative)) {
+ range, context->mode(), ValueRangeNonNegative)) {
CSSValue* height = CSSPropertyParserHelpers::consumeLength(
- range, context.mode(), ValueRangeNonNegative);
+ range, context->mode(), ValueRangeNonNegative);
result->append(*width);
if (height)
result->append(*height);

Powered by Google App Engine
This is Rietveld 408576698