Skip to content
  • aroben@apple.com's avatar
    Make WebNodeHighlightView use InspectorController to do its painting · ad382725
    aroben@apple.com authored
     WebCore:
    
             Export InspectorController::drawNodeHighlight
    
             Reviewed by Tim Hatcher.
    
             * WebCore.base.exp: Also sorted this file.
    
     WebKit:
    
             Mark WebNodeHighlight.m and WebNodeHighlightView.m Obj-C++
    
             Reviewed by Tim Hatcher.
    
             * WebKit.xcodeproj/project.pbxproj:
    
     WebKit/mac:
    
             Make WebNodeHighlightView use InspectorController to do its painting
    
             Reviewed by Tim Hatcher.
    
             * WebCoreSupport/WebInspectorClient.mm:
             (-[WebInspectorWindowController highlightNode:]): Pass the
             InspectorController to the WebNodeHighlight, and don't call
             setHighlightedNode: (which has been removed).
             (-[WebInspectorWindowController hideHighlight]): Removed call to
             setHighlightedNode:.
             * WebInspector/WebNodeHighlight.h:
               - Replaced _highlightNode with _inspectorController
               - Removed _highlightedNode accessors
               - Added -inspectorController method
             * WebInspector/WebNodeHighlight.m:
             (-[WebNodeHighlight initWithTargetView:inspectorController:]): Now
             takes an InspectorController* and stores it in _inspectorController.
             (-[WebNodeHighlight dealloc]): Removed code dealing with
             _highlightedNode.
             (-[WebNodeHighlight inspectorController]): Added.
             * WebInspector/WebNodeHighlightView.m: Removed FileInternal category.
             (-[WebNodeHighlightView isFlipped]): Added. WebCore expects all
             GraphicsContexts to be based on a flipped CGContext, so we have to
             specify that this view is flipped.
             (-[WebNodeHighlightView drawRect:]): Changed to create a
             GraphicsContext and pass it to InspectorController::drawNodeHighlight.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ad382725