RESOLVED FIXED 67242
Don't round-trip through TransformationMatrix in SVGImageBufferTools::clearAffineTransform2DRotation
https://bugs.webkit.org/show_bug.cgi?id=67242
Summary Don't round-trip through TransformationMatrix in SVGImageBufferTools::clearAf...
Tim Horton
Reported 2011-08-30 15:54:41 PDT
https://bugs.webkit.org/show_bug.cgi?id=53055 will introduce SVGImageBufferTools::clearAffineTransform2DRotation, which currently round-trips through TransformationMatrix to decompose and clear the 2D rotation. In that bug, Dirk raised concerns about this, performance-wise, so it would be good to fix.
Attachments
initial patch (8.02 KB, patch)
2011-09-02 16:05 PDT, Tim Horton
no flags
style fix (8.01 KB, patch)
2011-09-02 16:08 PDT, Tim Horton
thorton: review-
webkit.review.bot: commit-queue-
new patch, fixing test failures (8.00 KB, patch)
2011-09-06 15:15 PDT, Tim Horton
no flags
patch (8.00 KB, patch)
2011-09-06 15:43 PDT, Tim Horton
krit: review+
krit: commit-queue-
Tim Horton
Comment 1 2011-09-02 11:13:00 PDT
After all that fuss, we already have the code, we just don't expose it. Patch coming shortly.
Radar WebKit Bug Importer
Comment 2 2011-09-02 15:59:20 PDT
Tim Horton
Comment 3 2011-09-02 16:05:42 PDT
Created attachment 106214 [details] initial patch
WebKit Review Bot
Comment 4 2011-09-02 16:07:19 PDT
Attachment 106214 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/transforms/AffineTransform.h:192: The parameter name "decomp" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/platform/graphics/transforms/AffineTransform.h:193: The parameter name "decomp" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 5 2011-09-02 16:08:52 PDT
Created attachment 106215 [details] style fix
WebKit Review Bot
Comment 6 2011-09-02 17:01:25 PDT
Comment on attachment 106215 [details] style fix Attachment 106215 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9587132 New failing tests: svg/custom/stroked-pattern.svg svg/custom/non-scaling-stroke.svg svg/transforms/text-with-pattern-inside-transformed-html.xhtml svg/custom/pattern-no-pixelation.svg svg/custom/nested-pattern-boundingBoxModeContent.svg svg/custom/js-late-pattern-and-object-creation.svg svg/custom/js-late-pattern-creation.svg
Dirk Schulze
Comment 7 2011-09-02 22:28:00 PDT
Comment on attachment 106215 [details] style fix View in context: https://bugs.webkit.org/attachment.cgi?id=106215&action=review Missmatch on chromium: svg/custom/svg-fonts-word-spacing.html = IMAGE+TEXT Is that related to your patch? Please check this before landing. > Source/WebCore/platform/graphics/transforms/AffineTransform.cpp:310 > + srA.angle -= piDouble * 2.0; If you are already touching the code... s/2.0/2/ for every appearance. > Source/WebCore/platform/graphics/transforms/AffineTransform.cpp:344 > + if (m.a() * m.d() - m.c() * m.b() < 0.0) { s/0.0/0/ > Source/WebCore/rendering/svg/SVGImageBufferTools.cpp:130 > + decomposition.angle = 0.0; s/0.0/0/
Tim Horton
Comment 8 2011-09-06 14:46:48 PDT
Something is going quite wrong; look at svg/custom/pattern-no-pixelation.svg for example. I'll take a look, but this definitely can't land as-is!
Tim Horton
Comment 9 2011-09-06 15:12:09 PDT
(In reply to comment #8) > Something is going quite wrong; look at svg/custom/pattern-no-pixelation.svg for example. I'll take a look, but this definitely can't land as-is! Ah, I reordered the recompose completely incorrectly.
Tim Horton
Comment 10 2011-09-06 15:15:26 PDT
Created attachment 106496 [details] new patch, fixing test failures
Tim Horton
Comment 11 2011-09-06 15:43:18 PDT
Dirk Schulze
Comment 12 2011-09-06 23:51:23 PDT
Comment on attachment 106504 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=106504&action=review r=me with one snippet. > Source/WebCore/rendering/svg/SVGImageBufferTools.cpp:130 > + decomposition.angle = 0.0; s/0.0/0/ :)
Tim Horton
Comment 13 2011-09-07 10:16:52 PDT
Landed in r94679
Note You need to log in before you can comment on or make changes to this bug.