From 06c9f3ae7fb90328e46989b415b3fcfbc15fea3e Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Wed, 25 Feb 2015 19:18:16 -0400 Subject: [PATCH] Add srcset for images in Bug: T64709 Change-Id: I476beb6cf072c5a38570143d1f56baa3f49d23d4 --- includes/gallery/TraditionalImageGallery.php | 2 ++ tests/parser/parserTests.txt | 36 ++++++++++---------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/includes/gallery/TraditionalImageGallery.php b/includes/gallery/TraditionalImageGallery.php index ac61067dd7..7a0206c29d 100644 --- a/includes/gallery/TraditionalImageGallery.php +++ b/includes/gallery/TraditionalImageGallery.php @@ -133,6 +133,8 @@ class TraditionalImageGallery extends ImageGalleryBase { $this->adjustImageParameters( $thumb, $imageParameters ); + Linker::processResponsiveImages( $img, $thumb, $transformOptions ); + # Set both fixed width and min-height. $thumbhtml = "\n\t\t\t" . '
  • -
    Foobar.jpg
    +
    Foobar.jpg
  • @@ -2873,7 +2873,7 @@ File:foobar.jpg
  • -
    Foobar.jpg
    +
    Foobar.jpg
    @@ -16809,19 +16809,19 @@ image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
  • -
    +

    some caption Main Page

  • -
    Foobar.jpg
    +
    Foobar.jpg
  • -
    This is a foo-bar.
    +
    This is a foo-bar.

    Blabla|blabla.

    @@ -16842,17 +16842,17 @@ image:foobar.jpg|link=Main Page#section|caption !! html