Page Speed Optimization Libraries
1.5.27.2
|
#include "css_move_to_head_filter.h"
Public Member Functions | |
CssMoveToHeadFilter (RewriteDriver *driver) | |
virtual void | StartDocumentImpl () |
virtual void | StartElementImpl (HtmlElement *element) |
virtual void | EndElementImpl (HtmlElement *element) |
virtual const char * | Name () const |
The name of this filter -- used for logging and debugging. | |
virtual void | DetermineEnabled () |
Static Public Member Functions | |
static void | InitStats (Statistics *statistics) |
Moves all CSS <link> and <style> tags either into the bottom of the <head> or above the first <script> depending on settings.
virtual void net_instaweb::CssMoveToHeadFilter::DetermineEnabled | ( | ) | [virtual] |
Invoked by rewrite driver where all filters should determine whether they are enabled for this request.
Reimplemented from net_instaweb::EmptyHtmlFilter.
virtual void net_instaweb::CssMoveToHeadFilter::StartDocumentImpl | ( | ) | [virtual] |
Overload these implementer methods: Intentionally left abstract so that implementers don't forget to change the name from Blah to BlahImpl.
Implements net_instaweb::CommonFilter.