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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/ProcessingInstruction.cpp
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
index c41eaf7d20185049564e65983285787c141346ab..b5d778f4fd3b6028ffa59ce16557ab3a0bdb9d5c 100644
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
@@ -49,9 +49,9 @@ inline ProcessingInstruction::ProcessingInstruction(Document& document, const St
{
}
-PassRefPtrWillBeRawPtr<ProcessingInstruction> ProcessingInstruction::create(Document& document, const String& target, const String& data)
+RawPtr<ProcessingInstruction> ProcessingInstruction::create(Document& document, const String& target, const String& data)
{
- return adoptRefWillBeNoop(new ProcessingInstruction(document, target, data));
+ return (new ProcessingInstruction(document, target, data));
}
ProcessingInstruction::~ProcessingInstruction()
@@ -95,7 +95,7 @@ Node::NodeType ProcessingInstruction::nodeType() const
return PROCESSING_INSTRUCTION_NODE;
}
-PassRefPtrWillBeRawPtr<Node> ProcessingInstruction::cloneNode(bool /*deep*/)
+RawPtr<Node> ProcessingInstruction::cloneNode(bool /*deep*/)
{
// FIXME: Is it a problem that this does not copy m_localHref?
// What about other data members?
@@ -165,7 +165,7 @@ void ProcessingInstruction::process(const String& href, const String& charset)
String url = document().completeURL(href).string();
- RefPtrWillBeRawPtr<StyleSheetResource> resource = nullptr;
+ RawPtr<StyleSheetResource> resource = nullptr;
FetchRequest request(ResourceRequest(document().completeURL(href)), FetchInitiatorTypeNames::processinginstruction);
if (m_isXSL) {
if (RuntimeEnabledFeatures::xsltEnabled())
@@ -212,9 +212,9 @@ void ProcessingInstruction::setCSSStyleSheet(const String& href, const KURL& bas
ASSERT(m_isCSS);
CSSParserContext parserContext(document(), 0, baseURL, charset);
- RefPtrWillBeRawPtr<StyleSheetContents> newSheet = StyleSheetContents::create(href, parserContext);
+ RawPtr<StyleSheetContents> newSheet = StyleSheetContents::create(href, parserContext);
- RefPtrWillBeRawPtr<CSSStyleSheet> cssSheet = CSSStyleSheet::create(newSheet, this);
+ RawPtr<CSSStyleSheet> cssSheet = CSSStyleSheet::create(newSheet, this);
cssSheet->setDisabled(m_alternate);
cssSheet->setTitle(m_title);
cssSheet->setMediaQueries(MediaQuerySet::create(m_media));
@@ -236,7 +236,7 @@ void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas
ASSERT(m_isXSL);
m_sheet = XSLStyleSheet::create(this, href, baseURL);
- RefPtrWillBeRawPtr<Document> protect(&document());
+ RawPtr<Document> protect(&document());
OwnPtr<IncrementLoadEventDelayCount> delay = IncrementLoadEventDelayCount::create(document());
parseStyleSheet(sheet);
}
@@ -283,7 +283,7 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint)
if (!DocumentXSLT::processingInstructionRemovedFromDocument(document(), this))
document().styleEngine().removeStyleSheetCandidateNode(this);
- RefPtrWillBeRawPtr<StyleSheet> removedSheet = m_sheet;
+ RawPtr<StyleSheet> removedSheet = m_sheet;
if (m_sheet) {
ASSERT(m_sheet->ownerNode() == this);
clearSheet();

Powered by Google App Engine
This is Rietveld 408576698