Changeset 94323 in webkit


Ignore:
Timestamp:
Sep 1, 2011 11:41:37 AM (13 years ago)
Author:
tonyg@chromium.org
Message:

[chromium] Fonts returned by FontCache::getFontDataForCharacters() are never released
https://bugs.webkit.org/show_bug.cgi?id=66673

Reviewed by James Robinson.

This was fixed for other ports in http://trac.webkit.org/changeset/88260.
However, it was missed in FontCacheLinux likely due to similar param in the nested call to getCachedFontPlatformData().

No new tests because no directly observable change in behavior.

  • platform/graphics/chromium/FontCacheLinux.cpp:

(WebCore::FontCache::getFontDataForCharacters):

Location:
trunk/Source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94322 r94323  
     12011-09-01  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        [chromium] Fonts returned by FontCache::getFontDataForCharacters() are never released
     4        https://bugs.webkit.org/show_bug.cgi?id=66673
     5
     6        Reviewed by James Robinson.
     7
     8        This was fixed for other ports in http://trac.webkit.org/changeset/88260.
     9        However, it was missed in FontCacheLinux likely due to similar param in the nested call to getCachedFontPlatformData().
     10
     11        No new tests because no directly observable change in behavior.
     12
     13        * platform/graphics/chromium/FontCacheLinux.cpp:
     14        (WebCore::FontCache::getFontDataForCharacters):
     15
    1162011-08-31  Mikhail Naganov  <mnaganov@chromium.org>
    217
  • trunk/Source/WebCore/platform/graphics/chromium/FontCacheLinux.cpp

    r94275 r94323  
    6565
    6666    AtomicString atomicFamily(family);
    67     return getCachedFontData(getCachedFontPlatformData(font.fontDescription(), atomicFamily, DoNotRetain));
     67    return getCachedFontData(getCachedFontPlatformData(font.fontDescription(), atomicFamily, DoNotRetain), DoNotRetain);
    6868}
    6969
  • trunk/Source/WebKit/chromium/src/WebFontImpl.cpp

    r91841 r94323  
    3333
    3434#include "Font.h"
     35#include "FontCache.h"
    3536#include "FontDescription.h"
    3637#include "GraphicsContext.h"
     
    9495                           int from, int to) const
    9596{
     97    FontCachePurgePreventer fontCachePurgePreventer;
     98
    9699    GraphicsContextBuilder builder(canvas);
    97100    GraphicsContext& gc = builder.context();
Note: See TracChangeset for help on using the changeset viewer.