Closed Bug 1418851 Opened 7 years ago Closed 7 years ago

nsDisplayList::Count() doc incorrectly states that it is "linear time" but it is now constant

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(1 file)

Bug 1404181 modified nsDisplayList::Count() from a linear-time algorithm (going through the list item by item) to constant-time (just returning the known length). But the comment above the function declaration still states that it is "linear time". For bonus points, the definition could probably be inlined.
Assignee: nobody → gsquelart
Comment on attachment 8930259 [details] Bug 1418851 - Inlined constant-time definition of nsDisplayItem::Count() - https://reviewboard.mozilla.org/r/201388/#review206526
Attachment #8930259 - Flags: review?(matt.woodrow) → review+
Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67aa5b9539e8 Inlined constant-time definition of nsDisplayItem::Count() - r=mattwoodrow
Thank you Matt for the quick review.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Blocks: 1467514
No longer blocks: 1467514
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: