Changeset 71716 in webkit


Ignore:
Timestamp:
Nov 9, 2010 9:06:48 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-09 Helder Correia <helder@sencha.com>

Reviewed by Darin Adler.

Philip Canvas test 2d.path.rect.winding fails
https://bugs.webkit.org/show_bug.cgi?id=49225

Remove test from skipped list.

  • platform/gtk/Skipped:
  • platform/mac-leopard/Skipped:
  • platform/qt/Skipped:

2010-11-09 Helder Correia <helder@sencha.com>

Reviewed by Darin Adler.

Philip Canvas test 2d.path.rect.winding fails
https://bugs.webkit.org/show_bug.cgi?id=49225

Rect path direction is important for nonzero winding rule.

The rect(x, y, w, h) method must create a new subpath containing just the four points
(x, y), (x+w, y), (x+w, y+h), (x, y+h), with those four points connected by straight
lines, and must then mark the subpath as closed.

  • html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::rect):
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r71713 r71716  
     12010-11-09  Helder Correia  <helder@sencha.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Philip Canvas test 2d.path.rect.winding fails
     6        https://bugs.webkit.org/show_bug.cgi?id=49225
     7
     8        Remove test from skipped list.
     9
     10        * platform/gtk/Skipped:
     11        * platform/mac-leopard/Skipped:
     12        * platform/qt/Skipped:
     13
    1142010-11-09  Adrienne Walker  <enne@google.com>
    215
  • trunk/LayoutTests/platform/gtk/Skipped

    r71696 r71716  
    53355335canvas/philip/tests/2d.path.arcTo.ensuresubpath.2.html
    53365336canvas/philip/tests/2d.path.clip.empty.html
    5337 canvas/philip/tests/2d.path.rect.winding.html
    53385337canvas/philip/tests/2d.pattern.image.broken.html
    53395338canvas/philip/tests/2d.pattern.image.incomplete.html
  • trunk/LayoutTests/platform/mac-leopard/Skipped

    r71707 r71716  
    131131canvas/philip/tests/2d.path.arcTo.ensuresubpath.2.html
    132132canvas/philip/tests/2d.path.clip.empty.html
    133 canvas/philip/tests/2d.path.rect.winding.html
    134133canvas/philip/tests/2d.pattern.image.broken.html
    135134canvas/philip/tests/2d.pattern.image.incomplete.html
  • trunk/LayoutTests/platform/qt/Skipped

    r71617 r71716  
    50645064canvas/philip/tests/2d.path.quadraticCurveTo.shape.html
    50655065canvas/philip/tests/2d.path.quadraticCurveTo.scaled.html
    5066 canvas/philip/tests/2d.path.rect.winding.html
    50675066canvas/philip/tests/2d.path.rect.zero.6.html
    50685067canvas/philip/tests/2d.path.stroke.scale2.html
  • trunk/WebCore/ChangeLog

    r71715 r71716  
     12010-11-09  Helder Correia  <helder@sencha.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Philip Canvas test 2d.path.rect.winding fails
     6        https://bugs.webkit.org/show_bug.cgi?id=49225
     7
     8        Rect path direction is important for nonzero winding rule.
     9
     10        The rect(x, y, w, h) method must create a new subpath containing just the four points
     11        (x, y), (x+w, y), (x+w, y+h), (x, y+h), with those four points connected by straight
     12        lines, and must then mark the subpath as closed.
     13
     14        * html/canvas/CanvasRenderingContext2D.cpp:
     15        (WebCore::CanvasRenderingContext2D::rect):
     16
    1172010-11-09  Fumitoshi Ukai  <ukai@chromium.org>
    218
  • trunk/WebCore/html/canvas/CanvasRenderingContext2D.cpp

    r70957 r71716  
    794794    }
    795795
    796     if (width < 0) {
    797         width = -width;
    798         x -= width;
    799     }
    800 
    801     if (height < 0) {
    802         height = -height;
    803         y -= height;
    804     }
    805 
    806796    m_path.addRect(FloatRect(x, y, width, height));
    807797}
Note: See TracChangeset for help on using the changeset viewer.