diff --git a/layout/generic/nsViewportFrame.cpp b/layout/generic/nsViewportFrame.cpp index f5aafad0c6af..a3bb532fccee 100644 --- a/layout/generic/nsViewportFrame.cpp +++ b/layout/generic/nsViewportFrame.cpp @@ -524,6 +524,8 @@ ViewportFrame::Reflow(nsIPresContext& aPresContext, kidReflowState.mComputedHeight = aReflowState.availableHeight; ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState, 0, 0, 0, aStatus); + kidRect.width = kidDesiredSize.width; + kidRect.height = kidDesiredSize.height; FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, 0, 0, 0); } diff --git a/layout/html/base/src/nsViewportFrame.cpp b/layout/html/base/src/nsViewportFrame.cpp index f5aafad0c6af..a3bb532fccee 100644 --- a/layout/html/base/src/nsViewportFrame.cpp +++ b/layout/html/base/src/nsViewportFrame.cpp @@ -524,6 +524,8 @@ ViewportFrame::Reflow(nsIPresContext& aPresContext, kidReflowState.mComputedHeight = aReflowState.availableHeight; ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState, 0, 0, 0, aStatus); + kidRect.width = kidDesiredSize.width; + kidRect.height = kidDesiredSize.height; FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, 0, 0, 0); }