Bug 1698786: part 2) Change some compile-time dependent `printf`s to `MOZ_LOG` in...
[gecko.git] / layout / xul / nsStackFrame.h
blob12ecb955eed96b40f330a86eb899e215ff1f01b5
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/. */
7 /**
9 Eric D Vaughan
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.
13 **/
15 #ifndef nsStackFrame_h___
16 #define nsStackFrame_h___
18 #include "mozilla/Attributes.h"
19 #include "nsBoxFrame.h"
21 namespace mozilla {
22 class PresShell;
23 } // namespace mozilla
25 class nsStackFrame final : public nsBoxFrame {
26 public:
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);
36 #endif
38 virtual void BuildDisplayListForChildren(
39 nsDisplayListBuilder* aBuilder, const nsDisplayListSet& aLists) override;
41 protected:
42 explicit nsStackFrame(ComputedStyle* aStyle, nsPresContext* aPresContext);
43 }; // class nsStackFrame
45 #endif