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); |
} |