Bug 1411050 Part 1: Change nsDisplayListBuilder to mark hitests either for visibility or for pointer events. r=mattwoodrow

MozReview-Commit-ID: AbYcm2gwEES
This commit is contained in:
Brad Werth
2017-10-24 15:03:56 -07:00
parent 6cb3beb27c
commit fcc90697aa
4 changed files with 16 additions and 12 deletions

View File

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