[Webkit-unassigned] [Bug 18694] [CAIRO] Problem with rotation in a given matrix in SVG
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 27 23:08:06 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18694
------- Comment #3 from vbs85 at gmx.de 2008-04-27 23:08 PDT -------
(In reply to comment #2)
> I searched in GraphicsContestCairo and found the method
> void GraphicsContext::concatCTM(const AffineTransform& transform)
> In this method "transform" is changed back to a cairo_matrix_t with
> reinterpret_cast.
You can replace reinterpret_cast:
const cairo_matrix_t* matrix = reinterpret_cast<const
cairo_matrix_t*>(&transform);
cairo_transform(cr, matrix);
to
cairo_matrix_t matrix = cairo_matrix_t(transform);
cairo_transform(cr, &matrix);
The code don't use reinterpret_cast but it doesn't solve the problem. You still
have to change b to a and a to b in AffineTransform.
I searched through the source-code of webkit with grep and SVG is the only one
that use this method. I shoulnd't be a problem to fix it that way.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list