mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243125 - patch 1 - Check block size instead of height when detecting truncated frames. r=jfkthame
This commit is contained in:
parent
1012db254c
commit
e128e82c8e
@ -2925,8 +2925,8 @@ void
|
||||
nsHTMLReflowState::SetTruncated(const nsHTMLReflowMetrics& aMetrics,
|
||||
nsReflowStatus* aStatus) const
|
||||
{
|
||||
if (AvailableHeight() != NS_UNCONSTRAINEDSIZE &&
|
||||
AvailableHeight() < aMetrics.Height() &&
|
||||
if (AvailableBSize() != NS_UNCONSTRAINEDSIZE &&
|
||||
AvailableBSize() < aMetrics.BSize(GetWritingMode()) &&
|
||||
!mFlags.mIsTopOfPage) {
|
||||
*aStatus |= NS_FRAME_TRUNCATED;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user