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

Unified Diff: third_party/WebKit/Source/core/xml/XSLTProcessor.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/xml/XSLTProcessor.cpp
diff --git a/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp b/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp
index 436c690515f8289366ea80567806a3bc8da3898e..48c1c2ee1e680a1821070189dc40a85a97776b8d 100644
--- a/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp
+++ b/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp
@@ -60,14 +60,14 @@ XSLTProcessor::~XSLTProcessor()
#endif
}
-PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourceString,
+RawPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourceString,
const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, LocalFrame* frame)
{
- RefPtrWillBeRawPtr<Document> ownerDocument(sourceNode->document());
+ RawPtr<Document> ownerDocument(sourceNode->document());
bool sourceIsDocument = (sourceNode == ownerDocument.get());
String documentSource = sourceString;
- RefPtrWillBeRawPtr<Document> result = nullptr;
+ RawPtr<Document> result = nullptr;
DocumentInit init(sourceIsDocument ? ownerDocument->url() : KURL(), frame);
bool forceXHTML = sourceMIMEType == "text/plain";
@@ -75,7 +75,7 @@ PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const S
transformTextStringToXHTMLDocumentString(documentSource);
if (frame) {
- RefPtrWillBeRawPtr<Document> oldDocument = frame->document();
+ RawPtr<Document> oldDocument = frame->document();
// Before parsing, we need to save & detach the old document and get the new document
// in place. Document::detach() tears down the FrameView, so remember whether or not
// there was one.
@@ -91,7 +91,7 @@ PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const S
result->updateSecurityOrigin(oldDocument->securityOrigin());
result->setCookieURL(oldDocument->cookieURL());
- RefPtrWillBeRawPtr<ContentSecurityPolicy> csp = ContentSecurityPolicy::create();
+ RawPtr<ContentSecurityPolicy> csp = ContentSecurityPolicy::create();
csp->copyStateFrom(oldDocument->contentSecurityPolicy());
result->initContentSecurityPolicy(csp);
}
@@ -107,7 +107,7 @@ PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const S
return result.release();
}
-PassRefPtrWillBeRawPtr<Document> XSLTProcessor::transformToDocument(Node* sourceNode)
+RawPtr<Document> XSLTProcessor::transformToDocument(Node* sourceNode)
{
String resultMIMEType;
String resultString;
@@ -117,7 +117,7 @@ PassRefPtrWillBeRawPtr<Document> XSLTProcessor::transformToDocument(Node* source
return createDocumentFromSource(resultString, resultEncoding, resultMIMEType, sourceNode, 0);
}
-PassRefPtrWillBeRawPtr<DocumentFragment> XSLTProcessor::transformToFragment(Node* sourceNode, Document* outputDoc)
+RawPtr<DocumentFragment> XSLTProcessor::transformToFragment(Node* sourceNode, Document* outputDoc)
{
String resultMIMEType;
String resultString;

Powered by Google App Engine
This is Rietveld 408576698