Closed Bug 1149854 Opened 11 years ago Closed 11 years ago

Use range-based "for" loops in nsFlexContainerFrame.cpp

Categories

(Core :: Layout, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

nsFlexContainerFrame has several usages of nsFrameList::Enumerator that can be cleaned up, now that nsFrameList supports range-based syntax (added in bug 1143513).
Attached patch fix v1Splinter Review
This builds, which I think means it's correct.
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #8586506 - Flags: review?(quanxunzhen)
Comment on attachment 8586506 [details] [diff] [review] fix v1 Review of attachment 8586506 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. r=me if I have permission to review patches :)
Attachment #8586506 - Flags: review?(quanxunzhen) → review+
Our "permission to review patches" is a bit fuzzy and depends on the code in question. Two general heuristics, for future "can I review this" wonderings: * If a module owner or peer asks you to review something (as is the case here), they're asserting that you're qualified to review it, so it should be fine (though it's within your rights to disagree & punt the review to someone else :)). * If you've worked a lot on a feature, you're probably also implicitly fine to review changes there. (This patch here sort-of falls into that category, since the patch is *making use* of a feature that you added support for. So, you're likely the best-qualified person to sign off on it. Though -- if you received a similar review request in /netwerk, you'd probably want to be sure a module peer/owner of that code was OK with you reviewing those changes in that module before granting r+.)
Also: thanks for the review! :)
(In reply to Daniel Holbert [:dholbert] from comment #3) > Our "permission to review patches" is a bit fuzzy and depends on the code in > question. > > Two general heuristics, for future "can I review this" wonderings: > > * If a module owner or peer asks you to review something (as is the case > here), they're asserting that you're qualified to review it, so it should be > fine (though it's within your rights to disagree & punt the review to > someone else :)). > > * If you've worked a lot on a feature, you're probably also implicitly fine > to review changes there. (This patch here sort-of falls into that category, > since the patch is *making use* of a feature that you added support for. So, > you're likely the best-qualified person to sign off on it. Though -- if you > received a similar review request in /netwerk, you'd probably want to be > sure a module peer/owner of that code was OK with you reviewing those > changes in that module before granting r+.) Thanks for explaining that!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: