aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ResourceLoader/ImageModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ResourceLoader/ImageModule.php')
-rw-r--r--includes/ResourceLoader/ImageModule.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/includes/ResourceLoader/ImageModule.php b/includes/ResourceLoader/ImageModule.php
index b955a758233d..c90b9757ce93 100644
--- a/includes/ResourceLoader/ImageModule.php
+++ b/includes/ResourceLoader/ImageModule.php
@@ -378,21 +378,18 @@ class ImageModule extends Module {
$imageDataUri = $this->useDataURI ? $image->getDataUri( $context, $variant, 'original' ) : false;
$primaryUrl = $imageDataUri ?: $image->getUrl( $context, $script, $variant, 'original' );
$declarations = $this->getCssDeclarations(
- $primaryUrl,
- $image->getUrl( $context, $script, $variant, 'rasterized' )
+ $primaryUrl
);
return implode( "\n\t", $declarations );
}
/**
- * This method formerly provided fallback rasterized images for browsers that do not support SVG.
- * Now kept for backwards-compatibility.
+ * Format the CSS declaration for the image (defaults to background-image property).
*
* @param string $primary Primary URI
- * @param string $fallback Fallback URI (unused)
- * @return string[] CSS declarations to use given URIs as background-image
+ * @return string[] CSS declarations
*/
- protected function getCssDeclarations( $primary, $fallback ): array {
+ protected function getCssDeclarations( $primary ): array {
$primaryUrl = CSSMin::buildUrlValue( $primary );
return [
"background-image: $primaryUrl;",