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

Unified Diff: Source/core/css/FontFace.cpp

Issue 130783004: Add support for font-weight: lighter for web fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « LayoutTests/fast/css/webfont-lighter-weight-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/FontFace.cpp
diff --git a/Source/core/css/FontFace.cpp b/Source/core/css/FontFace.cpp
index f54d23258f1ca351183c55b6dd1f1e433786c481..fc860c2decd1bfc934868af993b6b3e6c64aac6e 100644
--- a/Source/core/css/FontFace.cpp
+++ b/Source/core/css/FontFace.cpp
@@ -437,10 +437,12 @@ unsigned FontFace::traitsMask() const
case CSSValue200:
traitsMask |= FontWeight200Mask;
break;
+ case CSSValueLighter:
case CSSValue100:
traitsMask |= FontWeight100Mask;
break;
default:
+ ASSERT_NOT_REACHED();
break;
}
} else {
« no previous file with comments | « LayoutTests/fast/css/webfont-lighter-weight-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698