Bug 1243125 - patch 1 - Check block size instead of height when detecting truncated frames. r=jfkthame

This commit is contained in:
Oriol 2016-02-03 09:24:26 +00:00
parent 1012db254c
commit e128e82c8e

View File

@ -2925,8 +2925,8 @@ void
nsHTMLReflowState::SetTruncated(const nsHTMLReflowMetrics& aMetrics, nsHTMLReflowState::SetTruncated(const nsHTMLReflowMetrics& aMetrics,
nsReflowStatus* aStatus) const nsReflowStatus* aStatus) const
{ {
if (AvailableHeight() != NS_UNCONSTRAINEDSIZE && if (AvailableBSize() != NS_UNCONSTRAINEDSIZE &&
AvailableHeight() < aMetrics.Height() && AvailableBSize() < aMetrics.BSize(GetWritingMode()) &&
!mFlags.mIsTopOfPage) { !mFlags.mIsTopOfPage) {
*aStatus |= NS_FRAME_TRUNCATED; *aStatus |= NS_FRAME_TRUNCATED;
} else { } else {