mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
d2930b87f0
commit
39d4570796
@ -650,7 +650,7 @@ static bool PrepareForSetTargetAPZCNotification(
|
||||
nsIFrame* frame = do_QueryFrame(scrollAncestor);
|
||||
DisplayPortUtils::SetZeroMarginDisplayPortOnAsyncScrollableAncestors(frame);
|
||||
|
||||
return true;
|
||||
return !DisplayPortUtils::HasPaintedDisplayPort(dpElement);
|
||||
}
|
||||
|
||||
static void SendLayersDependentApzcTargetConfirmation(
|
||||
|
Loading…
Reference in New Issue
Block a user