[Webkit-unassigned] [Bug 67652] Negative width/height values not always treated properly by 2D canvas drawImage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 22 23:21:55 PDT 2013


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





--- Comment #7 from Rashmi Shyamasundar <rashmi.s2 at samsung.com>  2013-06-22 23:20:35 PST ---
Dear Mr. Martin Robinson,

Below are the few lines which I have extracted from the canvas spec - http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-path-addtext .

"The source rectangle is the rectangle whose corners are the four points (sx, sy), (sx+sw, sy), (sx+sw, sy+sh), (sx, sy+sh).

The destination rectangle is the rectangle whose corners are the four points (dx, dy), (dx+dw, dy), (dx+dw, dy+dh), (dx, dy+dh).

When the source rectangle is outside the source image, the source rectangle must be clipped to the source image and the destination rectangle must be clipped in the same proportion."

Currently, webkit does not conform to this spec.

The patch I am uploading now, shows the approach which we can take to conform to the above spec. If the approach looks fine, please let me know. I will thoroughly test this patch and write the required layout tests.

Thanks,
Rashmi

-- 
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