[web] Fix cachedLastStyle state leak across canvases. Reduce ctx.font reset calls. (#17980)

* Fix cachedLastStyle state leak across canvases. Reduce ctx.font reset calls.

* Remove font set test
This commit is contained in:
Ferhat 2020-05-03 18:06:08 -07:00 committed by GitHub
parent 2037e0f18d
commit 705fcac4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,6 +356,7 @@ class BitmapCanvas extends EngineCanvas {
_drawImage(image, p, paint);
_childOverdraw = true;
_canvasPool.closeCurrentCanvas();
_cachedLastStyle = null;
}
html.ImageElement _drawImage(