Index: Source/core/inspector/InspectorCanvasAgent.cpp |
diff --git a/Source/core/inspector/InspectorCanvasAgent.cpp b/Source/core/inspector/InspectorCanvasAgent.cpp |
index 0a780746c2af320a9ba4e1feabed92131ac0634b..8683d1ee0ec9edbedac72eb776a7dfe2ce82d48f 100644 |
--- a/Source/core/inspector/InspectorCanvasAgent.cpp |
+++ b/Source/core/inspector/InspectorCanvasAgent.cpp |
@@ -31,7 +31,6 @@ |
#include "config.h" |
#include "core/inspector/InspectorCanvasAgent.h" |
-#include "HTMLNames.h" |
#include "bindings/v8/ScriptObject.h" |
#include "bindings/v8/ScriptProfiler.h" |
#include "core/html/HTMLCanvasElement.h" |
@@ -270,7 +269,8 @@ void InspectorCanvasAgent::findFramesWithUninstrumentedCanvases() |
virtual void visitNode(Node* node) OVERRIDE |
{ |
- if (!node->hasTagName(HTMLNames::canvasTag) || !node->document().frame()) |
+ ASSERT(node); |
+ if (!isHTMLCanvasElement(*node) || !node->document().frame()) |
return; |
LocalFrame* frame = node->document().frame(); |