зеркало из https://github.com/mozilla/gecko-dev.git
Bug 484004. Don't reframe on removal of an non-first, non-last block from an {ib} parent. r+sr=roc
This commit is contained in:
Родитель
fd9b1ec49e
Коммит
8c1295be26
|
@ -8715,6 +8715,13 @@ nsCSSFrameConstructor::MaybeRecreateContainerForIBSplitterFrame(nsIFrame* aFrame
|
|||
return PR_FALSE;
|
||||
}
|
||||
|
||||
// If aFrame is not the first or last block, then removing it is not
|
||||
// going to affect the splitting.
|
||||
if (aFrame != parent->GetFirstChild(nsnull) &&
|
||||
aFrame->GetLastContinuation()->GetNextSibling()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
if (gNoisyContentUpdates) {
|
||||
printf("nsCSSFrameConstructor::MaybeRecreateContainerForIBSplitterFrame: "
|
||||
|
|
Загрузка…
Ссылка в новой задаче