Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IntersectionObserver] Correctly handle a scaled target #16456

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Apr 23, 2019

If a target is inside an iframe, and the iframe (or one if its
ancestors in the parent document) has a scale applied, then we need to
apply the scale to the hit test rect when checking for occlusion. The
default LocalFrameView coordinate conversion routines don't do that.
Use LocalToAncestorQuad instead.

BUG=951525
R=chrishtr@chromium.org

Change-Id: I1107f0bd3c6d262a392fbafe430897cc09068623
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1578100
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653774}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1578100 branch 3 times, most recently from 41bc24d to 004be6a Compare April 24, 2019 20:49
If a target is inside an iframe, and the iframe (or one if its
ancestors in the parent document) has a scale applied, then we need to
apply the scale to the hit test rect when checking for occlusion. The
default LocalFrameView coordinate conversion routines don't do that.
Use LocalToAncestorQuad instead.

BUG=951525
R=chrishtr@chromium.org

Change-Id: I1107f0bd3c6d262a392fbafe430897cc09068623
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1578100
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653774}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants