Changeset 62749 in webkit


Ignore:
Timestamp:
Jul 7, 2010 8:34:31 PM (14 years ago)
Author:
tkent@chromium.org
Message:

2010-07-07 Kent Tamura <tkent@chromium.org>

Reviewed by Dimitri Glazkov.

[DRT/Chromium] Fix two regressions
https://bugs.webkit.org/show_bug.cgi?id=41745

  • DumpRenderTree/chromium/WebViewHost.cpp: (WebViewHost::paintInvalidatedRegion): Repaint three times to fix svg/W3C-SVG-1.1/struct-use-01-t.svg and svg/custom/use-on-g-containing-foreignObject-and-image.svg though test_shell does it twice. Probably DRT needs it because DRT delays painting as possible.
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r62747 r62749  
     12010-07-07  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        [DRT/Chromium] Fix two regressions
     6        https://bugs.webkit.org/show_bug.cgi?id=41745
     7
     8        * DumpRenderTree/chromium/WebViewHost.cpp:
     9        (WebViewHost::paintInvalidatedRegion):
     10         Repaint three times to fix svg/W3C-SVG-1.1/struct-use-01-t.svg
     11         and svg/custom/use-on-g-containing-foreignObject-and-image.svg
     12         though test_shell does it twice. Probably DRT needs it because
     13         DRT delays painting as possible.
     14
    1152010-07-07  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/WebKitTools/DumpRenderTree/chromium/WebViewHost.cpp

    r62570 r62749  
    12951295    WebRect clientRect(0, 0, widgetSize.width, widgetSize.height);
    12961296
    1297     // Paint the canvas if necessary.  Allow painting to generate extra rects the
    1298     // first time we call it. This is necessary because some WebCore rendering
     1297    // Paint the canvas if necessary.  Allow painting to generate extra rects
     1298    // for the first two calls. This is necessary because some WebCore rendering
    12991299    // objects update their layout only when painted.
    13001300    // Store the total area painted in total_paint. Then tell the gdk window
    13011301    // to update that area after we're done painting it.
    1302     for (int i = 0; i < 2; ++i) {
     1302    for (int i = 0; i < 3; ++i) {
    13031303        // m_paintRect = intersect(m_paintRect , clientRect)
    13041304        int left = max(m_paintRect.x, clientRect.x);
     
    13161316        m_paintRect = WebRect();
    13171317        paintRect(rect);
    1318         if (i == 1)
     1318        if (i >= 1)
    13191319            LOG_ERROR("painting caused additional invalidations");
    13201320    }
Note: See TracChangeset for help on using the changeset viewer.