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

Unified Diff: Source/platform/fonts/shaping/SimpleShaper.cpp

Issue 648293003: Handle missing glyphs when adjusting spacing in SimpleShaper (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added LayoutTest Created 6 years, 2 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 | « LayoutTests/fast/text/soft-hyphen-simple-text-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/shaping/SimpleShaper.cpp
diff --git a/Source/platform/fonts/shaping/SimpleShaper.cpp b/Source/platform/fonts/shaping/SimpleShaper.cpp
index 24be19b9ee933caae0e3af3b62499483fc314198..cf8210b14818774a654e5fe7eb9ac263bc2f9dbe 100644
--- a/Source/platform/fonts/shaping/SimpleShaper.cpp
+++ b/Source/platform/fonts/shaping/SimpleShaper.cpp
@@ -207,7 +207,7 @@ unsigned SimpleShaper::advanceInternal(TextIterator& textIterator, GlyphBuffer*
cacheFallbackFont(fontData, primaryFont);
}
- if (hasExtraSpacing)
+ if (hasExtraSpacing && width)
pdr. 2014/10/13 23:53:30 (Maybe as a followup) Can you add a bool to better
width = adjustSpacing(width, charData, *fontData, glyphBuffer);
pdr. 2014/10/13 23:53:30 Does it make sense to check for width in adjustSpa
if (m_bounds)
« no previous file with comments | « LayoutTests/fast/text/soft-hyphen-simple-text-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698