mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00

When we lose the context for a 2D canvas, we need to silently fail any canvas calls until the context is recovered. Unfortunately that meant we returned a nullptr in CanvasRenderingContext2D::GetTransform which is unsupported by the WebIDL. For now, let's just return an identity transform as a placeholder for these situations. Differential Revision: https://phabricator.services.mozilla.com/D211471