mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
e368dc9c85
This patch was generated by a script. Here's the source of the script for future reference: function convert() { echo "Converting $1 to $2..." find . ! -wholename "*nsprpub*" \ ! -wholename "*security/nss*" \ ! -wholename "*/.hg*" \ ! -wholename "obj-ff-dbg*" \ ! -name nsXPCOMCID.h \ ! -name prtypes.h \ -type f \ \( -iname "*.cpp" \ -o -iname "*.h" \ -o -iname "*.c" \ -o -iname "*.cc" \ -o -iname "*.idl" \ -o -iname "*.ipdl" \ -o -iname "*.ipdlh" \ -o -iname "*.mm" \) | \ xargs -n 1 sed -i -e "s/\b$1\b/$2/g" } convert PRInt8 int8_t convert PRUint8 uint8_t convert PRInt16 int16_t convert PRUint16 uint16_t convert PRInt32 int32_t convert PRUint32 uint32_t convert PRInt64 int64_t convert PRUint64 uint64_t convert PRIntn int convert PRUintn unsigned convert PRSize size_t convert PROffset32 int32_t convert PROffset64 int64_t convert PRPtrdiff ptrdiff_t convert PRFloat64 double
82 lines
2.6 KiB
C++
82 lines
2.6 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
* vim:cindent:ts=2:et:sw=2:
|
|
*
|
|
* 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/.
|
|
*
|
|
* 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
|
|
{
|
|
public:
|
|
nsFrameManagerBase()
|
|
{
|
|
memset(this, '\0', sizeof(nsFrameManagerBase));
|
|
}
|
|
|
|
bool IsDestroyingFrames() { return mIsDestroyingFrames; }
|
|
|
|
/*
|
|
* 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;
|
|
}
|
|
|
|
static uint32_t GetGlobalGenerationNumber() { return sGlobalGenerationNumber; }
|
|
|
|
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;
|
|
bool mIsDestroyingFrames; // The frame manager is destroying some frame(s).
|
|
|
|
// The frame tree generation number
|
|
// We use this to avoid unnecessary screenshotting
|
|
// on Android. Unfortunately, this is static to match
|
|
// the single consumer which is also static. Keeping
|
|
// this the same greatly simplifies lifetime issues and
|
|
// makes sure we always using the correct number.
|
|
// A per PresContext generation number is available
|
|
// via nsPresContext::GetDOMGeneration
|
|
static uint32_t sGlobalGenerationNumber;
|
|
};
|
|
|
|
#endif
|