Skip to content
  • aroben@apple.com's avatar
    Small WebNodeHighlight cleanup · 86612616
    aroben@apple.com authored
            Renamed the following methods:
              visible() -> isShowing()
              updateWindow() -> update()
    
            Removed the window() method.
    
            Added a new method, placeBehindWindow(HWND), that moves the highlight
            overlay in the window z-order to be just behind the passed-in window.
            WebInspectorClient calls this instead of doing the move directly using
            the old window() method.
    
            Reviewed by John Sullivan.
    
            * WebCoreSupport/WebInspectorClient.cpp:
            (WebInspectorClient::attachWindow):
            (WebInspectorClient::detachWindow):
            (WebInspectorClient::highlight): Call placeBehindWindow instead of
            calling SetWindowPos directly.
            * WebNodeHighlight.cpp:
            (WebNodeHighlight::show):
            (WebNodeHighlight::isShowing):
            (WebNodeHighlight::placeBehindWindow): Added. Code came from
            WebInspectorClient::highlight.
            (WebNodeHighlight::onWebViewWindowPosChanged):
            (WebNodeHighlight::onRootWindowPosChanged):
            * WebNodeHighlight.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    86612616