Added function FindPrimaryFrameFor()

This commit is contained in:
troy%netscape.com 1999-07-02 04:46:19 +00:00
parent 5f3526c72b
commit 5b550f3d8a
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;

View File

@ -112,6 +112,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);
NS_IMETHODIMP CreateTreeWidgetContent(nsIPresContext* aPresContext,
nsIFrame* aParentFrame,
nsIFrame* aPrevFrame,

View File

@ -102,6 +102,13 @@ public:
nsIFrame* aFrame,
nsIFrame* aParentFrame,
nsIFrame** aContinuingFrame) = 0;
// 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) = 0;
};
#endif /* nsIStyleFrameConstruction_h___ */

View File

@ -157,6 +157,13 @@ public:
nsIFrame* aParentFrame,
nsIFrame** aContinuingFrame) = 0;
// 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) = 0;
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) = 0;
virtual void ListContexts(nsIStyleContext* aRootContext, FILE* out = stdout, PRInt32 aIndent = 0) = 0;
};

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;

View File

@ -112,6 +112,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);
NS_IMETHODIMP CreateTreeWidgetContent(nsIPresContext* aPresContext,
nsIFrame* aParentFrame,
nsIFrame* aPrevFrame,

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;