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

Unified Diff: Source/core/xml/DOMParser.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: 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
Index: Source/core/xml/DOMParser.cpp
diff --git a/Source/core/xml/DOMParser.cpp b/Source/core/xml/DOMParser.cpp
index ecc044300f5e555b46b7a85b3425d1e9cc3ff52f..8ae54a14d7cad26055d0c21ae82d890f9fc2c50e 100644
--- a/Source/core/xml/DOMParser.cpp
+++ b/Source/core/xml/DOMParser.cpp
@@ -25,7 +25,7 @@
namespace WebCore {
-PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionState& exceptionState)
{
// HTML5 is very explicit about which types we're allowed to support here:
// http://domparsing.spec.whatwg.org/#the-domparser-interface
@@ -38,7 +38,7 @@ PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String&
return nullptr;
}
- RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
+ RefPtrWillBeRawPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
doc->setContent(str);
return doc.release();
}

Powered by Google App Engine
This is Rietveld 408576698