|
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 |
|
4 /* This Source Code is subject to the terms of the Mozilla Public License |
|
5 * version 2.0 (the "License"). You can obtain a copy of the License at |
|
6 * http://mozilla.org/MPL/2.0/. */ |
|
7 |
|
8 /* rendering object for CSS "display: grid" */ |
|
9 |
|
10 #ifndef nsGridContainerFrame_h___ |
|
11 #define nsGridContainerFrame_h___ |
|
12 |
|
13 #include "nsContainerFrame.h" |
|
14 |
|
15 nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell, |
|
16 nsStyleContext* aContext); |
|
17 |
|
18 typedef nsContainerFrame nsGridContainerFrameSuper; |
|
19 |
|
20 class nsGridContainerFrame : public nsGridContainerFrameSuper { |
|
21 |
|
22 NS_DECL_FRAMEARENA_HELPERS |
|
23 NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame) |
|
24 NS_DECL_QUERYFRAME |
|
25 |
|
26 // Factory method: |
|
27 friend nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell, |
|
28 nsStyleContext* aContext); |
|
29 |
|
30 public: |
|
31 // nsIFrame overrides |
|
32 virtual nsIAtom* GetType() const MOZ_OVERRIDE; |
|
33 #ifdef DEBUG_FRAME_DUMP |
|
34 virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE; |
|
35 #endif |
|
36 |
|
37 protected: |
|
38 // Protected constructor & destructor |
|
39 nsGridContainerFrame(nsStyleContext* aContext) : nsGridContainerFrameSuper(aContext) {} |
|
40 virtual ~nsGridContainerFrame(); |
|
41 }; |
|
42 |
|
43 #endif /* nsGridContainerFrame_h___ */ |