Closed Bug 1614208 Opened 6 years ago Closed 6 years ago

Remove some dependencies on style system headers from other common headers.

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(8 files, 1 obsolete file)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

The ultimate goal here was to not rebuild dom/media when touching the style system.

There's still more work for that to be possible, but here's a start.

This avoids including nsFont.h and a bunch of other stuff in nsPresContext.h

Mostly what I was seeing come up in the .deps files from my object directory
which sounded feasible.

Depends on D62166

And fix a bunch of fallout as we now don't include nsDocShell.h everywhere.

Depends on D62168

nsPresContext.h is only used for unit conversion, which can be done by Units.h
in a similar fashion.

PresShell.h was needed for some capturing-content stuff which can be moved out
of line.

Depends on D62169

It can be forward-declared. ContentCache.h includes WritingModes.h which
includes a whole lot of stuff.

This is another one which is included everywhere. If the OOL call mattered we
could move these to a different header or something, but I suspect it won't.

Depends on D62172

We include it everywhere because it's included from gfxTypes.h.

This should avoid including all the generated bindings everywhere.

Attachment #9125349 - Attachment is obsolete: true
Priority: -- → P3
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5edfca9532a0 Remove some include dependencies in nsStyleConsts.h. r=jfkthame,jgilbert https://hg.mozilla.org/integration/autoland/rev/e6157dd5307d Forward-declare StaticPresData in nsPresContext.h. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/87393dbd95ed Remove more dependencies on nsStyleConsts.h / ServoStyleConsts.h. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/e9054e5ec42d Remove unused WritingMode ipdl include. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/fc8778ea318f Stop including AccessibleCaretEventHub and PresShell.h from Selection.h. r=TYLin https://hg.mozilla.org/integration/autoland/rev/a281e11c7dac Stop including PresShell.h and nsPresContext.h from Element.h. r=smaug https://hg.mozilla.org/integration/autoland/rev/1346808aa42d Remove nsStyleConsts usage from TextRange.h. r=masayuki https://hg.mozilla.org/integration/autoland/rev/1800ca8ff653 Stop including nsStyleConsts.h from WebRenderTypes.h. r=jrmuizel
Regressions: 1614718
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: