Changeset 61445 in webkit
- Timestamp:
- Jun 18, 2010 3:11:14 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61444 r61445 1 2010-06-18 Ananth Jasty <ext-ananth.jasty@nokia.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Text spacing miscalculation when using wordSpacing. 6 https://bugs.webkit.org/show_bug.cgi?id=40483 7 8 Removed wordSpacing compensation in FontQt whitespace width 9 calculation. The QFontMetrics::width() overload that takes 10 a character does not take QFont's word spacing into account. 11 12 * platform/graphics/qt/FontQt.cpp: 13 (WebCore::Font::floatWidthForComplexText): 14 1 15 2010-06-18 Anders Carlsson <andersca@apple.com> 2 16 -
trunk/WebCore/platform/graphics/qt/FontQt.cpp
r61253 r61445 235 235 236 236 if (run.length() == 1 && treatAsSpace(run[0])) 237 return QFontMetrics(font()).width(run[0]) - m_wordSpacing+ run.padding();237 return QFontMetrics(font()).width(run[0]) + run.padding(); 238 238 239 239 String sanitized = Font::normalizeSpaces(String(run.characters(), run.length()));
Note: See TracChangeset
for help on using the changeset viewer.