mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243125 - patch 2 - Don't ever set NS_FRAME_TRUNCATED for orthogonal flows. r=dholbert
This commit is contained in:
parent
e128e82c8e
commit
e3f9bcd043
@ -2925,8 +2925,13 @@ void
|
||||
nsHTMLReflowState::SetTruncated(const nsHTMLReflowMetrics& aMetrics,
|
||||
nsReflowStatus* aStatus) const
|
||||
{
|
||||
if (AvailableBSize() != NS_UNCONSTRAINEDSIZE &&
|
||||
AvailableBSize() < aMetrics.BSize(GetWritingMode()) &&
|
||||
const WritingMode containerWM = aMetrics.GetWritingMode();
|
||||
if (GetWritingMode().IsOrthogonalTo(containerWM)) {
|
||||
// Orthogonal flows are always reflowed with an unconstrained dimension,
|
||||
// so should never end up truncated (see nsHTMLReflowState::Init()).
|
||||
*aStatus &= ~NS_FRAME_TRUNCATED;
|
||||
} else if (AvailableBSize() != NS_UNCONSTRAINEDSIZE &&
|
||||
AvailableBSize() < aMetrics.BSize(containerWM) &&
|
||||
!mFlags.mIsTopOfPage) {
|
||||
*aStatus |= NS_FRAME_TRUNCATED;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user