Changed frame construction code to use frame manager when modifying frame

model


git-svn-id: svn://10.0.0.236/trunk@42257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-08-05 03:09:22 +00:00
parent e41495fe85
commit db679bfa7c
16 changed files with 423 additions and 455 deletions

View File

@@ -142,9 +142,10 @@ public:
// Request to find the primary frame associated with a given content object.
// This is typically called by the pres shell when there is no mapping in
// the pres shell hash table
NS_IMETHOD FindPrimaryFrameFor(nsIPresContext* aPresContext,
nsIContent* aContent,
nsIFrame** aFrame);
NS_IMETHOD FindPrimaryFrameFor(nsIPresContext* aPresContext,
nsIFrameManager* aFrameManager,
nsIContent* aContent,
nsIFrame** aFrame);
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0);
@@ -892,11 +893,13 @@ StyleSetImpl::CreateContinuingFrame(nsIPresContext* aPresContext,
// This is typically called by the pres shell when there is no mapping in
// the pres shell hash table
NS_IMETHODIMP
StyleSetImpl::FindPrimaryFrameFor(nsIPresContext* aPresContext,
nsIContent* aContent,
nsIFrame** aFrame)
StyleSetImpl::FindPrimaryFrameFor(nsIPresContext* aPresContext,
nsIFrameManager* aFrameManager,
nsIContent* aContent,
nsIFrame** aFrame)
{
return mFrameConstructor->FindPrimaryFrameFor(aPresContext, aContent, aFrame);
return mFrameConstructor->FindPrimaryFrameFor(aPresContext, aFrameManager,
aContent, aFrame);
}
void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets)