Closed
Bug 739972
Opened 14 years ago
Closed 14 years ago
Stop using GetChildAt in svg layout
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: longsonr, Assigned: longsonr)
References
Details
Attachments
(1 file)
|
2.49 KB,
patch
|
dholbert
:
review+
Ms2ger
:
feedback+
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → longsonr
Attachment #610116 -
Flags: review?(dholbert)
Attachment #610116 -
Flags: feedback?(Ms2ger)
Comment 2•14 years ago
|
||
Comment on attachment 610116 [details] [diff] [review]
patch
Great, thanks a lot!
Attachment #610116 -
Flags: feedback?(Ms2ger) → feedback+
| Assignee | ||
Updated•14 years ago
|
Summary: Stop using GetChildAt svg/layout → Stop using GetChildAt in svg/layout
Comment 3•14 years ago
|
||
Comment on attachment 610116 [details] [diff] [review]
patch
>+++ b/layout/svg/base/src/nsSVGFilterInstance.cpp
>@@ -194,34 +194,33 @@ nsSVGFilterInstance::BuildSources()
> return NS_OK;
> }
>
> nsresult
> nsSVGFilterInstance::BuildPrimitives()
> {
> // First build mFilterInfo. It's important that we don't change that
> // array after we start storing pointers to its elements!
>- PRUint32 count = mFilterElement->GetChildCount();
>- PRUint32 i;
>- for (i = 0; i < count; ++i) {
>- nsIContent* child = mFilterElement->GetChildAt(i);
>+ for (nsIContent* child = mFilterElement->nsINode::GetFirstChild();
>+ child;
>+ child = child->GetNextSibling()) {
Nit: those last 2 lines need 1 more space of indentation.
r=me with that fixed.
Attachment #610116 -
Flags: review?(dholbert) → review+
| Assignee | ||
Comment 4•14 years ago
|
||
Flags: in-testsuite-
Target Milestone: --- → mozilla14
| Assignee | ||
Updated•14 years ago
|
Summary: Stop using GetChildAt in svg/layout → Stop using GetChildAt in svg layout
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
•