markTransformMatrixNeedsUpdate method
void
markTransformMatrixNeedsUpdate()
Implementation
void markTransformMatrixNeedsUpdate() {
// If a transform transition is running, do not clobber the per‑tick
// animation-driven transformMatrix; let the transition own updates.
// When no transform transition is active, invalidate cached matrix so
// percentage-based transforms recompute after layout size changes.
if (this is CSSRenderStyle) {
final CSSRenderStyle rs = this as CSSRenderStyle;
if (rs.isTransitionRunning(TRANSFORM)) {
return;
}
}
_transformMatrix = null;
if (DebugFlags.enableCssVarAndTransitionLogs) {
cssLogger.info('[transform][clear-matrix]');
}
}