Skip to content
  • jhoneycutt@apple.com's avatar
    Add SPI to determine whether a node is a halted plug-in. · 816d66ee
    jhoneycutt@apple.com authored
    Part of <rdar://problem/7273354> Halted plug-ins should restart on
    mouseover
    
    https://bugs.webkit.org/show_bug.cgi?id=30151
    
    Reviewed by Darin Adler.
    
    WebCore:
    
    * plugins/PluginView.cpp:
    (WebCore::PluginView::PluginView):
    Initialize m_isHalted.
    
    * plugins/PluginView.h:
    (WebCore::PluginView::isHalted):
    Return m_isHalted.
    
    * plugins/win/PluginViewWin.cpp:
    (WebCore::PluginView::halt):
    Set m_isHalted to true.
    (WebCore::PluginView::restart):
    clear m_isHalted.
    
    WebKit/win:
    
    * Interfaces/IWebViewPrivate.idl:
    Add isNodehaltedPlugin().
    
    * WebView.cpp:
    (WebView::isNodeHaltedPlugin):
    From the IDOMNode, query for the DOMNode. From the DOMNode, get the
    WebCore::Node. Get the node's renderer, and check whether it is a
    RenderWidget. If so, get its Widget, and check whether it's a
    PluginView. If so, return the result of PluginView::isHalted().
    
    * WebView.h:
    Declare isNodeHaltedPlugin().
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    816d66ee