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

Unified Diff: Source/core/layout/style/LayoutStyle.cpp

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: UpdatedPatch Created 5 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
Index: Source/core/layout/style/LayoutStyle.cpp
diff --git a/Source/core/layout/style/LayoutStyle.cpp b/Source/core/layout/style/LayoutStyle.cpp
index a0fb5a0e53a286d8d9d2f503a229c157a7b8a02c..49f8404d47786c11d25a50fa0c68ce349c2f8e5d 100644
--- a/Source/core/layout/style/LayoutStyle.cpp
+++ b/Source/core/layout/style/LayoutStyle.cpp
@@ -1183,6 +1183,8 @@ const FontDescription& LayoutStyle::fontDescription() const { return inherited->
float LayoutStyle::specifiedFontSize() const { return fontDescription().specifiedSize(); }
float LayoutStyle::computedFontSize() const { return fontDescription().computedSize(); }
int LayoutStyle::fontSize() const { return fontDescription().computedPixelSize(); }
+float LayoutStyle::fontSizeAdjust() const { return fontDescription().sizeAdjust(); }
+bool LayoutStyle::hasFontSizeAdjust() const { return fontDescription().sizeAdjust() > 0; }
FontWeight LayoutStyle::fontWeight() const { return fontDescription().weight(); }
FontStretch LayoutStyle::fontStretch() const { return fontDescription().stretch(); }

Powered by Google App Engine
This is Rietveld 408576698