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

Unified Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.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/css/resolver/SharedStyleFinderTest.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp
index f5ff6bd5f6ae5d23b0ef3075ae774e921827dfe9..f2baa8f31d2219e57026a97dc5663bd39521c101 100644
--- a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp
@@ -31,8 +31,8 @@ class SharedStyleFinderTest : public ::testing::Test {
void addSelector(const String& selector) {
StyleRuleBase* newRule =
- CSSParser::parseRule(CSSParserContext(HTMLStandardMode, nullptr),
- nullptr, selector + "{color:pink}");
+ CSSParser::parseRule(new CSSParserContext(HTMLStandardMode), nullptr,
+ selector + "{color:pink}");
m_ruleSet->addStyleRule(static_cast<StyleRule*>(newRule),
RuleHasNoSpecialState);
}

Powered by Google App Engine
This is Rietveld 408576698