Example #1
0
        internal void UpdateInheritedStyles()
        {
            if (element.parent == null)
            {
                return;
            }

            UIStyleSet parentStyle = element.parent.style;

            if (parentStyle == null)
            {
                return;
            }

            for (int i = 0; i < inheritedProperties.Length; i++)
            {
                inheritedProperties[i] = parentStyle.GetComputedStyleProperty((StylePropertyId)i);
            }
        }
Example #2
0
        internal void UpdateInheritedStyles()
        {
            if (element.parent == null)
            {
                return;
            }

            int count = StyleUtil.InheritedProperties.Count;

            UIStyleSet parentStyle = element.parent.style;

            if (parentStyle == null)
            {
                return;
            }

            for (int i = 0; i < count; i++)
            {
                int propertyId = (int)StyleUtil.InheritedProperties[i];
                int key        = BitUtil.SetHighLowBits(1, propertyId);
                propertyMap[key] = parentStyle.GetComputedStyleProperty(StyleUtil.InheritedProperties[i]);
            }
        }