Chromium Code Reviews| Index: Source/core/xml/XSLTProcessor.cpp |
| diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp |
| index a65ba8bddcefa29492ddfc3bb9f77fd61488f435..9a40c16c233eac30621339094515db06f01adb92 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; |
|
haraken
2014/05/23 05:38:20
= nullptr
tkent
2014/05/23 06:21:47
Done.
|
| 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 |