Closed Bug 1024328 Opened 10 years ago Closed 10 years ago

Remove unnecessary #includes of nsFrameManager.h

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file, 1 obsolete file)

In bug 1024084, I noticed that lots of things #include nsFrameManager.h without actually using it.

I filtered for files that #include nsFrameManager without actually using it by doing an MXR search for "FrameManager"...
http://mxr.mozilla.org/mozilla-central/search?string=FrameManager
...and looking for files with exactly one hit -- for just the #include.  (This easily screens out files that have e.g.
 presShell->FrameManager()->GetRootFrame()
which won't compile if it doesn't see the nsFrameManager definition.)

Upcoming patch removes the #include from the 10 .cpp files that I found w/ this technique. I verified that it builds locally w/ disable-unified-compilation, which I think means it's good.
Attached patch fix v1 (obsolete) — Splinter Review
Attachment #8438974 - Flags: review?(jwatt)
Attached patch fix v2Splinter Review
(er, now with the actual patch contents)
Assignee: nobody → dholbert
Attachment #8438974 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8438974 - Flags: review?(jwatt)
Attachment #8438977 - Flags: review?(jwatt)
OS: Linux → All
Hardware: x86_64 → All
Comment on attachment 8438977 [details] [diff] [review]
fix v2

(thought I'd r+'ed this already)
Attachment #8438977 - Flags: review?(jwatt) → review+
https://hg.mozilla.org/mozilla-central/rev/b4224a22edac
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: