Skip to content
  • commit-queue@webkit.org's avatar
    Web Inspector: expose node and frame snapshot capabilities. · b54f0aea
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=124326
    
    Patch by Brian J. Burg <burg@cs.washington.edu> on 2013-12-05
    Reviewed by Joseph Pecoraro.
    
    Source/WebCore:
    
    This adds snapshotRect() and snapshotNode() to the Page domain.
    Both methods create snapshots using FrameSnapshotting APIs
    and send images to the inspector frontend as a data URL.
    
    Remove the unimplemented Page.captureScreenshot API.
    
    * inspector/InspectorPageAgent.cpp:
    (WebCore::InspectorPageAgent::snapshotNode): Added.
    (WebCore::InspectorPageAgent::snapshotRect): Added.
    * inspector/InspectorPageAgent.h:
    * inspector/protocol/Page.json: Added new protocol APIs.
    
    Source/WebInspectorUI:
    
    Add method signatures for snapshotNode() and snapshotRect().
    Remove method signature for unimplemented Page.captureScreenshot.
    
    * UserInterface/InspectorBackendCommands.js:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b54f0aea