[Webkit-unassigned] [Bug 38704] SVG pattern size changed when resizing browser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 00:35:36 PDT 2010


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





--- Comment #14 from Steven Lai <s3lance at hotmail.com>  2010-05-07 00:35:36 PST ---

> We have isIdentityOrTranslationOrFlipped() you can start with. If we want to
> clip to the target element boundaries, we need to be carefull, if we fil the
> target or stroke the target with the pattern. It's saver to take the
> strokeBoundaries of the object instead of the boundingBox.

We can also determine if the matrix represents any skewing too
Consider the 2x2 portion of the CTM

[ a b ]
[ c d ]

for rotation, scaling, and flipping, the row vectors [ a b ] and [ c d ] are
orthogonal, thus we can check if the dot product is (close to) zero

then, we could decompose the matrix by normalizing the vector [ a b ] and [ c d
], determine flipping by inspecting the signs of the components, and use
atan2() to find the rotation angle


perhaps skewing is hard because even if we know the skewed pattern tile rect
fully encloses the clipping rect, we still have to think how we should clip it

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