Changeset 29415 in webkit


Ignore:
Timestamp:
Jan 11, 2008 12:50:52 PM (16 years ago)
Author:
Adam Roben
Message:

Fix Bug 16828: WebView never paints if first page load is canceled after being committed but before layout

<http://bugs.webkit.org/show_bug.cgi?id=16828>
<rdar://5682402>

Now that we have 1) a real loader and 2) multiple FrameViews per
Frame, we no longer need the hackery we had in our WM_PAINT handler
that decided whether or not to paint. We now always want to paint,
letting the swapping of FrameViews that happens in
transitionToCommittedForNewPage handle which document gets painted.

Reviewed by Hyatt.

  • WebView.cpp: (WebViewWndProc): Removed hackery that decided sometimes not to paint.
Location:
trunk/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/win/ChangeLog

    r29401 r29415  
     12008-01-11  Adam Roben  <aroben@apple.com>
     2
     3        Fix Bug 16828: WebView never paints if first page load is canceled after being committed but before layout
     4
     5        <http://bugs.webkit.org/show_bug.cgi?id=16828>
     6        <rdar://5682402>
     7
     8        Now that we have 1) a real loader and 2) multiple FrameViews per
     9        Frame, we no longer need the hackery we had in our WM_PAINT handler
     10        that decided whether or not to paint. We now always want to paint,
     11        letting the swapping of FrameViews that happens in
     12        transitionToCommittedForNewPage handle which document gets painted.
     13
     14        Reviewed by Hyatt.
     15
     16        * WebView.cpp:
     17        (WebViewWndProc): Removed hackery that decided sometimes not to paint.
     18
    1192008-01-11  Mark Rowe  <mrowe@apple.com>
    220
  • trunk/WebKit/win/WebView.cpp

    r29369 r29415  
    15851585    switch (message) {
    15861586        case WM_PAINT: {
    1587             COMPtr<IWebDataSource> dataSource;
    1588             mainFrameImpl->dataSource(&dataSource);
    1589             Frame* coreFrame = core(mainFrameImpl);
    1590             if (!webView->isPainting() && (!dataSource || coreFrame && (coreFrame->view()->didFirstLayout() || !coreFrame->loader()->committedFirstRealDocumentLoad())))
    1591                 webView->paint(0, 0);
    1592             else
    1593                 ValidateRect(hWnd, 0);
     1587            webView->paint(0, 0);
    15941588            break;
    15951589        }
Note: See TracChangeset for help on using the changeset viewer.