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)
Core
Layout
Tracking
()
RESOLVED
INVALID
People
(Reporter: u459114, Assigned: u459114)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
Details |
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
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
We had prevent this kind of download at
http://searchfox.org/mozilla-central/source/dom/base/nsReferencedElement.cpp#41
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.
Description
•