r100683 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100682‎ | r100683 | r100684 >
Date:08:29, 25 October 2011
Author:santhosh
Status:ok
Tags:
Comment:
Remove unused, unimplemented scale method.
Modified paths:
  • /trunk/extensions/WebFonts/js/webfonts.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WebFonts/js/webfonts.js
@@ -43,15 +43,6 @@
4444 //Set the font, fallback fonts.Need to change the fonts of Input Select and Textarea explicitly.
4545 $("body, input, select, textarea").css('font-family', "'"+ font +"', Helvetica, Arial, sans-serif");
4646
47 - //scale the font of the page. Scale is in percentage.
48 - // For example scale = 1.2 means scale the font by 120 percentage
49 - if ( 'scale' in config ) {
50 - $.webfonts.scale(config.scale);
51 - }
52 - else{
53 - $.webfonts.scale(1);
54 - }
55 -
5647 if ( 'normalization' in config ) {
5748 $(document).ready(function() {
5849 $.webfonts.normalize(config.normalization);
@@ -78,16 +69,6 @@
7970 },
8071
8172 /**
82 - * Scale the font of the page by given percentage
83 - * @param percentage of scale. eg 1.2 for 120% scale
84 - */
85 - scale: function(percentage) {
86 - //TODO: Not Implemented. Need to find a better way to emulate fontconfig font-scale feature.
87 - //Changing the font-size of few selectors does not work properly and not able to achieve
88 - //uniform scaling.
89 - },
90 -
91 - /**
9273 * Does a find replace of string on the page.
9374 * @param normalization_rules hashmap of replacement rules.
9475 */

Status & tagging log