зеркало из https://github.com/mozilla/gecko-dev.git
Bug 398144 - Make blocks that are margin-roots never consider themselves empty. [p=roc r+sr=dbaron a=blocking1.9+]
This commit is contained in:
Родитель
aa4a6414ab
Коммит
9b5edcef2c
|
@ -2574,6 +2574,12 @@ IsMarginZero(nsStyleUnit aUnit, nsStyleCoord &aCoord)
|
|||
/* virtual */ PRBool
|
||||
nsBlockFrame::IsSelfEmpty()
|
||||
{
|
||||
// Blocks which are margin-roots (including inline-blocks) cannot be treated
|
||||
// as empty for margin-collapsing and other purposes. They're more like
|
||||
// replaced elements.
|
||||
if (GetStateBits() & NS_BLOCK_MARGIN_ROOT)
|
||||
return PR_FALSE;
|
||||
|
||||
const nsStylePosition* position = GetStylePosition();
|
||||
|
||||
switch (position->mMinHeight.GetUnit()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче