Closed Bug 113156 Opened 24 years ago Closed 24 years ago

<polyline> needs to close open subpaths before filling

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bbaetz, Assigned: bbaetz)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Note that we have to do this always, since the ART_MOVETO_OPEN has to be changed to ART_MOVETO. OK, this was a bit more than 20 lines, mainly because I didn't realise that we had to do this for each subpath, not for each path. :) Patch coming
Attached patch patch (obsolete) — Splinter Review
Blocks: 38654
We don't *always* have to do this. E.g. <polygon> elements make a call to nsASVGPathBuilder::Close() to ensure that their ART_MOVETO_OPEN is changed to ART_MOVETO. Also, most paths will be closed properly (using 'z'). Filling a non- closed shape is probably the exception, hence I think we should check before re- allocing.
Attached patch how's this?Splinter Review
Attachment #60089 - Attachment is obsolete: true
r=afri. Looks good to me.
Checked into branch
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: