Browse Source

Fixed yet another invalidation case

pull/8105/head
Nikita Tsukanov 4 years ago
parent
commit
35e18ce765
  1. 6
      src/Avalonia.Base/Rendering/Composition/Server/ServerVisual.cs

6
src/Avalonia.Base/Rendering/Composition/Server/ServerVisual.cs

@ -120,11 +120,12 @@ namespace Avalonia.Rendering.Composition.Server
var oldTransformedContentBounds = TransformedOwnContentBounds; var oldTransformedContentBounds = TransformedOwnContentBounds;
var oldCombinedTransformedClipBounds = _combinedTransformedClipBounds; var oldCombinedTransformedClipBounds = _combinedTransformedClipBounds;
var dirtyOldBounds = false;
if (_parent?.IsDirtyComposition == true) if (_parent?.IsDirtyComposition == true)
{ {
IsDirtyComposition = true; IsDirtyComposition = true;
_isDirtyForUpdate = true; _isDirtyForUpdate = true;
dirtyOldBounds = true;
} }
GlobalTransformMatrix = newTransform; GlobalTransformMatrix = newTransform;
@ -161,8 +162,7 @@ namespace Avalonia.Rendering.Composition.Server
if (wasVisible != IsVisibleInFrame) if (wasVisible != IsVisibleInFrame)
_isDirtyForUpdate = true; _isDirtyForUpdate = true;
var dirtyOldBounds = false;
// Invalidate previous rect and queue new rect based on visibility // Invalidate previous rect and queue new rect based on visibility
if (positionChanged) if (positionChanged)
{ {

Loading…
Cancel
Save