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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.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/modules/canvas2d/BaseRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
index 521f6f186aa2f3c26ad9361236fe753a0480e1ed..dc27eab0f37db61e41d1e8803660209ae5502ad1 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -400,9 +400,8 @@ void BaseRenderingContext2D::setFilter(const String& filterString) {
if (filterString == state().unparsedFilter())
return;
- const CSSValue* filterValue =
- CSSParser::parseSingleValue(CSSPropertyFilter, filterString,
- CSSParserContext(HTMLStandardMode, nullptr));
+ const CSSValue* filterValue = CSSParser::parseSingleValue(
+ CSSPropertyFilter, filterString, new CSSParserContext(HTMLStandardMode));
if (!filterValue || filterValue->isInitialValue() ||
filterValue->isInheritedValue())

Powered by Google App Engine
This is Rietveld 408576698