Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
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/. */
8 /* rendering object for CSS "display: grid" */
10 #include "nsGridContainerFrame.h"
11 #include "nsPresContext.h"
12 #include "nsStyleContext.h"
14 //----------------------------------------------------------------------
16 // Frame class boilerplate
17 // =======================
19 NS_QUERYFRAME_HEAD(nsGridContainerFrame)
20 NS_QUERYFRAME_ENTRY(nsGridContainerFrame)
21 NS_QUERYFRAME_TAIL_INHERITING(nsGridContainerFrameSuper)
23 NS_IMPL_FRAMEARENA_HELPERS(nsGridContainerFrame)
25 nsIFrame*
26 NS_NewGridContainerFrame(nsIPresShell* aPresShell,
27 nsStyleContext* aContext)
28 {
29 return new (aPresShell) nsGridContainerFrame(aContext);
30 }
33 //----------------------------------------------------------------------
35 // nsGridContainerFrame Method Implementations
36 // ===========================================
38 /* virtual */
39 nsGridContainerFrame::~nsGridContainerFrame()
40 {
41 }
43 nsIAtom*
44 nsGridContainerFrame::GetType() const
45 {
46 return nsGkAtoms::gridContainerFrame;
47 }
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