зеркало из https://github.com/mozilla/gecko-dev.git
Don't split inlines with bidi-isolated kids unnecessarily when they don't have siblings. Bug 793233, r=roc, a=lsblakk
This commit is contained in:
Родитель
6cbdbc3a21
Коммит
3a5d8c6bc4
|
@ -872,9 +872,10 @@ nsBidiPresUtils::ResolveParagraph(nsBlockFrame* aBlockFrame,
|
|||
if (child) {
|
||||
parent = child->GetParent();
|
||||
if (parent && IsBidiSplittable(parent)) {
|
||||
// no need to null-check the result of GetPrevSibling, because
|
||||
// SplitInlineAncestors accepts a null parameter
|
||||
SplitInlineAncestors(parent, child->GetPrevSibling());
|
||||
nsIFrame* prev = child->GetPrevSibling();
|
||||
if (prev) {
|
||||
SplitInlineAncestors(parent, prev);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче