Skip to content

Commit

Permalink
Ignore Portals when hittesting.
Browse files Browse the repository at this point in the history
Bug: 932581
Change-Id: I4375e6e16a1796aec738ae5457bbde54a961e276
Reviewed-on: https://chromium-review.googlesource.com/c/1476091
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Lucas Gadani <lfg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633453}
  • Loading branch information
lucasgadani authored and Commit Bot committed Feb 19, 2019
1 parent 3940708 commit 16fe7d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions third_party/blink/renderer/core/frame/remote_frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ bool RemoteFrame::IsIgnoredForHitTest() const {
HTMLFrameOwnerElement* owner = DeprecatedLocalOwner();
if (!owner || !owner->GetLayoutObject())
return false;
return owner->GetLayoutObject()->Style()->PointerEvents() ==
EPointerEvents::kNone;
return owner->OwnerType() == FrameOwnerElementType::kPortal ||
(owner->GetLayoutObject()->Style()->PointerEvents() ==
EPointerEvents::kNone);
}

void RemoteFrame::SetCcLayer(cc::Layer* cc_layer,
Expand Down

0 comments on commit 16fe7d8

Please sign in to comment.