Explorar el Código

Color optimization now works on all expressions

Taddeüs Kroes hace 11 años
padre
commit
8b440b2781
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      color.ml

+ 2 - 3
color.ml

@@ -51,11 +51,10 @@ let rec short = function
   | Function ("rgb", Nary (",", [r; g; b])) ->
     Function ("rgb", Nary (",", [clip r; clip g; clip b]))
 
-  | c -> c
+  | v -> v
 
 let transform = function
-  | Declaration ("color", color, imp) ->
-    Declaration ("color", short color, imp)
+  | Expr value -> Expr (short value)
   | v -> v
 
 let compress = Util.transform_stylesheet transform