Chromium Code Reviews| Index: chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js |
| diff --git a/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js b/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js |
| index e9ca220be5fc5d4a81903a7782056d3b79f3c76b..0f5e31a134aee95e80d9120c9c195b685ee71d7e 100644 |
| --- a/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js |
| +++ b/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js |
| @@ -5,13 +5,6 @@ |
| (function() { |
| 'use strict'; |
| - /** |
| - * This is the absolute difference maintained between standard and |
| - * fixed-width font sizes. http://crbug.com/91922. |
| - * @const @private {number} |
| - */ |
| - var SIZE_DIFFERENCE_FIXED_STANDARD_ = 3; |
| - |
| /** @const @private {!Array<number>} */ |
| var FONT_SIZE_RANGE_ = [ |
| 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, |
| @@ -26,11 +19,6 @@ |
| /** |
| * 'settings-appearance-fonts-page' is the settings page containing appearance |
| * settings. |
| - * |
| - * Example: |
| - * |
| - * <settings-appearance-fonts-page prefs="{{prefs}}"> |
| - * </settings-appearance-fonts-page> |
| */ |
| Polymer({ |
| is: 'settings-appearance-fonts-page', |
| @@ -85,10 +73,6 @@ |
| }, |
| }, |
| - observers: [ |
| - 'fontSizeChanged_(prefs.webkit.webprefs.default_font_size.value)', |
| - ], |
| - |
| /** @private {?settings.FontsBrowserProxy} */ |
| browserProxy_: null, |
| @@ -144,18 +128,6 @@ |
| }, |
| /** |
| - * @param {number} value The changed font size slider value. |
| - * @private |
| - */ |
| - fontSizeChanged_: function(value) { |
| - // TODO(michaelpg): Whitelist this pref in prefs_utils.cc so it is |
| - // included in the <settings-prefs> getAllPrefs call, otherwise this path |
| - // is invalid and nothing happens. See crbug.com/612535. |
| - this.set('prefs.webkit.webprefs.default_fixed_font_size.value', |
| - value - SIZE_DIFFERENCE_FIXED_STANDARD_); |
|
dschuyler
2017/04/15 01:27:57
Chatted with michaelpg@ about this off-line.
|
| - }, |
| - |
| - /** |
| * Get the minimum font size, accounting for unset prefs. |
| * @return {?} |
| * @private |