зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1604956 - Avoid calling HasPaintedDisplayPort() with a null content element. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D57719 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
42eb841eff
Коммит
be4d75b35a
|
@ -715,7 +715,10 @@ static bool PrepareForSetTargetAPZCNotification(
|
|||
&(guid.mScrollableLayerGuid.mScrollId));
|
||||
aTargets->AppendElement(guid);
|
||||
|
||||
if (!guidIsValid || nsLayoutUtils::HasDisplayPort(dpElement)) {
|
||||
if (!guidIsValid) {
|
||||
return false;
|
||||
}
|
||||
if (nsLayoutUtils::HasDisplayPort(dpElement)) {
|
||||
// If the element has a displayport but it hasn't been painted yet,
|
||||
// we want the caller to wait for the paint to happen, but we don't
|
||||
// need to set the displayport here since it's already been set.
|
||||
|
|
Загрузка…
Ссылка в новой задаче