Changeset 25270 in webkit


Ignore:
Timestamp:
Aug 28, 2007 9:29:08 AM (17 years ago)
Author:
sfalken
Message:

<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.
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.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r25267 r25270  
     12007-08-27  Steve Falkenburg  <sfalken@apple.com>
     2
     3        Added getter for committedFirstRealDocumentLoad.
     4       
     5        Reviewed by Maciej.
     6
     7        * loader/FrameLoader.h: Added committedFirstRealDocumentLoad.
     8        (WebCore::FrameLoader::committedFirstRealDocumentLoad): Added.
     9
    1102007-08-27  Antti Koivisto  <antti@apple.com>
    211
  • trunk/WebCore/loader/FrameLoader.h

    r25151 r25270  
    179179        bool isLoading() const;
    180180        bool frameHasLoaded() const;
     181        bool committedFirstRealDocumentLoad() const { return m_committedFirstRealDocumentLoad; }
    181182
    182183        int numPendingOrLoadingRequests(bool recurse) const;
  • trunk/WebKit/win/ChangeLog

    r25251 r25270  
     12007-08-27  Steve Falkenburg  <sfalken@apple.com>
     2
     3        <rdar://problem/5424801> REGRESSION (r25151): Web page area of window doesn't redraw if page isn't loaded
     4       
     5        Don't bypass WebView WM_PAINT if the WebView has never committed a page.
     6       
     7        Reviewed by Maciej.
     8
     9        * WebView.cpp:
     10        (WebViewWndProc): Don't skip painting if we haven't committed any pages in this view.
     11
    1122007-08-25  Oliver Hunt  <oliver@apple.com>
    213
  • trunk/WebKit/win/WebView.cpp

    r25251 r25270  
    11661166            mainFrameImpl->dataSource(&dataSource);
    11671167            Frame* coreFrame = core(mainFrameImpl);
    1168             if (!webView->isPainting() && (!dataSource || coreFrame && coreFrame->view()->didFirstLayout()))
     1168            if (!webView->isPainting() && (!dataSource || coreFrame && (coreFrame->view()->didFirstLayout() || !coreFrame->loader()->committedFirstRealDocumentLoad())))
    11691169                webView->paint(0, 0);
    11701170            else
Note: See TracChangeset for help on using the changeset viewer.