Changeset 24332 in webkit


Ignore:
Timestamp:
Jul 16, 2007, 3:09:05 PM (18 years ago)
Author:
hyatt
Message:

Added a manual test to test calling window.print on a subframe.

Reviewed by Darin.

  • manual-tests/resources/print-subframe.html: Added.
  • manual-tests/window-print-subframe.html: Added.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24331 r24332  
    5353        ditto.  We already had checks to prevent drawing the text that considered the option's style too, but if visibility: hidden
    5454        was just set on the listbox then a lot of extra work was being done, and the scrollbar was drawing too.  This change fixes that.
     55
     562007-07-16  David Hyatt  <hyatt@apple.com>
     57
     58        Fix for 5335829, avoid creating a pathological # of FontData objects
     59        on Windows.  The MLang service actually caches and reuses HFONTs, which
     60        means it is safe to use our FontPlatformData -> FontData cache.
     61
     62        Reviewed by olliej
     63
     64        * platform/win/FontCacheWin.cpp:
     65        (WebCore::FontCache::getFontDataForCharacters):
    5566
    56672007-07-16  David Hyatt  <hyatt@apple.com>
  • trunk/WebCore/platform/win/FontCacheWin.cpp

    r23539 r24332  
    8585        HFONT result;
    8686        if (langFontLink->MapFont(hdc, actualCodePages, characters[0], &result) == S_OK) {
    87             fontData = new FontData(FontPlatformData(result, font.fontDescription().computedPixelSize(), font.fontDescription().bold(), font.fontDescription().italic()));
     87            // MLang has an internal cache, which means it really will hand back the same HFONT pointer if it can.  We can
     88            // therefore safely use our hash on HFONT pointers (FontPlatformData -> FontData) and actually expect it to work.
     89            FontPlatformData platformData(result, font.fontDescription().computedPixelSize(), font.fontDescription().bold(), font.fontDescription().italic());
     90            fontData = getCachedFontData(&platformData);
    8891            fontData->setIsMLangFont();
    8992        }
Note: See TracChangeset for help on using the changeset viewer.