michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: michael@0: Eric D Vaughan michael@0: A frame that can have multiple children. Only one child may be displayed at one time. So the michael@0: can be flipped though like a deck of cards. michael@0: michael@0: **/ michael@0: michael@0: #ifndef nsGridRowLeafFrame_h___ michael@0: #define nsGridRowLeafFrame_h___ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsBoxFrame.h" michael@0: michael@0: /** michael@0: * A frame representing a grid row (or column). Grid row (and column) michael@0: * elements are the children of row group (or column group) elements, michael@0: * and their children are placed one to a cell. michael@0: */ michael@0: // XXXldb This needs a better name that indicates that it's for any grid michael@0: // row. michael@0: class nsGridRowLeafFrame : public nsBoxFrame michael@0: { michael@0: public: michael@0: NS_DECL_FRAMEARENA_HELPERS michael@0: michael@0: friend nsIFrame* NS_NewGridRowLeafFrame(nsIPresShell* aPresShell, michael@0: nsStyleContext* aContext); michael@0: michael@0: #ifdef DEBUG_FRAME_DUMP michael@0: virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE michael@0: { michael@0: return MakeFrameName(NS_LITERAL_STRING("nsGridRowLeaf"), aResult); michael@0: } michael@0: #endif michael@0: michael@0: nsGridRowLeafFrame(nsIPresShell* aPresShell, michael@0: nsStyleContext* aContext, michael@0: bool aIsRoot, michael@0: nsBoxLayout* aLayoutManager): michael@0: nsBoxFrame(aPresShell, aContext, aIsRoot, aLayoutManager) {} michael@0: michael@0: virtual nsresult GetBorderAndPadding(nsMargin& aBorderAndPadding) MOZ_OVERRIDE; michael@0: michael@0: }; // class nsGridRowLeafFrame michael@0: michael@0: michael@0: michael@0: #endif michael@0: