<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19274</bug_id>
          
          <creation_ts>2008-05-27 12:26:45 -0700</creation_ts>
          <short_desc>wxWebKit compile error on linux x86_64</short_desc>
          <delta_ts>2008-06-09 07:52:09 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit wx</component>
          <version>420+</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>19310</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Malcolm MacLeod">mmacleod</reporter>
          <assigned_to name="Malcolm MacLeod">mmacleod</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81635</commentid>
    <comment_count>0</comment_count>
    <who name="Malcolm MacLeod">mmacleod</who>
    <bug_when>2008-05-27 12:26:45 -0700</bug_when>
    <thetext>SVN Trunk version of wxWebKit fails to compile on x86_64 platforms due to relying on a cast from pointer to int in order to generate font keys.
The attached file provides a fix that works around this.
The patch is not 100% ideal as it could lead to conflicts in keys in very rare circumstances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81640</commentid>
    <comment_count>1</comment_count>
      <attachid>21368</attachid>
    <who name="Malcolm MacLeod">mmacleod</who>
    <bug_when>2008-05-27 12:33:34 -0700</bug_when>
    <thetext>Created attachment 21368
Compile fix for x86_64 platforms</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81714</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-28 06:04:52 -0700</bug_when>
    <thetext>A better way to fix this would be by using PtrHash:

return PtrHash&lt;wxFont*&gt;::hash(&amp;m_font);

This class appears broken in that it computes m_fontHash and never uses it later, and also includes hash table machinery that should be in hash traits instead, but fixing that is out of scope for a simple bug fix.

Please do not use tab characters in your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82746</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-09 07:52:09 -0700</bug_when>
    <thetext>Fixed by fixing the hash function itself.

*** This bug has been marked as a duplicate of 19310 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>21368</attachid>
            <date>2008-05-27 12:33:34 -0700</date>
            <delta_ts>2008-05-27 12:33:34 -0700</delta_ts>
            <desc>Compile fix for x86_64 platforms</desc>
            <filename>compile.diff</filename>
            <type>text/plain</type>
            <size>1077</size>
            <attacher name="Malcolm MacLeod">mmacleod</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvd3gvRm9udFBsYXRmb3JtRGF0YS5oCj09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KLS0tIFdlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvd3gvRm9udFBsYXRmb3JtRGF0
YS5oCShyZXZpc2lvbiAzNDE1MSkKKysrIFdlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvd3gvRm9u
dFBsYXRmb3JtRGF0YS5oCSh3b3JraW5nIGNvcHkpCkBAIC05MCw3ICs5MCwxNiBAQCBwdWJsaWM6
CiAgICAgCiAgICAgdW5zaWduZWQgY29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