diff --git a/mozilla/layout/generic/nsLineLayout.cpp b/mozilla/layout/generic/nsLineLayout.cpp index bf25ff565fe..ffe043488df 100644 --- a/mozilla/layout/generic/nsLineLayout.cpp +++ b/mozilla/layout/generic/nsLineLayout.cpp @@ -883,16 +883,6 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame, nscoord ty = y - psd->mReflowState->mComputedBorderPadding.top; mSpaceManager->Translate(tx, ty); -#ifdef IBMBIDI - PRInt32 start, end; - - if (mPresContext->BidiEnabled()) { - if (aFrame->GetStateBits() & NS_FRAME_IS_BIDI) { - aFrame->GetOffsets(start, end); - } - } -#endif // IBMBIDI - nsIAtom* frameType = aFrame->GetType(); PRInt32 savedOptionalBreakOffset; nsIContent* savedOptionalBreakContent = @@ -1086,24 +1076,6 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame, printf(" status=%x\n", aReflowStatus); #endif - if (aFrame->GetStateBits() & NS_FRAME_IS_BIDI) { - // Since aReflowStatus may change, check it at the end - if (NS_INLINE_IS_BREAK_BEFORE(aReflowStatus) ) { - aFrame->AdjustOffsetsForBidi(start, end); - } - else if (!NS_FRAME_IS_COMPLETE(aReflowStatus) ) { - PRInt32 newEnd; - aFrame->GetOffsets(start, newEnd); - if (newEnd != end) { - nsIFrame* nextInFlow = aFrame->GetNextInFlow(); - if (nextInFlow) { - nextInFlow->GetOffsets(start, end); - nextInFlow->AdjustOffsetsForBidi(newEnd, end); - } // nextInFlow - } // newEnd != end - } // !NS_FRAME_IS_COMPLETE(aReflowStatus) - } // isBidiFrame - return rv; }