Bug 1690433. If in PrepareForSetTargetAPZCNotification we go from a minimal display port to a regular display port return the painted status of the existing (minimal) display port instead of always telling the caller to wait for a refresh. r=botond

In the case that we have a painted minimal display port apzc knows about the scroll frame already, it just has the minimal amount of painted content. So we can tell apz right away. Note that the async transform for minimal dp's are still the identity so we'll still jank minimap dp's before the painted regular dp reaches the apzc.

Differential Revision: https://phabricator.services.mozilla.com/D103858
This commit is contained in:
Timothy Nikkel 2021-02-04 11:17:09 +00:00
parent d2930b87f0
commit 39d4570796

View File

@ -650,7 +650,7 @@ static bool PrepareForSetTargetAPZCNotification(
nsIFrame* frame = do_QueryFrame(scrollAncestor);
DisplayPortUtils::SetZeroMarginDisplayPortOnAsyncScrollableAncestors(frame);
return true;
return !DisplayPortUtils::HasPaintedDisplayPort(dpElement);
}
static void SendLayersDependentApzcTargetConfirmation(