Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::CssMinify Class Reference

#include "css_minify.h"

Public Member Functions

 CssMinify (Writer *writer, MessageHandler *handler)
bool ParseStylesheet (StringPiece stylesheet_text)
void set_url_collector (StringVector *urls)
 Establishes a string-vector to collect all parsed URLs.
void set_error_writer (Writer *writer)

Static Public Member Functions

static bool Stylesheet (const Css::Stylesheet &stylesheet, Writer *writer, MessageHandler *handler)
 Writes minified Stylesheet from already-parsed stylesheet object.
static bool Declarations (const Css::Declarations &declarations, Writer *writer, MessageHandler *handler)
 Writes minified Declarations (style attribute contents).

Detailed Description

TODO(nikhilmadan): Move to pagespeed/kernel/css/.

Member Function Documentation

bool net_instaweb::CssMinify::ParseStylesheet ( StringPiece  stylesheet_text)

Parses a CSS stylesheet, writing the minified result to the writer supplied to the consructor. Optionally, parsed URLs can be added to the string-vector passed to set_url_collector.

void net_instaweb::CssMinify::set_error_writer ( Writer writer)

Sets a writer to receive a stream of error messages. The default is that all error messages are eaten.

The documentation for this class was generated from the following file: