Index: Source/core/dom/DocumentType.cpp |
diff --git a/Source/core/dom/DocumentType.cpp b/Source/core/dom/DocumentType.cpp |
index 12fbd2fda1ee738459c5e042e66331e5a3ffcdae..7c392a7035fc6164b614e736bb255b9d71c936c8 100644 |
--- a/Source/core/dom/DocumentType.cpp |
+++ b/Source/core/dom/DocumentType.cpp |
@@ -54,7 +54,7 @@ Node::NodeType DocumentType::nodeType() const |
PassRefPtr<Node> DocumentType::cloneNode(bool /*deep*/) |
{ |
- return create(document(), m_name, m_publicId, m_systemId); |
+ return create(&document(), m_name, m_publicId, m_systemId); |
} |
Node::InsertionNotificationRequest DocumentType::insertedInto(ContainerNode* insertionPoint) |
@@ -64,14 +64,14 @@ Node::InsertionNotificationRequest DocumentType::insertedInto(ContainerNode* ins |
// DocumentType can only be inserted into a Document. |
ASSERT(parentNode()->isDocumentNode()); |
- document()->setDoctype(this); |
+ document().setDoctype(this); |
return InsertionDone; |
} |
void DocumentType::removedFrom(ContainerNode* insertionPoint) |
{ |
- document()->setDoctype(0); |
+ document().setDoctype(0); |
Node::removedFrom(insertionPoint); |
} |