| 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;
|
|
|