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

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: Add some tests which need a rebaseline to TestExpectation 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
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/LayoutStyle.cpp
diff --git a/Source/core/layout/style/LayoutStyle.cpp b/Source/core/layout/style/LayoutStyle.cpp
index 6862866cc3fec7d8c020aadd8268fc72af375723..7560851395ac2b61991d311b28537909b075be16 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(); }
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698