未验证 提交 f3ce90e9 编写于 作者: F Ferhat 提交者: GitHub

Reset width/height before deallocation for Safari allocation bug. (#16469)

上级 001b3a0b
......@@ -225,6 +225,9 @@ class _CanvasPool extends _SaveStackTracking {
void endOfPaint() {
if (_reusablePool != null) {
for (html.CanvasElement e in _reusablePool) {
if (browserEngine == BrowserEngine.webkit) {
e.width = e.height = 0;
}
e.remove();
}
_reusablePool = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册