mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web] Add comment for clip update. (flutter/engine#20384)
This commit is contained in:
parent
0e9c42bb41
commit
606cb02b86
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user