+2005-03-01 David Hyatt <hyatt@apple.com>
+
+ Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
+ is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
+
+ Reviewed by John Sullivan
+
+ * WebView.subproj/WebDynamicScrollBarsView.m:
+ (-[WebDynamicScrollBarsView updateScrollers]):
+ (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
+
2005-03-02 Chris Blumenberg <cblu@apple.com>
Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
=== Safari-401 ===
+>>>>>>> 1.3057
2005-03-01 John Sullivan <sullivan@apple.com>
Reviewed by Darin.
// twice would indicate some kind of infinite loop, so we do it at most twice.
// It's quite efficient to do this work twice in the normal case, so we don't bother
// trying to figure out of the second pass is needed or not.
+ if (inUpdateScrollers)
+ return;
+ inUpdateScrollers = true;
+
int pass;
BOOL hasVerticalScroller = [self hasVerticalScroller];
BOOL hasHorizontalScroller = [self hasHorizontalScroller];
[[self verticalScroller] setNeedsDisplay: NO];
[[self horizontalScroller] setNeedsDisplay: NO];
}
+
+ inUpdateScrollers = false;
}
// Make the horizontal and vertical scroll bars come and go as needed.
// http://www.linuxpowered.com/archive/howto/Net-HOWTO-8.html.
// The underlying cause is some problem in the NSText machinery, but I was not
// able to pin it down.
- if (!inUpdateScrollers && [[NSGraphicsContext currentContext] isDrawingToScreen]) {
- inUpdateScrollers = YES;
+ if (!inUpdateScrollers && [[NSGraphicsContext currentContext] isDrawingToScreen])
[self updateScrollers];
- inUpdateScrollers = NO;
- }
}
[super reflectScrolledClipView:clipView];