Changeset 55406 in webkit
- Timestamp:
- Mar 2, 2010 2:16:24 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55405 r55406 1 2010-01-28 Holger Hans Peter Freyther <zecke@selfish.org> 2 3 Reviewed by Ariya Hidayat. 4 5 [Qt] Special case Font::floatWidthForComplexText for single space 6 https://bugs.webkit.org/show_bug.cgi?id=33876 7 8 For a single space we can go through the QFontMetric::width routine 9 instead of converting the WebCore::String to a QString and then 10 going through the QTextLine. 11 12 * platform/graphics/qt/FontQt.cpp: 13 (WebCore::Font::floatWidthForComplexText): 14 1 15 2010-02-28 Holger Hans Peter Freyther <zecke@selfish.org> 2 16 -
trunk/WebCore/platform/graphics/qt/FontQt.cpp
r54503 r55406 1 1 /* 2 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 Copyright (C) 2008 Holger Hans Peter Freyther3 Copyright (C) 2008, 2010 Holger Hans Peter Freyther 4 4 Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 5 … … 175 175 return 0; 176 176 177 if (run.length() == 1 && treatAsSpace(run[0])) 178 return QFontMetrics(font()).width(run[0]) - m_wordSpacing + run.padding(); 179 177 180 String sanitized = Font::normalizeSpaces(String(run.characters(), run.length())); 178 181 QString string = fromRawDataWithoutRef(sanitized);
Note: See TracChangeset
for help on using the changeset viewer.