Bug 120590 - Use edgeMode=duplicate for blurring on filter() function
Summary: Use edgeMode=duplicate for blurring on filter() function
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Schulze
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-01 23:34 PDT by Dirk Schulze
Modified: 2013-09-02 08:03 PDT (History)
9 users (show)

See Also:


Attachments
Patch (8.97 KB, patch)
2013-09-02 01:39 PDT, Dirk Schulze
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2013-09-01 23:34:14 PDT
Filters on the CSS Image function filter() are not allowed to extend the dimension of the input image. This causes weird results on blurring an image, where the fading on the edges is clipped at the half of the fading. We shouldn't fade edges at all and use the edgeMode=duplicate instead. This will duplicate the pixel value on the nearest edge of the input image instead of taking transparent black and results in nice blurred images with sharp edges.
Comment 1 Dirk Schulze 2013-09-02 01:39:28 PDT
Created attachment 210269 [details]
Patch
Comment 2 WebKit Commit Bot 2013-09-02 08:02:57 PDT
Comment on attachment 210269 [details]
Patch

Clearing flags on attachment: 210269

Committed r154954: <http://trac.webkit.org/changeset/154954>
Comment 3 WebKit Commit Bot 2013-09-02 08:03:00 PDT
All reviewed patches have been landed.  Closing bug.