[Webkit-unassigned] [Bug 17153] wxFont objects become invalid and cause a crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 2 11:26:59 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17153


kevinwatters at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #18869|                            |review?
               Flag|                            |




------- Comment #1 from kevinwatters at gmail.com  2008-02-02 11:26 PDT -------
Created an attachment (id=18869)
 --> (http://bugs.webkit.org/attachment.cgi?id=18869&action=view)
FontPlatformData uses wxFont as a value object

Fixes FontPlatformData issues. 

Reference counting of wxFont objects happens correctly now because they are
stored as value objects.  An enum is used to maintain the "uninitialized,"
"deleted," and "valid" states since all three are used by a HashTable holding
FontPlatformData objects.

computeHash now uses a hash of the string returned by
wxFont::GetNativeInfoDesc, which uniquely identifies a wxFont and all its
attributes.

Additionally, a missing delete in ImageWx.cpp is added.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list