Bumping manifests a=b2g-bump
[gecko.git] / layout / generic / nsGridContainerFrame.h
blobab179830359272801df1809a093e9d194384c721
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"
14 /**
15 * Factory function.
16 * @return a newly allocated nsGridContainerFrame (infallible)
18 nsContainerFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
19 nsStyleContext* aContext);
21 class nsGridContainerFrame MOZ_FINAL : public nsContainerFrame
23 public:
24 NS_DECL_FRAMEARENA_HELPERS
25 NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame)
26 NS_DECL_QUERYFRAME
28 // nsIFrame overrides
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;
37 #endif
39 protected:
40 friend nsContainerFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
41 nsStyleContext* aContext);
42 explicit nsGridContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
44 #ifdef DEBUG
45 void SanityCheckAnonymousGridItems() const;
46 #endif // DEBUG
49 #endif /* nsGridContainerFrame_h___ */