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

Unified Diff: Source/platform/fonts/FontDescription.cpp

Issue 444413003: Make style building for font-weight less custom. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 | « Source/platform/fonts/FontDescription.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontDescription.cpp
diff --git a/Source/platform/fonts/FontDescription.cpp b/Source/platform/fonts/FontDescription.cpp
index 829d815d24a66b92979278a8484d180831b93b64..7c45aea2db23f673e9609a554659d1c26bce974a 100644
--- a/Source/platform/fonts/FontDescription.cpp
+++ b/Source/platform/fonts/FontDescription.cpp
@@ -52,9 +52,9 @@ TypesettingFeatures FontDescription::s_defaultTypesettingFeatures = 0;
bool FontDescription::s_useSubpixelTextPositioning = false;
-FontWeight FontDescription::lighterWeight(void) const
+FontWeight FontDescription::lighterWeight(FontWeight weight)
{
- switch (m_weight) {
+ switch (weight) {
case FontWeight100:
case FontWeight200:
case FontWeight300:
@@ -74,9 +74,9 @@ FontWeight FontDescription::lighterWeight(void) const
return FontWeightNormal;
}
-FontWeight FontDescription::bolderWeight(void) const
+FontWeight FontDescription::bolderWeight(FontWeight weight)
{
- switch (m_weight) {
+ switch (weight) {
case FontWeight100:
case FontWeight200:
case FontWeight300:
« no previous file with comments | « Source/platform/fonts/FontDescription.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698