Index: third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
diff --git a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
index 64872187b45adfa49f530bffd95c3d0d4232f3ee..3248d2b5c5abe0cad178653dbe755dba5d32a867 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
@@ -49,7 +49,7 @@ StyleEngineTest::RuleSetInvalidation |
StyleEngineTest::scheduleInvalidationsForRules(TreeScope& treeScope, |
const String& cssText) { |
StyleSheetContents* sheet = |
- StyleSheetContents::create(CSSParserContext(HTMLStandardMode, nullptr)); |
+ StyleSheetContents::create(new CSSParserContext(HTMLStandardMode)); |
sheet->parseString(cssText); |
HeapHashSet<Member<RuleSet>> ruleSets; |
RuleSet& ruleSet = sheet->ensureRuleSet(MediaQueryEvaluator(), |
@@ -64,7 +64,7 @@ StyleEngineTest::scheduleInvalidationsForRules(TreeScope& treeScope, |
TEST_F(StyleEngineTest, DocumentDirtyAfterInject) { |
StyleSheetContents* parsedSheet = |
- StyleSheetContents::create(CSSParserContext(document(), nullptr)); |
+ StyleSheetContents::create(new CSSParserContext(document())); |
parsedSheet->parseString("div {}"); |
styleEngine().injectAuthorSheet(parsedSheet); |
document().view()->updateAllLifecyclePhases(); |
@@ -86,7 +86,7 @@ TEST_F(StyleEngineTest, AnalyzedInject) { |
unsigned beforeCount = styleEngine().styleForElementCount(); |
StyleSheetContents* parsedSheet = |
- StyleSheetContents::create(CSSParserContext(document(), nullptr)); |
+ StyleSheetContents::create(new CSSParserContext(document())); |
parsedSheet->parseString("#t1 { color: green }"); |
styleEngine().injectAuthorSheet(parsedSheet); |
document().view()->updateAllLifecyclePhases(); |