Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for navigating by a delta #11616
Conversation
highfive
commented
Jun 4, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 4, 2016
highfive
commented
Jun 4, 2016
|
New code was committed to pull request. |
highfive
commented
Jun 5, 2016
|
New code was committed to pull request. |
highfive
commented
Jun 5, 2016
|
New code was committed to pull request. |
|
Reviewed 5 of 5 files at r1. components/constellation/constellation.rs, line 1287 [r1] (raw file):
Can we do this a bit more simply? Something like: let new_next_len = frame.next.len() - detta;
frame.prev.push(frame.current);
frame.prev.extend(frame.next.drain(new_next_len..).rev());
frame.current = frame.next.pop().unwrap();Comments from Reviewable |
highfive
commented
Jun 7, 2016
|
New code was committed to pull request. |
|
Review status: 3 of 5 files reviewed at latest revision, 1 unresolved discussion. components/constellation/constellation.rs, line 1287 [r1] (raw file):
|
|
Reviewed 1 of 1 files at r2, 1 of 1 files at r5. Comments from Reviewable |
|
@bors-servo r+ |
|
|
Add support for navigating by a delta <!-- Please describe your changes on the following line: --> This adds support for passing a delta with `NavigationDirection`. This will be used with `history.go` r? @asajeffrey --- <!-- 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 do not require tests because I am unsure how to write a test for this <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/11616) <!-- Reviewable:end -->
|
|
highfive
commented
Jun 7, 2016
|
|
@bors-servo retry |
Add support for navigating by a delta <!-- Please describe your changes on the following line: --> This adds support for passing a delta with `NavigationDirection`. This will be used with `history.go` r? @asajeffrey --- <!-- 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 do not require tests because I am unsure how to write a test for this <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/11616) <!-- Reviewable:end -->
|
|
cbrewster commentedJun 4, 2016
•
edited by larsbergstrom
This adds support for passing a delta with
NavigationDirection. This will be used withhistory.gor? @asajeffrey
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is