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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user