Changeset 80175 in webkit


Ignore:
Timestamp:
Mar 2, 2011 3:19:01 PM (13 years ago)
Author:
Adam Roben
Message:

Wait for force a paint in WebKitTestRunner until we're actually ready to dump the output

This matches DumpRenderTree on Windows.

Fixes <http://webkit.org/b/55469> <rdar://problem/9068539> REGRESSION (r79863): Lots of
dom/html/level2/html/HTMLFrameElement*.html tests crashing in FrameView::paintOverhangAreas
in WebKit2

Reviewed by Beth Dakin.

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::dump): Moved code to force a paint here...
(WTR::InjectedBundlePage::didFinishLoadForFrame): ...from here.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r80166 r80175  
     12011-03-02  Adam Roben  <aroben@apple.com>
     2
     3        Wait for force a paint in WebKitTestRunner until we're actually ready to dump the output
     4
     5        This matches DumpRenderTree on Windows.
     6
     7        Fixes <http://webkit.org/b/55469> <rdar://problem/9068539> REGRESSION (r79863): Lots of
     8        dom/html/level2/html/HTMLFrameElement*.html tests crashing in FrameView::paintOverhangAreas
     9        in WebKit2
     10
     11        Reviewed by Beth Dakin.
     12
     13        * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
     14        (WTR::InjectedBundlePage::dump): Moved code to force a paint here...
     15        (WTR::InjectedBundlePage::didFinishLoadForFrame): ...from here.
     16
    1172011-03-02  Daniel Cheng  <dcheng@chromium.org>
    218
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

    r79863 r80175  
    496496    InjectedBundle::shared().layoutTestController()->invalidateWaitToDumpWatchdogTimer();
    497497
     498    // Force a paint before dumping. This matches DumpRenderTree on Windows. (DumpRenderTree on Mac
     499    // does this at a slightly different time.) See <http://webkit.org/b/55469> for details.
     500    WKBundlePageForceRepaint(m_page);
     501
    498502    WKBundleFrameRef frame = WKBundlePageGetMainFrame(m_page);
    499503    string url = toSTD(adoptWK(WKURLCopyString(adoptWK(WKBundleFrameCopyURL(frame)).get())));
     
    534538        return;
    535539    InjectedBundle::shared().setTopLoadingFrame(0);
    536 
    537     WKBundlePageForceRepaint(m_page);
    538540
    539541    if (InjectedBundle::shared().layoutTestController()->waitToDump())
Note: See TracChangeset for help on using the changeset viewer.