|
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 #include "nsGridContainerFrame.h" |
|
11 #include "nsPresContext.h" |
|
12 #include "nsStyleContext.h" |
|
13 |
|
14 //---------------------------------------------------------------------- |
|
15 |
|
16 // Frame class boilerplate |
|
17 // ======================= |
|
18 |
|
19 NS_QUERYFRAME_HEAD(nsGridContainerFrame) |
|
20 NS_QUERYFRAME_ENTRY(nsGridContainerFrame) |
|
21 NS_QUERYFRAME_TAIL_INHERITING(nsGridContainerFrameSuper) |
|
22 |
|
23 NS_IMPL_FRAMEARENA_HELPERS(nsGridContainerFrame) |
|
24 |
|
25 nsIFrame* |
|
26 NS_NewGridContainerFrame(nsIPresShell* aPresShell, |
|
27 nsStyleContext* aContext) |
|
28 { |
|
29 return new (aPresShell) nsGridContainerFrame(aContext); |
|
30 } |
|
31 |
|
32 |
|
33 //---------------------------------------------------------------------- |
|
34 |
|
35 // nsGridContainerFrame Method Implementations |
|
36 // =========================================== |
|
37 |
|
38 /* virtual */ |
|
39 nsGridContainerFrame::~nsGridContainerFrame() |
|
40 { |
|
41 } |
|
42 |
|
43 nsIAtom* |
|
44 nsGridContainerFrame::GetType() const |
|
45 { |
|
46 return nsGkAtoms::gridContainerFrame; |
|
47 } |
|
48 |
|
49 #ifdef DEBUG_FRAME_DUMP |
|
50 nsresult |
|
51 nsGridContainerFrame::GetFrameName(nsAString& aResult) const |
|
52 { |
|
53 return MakeFrameName(NS_LITERAL_STRING("GridContainer"), aResult); |
|
54 } |
|
55 #endif |