Bug 772355 - Use nsStyleDisplay::IsFloating in a couple of places rather than inspecting mFloats. r=roc

This commit is contained in:
Cameron McCormack 2012-07-10 20:34:42 +10:00
Родитель 004750fdbf
Коммит 161eb9c7c2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -82,7 +82,7 @@ nsPlaceholderFrame::AddInlineMinWidth(nsRenderingContext *aRenderingContext,
// false.
// ...but push floats onto the list
if (mOutOfFlowFrame->GetStyleDisplay()->mFloats != NS_STYLE_FLOAT_NONE)
if (mOutOfFlowFrame->GetStyleDisplay()->IsFloating())
aData->floats.AppendElement(mOutOfFlowFrame);
}
@ -97,7 +97,7 @@ nsPlaceholderFrame::AddInlinePrefWidth(nsRenderingContext *aRenderingContext,
// false.
// ...but push floats onto the list
if (mOutOfFlowFrame->GetStyleDisplay()->mFloats != NS_STYLE_FLOAT_NONE)
if (mOutOfFlowFrame->GetStyleDisplay()->IsFloating())
aData->floats.AppendElement(mOutOfFlowFrame);
}