提交 f9315ab1 编写于 作者: Y Youssef Victor

perf(skia): Reduce UIElement size and avoid unused property changed registration

上级 02e639a9
......@@ -24,8 +24,6 @@ namespace Windows.UI.Xaml
public partial class UIElement : DependencyObject
{
private ContainerVisual _visual;
internal double _canvasTop;
internal double _canvasLeft;
private Rect _currentFinalRect;
private Rect? _currentClippedFrame;
......@@ -37,8 +35,6 @@ namespace Windows.UI.Xaml
InitializePointers();
InitializeKeyboard();
this.RegisterPropertyChangedCallbackStrong(OnPropertyChanged);
UpdateHitTest();
}
......@@ -59,18 +55,6 @@ namespace Windows.UI.Xaml
partial void InitializeKeyboard();
private void OnPropertyChanged(ManagedWeakReference instance, DependencyProperty property, DependencyPropertyChangedEventArgs args)
{
if (property == Controls.Canvas.TopProperty)
{
_canvasTop = (double)args.NewValue;
}
else if (property == Controls.Canvas.LeftProperty)
{
_canvasLeft = (double)args.NewValue;
}
}
partial void OnOpacityChanged(DependencyPropertyChangedEventArgs args)
{
UpdateOpacity();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册