The clip out operation does not work properly if the surface is smaller than the path for the clipping.
Submitted by Gwang Yoon Hwang
Assigned to Chris Wilson
Created attachment 130915 Patch includes test cases and expected results
Whenever we are going to draw a text box with decorations, WebKit clips out the in side of the text box to prevent bleeding while filling patterns.
However, Cairo doesn't apply clips properly if the follwing conditions are satisfied:
(1) Creates and apply a path for the clipping out which is not rectanglar. (2) Creates and apply a path for the cliping in after the clip out operation. (3) The filling area of the clipping out and the filling area of the clipping in does not intersect on the target surface.
I attached test cases for this bug and expected results.
Attachment 130915, "Patch includes test cases and expected results":