Changeset 147932 in webkit
- Timestamp:
- Apr 8, 2013 10:46:55 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147930 r147932 1 2013-04-08 Jocelyn Turcotte <jocelyn.turcotte@digia.com> 2 3 [Qt] Avoid "QFont::setPixelSize: Pixel size <= 0 (0)" 4 https://bugs.webkit.org/show_bug.cgi?id=114175 5 6 Reviewed by Allan Sandfeld Jensen. 7 8 QFont doesn't support a 0-size but WebCore does. 9 Leave our QFont in its default state in this case to avoid the warning. 10 11 * platform/graphics/qt/FontPlatformDataQt.cpp: 12 (WebCore::FontPlatformData::FontPlatformData): 13 1 14 2013-04-08 Yi Shen <max.hong.shen@gmail.com> 2 15 -
trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp
r147623 r147932 69 69 int requestedSize = description.computedPixelSize(); 70 70 font.setFamily(familyName); 71 font.setPixelSize(requestedSize); 71 if (requestedSize) 72 font.setPixelSize(requestedSize); 72 73 font.setItalic(description.italic()); 73 74 font.setWeight(toQFontWeight(description.weight()));
Note: See TracChangeset
for help on using the changeset viewer.