Bug 1115812 patch 18 - We only need to call ProcessPendingRestyles recursively, rather than RebuildAllStyleData. r=heycam

If we discover that we've set mDoRebuildAllStyleData in the middle of
ProcessPendingRestyles(), now that ProcessPendingRestyles() fully
handles mDoRebuildAllStyleData, we only need to make a recursive call to
ProcessPendingRestyles, rather than calling RebuildAllStyleData to call
ProcessPendingRestyles.
This commit is contained in:
L. David Baron 2015-01-13 21:03:12 -08:00
Родитель a998c7bd03
Коммит 0e8362d05a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1651,7 +1651,7 @@ RestyleManager::ProcessPendingRestyles()
// We probably wasted a lot of work up above, but this seems safest
// and it should be rarely used.
// This might add us as a refresh observer again; that's ok.
RebuildAllStyleData(nsChangeHint(0), nsRestyleHint(0));
ProcessPendingRestyles();
}
}