mirror of
https://github.com/servo/servo.git
synced 2025-06-12 18:34:39 +00:00
Unify (Offscreen)CanvasRenderingContext2d
and make PaintRenderingContext2D
standalone (#35619)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
6199099d12
commit
1d7bb1337d
6 changed files with 237 additions and 290 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue