Closed
Bug 739591
Opened 14 years ago
Closed 14 years ago
Implement filter xlink:href
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: longsonr, Assigned: longsonr)
References
()
Details
Attachments
(1 file)
|
16.74 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Should be able to link filters via xlink:href so that any attributes which are defined on the referenced ‘filter’ element which are not defined on the current element are inherited.
We already implement this for gradients and patterns and the new code follows the approach taken there.
| Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → longsonr
Attachment #609706 -
Flags: review?(roc)
| Assignee | ||
Updated•14 years ago
|
Attachment #609706 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 2•14 years ago
|
||
Flags: in-testsuite+
Target Milestone: --- → mozilla14
Comment 3•14 years ago
|
||
Comment on attachment 609706 [details] [diff] [review]
patch with reftest
Review of attachment 609706 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/svg/base/src/nsSVGFilterFrame.cpp
@@ +304,5 @@
> +nsSVGFilterFrame::GetFilterContent(nsIContent *aDefault)
> +{
> + PRUint32 count = mContent->GetChildCount();
> + for (PRUint32 i = 0; i < count; ++i) {
> + nsIContent* child = mContent->GetChildAt(i);
This will be O(n^2) once we remove the array-based storage... We've been working to remove this pattern in favour of
for (nsIContent* child = mContent->GetFirstChild();
child;
child = child->GetNextSibling())
| Assignee | ||
Comment 4•14 years ago
|
||
(In reply to Ms2ger from comment #3)
Probably best to raise another bug so that http://mxr.mozilla.org/mozilla-central/source/layout/svg/base/src/nsSVGFilterInstance.cpp#202 can be addressed too.
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•