Skip to content
  • weinig@apple.com's avatar
    Need a bundle SPI to generate a snapshot of a specific DOM node (like [DOMNode renderedImage]) · 55e9a2b0
    weinig@apple.com authored
    <rdar://problem/13148631>
    https://bugs.webkit.org/show_bug.cgi?id=110034
    
    Reviewed by Tim Horton.
    
    Source/WebCore: 
    
    * WebCore.exp.in:
    Add some necessary exports.
    
    Source/WebKit2: 
    
    * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
    (WKBundleNodeHandleCopySnapshotWithOptions):
    * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
    Add WKBundleNodeHandleCopySnapshotWithOptions function.
    
    * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
    * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h:
    Fix conversion method between WKDOMNode and WKBundleNodeHandleRef to have the same
    name in the header and implementation.
    
    * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
    (WebKit::imageForRect):
    (WebKit):
    (WebKit::InjectedBundleNodeHandle::renderedImage):
    * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
    Add implementation of WKBundleNodeHandleCopySnapshotWithOptions.
    
    * Shared/ImageOptions.h:
    (WebKit::snapshotOptionsToImageOptions):
    * WebProcess/WebPage/WebPage.cpp:
    Move snapshotOptionsToImageOptions conversion function to a location where
    it can be shared.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    55e9a2b0