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

introduce frame_size and window_rect #15831

Merged
merged 1 commit into from Mar 7, 2017
Merged

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Mar 6, 2017

follow up of servo/webrender#951


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix webrender/issues/833 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because I don't know how to test that feature

This change is Reviewable

@paulrouget paulrouget assigned glennw and unassigned pcwalton Mar 6, 2017
@paulrouget paulrouget force-pushed the paulrouget:winParams branch from d2c28ca to e8e6e32 Mar 6, 2017
Copy link
Member

glennw left a comment

r=me after those minor nits are addressed.

@@ -797,6 +798,12 @@ impl WindowMethods for Window {
}
}

fn window_rect(&self) -> TypedRect<u32, DevicePixel> {
let size = self.framebuffer_size();
let origin = TypedPoint2D::new(0, 0);

This comment has been minimized.

@glennw

glennw Mar 6, 2017

Member

TypedPoint2D::zero()

@@ -206,6 +207,12 @@ impl WindowMethods for Window {
}
}

fn window_rect(&self) -> TypedRect<u32, DevicePixel> {
let size = self.framebuffer_size();
let origin = TypedPoint2D::new(0, 0);

This comment has been minimized.

@glennw

glennw Mar 6, 2017

Member

TypedPoint2D::zero()

@paulrouget paulrouget force-pushed the paulrouget:winParams branch from e8e6e32 to a5ee6a1 Mar 7, 2017
@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 7, 2017

Nits addressed.

@glennw
Copy link
Member

glennw commented Mar 7, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2017

📌 Commit a5ee6a1 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2017

Testing commit a5ee6a1 with merge f767865...

bors-servo added a commit that referenced this pull request Mar 7, 2017
introduce frame_size and window_rect

follow up of servo/webrender#951

---
<!-- 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 webrender/issues/833 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I don't know how to test that feature

<!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15831)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2017

💔 Test failed - linux-dev

@paulrouget paulrouget force-pushed the paulrouget:winParams branch from a5ee6a1 to 2a05534 Mar 7, 2017
@glennw
Copy link
Member

glennw commented Mar 7, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2017

📌 Commit 2a05534 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2017

Testing commit 2a05534 with merge 005f1b6...

bors-servo added a commit that referenced this pull request Mar 7, 2017
introduce frame_size and window_rect

follow up of servo/webrender#951

---
<!-- 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 webrender/issues/833 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I don't know how to test that feature

<!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15831)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2017

@bors-servo bors-servo merged commit 2a05534 into servo:master Mar 7, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Mar 7, 2017
4 of 4 tasks complete
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

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