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

Accumulate subpixels through stacking contexts #12543

Merged
merged 1 commit into from Jul 27, 2016

Conversation

@mrobinson
Copy link
Member

mrobinson commented Jul 21, 2016


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

Instead of simply rounding layer origins and discarding subpixel
offsets, accumulate them by transforming them into the space of the
next child stacking context. This is an attempt to eliminate subpixel
differences that are caused by different stacking context boundaries in
reference tests.

Currently these accumulated subpixels are only used for text
positioning, but the plan is that they can be used for all drawing in
the future.


This change is Reviewable

@mrobinson
Copy link
Member Author

mrobinson commented Jul 21, 2016

This change fixes css-transforms-1_dev/html/css-transforms-3d-on-anonymous-block-001.htm on Linux and I'm hoping will eliminate flakiness in the reference tests (#11574).

@mrobinson
Copy link
Member Author

mrobinson commented Jul 21, 2016

@pcwalton
Copy link
Contributor

pcwalton commented Jul 25, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 25, 2016

📌 Commit 8e9045d has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Jul 26, 2016

Testing commit 8e9045d with merge f7ba231...

bors-servo added a commit that referenced this pull request Jul 26, 2016
Accumulate subpixels through stacking contexts

<!-- 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: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] 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. -->

Instead of simply rounding layer origins and discarding subpixel
offsets, accumulate them by transforming them into the space of the
next child stacking context. This is an attempt to eliminate subpixel
differences that are caused by different stacking context boundaries in
reference tests.

Currently these accumulated subpixels are only used for text
positioning, but the plan is that they can be used for all drawing in
the future.

<!-- 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/12543)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 26, 2016

💔 Test failed - mac-rel-css

@highfive
Copy link

highfive commented Jul 26, 2016

  ▶ PASS [expected FAIL] /css-transforms-1_dev/html/transform-input-019.htm
Instead of simply rounding layer origins and discarding subpixel
offsets, accumulate them by transforming them into the space of the
next child stacking context. This is an attempt to eliminate subpixel
differences that are caused by different stacking context boundaries in
reference tests.

Currently these accumulated subpixels are only used for text
positioning, but the plan is that they can be used for all drawing in
the future.
@mrobinson mrobinson force-pushed the mrobinson:off-by-one-ng branch from 8e9045d to 47e69d1 Jul 27, 2016
@mrobinson
Copy link
Member Author

mrobinson commented Jul 27, 2016

I'm marking the test as passing on !Linux.

@mrobinson
Copy link
Member Author

mrobinson commented Jul 27, 2016

@bors-servo r=pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Jul 27, 2016

📌 Commit 47e69d1 has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Jul 27, 2016

Testing commit 47e69d1 with merge 4077ae7...

bors-servo added a commit that referenced this pull request Jul 27, 2016
Accumulate subpixels through stacking contexts

<!-- 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: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] 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. -->

Instead of simply rounding layer origins and discarding subpixel
offsets, accumulate them by transforming them into the space of the
next child stacking context. This is an attempt to eliminate subpixel
differences that are caused by different stacking context boundaries in
reference tests.

Currently these accumulated subpixels are only used for text
positioning, but the plan is that they can be used for all drawing in
the future.

<!-- 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/12543)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 27, 2016

@bors-servo bors-servo merged commit 47e69d1 into servo:master Jul 27, 2016
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
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.