Changeset 95576 in webkit
- Timestamp:
- Sep 20, 2011 3:39:38 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95574 r95576 1 2011-09-20 Marshall Greenblatt <marshall@chromium.org> 2 3 Use DEFINE_STATIC_LOCAL to intentionally leak the static RefCountedHFONT object returned from 4 FontPlatformData::hashTableDeletedFontValue() to avoid global destructor ordering problems. 5 https://bugs.webkit.org/show_bug.cgi?id=67906 6 7 Reviewed by Adam Barth. 8 9 * platform/graphics/chromium/FontPlatformDataChromiumWin.cpp: 10 1 11 2011-09-20 Ryosuke Niwa <rniwa@webkit.org> 2 12 -
trunk/Source/WebCore/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp
r94278 r95576 39 39 #include "PlatformSupport.h" 40 40 #include "SkiaFontWin.h" 41 #include "StdLibExtras.h" 41 42 42 43 namespace WebCore { … … 117 118 FontPlatformData::RefCountedHFONT* FontPlatformData::hashTableDeletedFontValue() 118 119 { 119 static RefPtr<RefCountedHFONT> deletedValue =120 RefCountedHFONT::create(reinterpret_cast<HFONT>(-1));120 DEFINE_STATIC_LOCAL(RefPtr<RefCountedHFONT>, deletedValue, 121 (RefCountedHFONT::create(reinterpret_cast<HFONT>(-1)))); 121 122 return deletedValue.get(); 122 123 }
Note: See TracChangeset
for help on using the changeset viewer.