Don't bypass WebView WM_PAINT if the WebView has never committed a page.
Added getter for committedFirstRealDocumentLoad.
Reviewed by Maciej.
* WebView.cpp:
(WebViewWndProc): Don't skip painting if we haven't committed any pages in this view.
* loader/FrameLoader.h: Added committedFirstRealDocumentLoad.
(WebCore::FrameLoader::committedFirstRealDocumentLoad): Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25270
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-08-27 Steve Falkenburg <sfalken@apple.com>
+
+ Added getter for committedFirstRealDocumentLoad.
+
+ Reviewed by Maciej.
+
+ * loader/FrameLoader.h: Added committedFirstRealDocumentLoad.
+ (WebCore::FrameLoader::committedFirstRealDocumentLoad): Added.
+
2007-08-27 Antti Koivisto <antti@apple.com>
Reviewed by Maciej.
bool isLoadingMainResource() const { return m_isLoadingMainResource; }
bool isLoading() const;
bool frameHasLoaded() const;
+ bool committedFirstRealDocumentLoad() const { return m_committedFirstRealDocumentLoad; }
int numPendingOrLoadingRequests(bool recurse) const;
bool isReloading() const;
+2007-08-27 Steve Falkenburg <sfalken@apple.com>
+
+ <rdar://problem/5424801> REGRESSION (r25151): Web page area of window doesn't redraw if page isn't loaded
+
+ Don't bypass WebView WM_PAINT if the WebView has never committed a page.
+
+ Reviewed by Maciej.
+
+ * WebView.cpp:
+ (WebViewWndProc): Don't skip painting if we haven't committed any pages in this view.
+
2007-08-25 Oliver Hunt <oliver@apple.com>
Reviewed by Adam and Sam
COMPtr<IWebDataSource> dataSource;
mainFrameImpl->dataSource(&dataSource);
Frame* coreFrame = core(mainFrameImpl);
- if (!webView->isPainting() && (!dataSource || coreFrame && coreFrame->view()->didFirstLayout()))
+ if (!webView->isPainting() && (!dataSource || coreFrame && (coreFrame->view()->didFirstLayout() || !coreFrame->loader()->committedFirstRealDocumentLoad())))
webView->paint(0, 0);
else
ValidateRect(hWnd, 0);