diff --git a/layout/generic/ScrollSnap.cpp b/layout/generic/ScrollSnap.cpp index d0f3ae3f43bb..6d0ccefa7c55 100644 --- a/layout/generic/ScrollSnap.cpp +++ b/layout/generic/ScrollSnap.cpp @@ -10,6 +10,7 @@ #include "mozilla/Maybe.h" #include "mozilla/Preferences.h" +#include "mozilla/StaticPrefs_layout.h" #include "nsLineLayout.h" namespace mozilla { diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index 8f890e7f53f9..21b34f3e02e2 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -17,6 +17,7 @@ #include "mozilla/DebugOnly.h" #include "mozilla/Maybe.h" #include "mozilla/PresShell.h" +#include "mozilla/StaticPrefs_layout.h" #include "mozilla/ToString.h" #include "mozilla/UniquePtr.h" diff --git a/layout/generic/nsColumnSetFrame.cpp b/layout/generic/nsColumnSetFrame.cpp index 208c2540bb5b..d3bdf55d669c 100644 --- a/layout/generic/nsColumnSetFrame.cpp +++ b/layout/generic/nsColumnSetFrame.cpp @@ -11,6 +11,7 @@ #include "mozilla/ColumnUtils.h" #include "mozilla/Logging.h" #include "mozilla/PresShell.h" +#include "mozilla/StaticPrefs_layout.h" #include "mozilla/ToString.h" #include "nsCSSRendering.h" diff --git a/layout/generic/nsFlexContainerFrame.cpp b/layout/generic/nsFlexContainerFrame.cpp index eca58a434936..e374b4b59d6c 100644 --- a/layout/generic/nsFlexContainerFrame.cpp +++ b/layout/generic/nsFlexContainerFrame.cpp @@ -7,6 +7,8 @@ /* rendering object for CSS "display: flex" */ #include "nsFlexContainerFrame.h" + +#include "nsBlockFrame.h" #include "nsContentUtils.h" #include "nsCSSAnonBoxes.h" #include "nsDisplayList.h" diff --git a/layout/generic/nsFontInflationData.cpp b/layout/generic/nsFontInflationData.cpp index f445d5cf0ceb..ff3060f4fa87 100644 --- a/layout/generic/nsFontInflationData.cpp +++ b/layout/generic/nsFontInflationData.cpp @@ -12,6 +12,7 @@ #include "nsTextControlFrame.h" #include "nsListControlFrame.h" #include "nsComboboxControlFrame.h" +#include "mozilla/dom/Text.h" // for inline nsINode::AsText() definition #include "mozilla/PresShell.h" #include "mozilla/ReflowInput.h" #include "nsTextFrameUtils.h" diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index cb22a52521c7..84b1e98f0ee2 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -53,6 +53,7 @@ #include "nsLayoutUtils.h" #include "LayoutLogging.h" #include "mozilla/RestyleManager.h" +#include "nsImageFrame.h" #include "nsInlineFrame.h" #include "nsFrameSelection.h" #include "nsGkAtoms.h" @@ -126,7 +127,6 @@ using namespace mozilla::gfx; using namespace mozilla::layers; using namespace mozilla::layout; typedef nsAbsoluteContainingBlock::AbsPosReflowFlags AbsPosReflowFlags; -class nsImageFrame; const mozilla::LayoutFrameType nsIFrame::sLayoutFrameTypes[ #define FRAME_ID(...) 1 + diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 58d3df8e3b02..a6ea74318a3d 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -21,6 +21,7 @@ #include "nsGkAtoms.h" #include "nsNameSpaceManager.h" #include "mozilla/dom/DocumentInlines.h" +#include "mozilla/gfx/gfxVars.h" #include "nsFontMetrics.h" #include "nsBoxLayoutState.h" #include "mozilla/dom/NodeInfo.h" diff --git a/layout/generic/nsSubDocumentFrame.cpp b/layout/generic/nsSubDocumentFrame.cpp index f937d0142ab5..7e39dee0ca12 100644 --- a/layout/generic/nsSubDocumentFrame.cpp +++ b/layout/generic/nsSubDocumentFrame.cpp @@ -31,6 +31,8 @@ #include "nsViewManager.h" #include "nsGkAtoms.h" #include "nsStyleConsts.h" +#include "nsStyleStruct.h" +#include "nsStyleStructInlines.h" #include "nsFrameSetFrame.h" #include "nsIScrollable.h" #include "nsNameSpaceManager.h" @@ -53,8 +55,9 @@ #include "mozilla/layers/RenderRootStateManager.h" using namespace mozilla; +using namespace mozilla::dom; +using namespace mozilla::gfx; using namespace mozilla::layers; -using mozilla::dom::Document; static Document* GetDocumentFromView(nsView* aView) { MOZ_ASSERT(aView, "null view"); diff --git a/layout/generic/nsTextFrameUtils.cpp b/layout/generic/nsTextFrameUtils.cpp index f6d0c81c6e66..451064ae7149 100644 --- a/layout/generic/nsTextFrameUtils.cpp +++ b/layout/generic/nsTextFrameUtils.cpp @@ -6,6 +6,7 @@ #include "nsTextFrameUtils.h" +#include "mozilla/dom/Text.h" #include "nsBidiUtils.h" #include "nsCharTraits.h" #include "nsIContent.h" @@ -16,6 +17,7 @@ #include using namespace mozilla; +using namespace mozilla::dom; // static bool nsTextFrameUtils::IsSpaceCombiningSequenceTail(const char16_t* aChars,