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. (#17980)
* Fix cachedLastStyle state leak across canvases. Reduce ctx.font reset calls. * Remove font set test
This commit is contained in:
parent
2037e0f18d
commit
705fcac4eb
@ -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