Use the containing block's direction (LTR/RTL) instead of this frame's direction when deciding on default alignment of the frame. bug=328181 r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@216942 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
uriber%gmail.com
2006-12-13 16:16:25 +00:00
parent f05531a6b7
commit 774e156325
2 changed files with 14 additions and 13 deletions

View File

@@ -113,7 +113,7 @@ PRInt32 nsLegendFrame::GetAlign()
{
PRInt32 intValue = NS_STYLE_TEXT_ALIGN_LEFT;
#ifdef IBMBIDI
if (NS_STYLE_DIRECTION_RTL == GetStyleVisibility()->mDirection) {
if (mParent && NS_STYLE_DIRECTION_RTL == mParent->GetStyleVisibility()->mDirection) {
intValue = NS_STYLE_TEXT_ALIGN_RIGHT;
}
#endif // IBMBIDI