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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngineTest.cpp

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again 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/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..6bdeb8124e0c78d6fae56167336d4d84eb17c4c0 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(CSSParserContext::create(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(CSSParserContext::create(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(CSSParserContext::create(document()));
parsedSheet->parseString("#t1 { color: green }");
styleEngine().injectAuthorSheet(parsedSheet);
document().view()->updateAllLifecyclePhases();
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/HTMLContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698