• dino@apple.com's avatar
    <https://webkit.org/b/119776> Don't use ScriptProfiler to find canvases for instrumentation · 2645e53e
    dino@apple.com authored
    Reviewed by Joseph Pecoraro.
    
    InspectorCanvasAgent::findFramesWithUninstrumentedCanvases uses a ScriptProfiler to walk the tree
    looking for canvas elements. This is currently not implemented in JSC, but we can do this directly
    with DOM methods. We're only looking for Canvas elements that have a context, so there isn't a need
    for this abstract walking object.
    
    * html/HTMLCanvasElement.h: Add new helpers to cast to <canvas>.
    (WebCore::isHTMLCanvasElement):
    (WebCore::toHTMLCanvasElement):
    * inspector/InspectorCanvasAgent.cpp:
    (WebCore::InspectorCanvasAgent::findFramesWithUninstrumentedCanvases): Simply walk
    the frame tree and use getElementsByTagName to find canvas elements.
    * bindings/js/bindings/js/ScriptProfiler.h: Removed unused method.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2645e53e
ChangeLog 1.86 MB