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).
Created attachment 16402 [details]
simple test case
Created attachment 17724 [details]
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.
Comment on attachment 17724 [details]
+ 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.
Landed in r28483.