146147148149150151152153154155156
try { return new CSSOMStyleSheet(null, null, null, title, new DOMMediaList(media), null, valueFactoryMap, CSSDocumentHandler.createParser()); } catch (Exception e) { throw new RuntimeException(e.getMessage());
223224225226227228229230231232233
CSSOMStyleSheet ss = new CSSOMStyleSheet (n, null, url.toString(), title, new DOMMediaList(media), null, valueFactoryMap, CSSDocumentHandler.createParser()); CSSDocumentHandler.parseStyleSheet(ss, url.toString());