Changeset 58447 in webkit
- Timestamp:
- Apr 28, 2010 5:38:40 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r58446 r58447 1 2010-04-28 Evan Martin <evan@chromium.org> 2 3 Reviewed by David Levin. 4 5 [chromium] revert getFontDataForCharacters change in r58341 6 https://bugs.webkit.org/show_bug.cgi?id=38288 7 8 * platform/chromium/test_expectations.txt: add the test to the now-failing list. 9 1 10 2010-04-28 Eric Seidel <eric@webkit.org> 2 11 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r58414 r58447 2869 2869 // WebKit roll 58304:58400 2870 2870 BUGUKAI WIN MAC : fast/text/international/bold-bengali.html = MISSING 2871 2872 // We're reverting the patch that fixed this test on Linux due to 2873 // the perf regression described in the bug. 2874 BUG42760 LINUX : fast/text/international/bold-bengali.html = FAIL -
trunk/WebCore/ChangeLog
r58446 r58447 1 2010-04-28 Evan Martin <evan@chromium.org> 2 3 Reviewed by David Levin. 4 5 [chromium] revert getFontDataForCharacters change in r58341 6 https://bugs.webkit.org/show_bug.cgi?id=38288 7 8 It caused a performance regression. 9 10 * platform/chromium/ChromiumBridge.h: 11 * platform/graphics/chromium/FontCacheLinux.cpp: 12 (WebCore::FontCache::getFontDataForCharacters): 13 1 14 2010-04-28 Eric Seidel <eric@webkit.org> 2 15 -
trunk/WebCore/platform/chromium/ChromiumBridge.h
r58341 r58447 117 117 #if OS(LINUX) 118 118 static void getRenderStyleForStrike(const char* family, int sizeAndStyle, FontRenderStyle* result); 119 // This code is currently in the process of getting rejiggered, and though120 // it is not currently used, it will hopefully be used again soon.121 119 static String getFontFamilyForCharacters(const UChar*, size_t numCharacters); 122 120 #endif -
trunk/WebCore/platform/graphics/chromium/FontCacheLinux.cpp
r58341 r58447 59 59 int length) 60 60 { 61 int style = SkTypeface::kNormal; 62 if (font.fontDescription().weight() >= FontWeightBold) 63 style |= SkTypeface::kBold; 64 if (font.fontDescription().italic()) 65 style |= SkTypeface::kItalic; 66 67 SkTypeface* tf = SkTypeface::CreateForChars(characters, length * 2, 68 static_cast<SkTypeface::Style>(style)); 69 if (!tf) 61 String family = ChromiumBridge::getFontFamilyForCharacters(characters, length); 62 if (family.isEmpty()) 70 63 return 0; 71 64 72 // FIXME: we don't have a family name for this font. 73 // However, the family name within FontPlatformData is only used when picking 74 // a render style for the font, so it's not too great of a loss. 75 FontPlatformData result(tf, 76 "", 77 font.fontDescription().computedSize(), 78 (style & SkTypeface::kBold) && !tf->isBold(), 79 (style & SkTypeface::kItalic) && !tf->isItalic()); 80 tf->unref(); 81 return getCachedFontData(&result); 65 AtomicString atomicFamily(family); 66 return getCachedFontData(getCachedFontPlatformData(font.fontDescription(), atomicFamily, false)); 82 67 } 83 68
Note: See TracChangeset
for help on using the changeset viewer.