From 1a9363bebee9bfafa67c6a98af3f32e8c68f3a8d Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Thu, 14 Dec 2017 13:55:08 -0500 Subject: [PATCH] Bug 1424782 - Follow-up to remove overzealous assertion I added. r=me With webrender and gfx.webrender.hit-test enabled, we create nsDisplayCompositorHitTestInfo items which are subclasses of nsDisplayEventReceiver, and we do so even for painting display lists. So this assertion trips even though this is the desired behaviour. I'm taking the assertion out as it is not really needed. DONTBUILD because trivial assertion removal MozReview-Commit-ID: Bs9PjtQSwqQ --- layout/painting/nsDisplayList.h | 1 - 1 file changed, 1 deletion(-) diff --git a/layout/painting/nsDisplayList.h b/layout/painting/nsDisplayList.h index 0c81af30ffef..50ab33ab28c8 100644 --- a/layout/painting/nsDisplayList.h +++ b/layout/painting/nsDisplayList.h @@ -4307,7 +4307,6 @@ public: nsDisplayEventReceiver(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame) : nsDisplayItem(aBuilder, aFrame) { MOZ_COUNT_CTOR(nsDisplayEventReceiver); - MOZ_ASSERT(aBuilder->IsForEventDelivery()); } #ifdef NS_BUILD_REFCNT_LOGGING virtual ~nsDisplayEventReceiver() {