ExtendedParser ep,
ValueManager [] vms,
ShorthandManager [] sms) {
ParsedURL durl = ((SVGOMDocument)doc).getParsedURL();
CSSEngine result = new SVGCSSEngine(doc, durl, ep, vms, sms, ctx);
URL url = getClass().getResource("resources/UserAgentStyleSheet.css");
if (url != null) {
ParsedURL purl = new ParsedURL(url);
InputSource is = new InputSource(purl.toString());
result.setUserAgentStyleSheet
(result.parseStyleSheet(is, purl, "all"));
}
return result;
}