Skip to content

Accumulate subpixels through stacking contexts - #12543

Merged
bors-servo merged 1 commit into
servo:masterfrom
mrobinson:off-by-one-ng
Jul 27, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
mrobinson:off-by-one-ng

Conversation

@mrobinson

@mrobinson mrobinson commented Jul 21, 2016 •

Copy link
Copy Markdown
Member

  • ./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

@highfive highfive assigned ghost Jul 21, 2016
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 21, 2016
@mrobinson

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member Author

@pcwalton r?

@ghost ghost assigned pcwalton and unassigned ghost Jul 21, 2016
@pcwalton

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8e9045d has been approved by pcwalton

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 25, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8e9045d with merge f7ba231...

bors-servo pushed 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
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 26, 2016
@highfive

Copy link
Copy Markdown
  ▶ PASS [expected FAIL] /css-transforms-1_dev/html/transform-input-019.htm

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Jul 26, 2016
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.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Jul 27, 2016
@mrobinson

Copy link
Copy Markdown
Member Author

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

@mrobinson

Copy link
Copy Markdown
Member Author

@bors-servo r=pcwalton

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 47e69d1 has been approved by pcwalton

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 47e69d1 with merge 4077ae7...

bors-servo pushed 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
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo
bors-servo merged commit 47e69d1 into servo:master Jul 27, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants