diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index 8ea6e1e1891..e5aec76f365 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -3411,12 +3411,12 @@ nsTextFrame::PaintTextSlowly(nsPresContext* aPresContext, aRenderingContext.SetColor(nsCSSRendering::TransformColor(aTextStyle.mColor->mColor, canDarkenColor)); RenderString(aRenderingContext, aStyleContext, aPresContext, aTextStyle, currenttext, currentlength, isEndOfFrame, - currentX, dy, width, details); + currentX, dy, newDimensions.width, details); } else if (!isPaginated) { aRenderingContext.SetColor(nsCSSRendering::TransformColor(currentFGColor, canDarkenColor)); RenderString(aRenderingContext,aStyleContext, aPresContext, aTextStyle, currenttext, currentlength, isEndOfFrame, - currentX, dy, width, details); + currentX, dy, newDimensions.width, details); } #ifdef IBMBIDI