net_instaweb::CssTagScanner Class Reference
List of all members.
Member Function Documentation
static bool net_instaweb::CssTagScanner::HasImport |
( |
const StringPiece & |
contents, |
|
|
MessageHandler * |
handler | |
|
) |
| | [static] |
Does this CSS file contain ? If so, it cannot be combined with previous CSS files. This may give false-positives, but no false-negatives.
Examines an HTML element to determine if it's a CSS link, extracting out the HREF and the media-type.
static bool net_instaweb::CssTagScanner::TransformUrls |
( |
const StringPiece & |
contents, |
|
|
Writer * |
writer, |
|
|
Transformer * |
transformer, |
|
|
MessageHandler * |
handler | |
|
) |
| | [static] |
Scans the contents of a CSS file, looking for the pattern url(xxx). Performs an arbitrary mutation on all such URLs. If xxx is quoted with single-quotes or double-quotes, those are retained and the URL inside is transformed.
The documentation for this class was generated from the following file: