mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Added DidFit/CanFit predicates; removed cruft
This commit is contained in:
parent
ff32f375c6
commit
43d9780a05
@ -23,8 +23,7 @@
|
|||||||
class nsInlineState;
|
class nsInlineState;
|
||||||
|
|
||||||
// Inline container class. Does not support being used as a pseudo frame
|
// Inline container class. Does not support being used as a pseudo frame
|
||||||
class nsInlineFrame : public nsHTMLContainerFrame
|
class nsInlineFrame : public nsHTMLContainerFrame {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
static nsresult NewFrame(nsIFrame** aInstancePtrResult,
|
static nsresult NewFrame(nsIFrame** aInstancePtrResult,
|
||||||
nsIContent* aContent,
|
nsIContent* aContent,
|
||||||
@ -48,6 +47,15 @@ protected:
|
|||||||
void InitializeState(nsIPresContext* aPresContext,
|
void InitializeState(nsIPresContext* aPresContext,
|
||||||
nsInlineState& aState);
|
nsInlineState& aState);
|
||||||
|
|
||||||
|
PRBool DidFitChild(nsIPresContext* aPresContext,
|
||||||
|
nsInlineState& aState,
|
||||||
|
nsIFrame* aChildFrame,
|
||||||
|
nsReflowMetrics& aChildMetrics);
|
||||||
|
|
||||||
|
PRBool CanFitChild(nsIPresContext* aPresContext,
|
||||||
|
nsInlineState& aState,
|
||||||
|
nsIFrame* aChildFrame);
|
||||||
|
|
||||||
void ComputeFinalSize(nsIPresContext* aPresContext,
|
void ComputeFinalSize(nsIPresContext* aPresContext,
|
||||||
nsInlineState& aState,
|
nsInlineState& aState,
|
||||||
nsReflowMetrics& aSize);
|
nsReflowMetrics& aSize);
|
||||||
@ -82,15 +90,6 @@ protected:
|
|||||||
nsInlineState& aState,
|
nsInlineState& aState,
|
||||||
nsIFrame* aChildFrame,
|
nsIFrame* aChildFrame,
|
||||||
PRInt32 aChildIndex);
|
PRInt32 aChildIndex);
|
||||||
|
|
||||||
#if 0
|
|
||||||
nsReflowStatus AdjustChildren(nsIPresContext* aPresContext,
|
|
||||||
nsReflowMetrics& aDesiredSize,
|
|
||||||
nsInlineState& aState,
|
|
||||||
nsIFrame* aKid,
|
|
||||||
nsReflowMetrics& aKidMetrics,
|
|
||||||
ReflowStatus aKidReflowStatus);
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* nsInlineFrame_h___ */
|
#endif /* nsInlineFrame_h___ */
|
||||||
|
Loading…
Reference in New Issue
Block a user