2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-03-02 03:01:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
Eric D Vaughan
|
|
|
|
A frame that can have multiple children. Only one child may be displayed at one time. So the
|
2000-03-31 07:02:06 +00:00
|
|
|
can be flipped though like a Stack of cards.
|
2000-03-02 03:01:30 +00:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef nsStackFrame_h___
|
|
|
|
#define nsStackFrame_h___
|
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2000-03-02 03:01:30 +00:00
|
|
|
#include "nsBoxFrame.h"
|
|
|
|
|
|
|
|
class nsStackFrame : public nsBoxFrame
|
|
|
|
{
|
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
2000-03-02 03:01:30 +00:00
|
|
|
|
2009-01-19 18:31:33 +00:00
|
|
|
friend nsIFrame* NS_NewStackFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext);
|
2000-03-02 03:01:30 +00:00
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE
|
2000-03-02 03:01:30 +00:00
|
|
|
{
|
2001-11-14 01:33:42 +00:00
|
|
|
return MakeFrameName(NS_LITERAL_STRING("Stack"), aResult);
|
2000-03-02 03:01:30 +00:00
|
|
|
}
|
2000-04-11 23:55:15 +00:00
|
|
|
#endif
|
2000-03-02 03:01:30 +00:00
|
|
|
|
2013-02-14 11:12:27 +00:00
|
|
|
virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
2000-03-02 03:01:30 +00:00
|
|
|
|
2000-06-06 01:25:03 +00:00
|
|
|
protected:
|
2009-01-19 18:31:33 +00:00
|
|
|
nsStackFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
2000-03-02 03:01:30 +00:00
|
|
|
}; // class nsStackFrame
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|