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

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, 9 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 774add4619cc1c3f6d18cae2ff0d35e21ceb2165..1e8e53109173d187661cf9c2b622076bf5446532 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->getSecurityOrigin());
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;
« no previous file with comments | « third_party/WebKit/Source/core/xml/XSLTProcessor.h ('k') | third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698