Web Inspector: Cleanup Inspector Agents a bit
[WebKit-https.git] / Source / WebCore / inspector / InspectorCSSAgent.cpp
index da018b9e37a777b0a252be964c84c661994e3bcf..56a72ce64949b910b44308cbf16a80757d4b92fb 100644 (file)
@@ -1146,7 +1146,7 @@ Element* InspectorCSSAgent::elementForId(ErrorString* errorString, int nodeId)
         *errorString = "No node with given id found";
         return 0;
     }
-    if (node->nodeType() != Node::ELEMENT_NODE) {
+    if (!node->isElementNode()) {
         *errorString = "Not an element node";
         return 0;
     }