Closed Bug 1357681 Opened 9 years ago Closed 9 years ago

Create a document for mask-image only if the url of mask source contains element id

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: u459114, Assigned: u459114)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We currently always create a document for mask-image with url value. It's a waste if there is no element id in url, since that kind of resource can be used as image only, not svg-mask.
We can check whether maskUri has a reference at [1], if it doesn't, no bother to create a svg document in nsReferencedElement::Reset [1] https://hg.mozilla.org/mozilla-central/file/39a3c3fbfabd/layout/svg/nsSVGEffects.cpp#l398
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: