Added unconstrainted reflow optimization methods

r=kmcclusk bug=12653


git-svn-id: svn://10.0.0.236/trunk@56842 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2000-01-05 15:15:22 +00:00
parent dba8e9a1b8
commit 18cc797646
4 changed files with 172 additions and 0 deletions

View File

@@ -208,7 +208,19 @@ public:
// nsIFormControlFrame
NS_IMETHOD SetProperty(nsIPresContext* aPresContext, nsIAtom* aName, const nsString& aValue);
NS_IMETHOD GetProperty(nsIAtom* aName, nsString& aValue);
// Resize Reflow Optimiaztion Methods
static void SetupCachedSizes(nsSize& aCacheSize,
nsSize& aCachedMaxElementSize,
nsHTMLReflowMetrics& aDesiredSize);
static nsresult SkipResizeReflow(nsSize& aCacheSize,
nsSize& aCachedMaxElementSize,
nsIPresContext* aPresContext,
nsHTMLReflowMetrics& aDesiredSize,
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus);
protected:
@@ -289,6 +301,10 @@ protected:
nscoord mSuggestedWidth;
nscoord mSuggestedHeight;
// Reflow Optimization
nsSize mCacheSize;
nsSize mCachedMaxElementSize;
private:
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }