1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code is subject to the terms of the Mozilla Public License
4 * version 2.0 (the "License"). You can obtain a copy of the License at
5 * http://mozilla.org/MPL/2.0/. */
7 /* rendering object for CSS "display: grid | inline-grid" */
9 #ifndef nsGridContainerFrame_h___
10 #define nsGridContainerFrame_h___
12 #include "nsContainerFrame.h"
16 * @return a newly allocated nsGridContainerFrame (infallible)
18 nsContainerFrame
* NS_NewGridContainerFrame(nsIPresShell
* aPresShell
,
19 nsStyleContext
* aContext
);
21 class nsGridContainerFrame MOZ_FINAL
: public nsContainerFrame
24 NS_DECL_FRAMEARENA_HELPERS
25 NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame
)
29 void Reflow(nsPresContext
* aPresContext
,
30 nsHTMLReflowMetrics
& aDesiredSize
,
31 const nsHTMLReflowState
& aReflowState
,
32 nsReflowStatus
& aStatus
) MOZ_OVERRIDE
;
33 virtual nsIAtom
* GetType() const MOZ_OVERRIDE
;
35 #ifdef DEBUG_FRAME_DUMP
36 virtual nsresult
GetFrameName(nsAString
& aResult
) const MOZ_OVERRIDE
;
40 friend nsContainerFrame
* NS_NewGridContainerFrame(nsIPresShell
* aPresShell
,
41 nsStyleContext
* aContext
);
42 explicit nsGridContainerFrame(nsStyleContext
* aContext
) : nsContainerFrame(aContext
) {}
45 void SanityCheckAnonymousGridItems() const;
49 #endif /* nsGridContainerFrame_h___ */