From 7f3197f8cc2277334f5b89993c4b34a67d8d0f8e Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Sun, 13 Mar 2016 00:30:36 +0100 Subject: [PATCH] Bug 1256040 - Fix some nsGridContainerFrame.h/cpp compile errors in non-unified build. r=dholbert --- layout/generic/nsGridContainerFrame.cpp | 2 ++ layout/generic/nsGridContainerFrame.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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