// Aggregate rules by selector
Iterator<Rule> ruleIterator = childRules.iterator();
while (ruleIterator.hasNext())
{
Rule rule = ruleIterator.next();
if (rule instanceof StyleRule)
{
addStyleRule((StyleRule)rule, mediaRule.getMediaList(), isLocal);
}