mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
Bug 1756118, stop observing RefreshDriver if there are no resize observers, r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D139109
This commit is contained in:
parent
c6409d2d11
commit
bb0eb3cf5d
@ -95,6 +95,7 @@ static void FlushLayoutForWholeBrowsingContextTree(Document& aDoc) {
|
||||
}
|
||||
|
||||
void ResizeObserverController::Notify() {
|
||||
mResizeObserverNotificationHelper->Unregister();
|
||||
if (mResizeObservers.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
@ -136,8 +137,6 @@ void ResizeObserverController::Notify() {
|
||||
GatherAllActiveObservations(shallowestTargetDepth);
|
||||
}
|
||||
|
||||
mResizeObserverNotificationHelper->Unregister();
|
||||
|
||||
if (HasAnySkippedObservations()) {
|
||||
// Per spec, we deliver an error if the document has any skipped
|
||||
// observations. Also, we re-register via ScheduleNotification().
|
||||
|
Loading…
x
Reference in New Issue
Block a user