Avoid reframing inside button frames and move the frame creation entirely into the frame constructor, bug 51767, r=mats sr=roc

This commit is contained in:
bmlk@gmx.de
2006-01-13 07:58:12 +00:00
parent 14e3ce78e7
commit 5b8ee77062
6 changed files with 162 additions and 100 deletions

View File

@@ -88,10 +88,6 @@ public:
virtual nsIFrame* GetFrameForPoint(const nsPoint& aPoint,
nsFramePaintLayer aWhichLayer);
NS_IMETHOD SetInitialChildList(nsPresContext* aPresContext,
nsIAtom* aListName,
nsIFrame* aChildList);
NS_IMETHOD Init(nsPresContext* aPresContext,
nsIContent* aContent,
nsIFrame* aParent,
@@ -133,7 +129,6 @@ public:
}
protected:
void ReParentFrameList(nsFrameManager* aFrameManager, nsIFrame* aFrameList);
virtual PRBool IsReset(PRInt32 type);
virtual PRBool IsSubmit(PRInt32 type);
void ReflowButtonContents(nsPresContext* aPresContext,
@@ -144,8 +139,7 @@ protected:
nsReflowReason aReason,
nsMargin aFocusPadding,
nsReflowStatus& aStatus);
NS_IMETHOD AddComputedBorderPaddingToDesiredSize(nsHTMLReflowMetrics& aDesiredSize,
const nsHTMLReflowState& aSuggestedReflowState);
NS_IMETHOD_(nsrefcnt) AddRef(void);
NS_IMETHOD_(nsrefcnt) Release(void);