Skip to content

Commit

Permalink
Backed out changeset d0ecd711cbc4 (bug 1302470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archaeopteryx committed Apr 21, 2017
1 parent 114e695 commit e78736f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions layout/base/nsLayoutUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion layout/forms/nsHTMLButtonControlFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit e78736f

Please sign in to comment.