Closed Bug 903778 Opened 11 years ago Closed 11 years ago

Move dom::Date into its own files

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
No point in dumping this on everyone who includes BindingDeclarations.h
Attachment #788549 - Flags: review?(khuey)
What's the goal here?  It doesn't appear to let us remove any includes from BindingDeclarations.h.
I think reducing the size of BindingDeclarations.h is useful, even if we can't drop includes, as it's included in some 2600 non-.h files (and increasing).
Flags: needinfo?(Ms2ger)
Comment on attachment 788549 [details] [diff] [review]
Patch v1

Review of attachment 788549 [details] [diff] [review]:
-----------------------------------------------------------------

Ok then.

I wonder if it's worth inlining some more stuff now that not everything needs to include it.

::: content/html/content/src/HTMLInputElement.h
@@ +16,5 @@
>  #include "nsTextEditorState.h"
>  #include "nsCOMPtr.h"
>  #include "nsIConstraintValidation.h"
>  #include "nsDOMFile.h"
> +#include "mozilla/dom/Date.h"

I think this just needs a forward declaration of Date to use in Nullable<>

::: dom/bindings/BindingDeclarations.h
@@ -712,5 @@
> -
> -private:
> -  double mMsecSinceEpoch;
> -};
> -

So we should probably leave a forward decl here.
Attachment #788549 - Flags: review?(khuey) → review+
https://hg.mozilla.org/mozilla-central/rev/f02c696df785
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
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: