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 Node::get_bounding_content_box, Node::get_content_boxes, Document::hit_test, and Document::get_node_under_mouse #356

Closed
jdm opened this issue Apr 10, 2013 · 2 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Apr 10, 2013

Currently I'm manually munging the results of Content::query_layout from DOM code. This is really ugly, and we should put a sensible API over top of this to hide the query/result details.

@jdm jdm added E-easy and removed A-layout/uncategorized labels Apr 18, 2014
@jdm
Copy link
Member Author

@jdm jdm commented Apr 18, 2014

There are a lot of places making calls to Page::query_layout that have to do more work than they should. We can add nice APIs for these common queries and make the code much more pleasant to read.

@jdm jdm changed the title Design an interface for querying layout from content Add Node::get_bounding_content_box, Node::get_content_boxes, Document::hit_test, and Document::get_node_under_mouse Apr 18, 2014
bors-servo pushed a commit that referenced this issue Apr 24, 2014
- see #356
- To decrease the conversion code, `JS<Node>` -> `Node`, I added API methods to `NodeHelpers`.
- I added APIs to `Page` not `Document` because I had thought that their APIs returns the hitted nodes address in the "page".
@Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Jun 8, 2014

Fixed by #2210.

@Ms2ger Ms2ger closed this Jun 8, 2014
ChrisParis pushed a commit to ChrisParis/servo that referenced this issue Sep 7, 2014
…around

Work around the fact that idlharness.js doesn't support DOMTimeStamp yet.
glennw pushed a commit to glennw/servo that referenced this issue Jan 16, 2017
Update euclid to 0.10 and offscreen_gl_context to 0.4

<!-- 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/356)
<!-- Reviewable:end -->
pshaughn added a commit to pshaughn/servo that referenced this issue Dec 22, 2019
bors-servo added a commit that referenced this issue Dec 23, 2019
Remove obsolete HasInstance behavior per heycam/webidl #356

This turns one WPT test from fail to pass and it leaves Servo with a little less platform object special-case code to worry about.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25039

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
bors-servo added a commit that referenced this issue Dec 23, 2019
Remove obsolete HasInstance behavior per heycam/webidl #356

This turns one WPT test from fail to pass and it leaves Servo with a little less platform object special-case code to worry about.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25039

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
bors-servo added a commit that referenced this issue Dec 23, 2019
Remove obsolete HasInstance behavior per heycam/webidl #356

This turns one WPT test from fail to pass and it leaves Servo with a little less platform object special-case code to worry about.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25039

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.