1999-02-05 06:55:18 +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 "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
#ifndef nsCSSFrameConstructor_h___
|
|
|
|
#define nsCSSFrameConstructor_h___
|
|
|
|
|
|
|
|
#include "nsIStyleFrameConstruction.h"
|
|
|
|
#include "nslayout.h"
|
|
|
|
|
|
|
|
class nsIDocument;
|
|
|
|
struct nsFrameItems;
|
|
|
|
struct nsAbsoluteItems;
|
1999-02-10 22:50:50 +03:00
|
|
|
struct nsTableCreator;
|
1999-02-05 06:55:18 +03:00
|
|
|
class nsIStyleContext;
|
1999-02-26 12:15:03 +03:00
|
|
|
struct nsTableList;
|
1999-04-05 06:53:07 +04:00
|
|
|
struct nsStyleContent;
|
1999-02-05 06:55:18 +03:00
|
|
|
struct nsStyleDisplay;
|
|
|
|
class nsIPresShell;
|
1999-03-25 09:42:07 +03:00
|
|
|
class nsVoidArray;
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
class nsCSSFrameConstructor : public nsIStyleFrameConstruction {
|
|
|
|
public:
|
|
|
|
nsCSSFrameConstructor(void);
|
|
|
|
virtual ~nsCSSFrameConstructor(void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
// These are not supported and are not implemented!
|
|
|
|
nsCSSFrameConstructor(const nsCSSFrameConstructor& aCopy);
|
|
|
|
nsCSSFrameConstructor& operator=(const nsCSSFrameConstructor& aCopy);
|
|
|
|
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
NS_IMETHOD Init(nsIDocument* aDocument);
|
|
|
|
|
|
|
|
// nsIStyleFrameConstruction API
|
|
|
|
NS_IMETHOD ConstructRootFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aDocElement,
|
|
|
|
nsIFrame*& aNewFrame);
|
|
|
|
|
1999-03-01 19:57:35 +03:00
|
|
|
NS_IMETHOD ReconstructDocElementHierarchy(nsIPresContext* aPresContext);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
NS_IMETHOD ContentAppended(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContainer,
|
|
|
|
PRInt32 aNewIndexInContainer);
|
|
|
|
|
|
|
|
NS_IMETHOD ContentInserted(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContainer,
|
|
|
|
nsIContent* aChild,
|
|
|
|
PRInt32 aIndexInContainer);
|
|
|
|
|
|
|
|
NS_IMETHOD ContentReplaced(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContainer,
|
|
|
|
nsIContent* aOldChild,
|
|
|
|
nsIContent* aNewChild,
|
|
|
|
PRInt32 aIndexInContainer);
|
|
|
|
|
|
|
|
NS_IMETHOD ContentRemoved(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContainer,
|
|
|
|
nsIContent* aChild,
|
|
|
|
PRInt32 aIndexInContainer);
|
|
|
|
|
|
|
|
NS_IMETHOD ContentChanged(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsISupports* aSubContent);
|
1999-04-20 04:05:14 +04:00
|
|
|
NS_IMETHOD ContentStatesChanged(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent1,
|
|
|
|
nsIContent* aContent2);
|
1999-02-05 06:55:18 +03:00
|
|
|
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIAtom* aAttribute,
|
|
|
|
PRInt32 aHint);
|
|
|
|
|
|
|
|
// Style change notifications
|
|
|
|
NS_IMETHOD StyleRuleChanged(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleSheet* aStyleSheet,
|
|
|
|
nsIStyleRule* aStyleRule,
|
|
|
|
PRInt32 aHint); // See nsStyleConsts fot hint values
|
|
|
|
NS_IMETHOD StyleRuleAdded(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleSheet* aStyleSheet,
|
|
|
|
nsIStyleRule* aStyleRule);
|
|
|
|
NS_IMETHOD StyleRuleRemoved(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleSheet* aStyleSheet,
|
|
|
|
nsIStyleRule* aStyleRule);
|
1999-03-25 09:42:07 +03:00
|
|
|
|
|
|
|
NS_IMETHOD ProcessRestyledFrames(nsStyleChangeList& aRestyleArray,
|
|
|
|
nsIPresContext* aPresContext);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
// Notification that we were unable to render a replaced element.
|
|
|
|
NS_IMETHOD CantRenderReplacedElement(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame);
|
|
|
|
|
1999-02-24 07:03:50 +03:00
|
|
|
// Request to create a continuing frame
|
|
|
|
NS_IMETHOD CreateContinuingFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIFrame** aContinuingFrame);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
protected:
|
|
|
|
|
1999-02-12 02:08:28 +03:00
|
|
|
nsresult ResolveStyleContext(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIAtom* aTag,
|
|
|
|
nsIStyleContext** aStyleContext);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
nsresult ConstructFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsFrameItems& aFrameItems,
|
1999-02-26 20:11:54 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsAbsoluteItems& aFloatingItems);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructDocElementFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aDocElement,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aParentStyleContext,
|
|
|
|
nsIFrame*& aNewFrame,
|
|
|
|
nsAbsoluteItems& aFixedItems);
|
|
|
|
|
1999-04-05 06:53:07 +04:00
|
|
|
nsresult CreateGeneratedFrameFor(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
const nsStyleContent* aStyleContent,
|
|
|
|
PRUint32 aContentIndex,
|
|
|
|
nsIFrame** aFrame);
|
|
|
|
|
1999-03-30 19:22:54 +04:00
|
|
|
PRBool CreateGeneratedContentFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIAtom* aPseudoElement,
|
|
|
|
nsIFrame** aResult);
|
|
|
|
|
1999-04-06 08:58:05 +04:00
|
|
|
nsresult AppendFrames(nsIPresContext* aPresContext,
|
|
|
|
nsIPresShell* aPresShell,
|
1999-04-07 07:10:59 +04:00
|
|
|
nsIContent* aContainer,
|
1999-04-06 08:58:05 +04:00
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIFrame* aFrameList);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
// BEGIN TABLE SECTION
|
|
|
|
nsresult ConstructTableFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAboluteItems,
|
|
|
|
nsIFrame*& aNewFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructAnonymousTableFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsIFrame*& aNewTopFrame,
|
1999-02-05 06:55:18 +03:00
|
|
|
nsIFrame*& aOuterFrame,
|
|
|
|
nsIFrame*& aInnerFrame,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableCaptionFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewTopMostFrame,
|
|
|
|
nsIFrame*& aNewCaptionFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableGroupFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
PRBool aIsRowGroup,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsIFrame*& aNewTopFrame,
|
1999-02-05 06:55:18 +03:00
|
|
|
nsIFrame*& aNewGroupFrame,
|
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsTableList* aToDo = nsnull);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableGroupFrameOnly(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
PRBool aIsRowGroup,
|
|
|
|
nsIFrame*& aNewTopMostFrame,
|
|
|
|
nsIFrame*& aNewGroupFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsTableCreator& aTableCreator,
|
|
|
|
PRBool aProcessChildren = PR_TRUE);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableRowFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewTopMostFrame,
|
|
|
|
nsIFrame*& aNewRowFrame,
|
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsTableList* aToDo = nsnull);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableRowFrameOnly(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
PRBool aProcessChildren,
|
|
|
|
nsIFrame*& aNewRowFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableColFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewTopMostFrame,
|
|
|
|
nsIFrame*& aNewColFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
1999-02-27 22:02:48 +03:00
|
|
|
nsresult ConstructTableColFrameOnly(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewColFrame,
|
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsTableCreator& aTableCreator);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
nsresult ConstructTableCellFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewTopMostFrame,
|
|
|
|
nsIFrame*& aNewCellFrame,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsIFrame*& aNewCellBodyFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsTableCreator& aTableCreator,
|
|
|
|
PRBool aProcessChildren = PR_TRUE);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructTableCellFrameOnly(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsIFrame*& aNewCellFrame,
|
|
|
|
nsIFrame*& aNewCellBodyFrame,
|
1999-02-10 22:50:50 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-26 12:15:03 +03:00
|
|
|
nsTableCreator& aTableCreator,
|
|
|
|
PRBool aProcessChildren);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult TableProcessChildren(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsFrameItems& aChildList,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult TableProcessChild(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aChildContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aParentStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
1999-02-12 04:35:37 +03:00
|
|
|
nsFrameItems& aChildItems,
|
1999-02-12 02:08:28 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsTableCreator& aTableCreator);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
1999-02-26 12:15:03 +03:00
|
|
|
nsresult TableProcessTableList(nsIPresContext* aPresContext,
|
|
|
|
nsTableList& aTableList);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsIFrame* TableGetAsNonScrollFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
const nsStyleDisplay* aDisplayType);
|
|
|
|
|
1999-02-12 02:08:28 +03:00
|
|
|
PRBool TableIsValidCellContent(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIContent* aContent);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
const nsStyleDisplay* GetDisplay(nsIFrame* aFrame);
|
|
|
|
|
|
|
|
// END TABLE SECTION
|
|
|
|
|
|
|
|
nsresult CreatePlaceholderFrameFor(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIFrame*& aPlaceholderFrame);
|
|
|
|
|
1999-02-26 20:11:54 +03:00
|
|
|
nsresult CreateFloaterPlaceholderFrameFor(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIFrame** aPlaceholderFrame);
|
|
|
|
|
1999-04-14 08:00:16 +04:00
|
|
|
nsresult ConstructAlternateImageFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIFrame*& aFrame);
|
1999-02-06 06:45:11 +03:00
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
nsresult ConstructSelectFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIAtom* aTag,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewFrame,
|
|
|
|
PRBool & aProcessChildren,
|
1999-03-03 01:43:26 +03:00
|
|
|
PRBool aIsAbsolutelyPositioned,
|
|
|
|
PRBool & aFrameHasBeenInitialized,
|
|
|
|
PRBool aIsFixedPositioned,
|
1999-04-13 02:14:31 +04:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsFrameItems& aFrameItems);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult ConstructFrameByTag(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIAtom* aTag,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsFrameItems& aFrameItems,
|
1999-02-26 20:11:54 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsAbsoluteItems& aFloatingItems);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
#ifdef INCLUDE_XUL
|
|
|
|
nsresult ConstructXULFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIAtom* aTag,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsFrameItems& aFrameItems,
|
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-02-26 20:11:54 +03:00
|
|
|
nsAbsoluteItems& aFloatingItems,
|
1999-02-05 06:55:18 +03:00
|
|
|
PRBool& aHaltProcessing);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
nsresult ConstructFrameByDisplayType(nsIPresContext* aPresContext,
|
|
|
|
const nsStyleDisplay* aDisplay,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsFrameItems& aFrameItems,
|
1999-02-26 20:11:54 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
nsAbsoluteItems& aFloatingItems);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult GetAdjustedParentFrame(nsIFrame* aCurrentParentFrame,
|
|
|
|
PRUint8 aChildDisplayType,
|
|
|
|
nsIFrame*& aNewParentFrame);
|
|
|
|
|
|
|
|
|
|
|
|
nsresult ProcessChildren(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsFrameItems& aFrameItems,
|
1999-02-26 20:11:54 +03:00
|
|
|
nsAbsoluteItems& aFixedItems,
|
1999-04-05 06:53:07 +04:00
|
|
|
nsAbsoluteItems& aFloatingItems,
|
|
|
|
PRBool aCanHaveGeneratedContent = PR_FALSE);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
|
|
|
nsresult CreateInputFrame(nsIContent* aContent, nsIFrame*& aFrame);
|
|
|
|
|
|
|
|
PRBool IsScrollable(nsIPresContext* aPresContext, const nsStyleDisplay* aDisplay);
|
|
|
|
|
|
|
|
nsIFrame* GetFrameFor(nsIPresShell* aPresShell, nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent);
|
|
|
|
|
|
|
|
nsIFrame* GetAbsoluteContainingBlock(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame);
|
|
|
|
|
1999-02-26 20:11:54 +03:00
|
|
|
nsIFrame* GetFloaterContainingBlock(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
nsresult InitializeScrollFrame(nsIFrame * aScrollFrame,
|
|
|
|
nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsAbsoluteItems& aAbsoluteItems,
|
|
|
|
nsIFrame*& aNewFrame,
|
|
|
|
nsAbsoluteItems& aFixedItems,
|
|
|
|
PRBool aIsAbsolutelyPositioned,
|
|
|
|
PRBool aIsFixedPositioned,
|
|
|
|
PRBool aCreateBlock);
|
|
|
|
|
1999-02-27 10:15:09 +03:00
|
|
|
nsresult RecreateFramesForContent(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent);
|
|
|
|
|
1999-03-25 09:42:07 +03:00
|
|
|
PRInt32 FindRestyledFramesBelow(nsIFrame* aFrame,
|
|
|
|
nsIPresContext* aPresContext,
|
|
|
|
PRInt32 aParentHint,
|
|
|
|
nsStyleChangeList& aResults);
|
|
|
|
|
1999-04-20 04:05:14 +04:00
|
|
|
PRInt32 ComputeStateChangeFor(nsIPresContext* aPresContext, nsIFrame* aFrame,
|
|
|
|
nsStyleChangeList& aChangeList,
|
|
|
|
PRInt32 aFrameChange);
|
|
|
|
|
1999-02-27 22:02:48 +03:00
|
|
|
nsresult RecreateFramesOnAttributeChange(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIAtom* aAttribute);
|
1999-02-05 06:55:18 +03:00
|
|
|
|
1999-02-26 06:35:22 +03:00
|
|
|
nsresult CreateContinuingOuterTableFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIFrame** aContinuingFrame);
|
|
|
|
|
1999-03-03 19:33:57 +03:00
|
|
|
nsresult CreateContinuingTableFrame(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aFrame,
|
|
|
|
nsIFrame* aParentFrame,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIStyleContext* aStyleContext,
|
|
|
|
nsIFrame** aContinuingFrame);
|
|
|
|
|
1999-02-05 06:55:18 +03:00
|
|
|
protected:
|
|
|
|
nsIDocument* mDocument;
|
|
|
|
|
|
|
|
nsIFrame* mInitialContainingBlock;
|
|
|
|
nsIFrame* mFixedContainingBlock;
|
|
|
|
nsIFrame* mDocElementContainingBlock;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsCSSFrameConstructor_h___ */
|