static int AdjustDisplayIndexForTransitions(int index, StylePropertyManipulator manipulator)
        {
            var valueCount = manipulator.GetValuesCount();

            if (index < valueCount ||
                !StylePropertyUtil.s_NameToId.TryGetValue(manipulator.propertyName, out var id) ||
                !id.IsTransitionId())
            {
                return(index);
            }

            switch (id)
            {
            case StylePropertyId.TransitionProperty:
                index = -1;
                break;

            case StylePropertyId.TransitionDuration:
                index %= manipulator.GetValuesCount();
                break;

            case StylePropertyId.TransitionTimingFunction:
                index %= manipulator.GetValuesCount();
                break;

            case StylePropertyId.TransitionDelay:
                index %= manipulator.GetValuesCount();
                break;
            }

            return(index);
        }
 public int MaxCount()
 {
     return(Mathf.Max(transitionProperty.GetValuesCount(),
                      Mathf.Max(transitionDuration.GetValuesCount(),
                                Mathf.Max(transitionTimingFunction.GetValuesCount(),
                                          transitionDelay.GetValuesCount()))));
 }
 bool IsKeyword(StylePropertyManipulator manipulator)
 {
     return(manipulator.GetValuesCount() == 1 &&
            manipulator.GetValueContextAtIndex(0).handle.valueType == StyleValueType.Keyword);
 }