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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user