Bug 1302470 Part 4: Fix the case where HTML buttons need to generate display item children when doing opaque hit tests. r=mattwoodrow

MozReview-Commit-ID: HwDYsnMJkM8
This commit is contained in:
Brad Werth
2016-11-30 14:35:37 -08:00
parent a523d4f9e8
commit b912b7d28a
2 changed files with 3 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsDisplayListCollection set;
// Do not allow the child subtree to receive events.
if (!isForEventDelivery) {
if (!isForEventDelivery || aBuilder->HitTestShouldStopAtFirstOpaque()) {
DisplayListClipState::AutoSaveRestore clipState(aBuilder);
if (ShouldClipPaintingToBorderBox()) {