Closed
Bug 884564
Opened 9 years ago
Closed 9 years ago
Simplify nsBlockFrame::CreateContinuationFor(). (it's unnecessarily virtual & has always-NS_OK nsresult rv)
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: dholbert, Assigned: dholbert)
Details
Attachments
(1 file)
5.24 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
nsBlockFrame's method "CreateContinuationFor" is virtual, but it's never overridden (and it's not overriding anything): http://mxr.mozilla.org/mozilla-central/search?string=CreateContinuationFor%28 Also, it returns type nsresult, but it only ever returns NS_OK -- so we can drop the nsresult return value and just make it directly return its boolean outparam.
Assignee | ||
Updated•9 years ago
|
Component: Layout → Layout: Block and Inline
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Comment 1•9 years ago
|
||
This patch: a) Removes the nsresult rv, and makes us just directly return a bool b) Removes the bool in one caller (the second one), because it's unused there c) Drops 'frameType' from the contextual code in that same caller, so that the "// Create a continuation" comment is actually next to the CreateContinuationFor() call.
Attachment #764412 -
Flags: review?(bzbarsky)
![]() |
||
Comment 2•9 years ago
|
||
Comment on attachment 764412 [details] [diff] [review] fix v1 r=me
Attachment #764412 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/416252ef9d1e
Status: NEW → ASSIGNED
Assignee | ||
Updated•9 years ago
|
Flags: in-testsuite-
Assignee | ||
Comment 4•9 years ago
|
||
I pushed a followup to fix an end-of-line space character in CreateContinuationFor, while I'm in the neighborhood: https://hg.mozilla.org/integration/mozilla-inbound/rev/0414d4228e85
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/416252ef9d1e https://hg.mozilla.org/mozilla-central/rev/0414d4228e85
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•