зеркало из https://github.com/mozilla/gecko-dev.git
Bug 567944. Work around inefficiency in handling eRestyle_LaterSiblings for now. r=dbaron
This commit is contained in:
Родитель
94c342007d
Коммит
2e14585790
|
@ -11410,14 +11410,11 @@ static void
|
|||
RestyleSiblingsStartingWith(nsCSSFrameConstructor *aFrameConstructor,
|
||||
nsIContent *aStartingSibling /* may be null */)
|
||||
{
|
||||
for (nsIContent *sibling = aStartingSibling; sibling;
|
||||
sibling = sibling->GetNextSibling()) {
|
||||
if (sibling->IsElement()) {
|
||||
aFrameConstructor->
|
||||
PostRestyleEvent(sibling->AsElement(),
|
||||
nsRestyleHint(eRestyle_Self | eRestyle_LaterSiblings),
|
||||
if (aStartingSibling) {
|
||||
nsIContent* parent = aStartingSibling->GetParent();
|
||||
if (parent && parent->IsElement()) {
|
||||
aFrameConstructor->PostRestyleEvent(parent->AsElement(), eRestyle_Self,
|
||||
NS_STYLE_HINT_NONE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче