diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2025-02-23 17:31:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-23 16:31:06 +0000 |
commit | 1d7bb1337d3fc4355ea0296d17a2f196541ad7d0 (patch) | |
tree | 7ef33cfd8187af570d9e86b763b66bc675763d86 /components/script_bindings/codegen | |
parent | 6199099d12411b1a43d239bbe8409936ff6623b7 (diff) | |
download | servo-1d7bb1337d3fc4355ea0296d17a2f196541ad7d0.tar.gz servo-1d7bb1337d3fc4355ea0296d17a2f196541ad7d0.zip |
Unify `(Offscreen)CanvasRenderingContext2d` and make `PaintRenderingContext2D` standalone (#35619)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script_bindings/codegen')
-rw-r--r-- | components/script_bindings/codegen/CodegenRust.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_bindings/codegen/CodegenRust.py b/components/script_bindings/codegen/CodegenRust.py index 06f993d8b5d..170ad5c20cc 100644 --- a/components/script_bindings/codegen/CodegenRust.py +++ b/components/script_bindings/codegen/CodegenRust.py @@ -2462,8 +2462,8 @@ class CGAssertInheritance(CGThing): selfName = self.descriptor.interface.identifier.name - if selfName == "PaintRenderingContext2D": - # PaintRenderingContext2D embeds a CanvasRenderingContext2D + if selfName == "OffscreenCanvasRenderingContext2D": + # OffscreenCanvasRenderingContext2D embeds a CanvasRenderingContext2D # instead of a Reflector as an optimization, # but this is fine since CanvasRenderingContext2D # also has a reflector |