-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use IDL enums for all CanvasTextDrawingStyles in Canvas2D
Some of the canvas properties that are part of CanvasTextDrawingStyles (https://html.spec.whatwg.org/#canvastextdrawingstyles) had been modified to use enums defined from the IDL definition of the rendering context (fontStretch and textRendering). This CL creates enums for the rest of the CanvasTextDrawingStyles properties. Getters and setters had to be modified, as well as a unit test. Generated tests for setting and getting this properties already exist in WPT, as defined in text.yaml. Bug: 341213359 Change-Id: Ic8c30219a039c96cfd83dd078157d9fb60565e03 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6000733 Commit-Queue: Andres Ricardo Perez <andresrperez@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org> Cr-Commit-Position: refs/heads/main@{#1415577}
- Loading branch information
1 parent
0792096
commit a685ca6
Showing
4 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters