Esempio n. 1
0
  private void processStyleSheet(VirtualFile cssFile) {
    implicitIncludes.add(cssFile);

    try {
      FontManager fontManager = configuration.getFontsConfiguration().getTopLevelManager();
      StyleSheet styleSheet = new StyleSheet();
      styleSheet.checkDeprecation(configuration.showDeprecationWarnings());
      styleSheet.parse(
          cssFile.getName(), cssFile.getInputStream(), ThreadLocalToolkit.getLogger(), fontManager);

      extractStyles(styleSheet, false);
    } catch (Exception exception) {
      CompilerMessage m = new ParseError(exception.getLocalizedMessage());
      m.setPath(cssFile.getName());
      ThreadLocalToolkit.log(m);
    }
  }