Closed
Bug 810355
Opened 12 years ago
Closed 12 years ago
Convert nsDidReflowStatus into an enum class
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
12.07 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
Bug 806002 converted this into an enum. We can go the extra mile to convert it into an enum class so that the compiler actually does type checking for us.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=7c538171e007
Comment 3•12 years ago
|
||
Comment on attachment 681371 [details] [diff] [review] Patch (v1) >- target->DidReflow(mPresContext, nullptr, NS_FRAME_REFLOW_FINISHED); >+ target->DidReflow(mPresContext, nullptr, nsDidReflowStatus::NS_FRAME_REFLOW_FINISHED); The scoping change introduces a lot of redundancy in the naming, and makes all of these usages huge and gross. Could you fix that by renaming these to to e.g. nsDidReflowStatus::FINISHED and ::NOT_FINISHED? r=me with that.
Attachment #681371 -
Flags: review?(dholbert) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Sure, will do when landing.
Comment 5•12 years ago
|
||
Hmm, looks like there's one red on the Try push: { ../../../layout/generic/nsFrame.cpp: In member function 'virtual nsresult nsFrame::DidReflow(nsPresContext*, const nsHTMLReflowState*, nsDidReflowStatus)': ../../../layout/generic/nsFrame.cpp:4199: error: cannot pass objects of non-POD type 'class nsDidReflowStatus' through '...'; call will abort at runtime } https://tbpl.mozilla.org/php/getParsedLog.php?id=17019680&tree=Try
Assignee | ||
Comment 6•12 years ago
|
||
Fixed by adding a static_cast. https://hg.mozilla.org/integration/mozilla-inbound/rev/e6e9cda2871a
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e6e9cda2871a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•