Repository navigation
Fix Document#elementsFromPoint no viewport available test - #10426
Merged
bors-servo merged 1 commit intoApr 15, 2016
Merged
bors-servo merged 1 commit into
bors-servo merged 1 commit into
Conversation
| let window = window_from_node(self); | ||
| let viewport = window.window_size().unwrap().visible_viewport; | ||
|
|
||
| if !self.browsing_context().is_some() { |
Contributor
Author
There was a problem hiding this comment.
Is this correct? If it's correct, should I merge this with if x < 0.0 || y < 0.0 || x > viewport.width.get() || y > viewport.height.get() {?
Contributor
|
@rilut Just change that to |
Member
|
@bors-servo: r=nox |
Contributor
|
📌 Commit be16099 has been approved by |
| pub fn nodes_from_point(&self, page_point: &Point2D<f32>) -> Vec<UntrustedNodeAddress> { | ||
| assert!(self.GetDocumentElement().is_some()); | ||
|
|
||
| pub fn nodes_from_point(&self, page_point: &Point2D<f32>) -> Vec<UntrustedNodeAddress> { |
Contributor
There was a problem hiding this comment.
Indentation fail. Just press backspace once, so the pub fn lines up with the previous line's }
Member
|
@bors-servo: r- Please change the indentation :) |
Member
|
@bors-servo: delegate+ |
Contributor
|
✌️ @rilut can now approve this pull request |
Contributor
Author
|
@bors-servo: r=nox |
Contributor
|
📌 Commit 5a3ce59 has been approved by |
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Apr 15, 2016
…ble-test, r=nox Fix Document#elementsFromPoint no viewport available test Fixes #10093 and improves #10034. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10426) <!-- Reviewable:end -->
Contributor
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10093 and improves #10034.
This change is