Bug 52513

Summary: SVG feDropShadow implementation of SVG Filters 1.2
Product: WebKit Reporter: Dirk Schulze <krit>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dino, eric, gustavo, simon.fraser, webkit-ews, webkit.review.bot, xan.lopez, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch zimmermann: review+

Description Dirk Schulze 2011-01-15 11:54:28 PST
SVG feDropShadow implementation of SVG Filters 1.2.
Comment 1 Dirk Schulze 2011-01-15 12:58:05 PST
Created attachment 79074 [details]
Patch
Comment 2 Dirk Schulze 2011-01-15 12:59:40 PST
I added this patch for discussion.
Comment 3 Early Warning System Bot 2011-01-15 13:25:00 PST
Attachment 79074 [details] did not build on qt:
Build output: http://queues.webkit.org/results/7584083
Comment 4 Dirk Schulze 2011-01-15 14:56:25 PST
Created attachment 79078 [details]
Patch
Comment 5 Dirk Schulze 2011-01-15 14:59:26 PST
Fix for Gtk and Qt. Patch applies nicely to Mac, the bots should get updated more regularly.
Comment 6 WebKit Review Bot 2011-01-17 17:04:26 PST
Attachment 79078 [details] did not build on gtk:
Build output: http://queues.webkit.org/results/7569176
Comment 7 Eric Seidel (no email) 2011-01-24 15:41:10 PST
SVG 1.2 scares me. :)
Comment 8 Dirk Schulze 2011-01-24 15:42:53 PST
(In reply to comment #7)
> SVG 1.2 scares me. :)

Actually it's SVG Filter 1.2, and will be a submodule of SVG 2 ;-)
Comment 9 Dirk Schulze 2011-01-24 15:44:57 PST
Comment on attachment 79078 [details]
Patch

Clearing review flag after talking with Simon. ContextShadow should be land in a different patch.
Comment 10 Dirk Schulze 2011-04-20 11:02:43 PDT
Created attachment 90363 [details]
Patch
Comment 11 Dirk Schulze 2011-04-20 13:05:35 PDT
Comment on attachment 90363 [details]
Patch

Clearing flags on attachment: 90363

Committed r84410: <http://trac.webkit.org/changeset/84410>
Comment 12 Dirk Schulze 2011-04-20 13:05:54 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Dirk Schulze 2011-04-20 13:42:51 PDT
Landed preparation patch. Going on with feDropShadow now.
Comment 14 Dirk Schulze 2011-04-21 05:44:27 PDT
Created attachment 90515 [details]
Patch
Comment 15 Dirk Schulze 2011-04-21 05:46:36 PDT
(In reply to comment #14)
> Created an attachment (id=90515) [details]
> Patch

The patch itself is not that big. But I attached the images of the pixel tests. Don't be afraid.
Comment 16 Nikolas Zimmermann 2011-04-21 06:04:43 PDT
Comment on attachment 90515 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=90515&action=review

Patch looks great, one problem though leading to r-:

> Source/WebCore/svg/SVGFEDropShadowElement.cpp:130
> +    RefPtr<RenderStyle> filterStyle = styleForRenderer();

styleForRenderer()? SVGFEDropShadowElement has it's own renderer through SVGFilterPrimitiveStandardAttributes. You have to ask your renderer for the style, don't do manual style resolution!
(I guess you copied that from another wrong SVGFE* Element?)
Comment 17 Dirk Schulze 2011-04-21 06:38:33 PDT
Created attachment 90524 [details]
Patch
Comment 18 Dirk Schulze 2011-04-21 06:41:09 PDT
(In reply to comment #16)
> (I guess you copied that from another wrong SVGFE* Element?)

It has historical reasons why other SVGFE*Elements don't call the renderer. They didn't have renderers at the beginning. I'll fix the other elements in another bug report.
Comment 19 Nikolas Zimmermann 2011-04-21 07:15:58 PDT
Comment on attachment 90524 [details]
Patch

Looks great, r=me. Note ASSERT(renderer->style()->svgStyle()); this is always true, as the svgStyle gets created.
Make sure it builds before landing though, as discussed on IRC :-)
Comment 20 Dirk Schulze 2011-04-21 10:57:39 PDT
Committed r84522: <http://trac.webkit.org/changeset/84522>
Comment 21 WebKit Review Bot 2011-04-21 11:24:48 PDT
http://trac.webkit.org/changeset/84522 might have broken Qt Linux ARMv7 Release, Qt Windows 32-bit Release, and Qt Windows 32-bit Debug
Comment 22 Dirk Schulze 2011-04-21 11:45:30 PDT
Committed r84530: <http://trac.webkit.org/changeset/84530>
Comment 23 Dirk Schulze 2011-04-21 12:23:09 PDT
Committed r84537: <http://trac.webkit.org/changeset/84537>
Comment 24 Dirk Schulze 2011-04-21 12:50:16 PDT
Committed r84541: <http://trac.webkit.org/changeset/84541>
Comment 25 Simon Fraser (smfr) 2011-04-28 10:05:18 PDT
The new ShadowBlur code fails to handle vertical or horizontal radii of 0. I guess this wasn't tested? Bug 59710.