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

Fix a number of bugs and issues with scroll roots and transforms. #355

Merged
merged 3 commits into from Aug 21, 2016

Conversation

@glennw
Copy link
Member

glennw commented Aug 19, 2016

This change is Reviewable

glennw pushed a commit to glennw/servo that referenced this pull request Aug 19, 2016
in display list building.

This relies on servo/webrender#355 being
merged first, and will then need the cargo.lock updated.
@glennw
Copy link
Member Author

glennw commented Aug 19, 2016

r? @pcwalton

You have already reviewed the first commit in this patch set. I'm including it here (and closing the PR for that patch) because bors is not working at the moment and won't merge that PR. So only the scroll roots commit in this PR needs to be reviewed.

Note that this also requires a small patch in servo (servo/servo#12932), so WR shouldn't be updated in Servo without that patch.

@bors-servo
Copy link
Contributor

bors-servo commented Aug 19, 2016

The latest upstream changes (presumably #353) made this pull request unmergeable. Please resolve the merge conflicts.

gw3583 added 2 commits Aug 17, 2016
For now, this is functionally equivalent to the previous code. However,
it makes the future work to refactor how scroll roots and fixed layers
work a lot simpler and more efficiently.

It also has the side effect of being a neat optimization, since the
size of the primitive arrays are much smaller now!
This greatly simplifies the flatten stage of webrender, and also
fixes a number of scrolling bugs.

In particular, scroll roots on github.com, abc.net.au now work
correctly.

This also lays the groundwork for correctly supporting non-rectangular
nested viewports.
for composition_operation in &composition_operations {
match *composition_operation {
CompositionOp::Filter(LowLevelFilterOp::Opacity(Au(0))) => return,
_ => {}

This comment has been minimized.

@pcwalton

pcwalton Aug 19, 2016

Collaborator

nit: Could be if let I guess

.invert()
.transform_rect(&stacking_context.overflow))
let scene_items = scene_item.collect_scene_items(&context.scene);
if !scene_items.is_empty() {

This comment has been minimized.

@pcwalton

pcwalton Aug 19, 2016

Collaborator

Can this be if scene_items.is_empty() { return }?

@pcwalton
Copy link
Collaborator

pcwalton commented Aug 19, 2016

Looks good, r=me

@glennw glennw force-pushed the glennw:wr2-flat-layers branch from e8aa726 to 10f26b7 Aug 21, 2016
@glennw glennw force-pushed the glennw:wr2-flat-layers branch from 10f26b7 to 2384fa7 Aug 21, 2016
@glennw
Copy link
Member Author

glennw commented Aug 21, 2016

@bors-servo r=pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2016

📌 Commit 2384fa7 has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2016

Test exempted - status

@bors-servo bors-servo merged commit 2384fa7 into servo:master Aug 21, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test exempted
Details
bors-servo added a commit that referenced this pull request Aug 21, 2016
Fix a number of bugs and issues with scroll roots and transforms.

<!-- 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/355)
<!-- Reviewable:end -->
@glennw glennw deleted the glennw:wr2-flat-layers branch Aug 21, 2016
bors-servo added a commit to servo/servo that referenced this pull request Aug 21, 2016
Update for webrender API change, and remove webrender specific hack

<!-- Please describe your changes on the following line: -->

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

in display list building.

This relies on servo/webrender#355 being
merged first, and will then need the cargo.lock updated.

<!-- 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/12932)
<!-- Reviewable:end -->
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…render specific hack (from glennw:update-wr2); r=ConnorGBrewster

<!-- Please describe your changes on the following line: -->

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

in display list building.

This relies on servo/webrender#355 being
merged first, and will then need the cargo.lock updated.

Source-Repo: https://github.com/servo/servo
Source-Revision: c6494db520c44b40c159dade25b5f4b8fefdd9b6

UltraBlame original commit: 72acbb5883be863f468e4b37f076f1725d9cd933
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…render specific hack (from glennw:update-wr2); r=ConnorGBrewster

<!-- Please describe your changes on the following line: -->

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

in display list building.

This relies on servo/webrender#355 being
merged first, and will then need the cargo.lock updated.

Source-Repo: https://github.com/servo/servo
Source-Revision: c6494db520c44b40c159dade25b5f4b8fefdd9b6

UltraBlame original commit: 72acbb5883be863f468e4b37f076f1725d9cd933
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…render specific hack (from glennw:update-wr2); r=ConnorGBrewster

<!-- Please describe your changes on the following line: -->

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

in display list building.

This relies on servo/webrender#355 being
merged first, and will then need the cargo.lock updated.

Source-Repo: https://github.com/servo/servo
Source-Revision: c6494db520c44b40c159dade25b5f4b8fefdd9b6

UltraBlame original commit: 72acbb5883be863f468e4b37f076f1725d9cd933
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

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