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

Unified Diff: Source/core/xml/XSLTProcessor.cpp

Issue 288343017: Oilpan: Replace RefPtrs to Node and its subclasses in core/xml/ with Oilpan transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nullptr Created 6 years, 7 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
« no previous file with comments | « Source/core/xml/XSLTProcessor.h ('k') | Source/core/xml/XSLTProcessorLibxslt.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/xml/XSLTProcessor.h ('k') | Source/core/xml/XSLTProcessorLibxslt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698