GNOME Bugzilla – Bug 723159
CSD shadows are clipped
Last modified: 2014-02-05 09:06:45 UTC
Created attachment 267392 [details] Screenshot of clipped shadows It looks like GTK+ renders bigger shadows than specified in CSS box-shadow radius. If I add radius += 10 in _gtk_css_shadows_value_get_extents, the shadows are drawn OK.
Created attachment 267959 [details] [review] css: Fix computation of pixels occupied by blur radius These computations were done randomly in lots of places and more often than not, they were also wrong. This function was copied (with docs) from Firefox: http://lxr.mozilla.org/mozilla-central/source/gfx/2d/Blur.cpp
Attachment 267959 [details] pushed as e9fb8ad - css: Fix computation of pixels occupied by blur radius
Review of attachment 267959 [details] [review]: (3 * sqrt(2 * pi) / 4) * 1.5 = 2.8 - that's way too much, 2 should be enough (I've tried it with pure black shadow of radiuses 12 and 64). The blur algorithm in GTK+ isn't a triple box blur at all.
Created attachment 268136 [details] [review] css: Fix the fix of blur clip radius