layout/generic/nsGridContainerFrame.cpp

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set ts=2 et sw=2 tw=80: */
michael@0 3
michael@0 4 /* This Source Code is subject to the terms of the Mozilla Public License
michael@0 5 * version 2.0 (the "License"). You can obtain a copy of the License at
michael@0 6 * http://mozilla.org/MPL/2.0/. */
michael@0 7
michael@0 8 /* rendering object for CSS "display: grid" */
michael@0 9
michael@0 10 #include "nsGridContainerFrame.h"
michael@0 11 #include "nsPresContext.h"
michael@0 12 #include "nsStyleContext.h"
michael@0 13
michael@0 14 //----------------------------------------------------------------------
michael@0 15
michael@0 16 // Frame class boilerplate
michael@0 17 // =======================
michael@0 18
michael@0 19 NS_QUERYFRAME_HEAD(nsGridContainerFrame)
michael@0 20 NS_QUERYFRAME_ENTRY(nsGridContainerFrame)
michael@0 21 NS_QUERYFRAME_TAIL_INHERITING(nsGridContainerFrameSuper)
michael@0 22
michael@0 23 NS_IMPL_FRAMEARENA_HELPERS(nsGridContainerFrame)
michael@0 24
michael@0 25 nsIFrame*
michael@0 26 NS_NewGridContainerFrame(nsIPresShell* aPresShell,
michael@0 27 nsStyleContext* aContext)
michael@0 28 {
michael@0 29 return new (aPresShell) nsGridContainerFrame(aContext);
michael@0 30 }
michael@0 31
michael@0 32
michael@0 33 //----------------------------------------------------------------------
michael@0 34
michael@0 35 // nsGridContainerFrame Method Implementations
michael@0 36 // ===========================================
michael@0 37
michael@0 38 /* virtual */
michael@0 39 nsGridContainerFrame::~nsGridContainerFrame()
michael@0 40 {
michael@0 41 }
michael@0 42
michael@0 43 nsIAtom*
michael@0 44 nsGridContainerFrame::GetType() const
michael@0 45 {
michael@0 46 return nsGkAtoms::gridContainerFrame;
michael@0 47 }
michael@0 48
michael@0 49 #ifdef DEBUG_FRAME_DUMP
michael@0 50 nsresult
michael@0 51 nsGridContainerFrame::GetFrameName(nsAString& aResult) const
michael@0 52 {
michael@0 53 return MakeFrameName(NS_LITERAL_STRING("GridContainer"), aResult);
michael@0 54 }
michael@0 55 #endif

mercurial