mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web] Fix cachedLastStyle state leak across canvases. Reduce ctx.font reset calls. (flutter/engine#17980)
* Fix cachedLastStyle state leak across canvases. Reduce ctx.font reset calls. * Remove font set test
This commit is contained in:
parent
2a26da8938
commit
b4ea9f8f45
@ -356,6 +356,7 @@ class BitmapCanvas extends EngineCanvas {
|
||||
_drawImage(image, p, paint);
|
||||
_childOverdraw = true;
|
||||
_canvasPool.closeCurrentCanvas();
|
||||
_cachedLastStyle = null;
|
||||
}
|
||||
|
||||
html.ImageElement _drawImage(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user