Closed Bug 845374 Opened 12 years ago Closed 12 years ago

Reduce the number of headers included in nsContentUtils.h

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

Attachments

(20 files)

(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
(deleted), patch
khuey
: review+
Details | Diff | Splinter Review
There's quite a few that can go.
I'm not sure where this was bootlegging from, so let's fix it first.
Attachment #722332 - Flags: review?(khuey)
Attachment #722333 - Flags: review?(khuey)
Attachment #722335 - Flags: review?(khuey)
Attachment #722340 - Flags: review?(khuey)
Attachment #722340 - Attachment description: Part f: Stop including nsContentSink.h → Part g: Stop including nsContentSink.h
Attachment #722342 - Flags: review?(khuey)
Attachment #722343 - Flags: review?(khuey)
Attachment #722345 - Flags: review?(khuey)
Also the final inclusion of domstubs.h, hence to seemingly unrelated forward declarations.
Attachment #722351 - Flags: review?(khuey)
Attachment #722352 - Flags: review?(khuey)
Attachment #722353 - Flags: review?(khuey)
Comment on attachment 722345 [details] [diff] [review] Part k: Stop including nsIContent.h Review of attachment 722345 [details] [diff] [review]: ----------------------------------------------------------------- I must say that I find some amusement in content utils no longer including content.
Attachment #722345 - Flags: review?(khuey) → review+
Comment on attachment 722350 [details] [diff] [review] Part n: Stop including nsINode.h and nsIDOMNode.h Review of attachment 722350 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/public/nsContentUtils.h @@ +18,5 @@ > #include <ieeefp.h> > #endif > > +#include "gc/Root.h" > +#include "js/Value.h" Ugh, do we really need those?
Attachment #723054 - Flags: review?(khuey)
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #21) > Comment on attachment 722350 [details] [diff] [review] > Part n: Stop including nsINode.h and nsIDOMNode.h > > Review of attachment 722350 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: content/base/public/nsContentUtils.h > @@ +18,5 @@ > > #include <ieeefp.h> > > #endif > > > > +#include "gc/Root.h" > > +#include "js/Value.h" > > Ugh, do we really need those? Looks like we can get rid of js/Value.h, but gc/Root.h will only get more annoying as the JS guys start to exactly root the browser.
Comment on attachment 722354 [details] [diff] [review] Part r: Stop including nsTArray.h in nsReadableUtils.h Review of attachment 722354 [details] [diff] [review]: ----------------------------------------------------------------- Do you really need to add nsTArray to all these headers? I would expect some of them to be ok with the forward decl.
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #24) > Comment on attachment 722354 [details] [diff] [review] > Part r: Stop including nsTArray.h in nsReadableUtils.h > > Review of attachment 722354 [details] [diff] [review]: > ----------------------------------------------------------------- > > Do you really need to add nsTArray to all these headers? I would expect > some of them to be ok with the forward decl. I think these all are classes with TArray member variables. IIRC, that requires the inclusion.
Comment on attachment 722346 [details] [diff] [review] Part l: Stop including nsIDocument.h and fix two nits Review of attachment 722346 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp @@ +38,1 @@ > #ifdef MOZILLA_INTERNAL_API Oh god. When is that ever not defined? Can you file a followup on this?
Attachment #722346 - Flags: review?(khuey) → review+
Blocks: includehell
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: