mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
Bug 1272997 - Set resize flags properly when calling SetComputed{Width,Height} on the reflow state for a viewport frame. r=dholbert
This commit is contained in:
parent
f98f9cb8e1
commit
8883bbb6a6
@ -329,7 +329,8 @@ nsHTMLReflowState::SetComputedWidth(nscoord aComputedWidth)
|
||||
if (ComputedWidth() != aComputedWidth) {
|
||||
ComputedWidth() = aComputedWidth;
|
||||
nsIAtom* frameType = frame->GetType();
|
||||
if (frameType != nsGkAtoms::viewportFrame) { // Or check GetParent()?
|
||||
if (frameType != nsGkAtoms::viewportFrame || // Or check GetParent()?
|
||||
mWritingMode.IsVertical()) {
|
||||
InitResizeFlags(frame->PresContext(), frameType);
|
||||
}
|
||||
}
|
||||
@ -351,7 +352,10 @@ nsHTMLReflowState::SetComputedHeight(nscoord aComputedHeight)
|
||||
NS_PRECONDITION(aComputedHeight >= 0, "Invalid computed height");
|
||||
if (ComputedHeight() != aComputedHeight) {
|
||||
ComputedHeight() = aComputedHeight;
|
||||
InitResizeFlags(frame->PresContext(), frame->GetType());
|
||||
nsIAtom* frameType = frame->GetType();
|
||||
if (frameType != nsGkAtoms::viewportFrame || !mWritingMode.IsVertical()) {
|
||||
InitResizeFlags(frame->PresContext(), frameType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user