1998-11-16 20:11:12 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
* compliance with the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS"
|
|
|
|
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
|
|
* the License for the specific language governing rights and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Communicator client code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
|
|
* Corporation. Portions created by Netscape are Copyright (C) 1998
|
|
|
|
* Netscape Communications Corporation. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
#ifndef nsBlockFrame_h___
|
|
|
|
#define nsBlockFrame_h___
|
|
|
|
|
|
|
|
#include "nsHTMLContainerFrame.h"
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
class nsBlockReflowState;
|
|
|
|
class nsBulletFrame;
|
|
|
|
class nsLineBox;
|
|
|
|
class nsTextRun;
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-11-18 09:13:58 +03:00
|
|
|
/**
|
|
|
|
* Child list name indices
|
|
|
|
* @see #GetAdditionalChildListName()
|
|
|
|
*/
|
|
|
|
#define NS_BLOCK_FRAME_FLOATER_LIST_INDEX 0
|
|
|
|
#define NS_BLOCK_FRAME_BULLET_LIST_INDEX 1
|
|
|
|
#define NS_BLOCK_FRAME_LAST_LIST_INDEX NS_BLOCK_FRAME_BULLET_LIST_INDEX
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
#define nsBaseIBFrameSuper nsHTMLContainerFrame
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
// Additional nsBaseIBFrame.mFlags bit:
|
|
|
|
// This is really an inline frame, not a block frame
|
|
|
|
#define BLOCK_IS_INLINE 0x100
|
|
|
|
|
|
|
|
// Base class for block and inline frames
|
|
|
|
class nsBaseIBFrame : public nsBaseIBFrameSuper
|
1998-11-16 20:11:12 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// nsISupports
|
|
|
|
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
|
|
|
|
|
|
|
|
// nsIFrame
|
|
|
|
NS_IMETHOD SetInitialChildList(nsIPresContext& aPresContext,
|
|
|
|
nsIAtom* aListName,
|
|
|
|
nsIFrame* aChildList);
|
|
|
|
NS_IMETHOD FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const;
|
|
|
|
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
|
|
|
|
NS_IMETHOD IsSplittable(nsSplittableType& aIsSplittable) const;
|
1998-12-05 19:02:08 +03:00
|
|
|
NS_IMETHOD ReResolveStyleContext(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleContext* aParentContext);
|
1998-11-16 20:11:12 +03:00
|
|
|
NS_IMETHOD CreateContinuingFrame(nsIPresContext& aPresContext,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
1998-12-05 19:02:08 +03:00
|
|
|
nsIFrame*& aContinuingFrame) = 0;
|
1998-11-16 20:11:12 +03:00
|
|
|
NS_IMETHOD Paint(nsIPresContext& aPresContext,
|
|
|
|
nsIRenderingContext& aRenderingContext,
|
1998-12-18 18:54:23 +03:00
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
nsFramePaintLayer aWhichLayer);
|
1999-01-16 03:00:50 +03:00
|
|
|
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
1998-12-05 19:02:08 +03:00
|
|
|
NS_IMETHOD GetFrameName(nsString& aResult) const = 0;
|
1998-11-16 20:11:12 +03:00
|
|
|
NS_IMETHOD VerifyTree() const;
|
1998-11-19 21:09:57 +03:00
|
|
|
NS_IMETHOD GetFrameForPoint(const nsPoint& aPoint, nsIFrame** aFrame);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
|
|
|
// nsIHTMLReflow
|
|
|
|
NS_IMETHOD Reflow(nsIPresContext& aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus);
|
|
|
|
NS_IMETHOD MoveInSpaceManager(nsIPresContext& aPresContext,
|
|
|
|
nsISpaceManager* aSpaceManager,
|
|
|
|
nscoord aDeltaX, nscoord aDeltaY);
|
|
|
|
|
|
|
|
#ifdef DO_SELECTION
|
|
|
|
NS_IMETHOD HandleEvent(nsIPresContext& aPresContext,
|
|
|
|
nsGUIEvent* aEvent,
|
|
|
|
nsEventStatus& aEventStatus);
|
|
|
|
|
|
|
|
NS_IMETHOD HandleDrag(nsIPresContext& aPresContext,
|
|
|
|
nsGUIEvent* aEvent,
|
|
|
|
nsEventStatus& aEventStatus);
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
nsIFrame * FindHitFrame(nsBaseIBFrame * aBlockFrame,
|
1998-11-16 20:11:12 +03:00
|
|
|
const nscoord aX, const nscoord aY,
|
|
|
|
const nsPoint & aPoint);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
1999-01-16 01:53:39 +03:00
|
|
|
virtual void DeleteChildsNextInFlow(nsIPresContext& aPresContext,
|
|
|
|
nsIFrame* aNextInFlow);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
protected:
|
|
|
|
nsBaseIBFrame();
|
|
|
|
virtual ~nsBaseIBFrame();
|
1998-11-16 20:11:12 +03:00
|
|
|
|
|
|
|
void SetFlags(PRUint32 aFlags) {
|
|
|
|
mFlags = aFlags;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SlideFrames(nsIPresContext& aPresContext,
|
|
|
|
nsISpaceManager* aSpaceManager,
|
1998-12-05 19:02:08 +03:00
|
|
|
nsLineBox* aLine, nscoord aDY);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-12 22:18:28 +03:00
|
|
|
void SlideFloaters(nsIPresContext& aPresContext,
|
|
|
|
nsISpaceManager* aSpaceManager,
|
|
|
|
nsLineBox* aLine, nscoord aDY,
|
|
|
|
PRBool aUpdateSpaceManager);
|
|
|
|
|
1998-11-16 20:11:12 +03:00
|
|
|
PRBool DrainOverflowLines();
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
PRBool RemoveChild(nsLineBox* aLines, nsIFrame* aChild);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual PRIntn GetSkipSides() const;
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual void ComputeFinalSize(nsBlockReflowState& aState,
|
|
|
|
nsHTMLReflowMetrics& aMetrics);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1999-01-06 02:01:54 +03:00
|
|
|
void MarkEmptyLines(nsIPresContext& aPresContext);
|
1998-12-17 21:52:10 +03:00
|
|
|
|
|
|
|
nsresult AppendNewFrames(nsIPresContext& aPresContext, nsIFrame*);
|
|
|
|
|
1998-11-16 20:11:12 +03:00
|
|
|
nsresult InsertNewFrame(nsIPresContext& aPresContext,
|
1998-12-05 19:02:08 +03:00
|
|
|
nsIFrame* aNewFrame,
|
|
|
|
nsIFrame* aPrevSibling);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-18 20:34:34 +03:00
|
|
|
nsresult DoRemoveFrame(nsBlockReflowState& aState,
|
1999-01-06 02:01:54 +03:00
|
|
|
nsIFrame* aDeletedFrame);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareInitialReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareFrameAppendedReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareFrameInsertedReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareFrameRemovedReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareStyleChangedReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareChildIncrementalReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult PrepareResizeReflow(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult ReflowDirtyLines(nsBlockReflowState& aState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
nsresult RecoverStateFrom(nsBlockReflowState& aState,
|
1998-12-12 22:18:28 +03:00
|
|
|
nsLineBox* aLine,
|
|
|
|
nscoord aDeltaY);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
//----------------------------------------
|
|
|
|
// Methods for line reflow
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual void WillReflowLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual nsresult ReflowLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
PRBool& aKeepGoing);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual void DidReflowLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
PRBool aKeepGoing);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
nsresult PlaceLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
PRBool& aKeepGoing);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
// XXX blech
|
|
|
|
void PostPlaceLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
const nsSize& aMaxElementSize);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-17 21:52:10 +03:00
|
|
|
void ComputeLineMaxElementSize(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsSize* aMaxElementSize);
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
virtual void DidPlaceLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nscoord aTopMargin, nscoord aBottomMargin,
|
|
|
|
PRBool aKeepGoing);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
// XXX where to go
|
|
|
|
PRBool ShouldJustifyLine(nsBlockReflowState& aState, nsLineBox* aLine);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
void FindFloaters(nsLineBox* aLine);
|
|
|
|
|
1998-12-08 01:28:23 +03:00
|
|
|
void DeleteLine(nsBlockReflowState& aState, nsLineBox* aLine);
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
//----------------------------------------
|
|
|
|
// Methods for individual frame reflow
|
|
|
|
|
|
|
|
virtual void WillReflowFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame* aFrame);
|
|
|
|
|
|
|
|
nsresult ReflowBlockFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
PRBool& aKeepGoing);
|
|
|
|
|
|
|
|
nsresult ReflowInlineFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
PRBool& aKeepLineGoing,
|
|
|
|
PRBool& aKeepReflowGoing);
|
|
|
|
|
|
|
|
virtual void DidReflowFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsReflowStatus aStatus);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
|
|
|
void ReflowFloater(nsIPresContext& aPresContext,
|
|
|
|
nsBlockReflowState& aState,
|
1998-11-17 04:04:21 +03:00
|
|
|
nsIFrame* aFloaterFrame,
|
|
|
|
nsHTMLReflowState& aFloaterReflowState);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
//----------------------------------------
|
|
|
|
// Methods for pushing/pulling lines/frames
|
|
|
|
|
|
|
|
virtual nsresult CreateContinuationFor(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
PRBool& aMadeNewFrame);
|
|
|
|
|
|
|
|
nsresult SplitLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame* aFrame);
|
|
|
|
|
|
|
|
nsBaseIBFrame* FindFollowingBlockFrame(nsIFrame* aFrame);
|
|
|
|
|
|
|
|
nsresult PullFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame*& aFrameResult);
|
|
|
|
|
|
|
|
nsresult PullFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aToLine,
|
|
|
|
nsLineBox** aFromList,
|
|
|
|
PRBool aUpdateGeometricParent,
|
|
|
|
nsIFrame*& aFrameResult,
|
|
|
|
PRBool& aStopPulling);
|
|
|
|
|
|
|
|
void PushLines(nsBlockReflowState& aState);
|
|
|
|
|
|
|
|
//----------------------------------------
|
|
|
|
//XXX
|
1998-12-18 18:54:23 +03:00
|
|
|
virtual void PaintChildren(nsIPresContext& aPresContext,
|
|
|
|
nsIRenderingContext& aRenderingContext,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
nsFramePaintLayer aWhichLayer);
|
|
|
|
|
1998-11-16 20:11:12 +03:00
|
|
|
void PaintFloaters(nsIPresContext& aPresContext,
|
|
|
|
nsIRenderingContext& aRenderingContext,
|
1998-12-18 18:54:23 +03:00
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
nsFramePaintLayer aWhichLayer);
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
nsLineBox* FindLineFor(nsIFrame* aFrame, PRBool& aIsFloaterResult);
|
|
|
|
|
|
|
|
void PropogateReflowDamage(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nscoord aDeltaY);
|
|
|
|
|
|
|
|
nsresult IsComplete();
|
1998-11-16 20:11:12 +03:00
|
|
|
|
|
|
|
#ifdef NS_DEBUG
|
|
|
|
PRBool IsChild(nsIFrame* aFrame);
|
|
|
|
#endif
|
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
nsLineBox* mLines;
|
|
|
|
|
|
|
|
nsLineBox* mOverflowLines;
|
|
|
|
|
|
|
|
// XXX subclass!
|
|
|
|
PRUint32 mFlags;
|
|
|
|
|
|
|
|
static nsIAtom* gFloaterAtom;
|
|
|
|
static nsIAtom* gBulletAtom;
|
|
|
|
|
|
|
|
friend class nsBlockReflowState;
|
|
|
|
};
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
//----------------------------------------------------------------------
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
#define nsBlockFrameSuper nsBaseIBFrame
|
|
|
|
|
1998-12-09 08:30:17 +03:00
|
|
|
/**
|
|
|
|
* The block frame has two additional named child lists:
|
|
|
|
* - "Floater-list" which contains the floated frames
|
|
|
|
* - "Bullet-list" which contains the bullet frame
|
|
|
|
*
|
|
|
|
* @see nsLayoutAtoms::bulletList
|
|
|
|
* @see nsLayoutAtoms::floaterList
|
|
|
|
*/
|
1998-12-05 19:02:08 +03:00
|
|
|
class nsBlockFrame : public nsBlockFrameSuper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend nsresult NS_NewBlockFrame(nsIFrame*& aNewFrame, PRUint32 aFlags);
|
|
|
|
|
|
|
|
// nsISupports overrides
|
|
|
|
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
|
|
|
|
|
|
|
|
// nsIFrame overrides
|
|
|
|
NS_IMETHOD SetInitialChildList(nsIPresContext& aPresContext,
|
|
|
|
nsIAtom* aListName,
|
|
|
|
nsIFrame* aChildList);
|
|
|
|
NS_IMETHOD FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const;
|
|
|
|
NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex,
|
|
|
|
nsIAtom*& aListName) const;
|
|
|
|
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
|
|
|
|
NS_IMETHOD ReResolveStyleContext(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleContext* aParentContext);
|
|
|
|
NS_IMETHOD CreateContinuingFrame(nsIPresContext& aCX,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIFrame*& aContinuingFrame);
|
|
|
|
NS_IMETHOD IsPercentageBase(PRBool& aBase) const;
|
|
|
|
NS_IMETHOD GetFrameForPoint(const nsPoint& aPoint, nsIFrame** aFrame);
|
|
|
|
NS_IMETHOD GetFrameName(nsString& aResult) const;
|
1999-01-16 03:00:50 +03:00
|
|
|
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
1998-12-05 19:02:08 +03:00
|
|
|
|
|
|
|
// nsIHTMLReflow overrides
|
|
|
|
NS_IMETHOD Reflow(nsIPresContext& aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsBlockFrame();
|
|
|
|
virtual ~nsBlockFrame();
|
|
|
|
|
|
|
|
// nsContainerFrame overrides
|
|
|
|
virtual void PaintChildren(nsIPresContext& aPresContext,
|
|
|
|
nsIRenderingContext& aRenderingContext,
|
1998-12-18 18:54:23 +03:00
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
nsFramePaintLayer aWhichLayer);
|
1998-12-05 19:02:08 +03:00
|
|
|
|
|
|
|
// nsBaseIBFrame overrides
|
|
|
|
virtual void ComputeFinalSize(nsBlockReflowState& aState,
|
|
|
|
nsHTMLReflowMetrics& aMetrics);
|
|
|
|
virtual nsresult PrepareInitialReflow(nsBlockReflowState& aState);
|
|
|
|
virtual nsresult PrepareFrameAppendedReflow(nsBlockReflowState& aState);
|
|
|
|
virtual nsresult PrepareFrameInsertedReflow(nsBlockReflowState& aState);
|
|
|
|
virtual nsresult PrepareFrameRemovedReflow(nsBlockReflowState& aState);
|
|
|
|
virtual nsresult ReflowDirtyLines(nsBlockReflowState& aState);
|
|
|
|
virtual void WillReflowLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine);
|
|
|
|
virtual void DidPlaceLine(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nscoord aTopMargin, nscoord aBottomMargin,
|
|
|
|
PRBool aLineReflowStatus);
|
|
|
|
virtual void WillReflowFrame(nsBlockReflowState& aState,
|
|
|
|
nsLineBox* aLine,
|
|
|
|
nsIFrame* aFrame);
|
|
|
|
|
|
|
|
void TakeRunInFrames(nsBlockFrame* aRunInFrame);
|
|
|
|
|
1998-12-18 20:34:34 +03:00
|
|
|
nsresult ComputeTextRuns(nsBlockReflowState& aState);
|
1998-12-05 19:02:08 +03:00
|
|
|
|
|
|
|
void BuildFloaterList();
|
|
|
|
|
|
|
|
void RenumberLists(nsBlockReflowState& aState);
|
|
|
|
|
|
|
|
PRBool ShouldPlaceBullet(nsLineBox* aLine);
|
|
|
|
|
|
|
|
void PlaceBullet(nsBlockReflowState& aState,
|
|
|
|
nscoord aMaxAscent,
|
|
|
|
nscoord aTopMargin);
|
|
|
|
|
|
|
|
void RestoreStyleFor(nsIPresContext& aPresContext, nsIFrame* aFrame);
|
|
|
|
|
|
|
|
nsIStyleContext* mFirstLineStyle;
|
|
|
|
|
|
|
|
nsIStyleContext* mFirstLetterStyle;
|
1998-11-16 20:11:12 +03:00
|
|
|
|
|
|
|
// Text run information
|
|
|
|
nsTextRun* mTextRuns;
|
|
|
|
|
|
|
|
// List of all floaters in this block
|
1999-01-16 01:53:39 +03:00
|
|
|
nsFrameList mFloaters;
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
// XXX_fix_me: subclass one more time!
|
|
|
|
// For list-item frames, this is the bullet frame.
|
|
|
|
nsBulletFrame* mBullet;
|
1998-11-16 20:11:12 +03:00
|
|
|
|
1998-12-05 19:02:08 +03:00
|
|
|
//friend class nsBaseIBFrame;
|
1998-11-16 20:11:12 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsBlockFrame_h___ */
|
|
|
|
|