|Summary:||WebKit does not respect clip paths of a 0x0 rect|
|Product:||WebKit||Reporter:||Eric Seidel (no email) <eric>|
|Version:||523.x (Safari 3)|
|OS:||OS X 10.4|
Description Eric Seidel (no email) 2007-09-26 14:11:27 PDT
WebKit does not respect clip paths of a 0x0 rect I'm not certain what the proper behavior here is. Likely given a 0x0 rect as the clip path the clip should be completely empty (that's what firefox seems to do, and that's what the test I created expects).
Comment 1 Eric Seidel (no email) 2007-09-26 14:12:08 PDT
Created attachment 16402 [details] simple test case
Comment 2 Rob Buis 2007-12-05 13:17:08 PST
Created attachment 17724 [details] First attempt This patch implements the clipping of empty clip paths just like FF and Opera do it. The changed test results are because text clipping does not work yet (I assume), as text probably doesnt do toPathData yet, so the behaviour is the same as just having an empty clip path. Cheers, Rob.
Comment 3 mitz 2007-12-05 13:34:33 PST
Comment on attachment 17724 [details] First attempt + pathData.addRect(FloatRect( 0, 0, 0, 0 )); I think just FloatRect() should work. Make sure it also does the right thing for for a 0 x n rect. r=me