Reviewers: jasvir,

Description:
Fixed bug: myvn filetypes marks gifs as svn:mime-type=text/gif

Added a minimizing CSS printer.  This is svn cped from CssPrettyPrinter.

Got rid of some unnecessary parenthesization around unary operators.
We now render !!x as !!x instead of !(!x)

Updated version of google-code-prettify, and turned the second version
under doc/html into symlinks into third_party.

Allow constant folding to NaN which is rendered by RealLiteral as (0/0).

Fixed rendering of -0 to preserve sign.

Fixed some message strings that were confusing.

Added an immutable map constructor to Maps.
Previously we often wrote
  private static final Map<Foo, Bar> LOOKUP_TABLE;
  static {
    LOOKUP_TABLE = /* an empty mutable map */;
    LOOKUP_TABLE.put(...);
    // many more puts.
  }
Now you can write
  private static final Map<Foo, Bar> LOOKUP_TABLE
    = Maps.<Foo, Bar>immutableMap()
        .put(a, b)
        .put(c, d)
        .create();
So the result is immutable, and no need for static inializers or
temporary variables.

Added jakarta file upload jars and dependency to third_party.

Removed useless <permissions> from build.xml.  This was cruft from the
Rhino sandboxing CL.  It doesn't work in forked mode, and so we
modified the sandbox to never allow file access, and instead resolve
file: URLs using the class loader.

Please review this at http://codereview.appspot.com/154063

Affected files:
  M     build.xml
  A     doc/html/common/lang-css.js
  MM    doc/html/common/prettify.css
  MM    doc/html/common/prettify.js
  M     src/com/google/caja/ancillary/linter/Linter.java
  M     src/com/google/caja/parser/js/NumberLiteral.java
  M     src/com/google/caja/parser/js/Operation.java
  M     src/com/google/caja/parser/js/RealLiteral.java
  A  +  src/com/google/caja/render/CssMinimalPrinter.java
  M     src/com/google/caja/render/CssPrettyPrinter.java
  M     src/com/google/caja/reporting/MessageType.java
  M     src/com/google/caja/util/Maps.java
  M     src/com/google/caja/util/Sets.java
  M     tests/com/google/caja/lexer/CssLexerTest.java
  M     tests/com/google/caja/parser/js/ExpressionTest.java
  M     tests/com/google/caja/parser/js/rendergolden4.txt
  M     tests/com/google/caja/parser/js/rendergolden6.txt
  A  +  tests/com/google/caja/render/CssMinimalPrinterTest.java
  A     third_party/java/jakarta_commons/LICENSE.txt
  A     third_party/java/jakarta_commons/NOTICE.txt
A third_party/java/jakarta_commons/commons-fileupload-1.2.1-sources.jar
  A     third_party/java/jakarta_commons/commons-fileupload-1.2.1.jar
  A     third_party/java/jakarta_commons/commons-io-1.4-sources.jar
  A     third_party/java/jakarta_commons/commons-io-1.4.jar
  M     third_party/js/prettify/lang-css.js
  M     third_party/js/prettify/prettify.js
  M     tools/myvn


Reply via email to