Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 8fad2f67af0fe5bb8c11d4597345ff54b76aeecc..8e3c0232da7a07386eb72bd04e0178438ec9f169 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -655,7 +655,7 @@ void Document::setDoctype(PassRefPtr<DocumentType> docType) |
ASSERT(!m_docType || !docType); |
m_docType = docType; |
if (m_docType) { |
- this->adoptIfNeeded(m_docType.get()); |
+ this->adoptIfNeeded(*m_docType); |
if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.", /* caseSensitive */ false)) |
m_isMobileDocument = true; |
} |
@@ -957,7 +957,7 @@ PassRefPtr<Node> Document::adoptNode(PassRefPtr<Node> source, ExceptionState& es |
} |
} |
- this->adoptIfNeeded(source.get()); |
+ this->adoptIfNeeded(*source); |
return source; |
} |