[web] Add comment for clip update. (flutter/engine#20384)

This commit is contained in:
Ferhat 2020-08-11 13:49:19 -07:00 committed by GitHub
parent 0e9c42bb41
commit 606cb02b86

View File

@ -325,6 +325,8 @@ class PersistedPhysicalShape extends PersistedContainerSurface
}
if (oldSurface.path != path) {
oldSurface._clipElement?.remove();
// Reset style on prior element since we may have switched between
// rect/rrect and arbitrary path.
domRenderer.setElementStyle(rootElement!, 'clip-path', '');
domRenderer.setElementStyle(rootElement!, '-webkit-clip-path', '');
_applyShape();