michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: michael@0: /* This Source Code is subject to the terms of the Mozilla Public License michael@0: * version 2.0 (the "License"). You can obtain a copy of the License at michael@0: * http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* rendering object for CSS "display: grid" */ michael@0: michael@0: #include "nsGridContainerFrame.h" michael@0: #include "nsPresContext.h" michael@0: #include "nsStyleContext.h" michael@0: michael@0: //---------------------------------------------------------------------- michael@0: michael@0: // Frame class boilerplate michael@0: // ======================= michael@0: michael@0: NS_QUERYFRAME_HEAD(nsGridContainerFrame) michael@0: NS_QUERYFRAME_ENTRY(nsGridContainerFrame) michael@0: NS_QUERYFRAME_TAIL_INHERITING(nsGridContainerFrameSuper) michael@0: michael@0: NS_IMPL_FRAMEARENA_HELPERS(nsGridContainerFrame) michael@0: michael@0: nsIFrame* michael@0: NS_NewGridContainerFrame(nsIPresShell* aPresShell, michael@0: nsStyleContext* aContext) michael@0: { michael@0: return new (aPresShell) nsGridContainerFrame(aContext); michael@0: } michael@0: michael@0: michael@0: //---------------------------------------------------------------------- michael@0: michael@0: // nsGridContainerFrame Method Implementations michael@0: // =========================================== michael@0: michael@0: /* virtual */ michael@0: nsGridContainerFrame::~nsGridContainerFrame() michael@0: { michael@0: } michael@0: michael@0: nsIAtom* michael@0: nsGridContainerFrame::GetType() const michael@0: { michael@0: return nsGkAtoms::gridContainerFrame; michael@0: } michael@0: michael@0: #ifdef DEBUG_FRAME_DUMP michael@0: nsresult michael@0: nsGridContainerFrame::GetFrameName(nsAString& aResult) const michael@0: { michael@0: return MakeFrameName(NS_LITERAL_STRING("GridContainer"), aResult); michael@0: } michael@0: #endif