Closed
Bug 837000
Opened 11 years ago
Closed 11 years ago
Remove nsBlockReflowState.h's #include of nsBlockFrame.h
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: dholbert, Assigned: dholbert)
Details
Attachments
(1 file)
5.37 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
Noticed that nsBlockReflowState.h has an essentially-unnecessary "#include nsBlockFrame.h". Filing this bug on removing it, and fixing the collateral damage.
Assignee | ||
Comment 1•11 years ago
|
||
Changes in this patch: a) Move nsBlockReflowState.cpp's #include of its own header to the top, to be sure its header compiles on its own. b) Move the nsBlockReflowState::AppendPushedFloat() implementation from the .h file into the .cpp file, since it uses |mBlock| and requires us to have #included nsBlockFrame.h. (Specifically, that code passes mBlock to a function that expects to receive a nsIFrame*, and we need to have seen nsBlockFrame.h in order to know that nsBlockFrame inherits from nsIFrame which makes that function-call legal.) c) Removes nsBlockReflowState.h's #include of nsBlockFrame.h (and replaces it with forward-declarations) d) Explicitly #include nsBlockFrame.h in nsTextFrameThebes.cpp (which previously got nsBlockFrame via its include of nsLineLayout.h, which includes nsBlockReflowState.h, which used to (but no longer) #includes nsBlockFrame.h e) While I'm touching nsTextFrameThebes.cpp, move its header (nsTextFrame.h) to the top
Attachment #708870 -
Flags: review?(dbaron)
Assignee | ||
Comment 2•11 years ago
|
||
(c) is what this bug is primarily about; the rest are just fixes to make sure we compile.
Comment on attachment 708870 [details] [diff] [review] fix v1 r=dbaron
Attachment #708870 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e9f2886c0179
Flags: in-testsuite-
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e9f2886c0179
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•