Add transform() support to Canvas
Created attachment 18893 [details] Patch to support transform
Comment on attachment 18893 [details] Patch to support transform + state().m_path.transform(transform.inverse()); Is the transform guaranteed to be invertible? If not, what happens? Does a test case cover this?
Comment on attachment 18893 [details] Patch to support transform Looks good, assuming isfinite checks for NaN as well as infinities (I am not sure if it does). r=me but please double-check that detail.
Landed r29956 -- added an additional nan testcase
(In reply to comment #3) > Looks good, assuming isfinite checks for NaN as well as infinities (I am not > sure if it does). Yes, isfinite(x) === !isnan(x) && !isinf(x).
(In reply to comment #2) > (From update of attachment 18893 [details] [edit]) > + state().m_path.transform(transform.inverse()); > > Is the transform guaranteed to be invertible? If not, what happens? Does a test > case cover this? Ollie?
Darin, whoops, didn't see your comment. It's safe -- it's equivalent to scale(0,0) for example. That said it should have a testcase which i'll work on after i eat