Changeset 47607 in webkit


Ignore:
Timestamp:
Aug 20, 2009 4:30:30 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-08-20 Stephen White <senorblanco@chromium.org>

Reviewed by Eric Seidel.

Fix for assert in Chromium page cycler: drawRect() was re-using
an SkPaint, but not resetting it before calling
PlatformGraphicsSkia::setupPaintForFilling() a second time. This
CL fixes drawRect(), and re-enables the assert.
http://bugs.webkit.org/show_bug.cgi?id=28172
http://crbug.com/19797

Covered by Chromium page cycler tests.

  • platform/graphics/skia/PlatformContextSkia.cpp: (PlatformContextSkia::drawRect): (PlatformContextSkia::setupPaintCommon):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r47606 r47607  
     12009-08-20  Stephen White  <senorblanco@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Fix for assert in Chromium page cycler:  drawRect() was re-using
     6        an SkPaint, but not resetting it before calling
     7        PlatformGraphicsSkia::setupPaintForFilling() a second time.  This
     8        CL fixes drawRect(), and re-enables the assert.
     9        http://bugs.webkit.org/show_bug.cgi?id=28172
     10        http://crbug.com/19797
     11
     12        Covered by Chromium page cycler tests.
     13
     14        * platform/graphics/skia/PlatformContextSkia.cpp:
     15        (PlatformContextSkia::drawRect):
     16        (PlatformContextSkia::setupPaintCommon):
     17
    1182009-08-20  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/WebCore/platform/graphics/skia/PlatformContextSkia.cpp

    r47546 r47607  
    279279        oldFillShader->safeRef();
    280280        setFillColor(m_state->m_strokeColor);
     281        paint.reset();
    281282        setupPaintForFilling(&paint);
    282283        SkRect topBorder = { rect.fLeft, rect.fTop, rect.fRight, rect.fTop + 1 };
     
    296297void PlatformContextSkia::setupPaintCommon(SkPaint* paint) const
    297298{
    298     // http://trac.webkit.org/changeset/47386/ re-enabled this assert and it
    299     // immediately started being hit in page cycler code.
    300     // FIXME: Re-enable it.
    301 #if defined(SK_DEBUG) && 0
     299#if defined(SK_DEBUG)
    302300    {
    303301        SkPaint defaultPaint;
Note: See TracChangeset for help on using the changeset viewer.