Make WebNodeHighlightView use InspectorController to do its painting
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Mar 2008 16:01:03 +0000 (16:01 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Mar 2008 16:01:03 +0000 (16:01 +0000)
commit17d7e9725e12fea463db305ace851d7077a400fb
tree79cddf0dbf915815caee82d33e1aa514b8cf5b38
parent68f4ac40b78366a3033cb3d6d6ba6c32edc7792a
 Make WebNodeHighlightView use InspectorController to do its painting

 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: https://svn.webkit.org/repository/webkit/trunk@31177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/WebCore.base.exp
WebKit/ChangeLog
WebKit/WebKit.xcodeproj/project.pbxproj
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebInspectorClient.mm
WebKit/mac/WebInspector/WebNodeHighlight.h
WebKit/mac/WebInspector/WebNodeHighlight.m
WebKit/mac/WebInspector/WebNodeHighlightView.m