Added function FindPrimaryFrameFor()

git-svn-id: svn://10.0.0.236/trunk@37981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-07-02 04:46:19 +00:00
parent 9e91a6aaba
commit eda7c241f2
7 changed files with 82 additions and 0 deletions

View File

@@ -145,6 +145,13 @@ public:
nsIFrame* aParentFrame,
nsIFrame** aContinuingFrame);
// 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);
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0);
private:
@@ -887,6 +894,17 @@ StyleSetImpl::CreateContinuingFrame(nsIPresContext* aPresContext,
aContinuingFrame);
}
// 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_IMETHODIMP
StyleSetImpl::FindPrimaryFrameFor(nsIPresContext* aPresContext,
nsIContent* aContent,
nsIFrame** aFrame)
{
return mFrameConstructor->FindPrimaryFrameFor(aPresContext, aContent, aFrame);
}
void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets)
{
PRUint32 cnt = 0;