Auto merge of #12543 - mrobinson:off-by-one-ng, r=pcwalton

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 -->
This commit is contained in:
bors-servo 2016-07-27 05:17:22 -05:00 committed by GitHub
commit 4077ae7d04
5 changed files with 58 additions and 25 deletions

View file

@ -1,4 +1,2 @@
[css-transforms-3d-on-anonymous-block-001.htm]
type: reftest
expected:
if os == "linux": FAIL

View file

@ -1,3 +1,4 @@
[transform-input-019.htm]
type: reftest
expected: FAIL
expected:
if os == "linux": FAIL