From: YeongJong Lee Date: Tue, 12 Jan 2021 02:37:09 +0000 (+0900) Subject: [NUI] remove unused measure specification size properties of View class (#2511) X-Git-Tag: accepted/tizen/unified/20210219.040944~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b263b7f474b31a0b3bc5d5c18230940ff9fa683;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] remove unused measure specification size properties of View class (#2511) No logical changes. --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index ade387f..81ce0a5 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -42,8 +42,6 @@ namespace Tizen.NUI.BaseComponents private int oldWidthPolicy = LayoutParamPolicies.MatchParent; // // Store Layout width to compare against later private int oldHeightPolicy = LayoutParamPolicies.MatchParent; // Store Layout height to compare against later private float weight = 0.0f; // Weighting of child View in a Layout - private MeasureSpecification measureSpecificationWidth; // Layout width and internal Mode - private MeasureSpecification measureSpecificationHeight; // Layout height and internal Mode private bool backgroundImageSynchronosLoading = false; private Dictionary transDictionary = new Dictionary(); private string[] transitionNames; @@ -833,10 +831,7 @@ namespace Tizen.NUI.BaseComponents { sizeSetExplicitly = value; // Store size set by API, will be used in place of NaturalSize if not set. SetValue(Size2DProperty, value); - // Set Specification so when layouts measure this View it matches the value set here. - // All Views are currently Layouts. - MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly); - MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly); + widthPolicy = value.Width; heightPolicy = value.Height; @@ -2010,8 +2005,6 @@ namespace Tizen.NUI.BaseComponents { if (widthPolicy >= 0) { - measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly); - if (heightPolicy >= 0) // Policy an exact value { // Create Size2D only both _widthPolicy and _heightPolicy are set. @@ -2041,8 +2034,6 @@ namespace Tizen.NUI.BaseComponents { if (heightPolicy >= 0) { - measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly); - if (widthPolicy >= 0) // Policy an exact value { // Create Size2D only both _widthPolicy and _heightPolicy are set. diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs index 8dd6719..d0a197c 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs @@ -106,38 +106,6 @@ namespace Tizen.NUI.BaseComponents this.layout?.RequestLayout(); } - /// - /// Stores the calculated width value and its ModeType. Width component. - /// - internal MeasureSpecification MeasureSpecificationWidth - { - set - { - measureSpecificationWidth = value; - layout?.RequestLayout(); - } - get - { - return measureSpecificationWidth; - } - } - - /// - /// Stores the calculated width value and its ModeType. Height component. - /// - internal MeasureSpecification MeasureSpecificationHeight - { - set - { - measureSpecificationHeight = value; - layout?.RequestLayout(); - } - get - { - return measureSpecificationHeight; - } - } - internal void AttachTransitionsToChildren(LayoutTransition transition) { // Iterate children, adding the transition unless a transition