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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
(Blocks 1 open bug)
Details
Attachments
(20 files)
There's quite a few that can go.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #722330 -
Flags: review?(khuey)
Assignee | ||
Comment 2•12 years ago
|
||
I'm not sure where this was bootlegging from, so let's fix it first.
Attachment #722332 -
Flags: review?(khuey)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #722333 -
Flags: review?(khuey)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #722334 -
Flags: review?(khuey)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #722335 -
Flags: review?(khuey)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #722337 -
Flags: review?(khuey)
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #722340 -
Flags: review?(khuey)
Assignee | ||
Updated•12 years ago
|
Attachment #722340 -
Attachment description: Part f: Stop including nsContentSink.h → Part g: Stop including nsContentSink.h
Assignee | ||
Comment 8•12 years ago
|
||
Attachment #722341 -
Flags: review?(khuey)
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #722342 -
Flags: review?(khuey)
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #722343 -
Flags: review?(khuey)
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #722345 -
Flags: review?(khuey)
Assignee | ||
Comment 12•12 years ago
|
||
Attachment #722346 -
Flags: review?(khuey)
Assignee | ||
Comment 13•12 years ago
|
||
Attachment #722349 -
Flags: review?(khuey)
Assignee | ||
Comment 14•12 years ago
|
||
Attachment #722350 -
Flags: review?(khuey)
Assignee | ||
Comment 15•12 years ago
|
||
Also the final inclusion of domstubs.h, hence to seemingly unrelated forward declarations.
Attachment #722351 -
Flags: review?(khuey)
Assignee | ||
Comment 16•12 years ago
|
||
Attachment #722352 -
Flags: review?(khuey)
Assignee | ||
Comment 17•12 years ago
|
||
Attachment #722353 -
Flags: review?(khuey)
Assignee | ||
Comment 18•12 years ago
|
||
Attachment #722354 -
Flags: review?(khuey)
Assignee | ||
Comment 19•12 years ago
|
||
Attachment #722355 -
Flags: review?(khuey)
Attachment #722352 -
Flags: review?(khuey) → review+
Attachment #722342 -
Flags: review?(khuey) → review+
Attachment #722335 -
Flags: review?(khuey) → review+
Attachment #722351 -
Flags: review?(khuey) → review+
Attachment #722332 -
Flags: review?(khuey) → review+
Attachment #722333 -
Flags: review?(khuey) → review+
Attachment #722340 -
Flags: review?(khuey) → review+
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+
Attachment #722353 -
Flags: review?(khuey) → review+
Attachment #722349 -
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 #722343 -
Flags: review?(khuey) → review+
Attachment #722341 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 22•12 years ago
|
||
Attachment #723054 -
Flags: review?(khuey)
Assignee | ||
Comment 23•12 years ago
|
||
(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.
Attachment #722334 -
Flags: review?(khuey) → review+
Attachment #722330 -
Flags: review?(khuey) → review+
Attachment #722350 -
Flags: review?(khuey) → review+
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.
Attachment #723054 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 25•12 years ago
|
||
(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+
Attachment #722355 -
Flags: review?(khuey) → review+
Attachment #722354 -
Flags: review?(khuey) → review+
Attachment #722337 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 27•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3b68556f1d00
https://hg.mozilla.org/mozilla-central/rev/a8595e3ac566
https://hg.mozilla.org/mozilla-central/rev/971876285540
https://hg.mozilla.org/mozilla-central/rev/1904813e2c59
https://hg.mozilla.org/mozilla-central/rev/f9d6556f83a8
https://hg.mozilla.org/mozilla-central/rev/98f7b66f7ced
https://hg.mozilla.org/mozilla-central/rev/5398b2d00b9f
https://hg.mozilla.org/mozilla-central/rev/2b31cd940a78
https://hg.mozilla.org/mozilla-central/rev/32c51f939d3b
https://hg.mozilla.org/mozilla-central/rev/8668238bc3d6
https://hg.mozilla.org/mozilla-central/rev/f89a0659f96f
https://hg.mozilla.org/mozilla-central/rev/e92dc4c995ee
https://hg.mozilla.org/mozilla-central/rev/cbcd134afa17
https://hg.mozilla.org/mozilla-central/rev/2edee0157a26
https://hg.mozilla.org/mozilla-central/rev/a685608fd4ef
https://hg.mozilla.org/mozilla-central/rev/4d13fb8077fc
https://hg.mozilla.org/mozilla-central/rev/1aba40692b5d
https://hg.mozilla.org/mozilla-central/rev/f5da57075370
https://hg.mozilla.org/mozilla-central/rev/cf53a926a60d
https://hg.mozilla.org/mozilla-central/rev/15452886f54e
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Assignee | ||
Updated•11 years ago
|
Blocks: includehell
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•