Closed
Bug 1395945
Opened 7 years ago
Closed 7 years ago
Remove child array getter
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: catalinb, Assigned: catalinb)
References
Details
Attachments
(1 file)
10.24 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
This is an easy one. Get rid of ::GetChildArray.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8903571 -
Flags: review?(ehsan)
Comment 2•7 years ago
|
||
Comment on attachment 8903571 [details] [diff] [review]
Remove child array getter.
Review of attachment 8903571 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thank you!
::: dom/base/nsINode.h
@@ +1281,2 @@
>
> + return count > 0 ? GetChildAt(count - 1) : nullptr;
Hmm... Do we have a plan to get rid of this call to GetChildAt() at some point too somehow?
Attachment #8903571 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo please, extremely long backlog) from comment #2)
> Comment on attachment 8903571 [details] [diff] [review]
> Remove child array getter.
>
> Review of attachment 8903571 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Nice, thank you!
>
> ::: dom/base/nsINode.h
> @@ +1281,2 @@
> >
> > + return count > 0 ? GetChildAt(count - 1) : nullptr;
>
> Hmm... Do we have a plan to get rid of this call to GetChildAt() at some
> point too somehow?
Yes, GetLastChild() will return mFirstChild->mPreviousChild which is the last child.
Pushed by catalin.badea392@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b137fb389c95
Remove child array getter. r=ehsan
![]() |
||
Comment 5•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•