mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
fixed bug 36022
r=troy (been holding this in my tree for a while)
This commit is contained in:
parent
32e7a14ebc
commit
fe02891c04
@ -205,8 +205,14 @@ nsBlockReflowContext::AlignBlockHorizontally(nscoord aWidth,
|
||||
break;
|
||||
case NS_STYLE_TEXT_ALIGN_MOZ_CENTER:
|
||||
case NS_STYLE_TEXT_ALIGN_CENTER:
|
||||
aAlign.mXOffset += remainingSpace / 2;
|
||||
doCSS = PR_FALSE;
|
||||
{
|
||||
nsCompatibility mode;
|
||||
mPresContext->GetCompatibilityMode(&mode);
|
||||
if (eCompatibility_NavQuirks == mode) {
|
||||
aAlign.mXOffset += remainingSpace / 2;
|
||||
doCSS = PR_FALSE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -205,8 +205,14 @@ nsBlockReflowContext::AlignBlockHorizontally(nscoord aWidth,
|
||||
break;
|
||||
case NS_STYLE_TEXT_ALIGN_MOZ_CENTER:
|
||||
case NS_STYLE_TEXT_ALIGN_CENTER:
|
||||
aAlign.mXOffset += remainingSpace / 2;
|
||||
doCSS = PR_FALSE;
|
||||
{
|
||||
nsCompatibility mode;
|
||||
mPresContext->GetCompatibilityMode(&mode);
|
||||
if (eCompatibility_NavQuirks == mode) {
|
||||
aAlign.mXOffset += remainingSpace / 2;
|
||||
doCSS = PR_FALSE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user