Commit 688f174
[html-in-canvas] Fix missing background color on nested canvases
When a layer exists for canvas, CSS background colors were set on the
layer. This did not work for nested html-in-canvas where the background
needs to be painted into the parent. This bug was only present after
calling ctx.reset() because on the initial render, a cc layer does not
yet exist for the nested canvas, so DrawsBackgroundOntoContentLayer
returned false.
Fixed: 536346616
Change-Id: If90fd1ff95438e49e75960996c696fdea2135502
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8149499
Reviewed-by: Stefan Zager <szager@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1668735}1 parent 5059bfe commit 688f174
2 files changed
Lines changed: 38 additions & 0 deletions
File tree
- html/canvas/element/manual/draw-element-image
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments