1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 A frame that can have multiple children. Only one child may be displayed at
11 one time. So the can be flipped though like a Stack of cards.
15 #ifndef nsStackFrame_h___
16 #define nsStackFrame_h___
18 #include "mozilla/Attributes.h"
19 #include "nsBoxFrame.h"
23 } // namespace mozilla
25 class nsStackFrame final
: public nsBoxFrame
{
27 NS_DECL_FRAMEARENA_HELPERS(nsStackFrame
)
29 friend nsIFrame
* NS_NewStackFrame(mozilla::PresShell
* aPresShell
,
30 ComputedStyle
* aStyle
);
32 #ifdef DEBUG_FRAME_DUMP
33 virtual nsresult
GetFrameName(nsAString
& aResult
) const override
{
34 return MakeFrameName(u
"Stack"_ns
, aResult
);
38 virtual void BuildDisplayListForChildren(
39 nsDisplayListBuilder
* aBuilder
, const nsDisplayListSet
& aLists
) override
;
42 explicit nsStackFrame(ComputedStyle
* aStyle
, nsPresContext
* aPresContext
);
43 }; // class nsStackFrame