Bug 1331294 - Part 3: Make ServoRestyleManager::PostRestyleEvent not check HasPendingRestyles() before returning early. r=bholley

If there are pending restyles, and we were called with zero change and restyle
hints, then we're still not going to do any extra work.  So we may as
well return early after only checking the hints.

MozReview-Commit-ID: ACCGtDZcOJ0
This commit is contained in:
Cameron McCormack 2017-02-10 10:42:30 +08:00
Родитель 267ff12653
Коммит f1909b16b0
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -44,7 +44,7 @@ ServoRestyleManager::PostRestyleEvent(Element* aElement,
return;
}
if (aRestyleHint == 0 && !aMinChangeHint && !HasPendingRestyles()) {
if (aRestyleHint == 0 && !aMinChangeHint) {
return; // Nothing to do.
}