Index: Source/core/inspector/InspectorController.cpp |
diff --git a/Source/core/inspector/InspectorController.cpp b/Source/core/inspector/InspectorController.cpp |
index 93fb08161d9b11297b7ebe9a75bff565b149ca3f..5cdc9776936f8dbd2572d0f29592ada2716b1e05 100644 |
--- a/Source/core/inspector/InspectorController.cpp |
+++ b/Source/core/inspector/InspectorController.cpp |
@@ -311,7 +311,7 @@ void InspectorController::inspect(Node* node) |
if (!frame) |
return; |
- if (node->nodeType() != Node::ELEMENT_NODE && node->nodeType() != Node::DOCUMENT_NODE) |
+ if (!node->isElementNode() && !node->isDocumentNode()) |
node = node->parentNode(); |
InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(ScriptState::forMainWorld(frame)); |