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

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: ExpectedResultForLinuxIsUpdated 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 e7785d0602a70f124e9c430411684cb941e5bf10..5d190a151513b3d74fd2edb646a6617d4798228d 100644
--- a/Source/core/layout/style/LayoutStyle.cpp
+++ b/Source/core/layout/style/LayoutStyle.cpp
@@ -1151,6 +1151,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