mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Revert part of the changes from bug 140611. Patch partly from Sander <svl_bmo@juima.org>. b=259683 r+sr=roc a=asa
This commit is contained in:
parent
3403b8df5f
commit
fc211528b0
@ -2833,11 +2833,6 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds,
|
||||
}
|
||||
#ifdef IBMBIDI
|
||||
}
|
||||
// If we need to move the frames but we're shrink wrapping, then
|
||||
// we need to wait until the final width is known
|
||||
if (aShrinkWrapWidth) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
PRBool isRTL = ( (NS_STYLE_DIRECTION_RTL == psd->mDirection)
|
||||
&& (!psd->mChangedFrameDirection) );
|
||||
if (dx || isRTL) {
|
||||
@ -2853,15 +2848,16 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds,
|
||||
|
||||
isVisualRTL = mPresContext->IsVisualMode();
|
||||
}
|
||||
if (dx || isVisualRTL) {
|
||||
if (dx || isVisualRTL)
|
||||
#else
|
||||
if (0 != dx) {
|
||||
if (0 != dx)
|
||||
#endif
|
||||
{
|
||||
// If we need to move the frames but we're shrink wrapping, then
|
||||
// we need to wait until the final width is known
|
||||
if (aShrinkWrapWidth) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
#endif
|
||||
for (PerFrameData* pfd = psd->mFirstFrame; pfd
|
||||
#ifdef IBMBIDI
|
||||
&& bulletPfd != pfd
|
||||
|
@ -2833,11 +2833,6 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds,
|
||||
}
|
||||
#ifdef IBMBIDI
|
||||
}
|
||||
// If we need to move the frames but we're shrink wrapping, then
|
||||
// we need to wait until the final width is known
|
||||
if (aShrinkWrapWidth) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
PRBool isRTL = ( (NS_STYLE_DIRECTION_RTL == psd->mDirection)
|
||||
&& (!psd->mChangedFrameDirection) );
|
||||
if (dx || isRTL) {
|
||||
@ -2853,15 +2848,16 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds,
|
||||
|
||||
isVisualRTL = mPresContext->IsVisualMode();
|
||||
}
|
||||
if (dx || isVisualRTL) {
|
||||
if (dx || isVisualRTL)
|
||||
#else
|
||||
if (0 != dx) {
|
||||
if (0 != dx)
|
||||
#endif
|
||||
{
|
||||
// If we need to move the frames but we're shrink wrapping, then
|
||||
// we need to wait until the final width is known
|
||||
if (aShrinkWrapWidth) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
#endif
|
||||
for (PerFrameData* pfd = psd->mFirstFrame; pfd
|
||||
#ifdef IBMBIDI
|
||||
&& bulletPfd != pfd
|
||||
|
Loading…
x
Reference in New Issue
Block a user