Summary: | WebKit does not respect clip paths of a 0x0 rect | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||||
Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | ||||||||
Priority: | P2 | ||||||||
Version: | 523.x (Safari 3) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Eric Seidel (no email)
2007-09-26 14:11:27 PDT
Created attachment 16402 [details]
simple test case
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 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
|