[Webkit-unassigned] [Bug 38598] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.transformation.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 5 12:20:25 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38598


qi <qi.2.zhang at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #55141|                            |review?
               Flag|                            |




--- Comment #1 from qi <qi.2.zhang at nokia.com>  2010-05-05 12:20:24 PST ---
Created an attachment (id=55141)
 --> (https://bugs.webkit.org/attachment.cgi?id=55141)
patch

Due to QPainterPath.isEmpty "Returns true if either there are no elements in
this path, or if the only element is a MoveToElement; otherwise returns
false.", when QTransform try to transform a QPainterPath, if the path only have
MoveToElement, it will not transform actually.

In this case, the translation function happen after moveto, then the start
pointer didn't tranformed.

ctx.fillStyle = '#0f0';
ctx.beginPath();
ctx.moveTo(0, 50);
ctx.translate(100, 0);
ctx.arcTo(50, 50, 50, 0, 50);
ctx.lineTo(-100, 0);
ctx.fill();

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list