WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
76482
[CG] Rasterized scaling of transformed SVG shapes with gradient fill and -webkit-svg-shadow applied
https://bugs.webkit.org/show_bug.cgi?id=76482
Summary
[CG] Rasterized scaling of transformed SVG shapes with gradient fill and -web...
Tim Horton
Reported
2012-01-17 15:04:19 PST
The attached repro case demonstrates that applying a scale() transform to an SVG shape that has both gradient fill and the CSS -webkit-svg-shadow property applied will result in rasterized scaling of the shape. <
rdar://problem/10415483
> I have a patch.
Attachments
repro
(940 bytes, image/svg+xml)
2012-01-17 15:04 PST
,
Tim Horton
no flags
Details
patch
(111.07 KB, patch)
2012-01-17 15:38 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
patch v.2
(110.43 KB, patch)
2012-01-17 16:41 PST
,
Tim Horton
simon.fraser
: review+
simon.fraser
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2012-01-17 15:04:48 PST
Created
attachment 122820
[details]
repro
Tim Horton
Comment 2
2012-01-17 15:38:05 PST
Created
attachment 122825
[details]
patch
Tim Horton
Comment 3
2012-01-17 16:12:53 PST
I just found an issue with zooming and ::strokeRect, so clearing review for now.
Tim Horton
Comment 4
2012-01-17 16:41:59 PST
Created
attachment 122838
[details]
patch v.2
Simon Fraser (smfr)
Comment 5
2012-01-17 19:28:08 PST
Comment on
attachment 122838
[details]
patch v.2 View in context:
https://bugs.webkit.org/attachment.cgi?id=122838&action=review
> Source/WebCore/platform/graphics/transforms/AffineTransform.cpp:257 > + double width2, height2; > + width2 = size.width() * xScale(); > + height2 = size.height() * yScale();
Just do: double width2 = double height2 = Why the '2'?
> Source/WebCore/platform/graphics/transforms/AffineTransform.cpp:266 > + double width2, height2; > + width2 = size.width() * xScale(); > + height2 = size.height() * yScale();
Ditto.
WebKit Review Bot
Comment 6
2012-01-17 19:28:25 PST
Comment on
attachment 122838
[details]
patch v.2
Attachment 122838
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11283028
New failing tests: svg/custom/transform-with-shadow-and-gradient.svg
Tim Horton
Comment 7
2012-01-18 10:50:44 PST
Landed as
http://trac.webkit.org/changeset/105296
with half of Simon's changes (I used the "2" suffix to fit in with that function's siblings).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug