Closed Bug 909971 Opened 12 years ago Closed 11 years ago

Remove nsThreadUtils.h include from BindingUtils.h

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: mccr8, Assigned: mathias.demare)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

This is only used for NS_IsMainThread() in various binding .cpp files, but right now other things that include BindingUtils.h are going to get it, which is less than ideal. bz's comments from bug 904826: (In reply to Boris Zbarsky [:bz] from comment #23) > We're going to need this for any .cpp file with non-worker descriptors that > have any methods or attributes, and for any file with chromeonly stuff, and > any file with a dictionary. Followup for narrowing this down further is > fine, especially because it'll be easier once bug 909639 lands. (In reply to Boris Zbarsky [:bz] from comment #24) > Actually, the other simple option is to throw this into the always-included > headers in codegen and thus hide from non-codegen includers of BindingUtils. > The only issue with that is that it'll conflict with bug 909639.
Blocks: includehell
With bug 913847, this will be MainThreadUtils.h instead that can be removed
Yeah, and MainThreadUtils.h is very cheap to include, so once bug 913847 lands, maybe this won't be a big deal anymore. But it's always nice to make BindingUtils.h smaller.
Attached patch bug909971.patchSplinter Review
I wanted to try to solve the issues resulting from removing the MainThreadUtils.h include, so I removed it. However, I was able to complete the build and start it without issue.
Attachment #8486465 - Flags: review?(bjacob)
Attachment #8486465 - Flags: review?(bjacob) → review+
Pushed to try to make sure that that builds on all platforms: https://tbpl.mozilla.org/?tree=Try&rev=3beae4433356
Assignee: nobody → mathias.demare
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
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: