Closed Bug 1613192 Opened 4 years ago Closed 4 years ago

Fix non-unified build errors in layout/base and layout/generic

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

(previously: bugs like bug 1544897, bug 1590639)

layout/base and layout/generic don't quite build successfully right now, when I disable unified builds (by doing s/UNIFIED_SOURCES/SOURCES/ in their moz.build files)

Patch upcoming to address this.

Summary of the changes/reasons:

  • LayoutTelemetryTools.h directly uses several types whose headers it needs to
    include. (These headers are present in its .cpp file; I'm migrating them
    from there to the .h file.)

  • LayoutTelemetryTools.cpp needs an include for MainThreadUtils.h, to provide
    NS_IsMainThread().

  • StaticPresData.cpp needs an include for ServoUtils.h, to provide
    AssertIsMainThreadOrServoFontMetricsLocked().

  • ZoomConstraintsClient.h needs a forward-decl for mozilla::dom::Document since
    it uses a pointer of that type in a function-decl.

  • ScrollSnap.h needs forward-decls of nsPoint/nsRect for some references to
    those types in a method signature.

  • nsGridContainerFrame.cpp needs an include for nsBoxLayoutState.h since it
    uses that type (it instantiates a nsBoxLayoutState instance).

  • nsPlaceholderFrame.cpp needs a "using" decl for the mozilla::dom namespace in
    order to use the un-namespace-prefixed "Element" type.

Blocks: 1613198
Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/810acba57f37
Fix non-unified build bustage in layout/{base,generic} directories. r=TYLin
Summary: Fix non-unified build error in layout/base and layout/generic → Fix non-unified build errors in layout/base and layout/generic
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: