+2007-07-16 John Sullivan <sullivan@apple.com>
+
+ Reviewed by Kevin Decker and Darin Adler
+
+ - fixed <rdar://problem/5337529> Holes in Find banner overlay on PDF pages are left in wrong place after changing scale
+
+ * WebView/WebPDFView.mm:
+ (-[WebPDFView _scaleOrDisplayModeChanged:]):
+ tell UI delegate that the entire PDF view has been redrawn
+
2007-07-14 Brady Eidson <beidson@apple.com>
Reviewed by Sam Weinig
}
PDFSelection *foundSelection = [document findString:string fromSelection:selectionForInitialSearch withOptions:options];
[selectionForInitialSearch release];
-
+
// If we first searched in the selection, and we found the selection, search again from just past the selection
if (startInSelection && _PDFSelectionsAreEqual(foundSelection, initialSelection))
foundSelection = [document findString:string fromSelection:initialSelection withOptions:options];
- (void)_scaleOrDisplayModeChanged:(NSNotification *)notification
{
ASSERT([notification object] == PDFSubview);
- if (!_ignoreScaleAndDisplayModeNotifications)
+ if (!_ignoreScaleAndDisplayModeNotifications) {
[self _updatePreferencesSoon];
+ // Notify UI delegate that the entire page has been redrawn, since (unlike for WebHTMLView)
+ // we can't hook into the drawing mechanism itself. This fixes 5337529.
+ WebView *webView = [self _webView];
+ [[webView _UIDelegateForwarder] webView:webView didDrawRect:[webView bounds]];
+ }
}
- (NSAttributedString *)_scaledAttributedString:(NSAttributedString *)unscaledAttributedString