Bug 1764419 - Fix reuse of empty HitTestInfo. r=gfx-reviewers,bradwerth

Differential Revision: https://phabricator.services.mozilla.com/D143543
This commit is contained in:
Nicolas Silva 2022-04-13 13:49:27 +00:00
parent 600ce18f08
commit 3fe226b8b7

View File

@ -19,7 +19,7 @@ namespace mozilla {
static StaticAutoPtr<const HitTestInfo> gEmptyHitTestInfo;
const HitTestInfo& HitTestInfo::Empty() {
if (gEmptyHitTestInfo) {
if (!gEmptyHitTestInfo) {
gEmptyHitTestInfo = new HitTestInfo();
}