Bug 89456 - [SKIA] Clip path and mask combinations leave artifacts
Summary: [SKIA] Clip path and mask combinations leave artifacts
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-19 03:41 PDT by Branimir Lambov
Modified: 2013-04-09 13:18 PDT (History)
2 users (show)

See Also:


Attachments
Testcase (6.18 KB, image/svg+xml)
2012-06-19 03:41 PDT, Branimir Lambov
no flags Details
Screenshot with artifacts on left side (13.20 KB, image/png)
2012-06-19 03:54 PDT, Branimir Lambov
no flags Details
Testcase with simple and complex clipping (6.34 KB, image/svg+xml)
2012-06-19 05:19 PDT, Branimir Lambov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Branimir Lambov 2012-06-19 03:41:48 PDT
Created attachment 148306 [details]
Testcase

The attached file displays a few copies of an image masked by itself. On the left side it is also under a clip-path that is as big as the image.

The clip-path should not have any effect on the displayed images. In Firefox, Opera, as well as Safari, the left side exactly matches the right. 

Chrome draws one-pixel wide lines around the object that change with zoom levels (the image is only fine if it is perfectly aligned on pixel boundaries).
Comment 1 Branimir Lambov 2012-06-19 03:54:06 PDT
Created attachment 148307 [details]
Screenshot with artifacts on left side
Comment 2 Branimir Lambov 2012-06-19 05:14:47 PDT
Note: If the clipping path is complex (i.e. containing more than one path and thus skipping pathOnlyClipping (http://code.google.com/p/chromium/source/search?q=RenderSVGResourceClipper%3A%3ApathOnlyClipping&origq=RenderSVGResourceClipper%3A%3ApathOnlyClipping&btnG=Search+Trunk)), the images are drawn properly.
Comment 3 Branimir Lambov 2012-06-19 05:19:49 PDT
Created attachment 148316 [details]
Testcase with simple and complex clipping

This uses pathOnlyClipping on the left side and forces image buffer clipping on the right by including an additional empty <rect /> in the clip path. The right side is OK, the left one has artifacts.