2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim:cindent:ts=2:et:sw=2:
|
|
|
|
*
|
2012-05-21 04:12:37 -07: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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
*
|
|
|
|
* This Original Code has been modified by IBM Corporation. Modifications made
|
|
|
|
* by IBM described herein are Copyright (c) International Business Machines
|
|
|
|
* Corporation, 2000. Modifications to Mozilla code or documentation identified
|
|
|
|
* per MPL Section 3.3
|
|
|
|
*
|
|
|
|
* Date Modified by Description of modification
|
|
|
|
* 04/20/2000 IBM Corp. OS/2 VisualAge build.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* part of nsFrameManager, to work around header inclusionordering */
|
|
|
|
|
|
|
|
#ifndef _nsFrameManagerBase_h_
|
|
|
|
#define _nsFrameManagerBase_h_
|
|
|
|
|
|
|
|
#include "pldhash.h"
|
|
|
|
|
|
|
|
class nsIPresShell;
|
|
|
|
class nsStyleSet;
|
|
|
|
class nsIContent;
|
|
|
|
class nsPlaceholderFrame;
|
|
|
|
class nsIFrame;
|
|
|
|
class nsStyleContext;
|
|
|
|
class nsIAtom;
|
|
|
|
class nsStyleChangeList;
|
|
|
|
class nsILayoutHistoryState;
|
|
|
|
|
|
|
|
class nsFrameManagerBase
|
|
|
|
{
|
2008-12-12 00:25:16 -08:00
|
|
|
public:
|
2012-02-02 02:06:46 -08:00
|
|
|
nsFrameManagerBase()
|
|
|
|
{
|
|
|
|
memset(this, '\0', sizeof(nsFrameManagerBase));
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsDestroyingFrames() { return mIsDestroyingFrames; }
|
2008-12-12 00:25:16 -08:00
|
|
|
|
2010-03-31 05:48:04 -07:00
|
|
|
/*
|
|
|
|
* Gets and sets the root frame (typically the viewport). The lifetime of the
|
|
|
|
* root frame is controlled by the frame manager. When the frame manager is
|
|
|
|
* destroyed, it destroys the entire frame hierarchy.
|
|
|
|
*/
|
|
|
|
NS_HIDDEN_(nsIFrame*) GetRootFrame() const { return mRootFrame; }
|
|
|
|
NS_HIDDEN_(void) SetRootFrame(nsIFrame* aRootFrame)
|
|
|
|
{
|
|
|
|
NS_ASSERTION(!mRootFrame, "already have a root frame");
|
|
|
|
mRootFrame = aRootFrame;
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
protected:
|
|
|
|
class UndisplayedMap;
|
|
|
|
|
|
|
|
// weak link, because the pres shell owns us
|
|
|
|
nsIPresShell* mPresShell;
|
|
|
|
// the pres shell owns the style set
|
|
|
|
nsStyleSet* mStyleSet;
|
|
|
|
nsIFrame* mRootFrame;
|
|
|
|
PLDHashTable mPlaceholderMap;
|
|
|
|
UndisplayedMap* mUndisplayedMap;
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mIsDestroyingFrames; // The frame manager is destroying some frame(s).
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|