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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLength.cpp

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile 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/svg/SVGLength.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.cpp b/third_party/WebKit/Source/core/svg/SVGLength.cpp
index 91b9d283c38c2fbb1dba07cb7b8f6289d2926165..f9bbaf636e9f1678c05666e0c749f74b23abaac8 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
@@ -140,7 +140,7 @@ SVGParsingError SVGLength::setValueAsString(const String& string) {
return SVGParseStatus::NoError;
}
- CSSParserContext svgParserContext(SVGAttributeMode, nullptr);
+ CSSParserContext* svgParserContext = new CSSParserContext(SVGAttributeMode);
const CSSValue* parsed =
CSSParser::parseSingleValue(CSSPropertyX, string, svgParserContext);
if (!parsed || !parsed->isPrimitiveValue())

Powered by Google App Engine
This is Rietveld 408576698