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

Unified Diff: third_party/WebKit/Source/core/css/FontSize.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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 | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/css/MediaValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/FontSize.cpp
diff --git a/third_party/WebKit/Source/core/css/FontSize.cpp b/third_party/WebKit/Source/core/css/FontSize.cpp
index a67b01f80be96d174a32a09ead4ea39983a14d35..a91ca825f254b2fd9954ab7288f9f4f003b40809 100644
--- a/third_party/WebKit/Source/core/css/FontSize.cpp
+++ b/third_party/WebKit/Source/core/css/FontSize.cpp
@@ -67,8 +67,8 @@ float FontSize::getComputedSizeFromSpecifiedSize(
float zoomedSize = specifiedSize * zoomFactor;
if (applyMinimumFontSize) {
- int minSize = settings->minimumFontSize();
- int minLogicalSize = settings->minimumLogicalFontSize();
+ int minSize = settings->getMinimumFontSize();
+ int minLogicalSize = settings->getMinimumLogicalFontSize();
// Apply the hard minimum first. We only apply the hard minimum if after
// zooming we're still too small.
@@ -131,8 +131,8 @@ static int inline rowFromMediumFontSizeInRange(const Settings* settings,
bool quirksMode,
bool isMonospace,
int& mediumSize) {
- mediumSize = isMonospace ? settings->defaultFixedFontSize()
- : settings->defaultFontSize();
+ mediumSize = isMonospace ? settings->getDefaultFixedFontSize()
+ : settings->getDefaultFontSize();
if (mediumSize >= fontSizeTableMin && mediumSize <= fontSizeTableMax)
return mediumSize - fontSizeTableMin;
return -1;
@@ -157,7 +157,7 @@ float FontSize::fontSizeForKeyword(const Document* document,
}
// Value is outside the range of the table. Apply the scale factor instead.
- float minLogicalSize = std::max(settings->minimumLogicalFontSize(), 1);
+ float minLogicalSize = std::max(settings->getMinimumLogicalFontSize(), 1);
return std::max(fontSizeFactors[keyword - 1] * mediumSize, minLogicalSize);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/css/MediaValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698