Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index 146244ccb53e68f9c7a14582678f71ef6e52cef5..596f609ba71f83157a7d7e55c3679c95d8dc3563 100755 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1522,7 +1522,7 @@ PassRefPtr<TypeBuilder::DOM::Node> InspectorDOMAgent::buildObjectForNode(Node* n |
value->setDocumentURL(documentURLString(document)); |
value->setBaseURL(documentBaseURLString(document)); |
value->setXmlVersion(document->xmlVersion()); |
- } else if (node->nodeType() == Node::DOCUMENT_TYPE_NODE) { |
+ } else if (node->isDocumentTypeNode()) { |
DocumentType* docType = toDocumentType(node); |
value->setPublicId(docType->publicId()); |
value->setSystemId(docType->systemId()); |