Closed Bug 620144 Opened 14 years ago Closed 14 years ago

clip paths and masks that can't be resolved should be ignored

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: longsonr, Assigned: longsonr)

References

Details

Attachments

(1 file, 1 obsolete file)

currently we stop drawing if we fail to resolve a clip path or a mask. SVG 1.1 2nd edition changed so say that we should draw the object unclipped or unmasked.
Assignee: nobody → longsonr
Attached patch patch (obsolete) — Splinter Review
Attachment #498543 - Flags: review?(jwatt)
Comment on attachment 498543 [details] [diff] [review]
patch

r=jwatt

>+	<rect x="0%" y="0%" width="100%" height="100%" fill="red"/>
>+	<rect x="0%" y="0%" width="100%" height="100%" fill="lime" clipPath="url(#null)"/>		

You don't need the x or y in your tests, if you can be bothered to remove them.

>      * @return the clip-path frame, or null if there is no clip-path frame
>      * @param aOK if a clip-path was specified but the designated element
>-     * does not exist or is an element of the wrong type, *aOK is set
>-     * to false. Otherwise *aOK is untouched.
>+     * is an element of the wrong type, *aOK is set to false.
>+     * Otherwise *aOK is untouched.

s/specified but the/specified and the/
s/is an element of the wrong type/exists but is an element of the wrong type/

>      * @return the mask frame, or null if there is no mask frame
>      * @param aOK if a mask was specified but the designated element
>-     * does not exist or is an element of the wrong type, *aOK is set
>-     * to false. Otherwise *aOK is untouched.
>+     * is an element of the wrong type, *aOK is set to false.
>+     * Otherwise *aOK is untouched.

same
Attachment #498543 - Flags: review?(jwatt) → review+
Attachment #498543 - Attachment is obsolete: true
Attachment #498621 - Flags: approval2.0?
Comment on attachment 498621 [details] [diff] [review]
address review comments

thanks
Attachment #498621 - Flags: review+
Keywords: checkin-needed
Whiteboard: [needs landing]
http://hg.mozilla.org/mozilla-central/rev/0ca1b65bb907
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [needs landing]
Flags: in-testsuite+
Depends on: 679933
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: