layout/generic/nsGridContainerFrame.h

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

     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 #ifndef nsGridContainerFrame_h___
    11 #define nsGridContainerFrame_h___
    13 #include "nsContainerFrame.h"
    15 nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
    16                                    nsStyleContext* aContext);
    18 typedef nsContainerFrame nsGridContainerFrameSuper;
    20 class nsGridContainerFrame : public nsGridContainerFrameSuper {
    22   NS_DECL_FRAMEARENA_HELPERS
    23   NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame)
    24   NS_DECL_QUERYFRAME
    26   // Factory method:
    27   friend nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
    28                                             nsStyleContext* aContext);
    30 public:
    31   // nsIFrame overrides
    32   virtual nsIAtom* GetType() const MOZ_OVERRIDE;
    33 #ifdef DEBUG_FRAME_DUMP
    34   virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE;
    35 #endif
    37 protected:
    38   // Protected constructor & destructor
    39   nsGridContainerFrame(nsStyleContext* aContext) : nsGridContainerFrameSuper(aContext) {}
    40   virtual ~nsGridContainerFrame();
    41 };
    43 #endif /* nsGridContainerFrame_h___ */

mercurial