/** * Gets the baseURL attribute of the RenderingContext object * * @return The baseURL value */ public String getBaseURL() { return uac.getBaseURL(); }
ref.setUri(uri); } else { ref.setUri(_uac.getBaseURL() + "#inline_style_" + (++inlineStyleCount)); Stylesheet sheet = _stylesheetFactory.parse( new StringReader(ref.getContent()), ref);
/** * Flushes any stylesheet associated with this stylereference (based on the user agent callback) that are in cache. * Deprecated for now, until we fix caching, use a new <code>StylesheetFactory</code> each run. */ @Deprecated public void flushStyleSheets() { String uri = _uac.getBaseURL(); StylesheetInfo info = new StylesheetInfo(); info.setUri(uri); info.setOrigin(StylesheetInfo.AUTHOR); if (_stylesheetFactory.containsStylesheet(uri)) { _stylesheetFactory.removeCachedStylesheet(uri); XRLog.cssParse("Removing stylesheet '" + uri + "' from cache by request."); } else { XRLog.cssParse("Requested removing stylesheet '" + uri + "', but it's not in cache."); } }