Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -145,9 +145,7 @@ PRInt32 nsLegendFrame::GetAlign()
|
||||
{
|
||||
PRInt32 intValue = NS_STYLE_TEXT_ALIGN_LEFT;
|
||||
#ifdef IBMBIDI
|
||||
const nsStyleVisibility* vis;
|
||||
GetStyleData(eStyleStruct_Visibility, (const nsStyleStruct*&)vis);
|
||||
if (NS_STYLE_DIRECTION_RTL == vis->mDirection) {
|
||||
if (NS_STYLE_DIRECTION_RTL == GetStyleVisibility()->mDirection) {
|
||||
intValue = NS_STYLE_TEXT_ALIGN_RIGHT;
|
||||
}
|
||||
#endif // IBMBIDI
|
||||
|
||||
Reference in New Issue
Block a user