зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
267ff12653
Коммит
f1909b16b0
|
@ -44,7 +44,7 @@ ServoRestyleManager::PostRestyleEvent(Element* aElement,
|
|||
return;
|
||||
}
|
||||
|
||||
if (aRestyleHint == 0 && !aMinChangeHint && !HasPendingRestyles()) {
|
||||
if (aRestyleHint == 0 && !aMinChangeHint) {
|
||||
return; // Nothing to do.
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче