зеркало из https://github.com/mozilla/gecko-dev.git
Bug 772355 - Use nsStyleDisplay::IsFloating in a couple of places rather than inspecting mFloats. r=roc
This commit is contained in:
Родитель
004750fdbf
Коммит
161eb9c7c2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче