diff --git a/layout/generic/nsGridContainerFrame.cpp b/layout/generic/nsGridContainerFrame.cpp index dfca6bb3259e..658612b2ef4d 100644 --- a/layout/generic/nsGridContainerFrame.cpp +++ b/layout/generic/nsGridContainerFrame.cpp @@ -16,6 +16,7 @@ #include "nsAlgorithm.h" // for clamped() #include "nsAutoPtr.h" #include "nsCSSAnonBoxes.h" +#include "nsCSSFrameConstructor.h" #include "nsDataHashtable.h" #include "nsDisplayList.h" #include "nsHashKeys.h" @@ -33,6 +34,7 @@ const uint32_t nsGridContainerFrame::kTranslatedMaxLine = uint32_t(nsStyleGridLine::kMaxLine - nsStyleGridLine::kMinLine); const uint32_t nsGridContainerFrame::kAutoLine = kTranslatedMaxLine + 3457U; typedef nsTHashtable< nsPtrHashKey > FrameHashtable; +typedef mozilla::layout::AutoFrameListPtr AutoFrameListPtr; static void ReparentFrame(nsIFrame* aFrame, nsContainerFrame* aOldParent, diff --git a/layout/generic/nsGridContainerFrame.h b/layout/generic/nsGridContainerFrame.h index 1915ff04d5d7..ed8d13e24137 100644 --- a/layout/generic/nsGridContainerFrame.h +++ b/layout/generic/nsGridContainerFrame.h @@ -9,6 +9,7 @@ #ifndef nsGridContainerFrame_h___ #define nsGridContainerFrame_h___ +#include "mozilla/Maybe.h" #include "mozilla/TypeTraits.h" #include "nsContainerFrame.h" #include "nsHashKeys.h" @@ -46,6 +47,7 @@ public: NS_DECL_FRAMEARENA_HELPERS NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame) NS_DECL_QUERYFRAME + typedef mozilla::ComputedGridTrackInfo ComputedGridTrackInfo; // nsIFrame overrides void Reflow(nsPresContext* aPresContext, @@ -202,7 +204,7 @@ private: bool mIsAutoBSize; }; - Maybe + mozilla::Maybe GetNearestFragmentainer(const GridReflowState& aState) const; // @return the consumed size of all continuations so far including this frame