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

Unified Diff: Source/platform/fonts/FontTraitsMask.h

Issue 183813005: Add font-stretch to FontDescription (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/FontDescriptionTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontTraitsMask.h
diff --git a/Source/platform/fonts/FontTraitsMask.h b/Source/platform/fonts/FontTraitsMask.h
index b95d131ff5dcef5e788634dd078ecd21d36ebeda..69f1c801cef1fdf88db1a6fbc3c7a9e97139eae2 100644
--- a/Source/platform/fonts/FontTraitsMask.h
+++ b/Source/platform/fonts/FontTraitsMask.h
@@ -42,6 +42,10 @@ enum {
FontWeight700Bit,
FontWeight800Bit,
FontWeight900Bit,
+ FontStretchBit1,
+ FontStretchBit2,
+ FontStretchBit3,
+ FontStretchBit4,
FontTraitsMaskWidth
};
@@ -63,7 +67,12 @@ enum FontTraitsMask {
FontWeight700Mask = 1 << FontWeight700Bit,
FontWeight800Mask = 1 << FontWeight800Bit,
FontWeight900Mask = 1 << FontWeight900Bit,
- FontWeightMask = FontWeight100Mask | FontWeight200Mask | FontWeight300Mask | FontWeight400Mask | FontWeight500Mask | FontWeight600Mask | FontWeight700Mask | FontWeight800Mask | FontWeight900Mask
+ FontWeightMask = FontWeight100Mask | FontWeight200Mask | FontWeight300Mask | FontWeight400Mask | FontWeight500Mask | FontWeight600Mask | FontWeight700Mask | FontWeight800Mask | FontWeight900Mask,
eseidel 2014/03/04 02:11:26 Why are these stored this way if you can only have
+ FontStretchBit1Mask = 1 << FontStretchBit1,
eseidel 2014/03/04 08:58:27 Why have separate constants for these? Why not ju
+ FontStretchBit2Mask = 1 << FontStretchBit2,
+ FontStretchBit3Mask = 1 << FontStretchBit3,
+ FontStretchBit4Mask = 1 << FontStretchBit4,
+ FontStretchMask = FontStretchBit1Mask | FontStretchBit2Mask | FontStretchBit3Mask | FontStretchBit4Mask
};
} // namespace WebCore
« no previous file with comments | « Source/platform/fonts/FontDescriptionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698