Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js

Issue 2738333004: [MD settings] set pref to valid slider value (Closed)
Patch Set: quotes Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 17d826a81fed428b956b7e2cb4960f367716a12a..7d1509dce477c5d79e3c788cdec6a4ca8b5e3b7e 100644
--- a/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js
+++ b/chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js
@@ -156,15 +156,13 @@
},
/**
- * Creates an html style value.
- * @param {number} fontSize The font size to use.
- * @param {string} fontFamily The name of the font family use.
- * @return {string}
+ * Get the minimum font size, accounting for unset prefs.
+ * @return {?}
* @private
*/
- computeStyle_: function(fontSize, fontFamily) {
- return 'font-size: ' + fontSize + "px; font-family: '" + fontFamily +
- "';";
+ computeMinimumFontSize_: function() {
+ return this.get('prefs.webkit.webprefs.minimum_font_size.value') ||
+ MINIMUM_FONT_SIZE_RANGE_[0];
},
});
})();
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698