net_instaweb::CssMinify Class Reference

List of all members.

Static Public Member Functions

static bool Stylesheet (const Css::Stylesheet &stylesheet, Writer *writer, MessageHandler *handler)
 Write minified Stylesheet.
static bool Declarations (const Css::Declarations &declarations, Writer *writer, MessageHandler *handler)
 Write minified Declarations (style attribute contents).
static bool AbsolutifyImports (Css::Stylesheet *stylesheet, const GoogleUrl &base)
static bool AbsolutifyUrls (Css::Stylesheet *stylesheet, const GoogleUrl &base, bool handle_parseable_sections, bool handle_unparseable_sections, RewriteDriver *driver, MessageHandler *handler)
static GoogleString EscapeString (const StringPiece &src, bool in_url)

Member Function Documentation

static bool net_instaweb::CssMinify::AbsolutifyImports ( Css::Stylesheet *  stylesheet,
const GoogleUrl base 
) [static]

Absolutify all relative URLs in the stylesheet's imports using the given base URL. The Import structures are modified in-situ. Returns true if any URLs were absolutified, false if not.

static bool net_instaweb::CssMinify::AbsolutifyUrls ( Css::Stylesheet *  stylesheet,
const GoogleUrl base,
bool  handle_parseable_sections,
bool  handle_unparseable_sections,
RewriteDriver driver,
MessageHandler handler 
) [static]

Absolutify all relative URLs in the stylesheet using the given base URL. The Declaration structures are modified in-situ. You can control whether URLs in parseable sections (BACKGROUND, BACKGROUND_IMAGE, LIST_STYLE, LIST_STYLE_IMAGE) and/or unparseable sections (UNPARSEABLE) are handled. Returns true if any URLs were absolutified, false if not.

static GoogleString net_instaweb::CssMinify::EscapeString ( const StringPiece &  src,
bool  in_url 
) [static]

Escape [()
\'"]. Also escape , for non-URLs. Escaping , in URLs causes IE8 to interpret the backslash as a forward slash.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:33:58 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3