Closed
Bug 455226
Opened 16 years ago
Closed 16 years ago
Removing the xlink:href attribute of an feImage filter does not cause it to change
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: longsonr, Assigned: longsonr)
References
Details
(Keywords: regression, testcase)
Attachments
(3 files, 1 obsolete file)
1.06 KB,
image/svg+xml
|
Details | |
8.16 KB,
patch
|
Details | Diff | Splinter Review | |
2.51 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•16 years ago
|
||
nsImageLoadingContent::LoadImage now does nothing when presented with the unset URI
Assignee | ||
Comment 2•16 years ago
|
||
I imagine you can get the same failure to refresh when removing the xlink:href attribute of an ordinary SVG image element or the src attribute of an HTML image element.
Comment 3•16 years ago
|
||
Removing the src attribute of an HTML image element never "refreshed" (for compat reasons). See lack of UnsetAttr override. Note that loading "" is the wrong thing to do when the src is unset; the right thing to do is to drop the existing image, not do a bogus load, unless you mean to tell me that <svg:image/> and <svg:image src=""/> should have identical behavior (I'm not buying it). So sounds like we need the following changes: 1) Fix the SVG code to not do bogus loads. 2) If SVG expects href="" to work, add a boolean to LoadImage() that would allow callers to force it to work.
Flags: blocking1.9.1?
Comment 4•16 years ago
|
||
s/src=""/xlink:href=""/ of course.
Assignee | ||
Comment 5•16 years ago
|
||
Needed to change from DidChangeString as that is called too early for HasAttr to work correctly.
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Attachment #338623 -
Flags: superreview?(bzbarsky)
Attachment #338623 -
Flags: review?(bzbarsky)
Comment 6•16 years ago
|
||
Comment on attachment 338623 [details] [diff] [review] patch >+++ b/content/svg/content/src/nsSVGFilters.cpp >+nsSVGFEImageElement::AfterSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, >+ if (HasAttr(kNameSpaceID_XLink, nsGkAtoms::href)) { if (aValue) { seems faster, no? Same thing in nsSVGImageElement, and looks good.
Attachment #338623 -
Flags: superreview?(bzbarsky)
Attachment #338623 -
Flags: superreview+
Attachment #338623 -
Flags: review?(bzbarsky)
Attachment #338623 -
Flags: review+
Assignee | ||
Comment 7•16 years ago
|
||
Attachment #338623 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 8•16 years ago
|
||
Comment on attachment 339258 [details] [diff] [review] address review comment [Checkin: Comment 8] http://hg.mozilla.org/mozilla-central/rev/72a9124cdb20
Attachment #339258 -
Attachment description: address review comment → address review comment
[Checkin: Comment 8]
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: blocking1.9.1?
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
Assignee | ||
Comment 9•16 years ago
|
||
Assignee | ||
Comment 10•16 years ago
|
||
reftest was already checked in as part of bug 448831 and was enabled by 32f14bc9bdda
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•