Auto merge of #25782 - kaiakz:master, r=jdm

Add a simple implementation of CanvasRenderingContext2d.fillText

<!-- Please describe your changes on the following line: -->
I added a simple implementation of CanvasRenderingContext2d.fillText.
Some code are merged from @mikrut, and I fixed a bug about text scaling.
Also, the bug of text rotation should be fixed after `raqote` merged my other PR.

---
<!-- 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 (part of) #11681 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-03-19 13:24:08 -04:00 committed by GitHub
commit ffdb83b644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 111 additions and 32 deletions

View file

@ -1,4 +0,0 @@
[2d.gradient.radial.inside3.html]
[Canvas test: 2d.gradient.radial.inside3]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.line.cap.closed.html]
[Line caps are not drawn at the corners of an unclosed rectangle]
expected: FAIL

View file

@ -0,0 +1,2 @@
[canvas_text_font_001.htm]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.gradient.radial.inside3.html]
[OffscreenCanvas test: 2d.gradient.radial.inside3]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.gradient.radial.inside3.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.line.cap.closed.html]
[Line caps are not drawn at the corners of an unclosed rectangle]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.line.cap.closed.worker.html]
[Line caps are not drawn at the corners of an unclosed rectangle]
expected: FAIL