Bug 62384. Invalidate cached height when it's not equal to the current height. r+sr=roc, patch by Hideo Saito.
git-svn-id: svn://10.0.0.236/trunk@162928 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1518,6 +1518,11 @@ nsComboboxControlFrame::Reflow(nsPresContext* aPresContext,
|
||||
size.height = firstPassState.mComputedHeight;
|
||||
}
|
||||
|
||||
if (mCacheSize.height != size.height) {
|
||||
// if the cached height is not equal to the current height,
|
||||
// the cached height is reset.
|
||||
mCacheSize.height = kSizeNotSet;
|
||||
}
|
||||
|
||||
// this reflows and makes and last minute adjustments
|
||||
ReflowCombobox(aPresContext, firstPassState, aDesiredSize, aStatus,
|
||||
|
||||
@@ -1518,6 +1518,11 @@ nsComboboxControlFrame::Reflow(nsPresContext* aPresContext,
|
||||
size.height = firstPassState.mComputedHeight;
|
||||
}
|
||||
|
||||
if (mCacheSize.height != size.height) {
|
||||
// if the cached height is not equal to the current height,
|
||||
// the cached height is reset.
|
||||
mCacheSize.height = kSizeNotSet;
|
||||
}
|
||||
|
||||
// this reflows and makes and last minute adjustments
|
||||
ReflowCombobox(aPresContext, firstPassState, aDesiredSize, aStatus,
|
||||
|
||||
Reference in New Issue
Block a user