static bool net_instaweb::CssAbsolutify::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::CssAbsolutify::AbsolutifyUrls |
( |
Css::Stylesheet * |
stylesheet, |
|
|
const GoogleUrl & |
base, |
|
|
bool |
handle_parseable_ruleset_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. -face are absolutified no matter what these are set to.
- Todo:
- TODO(sligocki): Remove handle_ bools, and always handle both. Also, absolutify imports in this function. Returns true if any URLs were absolutified, false if not.
The documentation for this class was generated from the following file: