Index: Source/core/inspector/InspectorCanvasAgent.cpp |
diff --git a/Source/core/inspector/InspectorCanvasAgent.cpp b/Source/core/inspector/InspectorCanvasAgent.cpp |
index af6aad3dbae67c092fcfc552388194706bd46606..cee235c7702da3665e58ad23fa5a11262bb838d8 100644 |
--- a/Source/core/inspector/InspectorCanvasAgent.cpp |
+++ b/Source/core/inspector/InspectorCanvasAgent.cpp |
@@ -279,8 +279,7 @@ void InspectorCanvasAgent::findFramesWithUninstrumentedCanvases() |
if (frame->page() != m_page) |
return; |
- HTMLCanvasElement* canvas = static_cast<HTMLCanvasElement*>(node); |
- if (canvas->renderingContext()) |
+ if (toHTMLCanvasElement(node)->renderingContext()) |
m_framesWithUninstrumentedCanvases.set(frame, true); |
} |