if (userAgentStyleSheet != null) {
addMatchingRules(userAgentStyleSheet.getCssRules(), e, pe,
uaRules);
uaRules = sortRules(uaRules, e, pe);
for (int i = 0; i < uaRules.getLength(); i++) {
CSSStyleRule rule = (CSSStyleRule)uaRules.item(i);
CSSStyleDeclaration decl = rule.getStyle();
int len = decl.getLength();
for (int j = 0; j < len; j++) {
setUserAgentProperty(decl.item(j), decl, rd);
}
}