Reviewers: felix8a,
Description:
Felix says:
@import is supposed to be rewritten by InlineCssImportsStage, and
there's a testsuite for it, but nothing actually instantiates that
stage.
Dur. Hooked it up.
Please review this at http://codereview.appspot.com/125043
Affected files:
M src/com/google/caja/plugin/PluginCompiler.java
Index: src/com/google/caja/plugin/PluginCompiler.java
===================================================================
--- src/com/google/caja/plugin/PluginCompiler.java (revision 3747)
+++ src/com/google/caja/plugin/PluginCompiler.java (working copy)
@@ -24,6 +24,7 @@
import com.google.caja.plugin.stages.ConsolidateCodeStage;
import com.google.caja.plugin.stages.DebuggingSymbolsStage;
import com.google.caja.plugin.stages.InferFilePositionsStage;
+import com.google.caja.plugin.stages.InlineCssImportsStage;
import com.google.caja.plugin.stages.OpenTemplateStage;
import com.google.caja.plugin.stages.RewriteCssStage;
import com.google.caja.plugin.stages.RewriteHtmlStage;
@@ -124,6 +125,7 @@
List<Pipeline.Stage<Jobs>> stages = compilationPipeline.getStages();
stages.add(new RewriteHtmlStage());
+ stages.add(new InlineCssImportsStage());
stages.add(new SanitizeHtmlStage(htmlSchema));
stages.add(new ValidateCssStage(cssSchema, htmlSchema));
stages.add(new RewriteCssStage());