From e78736fcecd14625fb6f739d3c04eb487b4bf560 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Fri, 21 Apr 2017 19:09:11 +0200 Subject: [PATCH] Backed out changeset d0ecd711cbc4 (bug 1302470) --- layout/base/nsLayoutUtils.cpp | 3 +-- layout/forms/nsHTMLButtonControlFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index deec43874cdca..28042fcb06ff3 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -3283,8 +3283,6 @@ nsLayoutUtils::GetFramesForArea(nsIFrame* aFrame, const nsRect& aRect, builder.SetDescendIntoSubdocuments(false); } - builder.SetHitTestShouldStopAtFirstOpaque(aFlags & ONLY_VISIBLE); - builder.EnterPresShell(aFrame); aFrame->BuildDisplayListForStackingContext(&builder, aRect, &list); builder.LeavePresShell(aFrame, nullptr); @@ -3300,6 +3298,7 @@ nsLayoutUtils::GetFramesForArea(nsIFrame* aFrame, const nsRect& aRect, #endif nsDisplayItem::HitTestState hitTestState; + builder.SetHitTestShouldStopAtFirstOpaque(aFlags & ONLY_VISIBLE); list.HitTest(&builder, aRect, &hitTestState, &aOutFrames); list.DeleteAll(); return NS_OK; diff --git a/layout/forms/nsHTMLButtonControlFrame.cpp b/layout/forms/nsHTMLButtonControlFrame.cpp index 7b6376df5fe58..a714686462a00 100644 --- a/layout/forms/nsHTMLButtonControlFrame.cpp +++ b/layout/forms/nsHTMLButtonControlFrame.cpp @@ -119,7 +119,7 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, nsDisplayListCollection set; // Do not allow the child subtree to receive events. - if (!isForEventDelivery || aBuilder->HitTestShouldStopAtFirstOpaque()) { + if (!isForEventDelivery) { DisplayListClipState::AutoSaveRestore clipState(aBuilder); if (ShouldClipPaintingToBorderBox()) {