Changeset 90700 in webkit


Ignore:
Timestamp:
Jul 10, 2011 6:38:11 PM (13 years ago)
Author:
yuzo@google.com
Message:

Fix for Bug 63968 - Add comment to explain Vector usage in FontCache::purgeInactiveFontData
https://bugs.webkit.org/show_bug.cgi?id=63968

Reviewed by Dan Bernstein.

No new tests because this changes comments only.

  • platform/graphics/FontCache.cpp:

(WebCore::FontCache::purgeInactiveFontData): Add explanation why SimpleFontData is not deleted in the iteration loop.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r90698 r90700  
     12011-07-10  Yuzo Fujishima  <yuzo@google.com>
     2
     3        Fix for Bug 63968 - Add comment to explain Vector usage in FontCache::purgeInactiveFontData
     4        https://bugs.webkit.org/show_bug.cgi?id=63968
     5
     6        Reviewed by Dan Bernstein.
     7
     8        No new tests because this changes comments only.
     9
     10        * platform/graphics/FontCache.cpp:
     11        (WebCore::FontCache::purgeInactiveFontData): Add explanation why SimpleFontData is not deleted in the iteration loop.
     12
    1132011-07-10  Emil A Eklund  <eae@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/FontCache.cpp

    r88611 r90700  
    346346        const SimpleFontData* fontData = *it.get();
    347347        gFontDataCache->remove(fontData->platformData());
     348        // We should not delete SimpleFontData here because deletion can modify gInactiveFontData. See http://trac.webkit.org/changeset/44011
    348349        fontDataToDelete.append(fontData);
    349350    }
Note: See TracChangeset for help on using the changeset viewer.