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

Unified Diff: Source/core/css/resolver/FontBuilder.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/core/css/resolver/FontBuilder.h ('k') | Source/core/css/resolver/StyleBuilderConverter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/FontBuilder.cpp
diff --git a/Source/core/css/resolver/FontBuilder.cpp b/Source/core/css/resolver/FontBuilder.cpp
index 009e557cef48b9b4234c5d610a8ed6fc0f3d8200..a148871e9fb6f1410883ae53b5b035ebcbf79a3e 100644
--- a/Source/core/css/resolver/FontBuilder.cpp
+++ b/Source/core/css/resolver/FontBuilder.cpp
@@ -360,20 +360,6 @@ void FontBuilder::setWeight(FontWeight fontWeight)
scope.fontDescription().setWeight(fontWeight);
}
-void FontBuilder::setWeightBolder()
-{
- FontDescriptionChangeScope scope(this);
-
- scope.fontDescription().setWeight(scope.fontDescription().bolderWeight());
-}
-
-void FontBuilder::setWeightLighter()
-{
- FontDescriptionChangeScope scope(this);
-
- scope.fontDescription().setWeight(scope.fontDescription().lighterWeight());
-}
-
void FontBuilder::setStretch(FontStretch fontStretch)
{
FontDescriptionChangeScope scope(this);
« no previous file with comments | « Source/core/css/resolver/FontBuilder.h ('k') | Source/core/css/resolver/StyleBuilderConverter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698