Changeset 65118 in webkit


Ignore:
Timestamp:
Aug 10, 2010 8:10:51 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-08-10 Matthew Delaney <mdelaney@apple.com>

Reviewed by Darin Adler.

2d.path.clip.empty.html test is failing
https://bugs.webkit.org/show_bug.cgi?id=43161

  • platform/mac/Skipped: Unskipping now passing path.clip.empty

2010-08-10 Matthew Delaney <mdelaney@apple.com>

Reviewed by Darin Adler.

2d.path.clip.empty.html test is failing
https://bugs.webkit.org/show_bug.cgi?id=43161

  • platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::clip): Catching the empty path case from being sent directly to CGContextClip - which would ignore it. Instead, using CGContextClip with a CGRectZero to achieve the desired behavior of reducing the clipping region to nothing.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r65113 r65118  
     12010-08-10  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        2d.path.clip.empty.html test is failing
     6        https://bugs.webkit.org/show_bug.cgi?id=43161
     7
     8        * platform/mac/Skipped: Unskipping now passing path.clip.empty
     9
    1102010-08-10  Sergio Villar Senin  <svillar@igalia.com>
    211
  • trunk/LayoutTests/platform/mac/Skipped

    r64845 r65118  
    162162# Failing canvas test cases from http://philip.html5.org/tests/canvas/suite/tests/
    163163canvas/philip/tests/2d.drawImage.broken.html
    164 canvas/philip/tests/2d.path.clip.empty.html
    165164canvas/philip/tests/2d.composite.operation.clear.html
    166165canvas/philip/tests/2d.composite.operation.darker.html
  • trunk/WebCore/ChangeLog

    r65117 r65118  
     12010-08-10  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        2d.path.clip.empty.html test is failing
     6        https://bugs.webkit.org/show_bug.cgi?id=43161
     7
     8        * platform/graphics/cg/GraphicsContextCG.cpp:
     9        (WebCore::GraphicsContext::clip):
     10        Catching the empty path case from being sent directly to
     11        CGContextClip - which would ignore it. Instead, using
     12        CGContextClip with a CGRectZero to achieve the desired
     13        behavior of reducing the clipping region to nothing.
     14
    1152010-08-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r63864 r65118  
    951951        return;
    952952    CGContextRef context = platformContext();
    953     CGContextBeginPath(context);
    954     CGContextAddPath(context, path.platformPath());
    955     CGContextClip(context);
     953
     954    // CGContextClip does nothing if the path is empty, so in this case, we
     955    // instead clip against a zero rect to reduce the clipping region to
     956    // nothing - which is the intended behavior of clip() if the path is empty.   
     957    if (path.isEmpty())
     958        CGContextClipToRect(context, CGRectZero);
     959    else {
     960        CGContextBeginPath(context);
     961        CGContextAddPath(context, path.platformPath());
     962        CGContextClip(context);
     963    }
    956964    m_data->clip(path);
    957965}
Note: See TracChangeset for help on using the changeset viewer.