Closed
Bug 1300544
Opened 8 years ago
Closed 8 years ago
Useless declaration in layout/base/nsDisplayList.cpp nsDisplayFilter::PrintEffects
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: vyas45, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: clang-analyzer, Whiteboard: [good first bug][lang=C++])
Attachments
(1 file, 2 obsolete files)
832 bytes,
patch
|
Details | Diff | Splinter Review |
https://dxr.mozilla.org/mozilla-central/source/layout/base/nsDisplayList.cpp?q=layout%2Fbase%2FnsDisplayList.cpp&redirect_type=direct#7020
This declaration is useless.
Reporting it as good first bug
Assignee | ||
Comment 1•8 years ago
|
||
Hi,
I can take up this bug. Looks like we just need to get rid of the declaration.
What tests would I need to run on the patch ?
Thanks,
Aniket
Flags: needinfo?(sledru)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → vyas45
Assignee | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8788715 [details] [diff] [review]
bug1300544.diff
I don't know for the test, you could do a try run but the code is obvious enough that we should be fine.
Now, you should try to find a reviewer
Flags: needinfo?(sledru)
Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #3)
> Comment on attachment 8788715 [details] [diff] [review]
> bug1300544.diff
>
> I don't know for the test, you could do a try run but the code is obvious
> enough that we should be fine.
> Now, you should try to find a reviewer
Ohh cool. And the best way to find a reviewer would be looking at the component owners ?
Reporter | ||
Comment 5•8 years ago
|
||
Assignee | ||
Comment 6•8 years ago
|
||
Perfect ! Thanks Sylvestre.
Assignee | ||
Comment 7•8 years ago
|
||
Perfect ! Thanks Sylvestre.
Assignee | ||
Comment 8•8 years ago
|
||
Hi Asa,
Can you please look at this change set.
Thanks,
Aniket
Status: NEW → ASSIGNED
Flags: needinfo?(asa)
Assignee | ||
Updated•8 years ago
|
Attachment #8788715 -
Flags: review?(bzbarsky)
Reporter | ||
Comment 10•8 years ago
|
||
Comment on attachment 8788715 [details] [diff] [review]
bug1300544.diff
BZ might not be the best reviewer here.
If you look here:
https://hg.mozilla.org/mozilla-central/annotate/ab70808cd4b6c6ad9a57a9f71cfa495fcea0aecd/layout/base/nsDisplayList.cpp#l7021
(hg blame on the file), you will see that the change has been introduced by this commit:
https://hg.mozilla.org/mozilla-central/annotate/102ceafb7343/layout/base/nsDisplayList.cpp#l6988 by cku
Attachment #8788715 -
Flags: review?(bzbarsky) → review?(cku)
Comment 11•8 years ago
|
||
Comment on attachment 8788715 [details] [diff] [review]
bug1300544.diff
Review of attachment 8788715 [details] [diff] [review]:
-----------------------------------------------------------------
r+ for me, but I am not layout/view peer. mstange, please help to review it.
Aniket, you may refer to this page to find out a suitable one for reviewing:
https://wiki.mozilla.org/Modules/Core
Attachment #8788715 -
Flags: review?(mstange)
Attachment #8788715 -
Flags: review?(cku)
Attachment #8788715 -
Flags: review+
Comment 12•8 years ago
|
||
Attachment #8788715 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 13•8 years ago
|
||
Thanks a lot guys for the help !
What should be the next steps for getting the code in ?
1. Do I need to run any specific tests ?
2. What would be the commit procedure ?
Thanks,
Aniket
Comment 14•8 years ago
|
||
In this case you do not need to run any tests, because this code is only used in debug logging output, which is not analyzed in tests, and because the change is so simple that it's very easy to see that it will not have any adverse effects.
Please attach the patch with the correct author + commit message, as described here:
https://developer.mozilla.org/en-US/docs/Mercurial/Using_Mercurial#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
And then request checkin using the checkin-needed keyword on the bug, as described here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch#Getting_the_patch_checked_into_the_tree
Assignee | ||
Comment 15•8 years ago
|
||
Attachment #8788715 -
Attachment is obsolete: true
Attachment #8789483 -
Flags: checkin?
Assignee | ||
Comment 16•8 years ago
|
||
Have updated the diff. Regarding the checkin-needed keyword, i only see "checkin" keyword. Probably I do not have the privileges to add the keyword ?
Flags: needinfo?(mstange)
Comment 17•8 years ago
|
||
The commit message should also list your reviewers. Add this at the end: r=cjku, r=mstange
I can add the checkin-needed keyword to the bug once you've done that.
Flags: needinfo?(mstange)
Assignee | ||
Comment 18•8 years ago
|
||
Attachment #8789483 -
Attachment is obsolete: true
Attachment #8789483 -
Flags: checkin?
Assignee | ||
Comment 19•8 years ago
|
||
Done. Thanks for the hand holding Markus.
Comment 21•8 years ago
|
||
Pushed by kwierso@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/93cf1a5af6a0
Remove the useless declaration in layout/base/nsDisplayList.cpp <nsDisplayFilter::PrintEffects>. r=cjku, r=mstange
Keywords: checkin-needed
Comment 22•8 years ago
|
||
bugherder landing |
Comment 23•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•