Added support for style.toAllowedContentRules method.