Bug 1172239. Make vertically-resizing scrollframes reflow their percent-height descendants if necessary, and remove nsChangeHint_NeedDirtyReflow for height changes. r=bz

--HG--
extra : commitid : Hbu6gzLSBUp
extra : rebase_source : 4d0b03a0ff2e53ea262ef6c17630b450b535dc3c
This commit is contained in:
Robert O'Callahan 2015-07-17 17:08:54 +12:00
Родитель fe4ce5eb68
Коммит 7dd9009ba5
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -505,6 +505,9 @@ nsHTMLScrollFrame::ReflowScrolledFrame(ScrollReflowState* aState,
kidReflowState.SetComputedBSize(computedBSize);
kidReflowState.ComputedMinBSize() = computedMinBSize;
kidReflowState.ComputedMaxBSize() = computedMaxBSize;
if (aState->mReflowState.IsBResize()) {
kidReflowState.SetBResize(true);
}
// Temporarily set mHasHorizontalScrollbar/mHasVerticalScrollbar to
// reflect our assumptions while we reflow the child.

Просмотреть файл

@ -1604,7 +1604,7 @@ nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) cons
// clear ancestor intrinsics!
return NS_CombineHint(hint, nsChangeHint_NeedReflow |
nsChangeHint_ClearAncestorIntrinsics |
nsChangeHint_ClearDescendantIntrinsics | nsChangeHint_NeedDirtyReflow |
nsChangeHint_ClearDescendantIntrinsics |
nsChangeHint_ReflowChangesSizeOrPosition);
}