diff options
author | sagudev <16504129+sagudev@users.noreply.github.com> | 2025-05-01 16:18:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-01 14:18:56 +0000 |
commit | 5cdb0865ba79c4d24858cf95beb9bbe9c5201afd (patch) | |
tree | d3547997f9dbca939bf884c7ac316d00c088a57d /src/components/script/dom/webidls/HTMLFieldSetElement.webidl | |
parent | 0d21992edd8783e2e9b5c224fdd60a4e8e3a193e (diff) | |
download | servo-main.tar.gz servo-main.zip |
canvas: rename `snapshot(_data)` to `surface() -> SourceSurface`/`bytes() -> AsRef<[u8]>` (#36793)HEADmain
`surface()` returns `SourceSurface` which is/was meant as optimization
when passing from canvas to canvas (in vello that would be wgpu texture;
but raquote does not really have this) while bytes returns something
that must impl AsRef<[u8]> (this is more generic then `&[u8]` as it
allows us to have type with drop impl - wgpu's BufferView).
Testing: This is just refactoring (protected by rust), but there are WPT
tests.
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'src/components/script/dom/webidls/HTMLFieldSetElement.webidl')
0 files changed, 0 insertions, 0 deletions