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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.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/CSSPropertyAPIClip.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp
index 77f0bdc752732a9791026031e89ee13593a0acea..25699b44eeb29b1583f5d31d272e79f8e92c9e6c 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp
@@ -25,7 +25,7 @@ CSSValue* consumeClipComponent(CSSParserTokenRange& range,
const CSSValue* CSSPropertyAPIClip::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext& context) {
+ const CSSParserContext* context) {
if (range.peek().id() == CSSValueAuto)
return CSSPropertyParserHelpers::consumeIdent(range);
@@ -34,22 +34,22 @@ const CSSValue* CSSPropertyAPIClip::parseSingleValue(
CSSParserTokenRange args = CSSPropertyParserHelpers::consumeFunction(range);
// rect(t, r, b, l) || rect(t r b l)
- CSSValue* top = consumeClipComponent(args, context.mode());
+ CSSValue* top = consumeClipComponent(args, context->mode());
if (!top)
return nullptr;
bool needsComma =
CSSPropertyParserHelpers::consumeCommaIncludingWhitespace(args);
- CSSValue* right = consumeClipComponent(args, context.mode());
+ CSSValue* right = consumeClipComponent(args, context->mode());
if (!right ||
(needsComma &&
!CSSPropertyParserHelpers::consumeCommaIncludingWhitespace(args)))
return nullptr;
- CSSValue* bottom = consumeClipComponent(args, context.mode());
+ CSSValue* bottom = consumeClipComponent(args, context->mode());
if (!bottom ||
(needsComma &&
!CSSPropertyParserHelpers::consumeCommaIncludingWhitespace(args)))
return nullptr;
- CSSValue* left = consumeClipComponent(args, context.mode());
+ CSSValue* left = consumeClipComponent(args, context->mode());
if (!left || !args.atEnd())
return nullptr;
return CSSQuadValue::create(top, right, bottom, left,

Powered by Google App Engine
This is Rietveld 408576698