Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: Source/core/inspector/InspectorCanvasAgent.cpp

Issue 19315005: Introduce toHTMLCanvasElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | Source/core/rendering/RenderHTMLCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | Source/core/rendering/RenderHTMLCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698