/** * Sets the documentContext attribute of the StyleReference object * * @param context The new documentContext value * @param nsh The new documentContext value * @param doc The new documentContext value * @param ui */ public void setDocumentContext(SharedContext context, NamespaceHandler nsh, Document doc, UserInterface ui) { _context = context; _nsh = nsh; _doc = doc; AttributeResolver attRes = new StandardAttributeResolver(_nsh, _uac, ui); List<StylesheetInfo> infos = getStylesheets(); XRLog.match("media = " + _context.getMedia()); _matcher = new com.openhtmltopdf.css.newmatch.Matcher( new DOMTreeResolver(), attRes, _stylesheetFactory, readAndParseAll(infos, _context.getMedia()), _context.getMedia()); }