Skip to content

Commit

Permalink
Bug 1950455 [wpt PR 50942] - Implement ctx.strokeTextCluster(), a=tes…
Browse files Browse the repository at this point in the history
…tonly

Automatic update from web-platform-tests
Implement ctx.strokeTextCluster()

This CL creates a new method for CanvasRenderingContext2d that strokes
a TextCluster object. Its fill counterpart, ctx.fillTextCluster(), was
merged in https://crrev.com/c/5854270.

This new method came to be from the discussion around the spec for the
TextMetrics additions: whatwg/html#11000

The existing tests for fillTextCluster() were renamed to include the
method name in the title, since before only "rendering" was mentioned.
The new tests are explicitly named using strokeTextCluster().

A line that was duplicated on the tests for fillTextCluster() was also
removed.

Bug: 341213359
Change-Id: Icd792b56e48f3ea5091e958671c19fcefe67fdec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6282180
Commit-Queue: Andres Ricardo Perez <andresrperezchromium.org>
Reviewed-by: Fernando Serboncini <fserbchromium.org>
Reviewed-by: Stephen Chenney <schenneychromium.org>
Cr-Commit-Position: refs/heads/main{#1425171}

--

wpt-commits: e515834325719ce9e2a15e2d41bfce49f020db7a
wpt-pr: 50942

UltraBlame original commit: c4d5d718989db2d1c940af46af2b61bd0b938b97
  • Loading branch information
marco-c committed Mar 1, 2025
1 parent 7d214fa commit 2d8f6f7
Show file tree
Hide file tree
Showing 53 changed files with 23,278 additions and 761 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
align
.
Expand All @@ -101,11 +97,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
align
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
align
.
Expand All @@ -110,11 +106,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
align
.
Expand All @@ -132,11 +124,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
align
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
baseline
.
Expand All @@ -101,11 +97,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
baseline
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
baseline
.
Expand All @@ -110,11 +106,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
baseline
.
Expand All @@ -132,11 +124,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
baseline
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
drawing
-
Expand All @@ -105,11 +101,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
drawing
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
drawing
-
Expand All @@ -114,11 +110,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
drawing
-
Expand All @@ -140,11 +132,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
drawing
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
font
-
Expand All @@ -77,11 +73,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
font
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
font
-
Expand All @@ -86,11 +82,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
font
-
Expand All @@ -110,11 +102,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
font
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
options
.
Expand Down Expand Up @@ -196,11 +192,7 @@
.
measure
.
text
-
clusters
-
rendering
fillTextCluster
-
options
.
Expand Down Expand Up @@ -570,18 +562,6 @@
_assertPixelApprox
(
canvas
5
55
255
0
0
255
2
)
;
_assertPixelApprox
(
canvas
55
55
255
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
.
measure
.
text
-
clusters
fillTextCluster
-
range
.
Expand Down Expand Up @@ -194,9 +192,7 @@
.
measure
.
text
-
clusters
fillTextCluster
-
range
.
Expand Down
Loading

0 comments on commit 2d8f6f7

Please sign in to comment.