Bug 50303 - [Cairo] Solid shadows in contexts with scaling transformation matrices appear blurry
Summary: [Cairo] Solid shadows in contexts with scaling transformation matrices appear...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Normal
Assignee: Dominik Röttsches (drott)
URL:
Keywords: Gtk
Depends on: 50283
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-30 17:31 PST by Martin Robinson
Modified: 2012-06-01 08:42 PDT (History)
1 user (show)

See Also:


Attachments
Current result (32.60 KB, image/png)
2012-06-01 04:40 PDT, Dominik Röttsches (drott)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2010-11-30 17:31:40 PST
When figure in a context with a scaling transformation matrix has a solid shadow, that shadow is rendered blurry in proportion to the magnitude of the scale. I believe what's happening here is that cairo is mask and stretching the edge. This can be observed by looking at fast/canvas/canvas-scale-fillPath-shadow.html. The solid shadow has a blurry edge.
Comment 1 Dominik Röttsches (drott) 2012-06-01 04:40:51 PDT
Created attachment 145270 [details]
Current result

Martin, can you explain a bit more what you think goes wrong? 
Looking at the source of the test, line 56 has:
ctx.shadowBlur = 10;
So I believe, the two rightmost red rectangles are actually supposed to have blurry edges.
I tested this with Debug GTKLauncher on r119211. So I can't see anything wrong here, we may close this issue.
Comment 2 Martin Robinson 2012-06-01 08:42:46 PDT
Looks okay to me now too. Perhaps this was a bug in Cairo or was fixed by some other change!