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

Add hit testing support for ClipChains from the API #2392

Merged
merged 1 commit into from Feb 8, 2018

Conversation

@mrobinson
Copy link
Member

mrobinson commented Feb 7, 2018

Hit testing now has support for tests against items that were clipped by
API-defined ClipChains. Both clipping ClipScrollNodes nodes and
ClipChains are converted to pairs of ClipScrollNodes and ClipChains for
purposes of the HitTester. This more-or-less matches the logical next
step in ClipScrollTree design and makes the logic for HitTesting
simpler.

Fixes #2383.


This change is Reviewable

@mrobinson mrobinson requested a review from glennw Feb 7, 2018
Hit testing now has support for tests against items that were clipped by
API-defined ClipChains. Both clipping ClipScrollNodes nodes and
ClipChains are converted to pairs of ClipScrollNodes and ClipChains for
purposes of the HitTester. This more-or-less matches the logical next
step in ClipScrollTree design and makes the logic for HitTesting
simpler.

Fixes #2383.
@mrobinson mrobinson force-pushed the mrobinson:clip-chain-hit-test branch from 112a972 to 41ac0b8 Feb 7, 2018
@mrobinson
Copy link
Member Author

mrobinson commented Feb 7, 2018

This change also adds a rawtest which tests hit testing. The tests aren't totally complete yet, but we can add more as we go along.

@glennw
Copy link
Member

glennw commented Feb 7, 2018

Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@glennw
glennw approved these changes Feb 7, 2018
@glennw
Copy link
Member

glennw commented Feb 7, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Feb 7, 2018

📌 Commit 41ac0b8 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Feb 7, 2018

Testing commit 41ac0b8 with merge 66f9c07...

bors-servo added a commit that referenced this pull request Feb 7, 2018
Add hit testing support for ClipChains from the API

Hit testing now has support for tests against items that were clipped by
API-defined ClipChains. Both clipping ClipScrollNodes nodes and
ClipChains are converted to pairs of ClipScrollNodes and ClipChains for
purposes of the HitTester. This more-or-less matches the logical next
step in ClipScrollTree design and makes the logic for HitTesting
simpler.

Fixes #2383.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2392)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 8, 2018

☀️ Test successful - status-appveyor, status-taskcluster, status-travis
Approved by: glennw
Pushing 66f9c07 to master...

@bors-servo bors-servo merged commit 41ac0b8 into servo:master Feb 8, 2018
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
code-review/reviewable 4 files reviewed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:clip-chain-hit-test branch Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.