layout/generic/nsGridContainerFrame.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/nsGridContainerFrame.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +
     1.7 +/* This Source Code is subject to the terms of the Mozilla Public License
     1.8 + * version 2.0 (the "License"). You can obtain a copy of the License at
     1.9 + * http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +/* rendering object for CSS "display: grid" */
    1.12 +
    1.13 +#include "nsGridContainerFrame.h"
    1.14 +#include "nsPresContext.h"
    1.15 +#include "nsStyleContext.h"
    1.16 +
    1.17 +//----------------------------------------------------------------------
    1.18 +
    1.19 +// Frame class boilerplate
    1.20 +// =======================
    1.21 +
    1.22 +NS_QUERYFRAME_HEAD(nsGridContainerFrame)
    1.23 +  NS_QUERYFRAME_ENTRY(nsGridContainerFrame)
    1.24 +NS_QUERYFRAME_TAIL_INHERITING(nsGridContainerFrameSuper)
    1.25 +
    1.26 +NS_IMPL_FRAMEARENA_HELPERS(nsGridContainerFrame)
    1.27 +
    1.28 +nsIFrame*
    1.29 +NS_NewGridContainerFrame(nsIPresShell* aPresShell,
    1.30 +                         nsStyleContext* aContext)
    1.31 +{
    1.32 +  return new (aPresShell) nsGridContainerFrame(aContext);
    1.33 +}
    1.34 +
    1.35 +
    1.36 +//----------------------------------------------------------------------
    1.37 +
    1.38 +// nsGridContainerFrame Method Implementations
    1.39 +// ===========================================
    1.40 +
    1.41 +/* virtual */
    1.42 +nsGridContainerFrame::~nsGridContainerFrame()
    1.43 +{
    1.44 +}
    1.45 +
    1.46 +nsIAtom*
    1.47 +nsGridContainerFrame::GetType() const
    1.48 +{
    1.49 +  return nsGkAtoms::gridContainerFrame;
    1.50 +}
    1.51 +
    1.52 +#ifdef DEBUG_FRAME_DUMP
    1.53 +nsresult
    1.54 +nsGridContainerFrame::GetFrameName(nsAString& aResult) const
    1.55 +{
    1.56 +  return MakeFrameName(NS_LITERAL_STRING("GridContainer"), aResult);
    1.57 +}
    1.58 +#endif

mercurial