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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/RuleFeatureSetTest.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
index 7b194f3c97687025c07f0193a50f2746ec82b523..c625113f1db57eb5abfd2fa51f1078df05656bd2 100644
--- a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
@@ -28,9 +28,9 @@ public:
void SetUp()
{
m_document = HTMLDocument::create();
- RawPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(*m_document);
+ HTMLHtmlElement* html = HTMLHtmlElement::create(*m_document);
html->appendChild(HTMLBodyElement::create(*m_document));
- m_document->appendChild(html.release());
+ m_document->appendChild(html);
m_document->body()->setInnerHTML("<b><i></i></b>", ASSERT_NO_EXCEPTION);
}
@@ -39,8 +39,8 @@ public:
{
CSSSelectorList selectorList = CSSParser::parseSelector(strictCSSParserContext(), nullptr, selectorText);
- RawPtr<StyleRule> styleRule = StyleRule::create(std::move(selectorList), MutableStylePropertySet::create(HTMLStandardMode));
- RuleData ruleData(styleRule.get(), 0, 0, RuleHasNoSpecialState);
+ StyleRule* styleRule = StyleRule::create(std::move(selectorList), MutableStylePropertySet::create(HTMLStandardMode));
+ RuleData ruleData(styleRule, 0, 0, RuleHasNoSpecialState);
return m_ruleFeatureSet.collectFeaturesFromRuleData(ruleData);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp ('k') | third_party/WebKit/Source/core/css/RuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698