* WebView/WebFrame.m:
(-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
* WebView/WebView.m:
(-[WebViewPrivate dealloc]): release the background color
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16031
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-24 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by Darin.
+
+ * WebView/WebFrame.m:
+ (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
+ * WebView/WebView.m:
+ (-[WebViewPrivate dealloc]): release the background color
+
2006-08-24 Timothy Hatcher <timothy@apple.com>
Reviewed by Hyatt.
NSColor *backgroundColor = [[self webView] backgroundColor];
for (WebFrame *frame = self; frame; frame = [frame _traverseNextFrameStayWithin:self]) {
- // Never call setDrawsBackground:YES on the scroll view or the background color will
- // flash between pages loads, very noticeable during the PLT.
+ // Never call setDrawsBackground:YES here on the scroll view or the background color will
+ // flash between pages loads. setDrawsBackground:YES will be called in WebFrame's _frameLoadCompleted.
if (!drawsBackground)
[[[frame frameView] _scrollView] setDrawsBackground:NO];
[[[frame frameView] _scrollView] setBackgroundColor:backgroundColor];
[backForwardList release];
[applicationNameForUserAgent release];
[userAgent release];
+ [backgroundColor release];
[preferences release];
[settings release];