TextureMapperGL::beginRoundedRectClip should use TransformationMatrix::mapQuad instead of TransformationMatrix::projectQuad TextureMapperGL::beginRoundedRectClip and TextureMapperGL::beginScissorClip are using projectQuad. But, projectQuad is used mainly for hit testing by using a inversed matrix. projectQuad produces the same results with mapQuad if the transformation matrix has not z-axis transformation. I think there is no actual problem for beginRoundedRectClip and beginScissorClip to use projectQuad. But, it should be mapQuad.
Created attachment 462191 [details] WIP patch
Created attachment 462192 [details] wrong test case (wrong explanation in the test) Because mapQuad has a problem at the moment (bug#244824), this patch introduces a regression in case of w<0.
Created attachment 462193 [details] test case
<rdar://problem/99945034>