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

Unified Diff: third_party/WebKit/Source/core/xml/XSLStyleSheet.h

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/xml/XSLStyleSheet.h
diff --git a/third_party/WebKit/Source/core/xml/XSLStyleSheet.h b/third_party/WebKit/Source/core/xml/XSLStyleSheet.h
index ba3a09ea232b8bcba3008bdbf193bff55d237bbe..dd546189639613c0ace4e74c185bf9a7c878a1e8 100644
--- a/third_party/WebKit/Source/core/xml/XSLStyleSheet.h
+++ b/third_party/WebKit/Source/core/xml/XSLStyleSheet.h
@@ -36,29 +36,29 @@ class XSLImportRule;
class XSLStyleSheet final : public StyleSheet {
public:
- static PassRefPtrWillBeRawPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL)
+ static RawPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLStyleSheet(parentImport, originalURL, finalURL));
+ return (new XSLStyleSheet(parentImport, originalURL, finalURL));
}
- static PassRefPtrWillBeRawPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, const String& originalURL, const KURL& finalURL)
+ static RawPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, const String& originalURL, const KURL& finalURL)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLStyleSheet(parentNode, originalURL, finalURL, false));
+ return (new XSLStyleSheet(parentNode, originalURL, finalURL, false));
}
- static PassRefPtrWillBeRawPtr<XSLStyleSheet> createEmbedded(ProcessingInstruction* parentNode, const KURL& finalURL)
+ static RawPtr<XSLStyleSheet> createEmbedded(ProcessingInstruction* parentNode, const KURL& finalURL)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLStyleSheet(parentNode, finalURL.string(), finalURL, true));
+ return (new XSLStyleSheet(parentNode, finalURL.string(), finalURL, true));
}
// Taking an arbitrary node is unsafe, because owner node pointer can become
// stale. XSLTProcessor ensures that the stylesheet doesn't outlive its
// parent, in part by not exposing it to JavaScript.
- static PassRefPtrWillBeRawPtr<XSLStyleSheet> createForXSLTProcessor(Document* document, Node* stylesheetRootNode, const String& originalURL, const KURL& finalURL)
+ static RawPtr<XSLStyleSheet> createForXSLTProcessor(Document* document, Node* stylesheetRootNode, const String& originalURL, const KURL& finalURL)
{
ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- return adoptRefWillBeNoop(new XSLStyleSheet(document, stylesheetRootNode, originalURL, finalURL, false));
+ return (new XSLStyleSheet(document, stylesheetRootNode, originalURL, finalURL, false));
}
~XSLStyleSheet() override;
@@ -103,12 +103,12 @@ private:
XSLStyleSheet(Document* ownerDocument, Node* styleSheetRootNode, const String& originalURL, const KURL& finalURL, bool embedded);
XSLStyleSheet(XSLImportRule* parentImport, const String& originalURL, const KURL& finalURL);
- RawPtrWillBeMember<Node> m_ownerNode;
+ Member<Node> m_ownerNode;
String m_originalURL;
KURL m_finalURL;
bool m_isDisabled;
- PersistentHeapVectorWillBeHeapVector<Member<XSLImportRule>> m_children;
+ HeapVector<Member<XSLImportRule>> m_children;
bool m_embedded;
bool m_processed;
@@ -117,8 +117,8 @@ private:
bool m_stylesheetDocTaken;
bool m_compilationFailed;
- RawPtrWillBeMember<XSLStyleSheet> m_parentStyleSheet;
- RefPtrWillBeMember<Document> m_ownerDocument;
+ Member<XSLStyleSheet> m_parentStyleSheet;
+ Member<Document> m_ownerDocument;
};
DEFINE_TYPE_CASTS(XSLStyleSheet, StyleSheet, sheet, !sheet->isCSSStyleSheet(), !sheet.isCSSStyleSheet());

Powered by Google App Engine
This is Rietveld 408576698