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

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

Issue 932033002: Re-enable vertical flow in SimplePath (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TestExpectations 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/platform/fonts/GlyphPageTreeNode.cpp ('k') | Source/platform/fonts/opentype/OpenTypeVerticalData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/SimpleFontData.h
diff --git a/Source/platform/fonts/SimpleFontData.h b/Source/platform/fonts/SimpleFontData.h
index 2084209c073b84b8844138dc1c8ba84c16b17337..40f28f567cdbdb985c045d71dc9ba218c26c6d63 100644
--- a/Source/platform/fonts/SimpleFontData.h
+++ b/Source/platform/fonts/SimpleFontData.h
@@ -231,7 +231,10 @@ ALWAYS_INLINE float SimpleFontData::widthForGlyph(Glyph glyph) const
if (width != cGlyphSizeUnknown)
return width;
- width = platformWidthForGlyph(glyph);
+ if (m_verticalData)
+ width = m_verticalData->advanceHeight(this, glyph);
+ else
+ width = platformWidthForGlyph(glyph);
m_glyphToWidthMap.setMetricsForGlyph(glyph, width);
return width;
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.cpp ('k') | Source/platform/fonts/opentype/OpenTypeVerticalData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698