Build fix.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Oct 2006 18:41:35 +0000 (18:41 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Oct 2006 18:41:35 +0000 (18:41 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16933 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/WebInspector/WebInspector.m

index 5d1371330506a9f8d88f282dcffa49b3b17fd755..431ec28edc6360bee3443ab150c9f71e5fec2171 100644 (file)
@@ -572,10 +572,10 @@ static NSMapTable *lastChildIgnoringWhitespaceCache = NULL;
 
 - (void)_focusRootNode:(id)sender
 {
-    int index = [sender selectedRow];
-    if (index == -1 || !sender)
+    int index = [_private->treeOutlineView selectedRow];
+    if (index == -1 || !_private->treeOutlineView)
         return;
-    DOMNode *node = [sender itemAtRow:index];
+    DOMNode *node = [_private->treeOutlineView itemAtRow:index];
     if (![node isSameNode:[self rootDOMNode]])
         [self setRootDOMNode:node];
 }
@@ -995,7 +995,7 @@ static NSMapTable *lastChildIgnoringWhitespaceCache = NULL;
     return nil;
 }
 
-- (void)outlineView:(NSOutlineView *)outlineView willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
+- (void)outlineView:(NSOutlineView *)outlineView willDisplayOutlineCell:(NSCell *)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
 {
     if (outlineView == _private->treeOutlineView)
         [cell setImage:([cell state] ? _private->downArrowImage : _private->rightArrowImage)];