ResourceLoaderImageModule: Remove bogus CSSJanus call
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 30 Mar 2015 17:27:31 +0000 (19:27 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Apr 2015 19:10:03 +0000 (19:10 +0000)
We explicitly do not want to use CSSJanus flipping here, as
ResourceLoaderImage has a separate and more sophisticated mechanism
for choosing the right image for given language. This was a no-op,
since there were no flippable paths in the output at this point.

Change-Id: Ieff5f21653504a28afe3d4c110a52d8b06fc6a07

includes/resourceloader/ResourceLoaderImageModule.php

index 88ba597..5063ff9 100644 (file)
@@ -273,9 +273,6 @@ class ResourceLoaderImageModule extends ResourceLoaderModule {
                }
 
                $style = implode( "\n", $rules );
-               if ( $this->getFlip( $context ) ) {
-                       $style = CSSJanus::transform( $style, true, false );
-               }
                return array( 'all' => $style );
        }