internal static StylePropertyId[] GetPropertyIds(StyleRule rule) { StylePropertyId[] array = new StylePropertyId[rule.properties.Length]; for (int i = 0; i < array.Length; i++) { array[i] = StyleSheetCache.GetPropertyId(rule, i); } return(array); }
internal static StylePropertyId[] GetPropertyIds(StyleSheet sheet, int ruleIndex) { StyleSheetCache.SheetHandleKey key = new StyleSheetCache.SheetHandleKey(sheet, ruleIndex); StylePropertyId[] array; bool flag = !StyleSheetCache.s_RulePropertyIdsCache.TryGetValue(key, out array); if (flag) { StyleRule styleRule = sheet.rules[ruleIndex]; array = new StylePropertyId[styleRule.properties.Length]; for (int i = 0; i < array.Length; i++) { array[i] = StyleSheetCache.GetPropertyId(styleRule, i); } StyleSheetCache.s_RulePropertyIdsCache.Add(key, array); } return(array); }