| Index: Source/core/xml/XSLTProcessor.cpp
|
| diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp
|
| index a65ba8bddcefa29492ddfc3bb9f77fd61488f435..aadcf196b03c4f1bd81fd373880d016a91a0e1d3 100644
|
| --- a/Source/core/xml/XSLTProcessor.cpp
|
| +++ b/Source/core/xml/XSLTProcessor.cpp
|
| @@ -60,14 +60,14 @@ XSLTProcessor::~XSLTProcessor()
|
| #endif
|
| }
|
|
|
| -PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourceString,
|
| +PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourceString,
|
| const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, LocalFrame* frame)
|
| {
|
| - RefPtr<Document> ownerDocument(sourceNode->document());
|
| + RefPtrWillBeRawPtr<Document> ownerDocument(sourceNode->document());
|
| bool sourceIsDocument = (sourceNode == ownerDocument.get());
|
| String documentSource = sourceString;
|
|
|
| - RefPtr<Document> result;
|
| + RefPtrWillBeRawPtr<Document> result = nullptr;
|
| DocumentInit init(sourceIsDocument ? ownerDocument->url() : KURL(), frame);
|
|
|
| bool forceXHTML = sourceMIMEType == "text/plain";
|
| @@ -75,7 +75,7 @@ PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc
|
| transformTextStringToXHTMLDocumentString(documentSource);
|
|
|
| if (frame) {
|
| - RefPtr<Document> oldDocument = frame->document();
|
| + RefPtrWillBeRawPtr<Document> oldDocument = frame->document();
|
| result = frame->domWindow()->installNewDocument(sourceMIMEType, init, forceXHTML);
|
|
|
| // Before parsing, we need to save & detach the old document and get the new document
|
| @@ -101,7 +101,7 @@ PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc
|
| return result.release();
|
| }
|
|
|
| -PassRefPtr<Document> XSLTProcessor::transformToDocument(Node* sourceNode)
|
| +PassRefPtrWillBeRawPtr<Document> XSLTProcessor::transformToDocument(Node* sourceNode)
|
| {
|
| if (!sourceNode)
|
| return nullptr;
|
| @@ -162,6 +162,7 @@ void XSLTProcessor::reset()
|
| void XSLTProcessor::trace(Visitor* visitor)
|
| {
|
| visitor->trace(m_stylesheet);
|
| + visitor->trace(m_stylesheetRootNode);
|
| }
|
|
|
| } // namespace WebCore
|
|
|