Kill diff.js with fire. It only applies to versions of Gecko that were released befor...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 14 May 2011 23:49:29 +0000 (23:49 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 14 May 2011 23:49:29 +0000 (23:49 +0000)
includes/diff/DifferenceEngine.php
resources/Resources.php
skins/common/diff.js [deleted file]

index 1dda3da..2cecef6 100644 (file)
@@ -645,7 +645,6 @@ CONTROL;
        function showDiffStyle() {
                global $wgOut;
                $wgOut->addModuleStyles( 'mediawiki.legacy.diff' );
-               $wgOut->addModuleScripts( 'mediawiki.legacy.diff' );
        }
 
        /**
index a3c07c9..efc38f5 100644 (file)
@@ -594,13 +594,10 @@ return array(
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.diff' => array(
-               'scripts' => 'common/diff.js',
                'styles' => 'common/diff.css',
                'group' => 'mediawiki.action.history',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => "{$GLOBALS['IP']}/skins",
-               'dependencies' => 'mediawiki.legacy.wikibits',
-               'position' => 'top',
        ),
        'mediawiki.legacy.edit' => array(
                'scripts' => 'common/edit.js',
diff --git a/skins/common/diff.js b/skins/common/diff.js
deleted file mode 100644 (file)
index 5fd151f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-Workaround for overflow bug in Mozilla 1.1 and earlier, where scrolling
-<div>s in <td> cells collapse their height to a single line.
-
-Known to be fixed in 1.2.1 (Gecko 20021130), but the CSS hacks I've tried
-with overflow-x disable the scrolling all the way until Mozilla 1.8 / FF 1.5
-and break Opera as well.
-
-So... we check for reaaaally old Gecko and hack in an alternate rule to let
-the wide cells spill instead of scrolling them. Not ideal as it won't work
-if JS is disabled, of course.
-*/
-
-if (navigator && navigator.product == "Gecko" && navigator.productSub < "20021130") {
-       var sheets = document.styleSheets;
-       var lastSheet = sheets[sheets.length-1];
-       lastSheet.insertRule(
-               "table.diff td div { overflow: visible; }",
-               lastSheet.cssRules.length);
-}