public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { Selector.CollectConditionTargets(node, watchRuleFactory, affectedNodes); var parent = node.GetStyleParent(); while (parent != null) { AnchestorSelector.CollectConditionTargets(parent, watchRuleFactory, affectedNodes); if (DirectChild) { break; } parent = parent.GetStyleParent(); } }