<?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>44983</bug_id>
          
          <creation_ts>2010-08-31 14:02:32 -0700</creation_ts>
          <short_desc>Reorganize Geometry and Math classes</short_desc>
          <delta_ts>2010-08-31 15:24:39 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Chris Marrin">cmarrin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>crogers</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>eric</cc>
    
    <cc>jamesr</cc>
    
    <cc>kbr</cc>
    
    <cc>senorblanco</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>272351</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2010-08-31 14:02:32 -0700</bug_when>
    <thetext>We&apos;ve been having an ongoing discussion about pulling together all the geometry related classes (FloatPoint, TransformationMatrix, etc.) into a single place. I propose to make this place WebCore/platform/graphics/math. I propose move these classes:

        FloatPoint
        FloatPoint3D
        FloatQuad
        FloatRect
        FloatSize
        IntPoint
        IntRect
        IntSize
        TransformationMatrix
        AffineTransform

There may be others scattered around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272368</commentid>
    <comment_count>1</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-08-31 14:23:08 -0700</bug_when>
    <thetext>platform/graphics/math is too specific a directory name; at least some of these classes need to be referenced from the ongoing web audio work. I would suggest platform/math.

We&apos;ll also want to move wtf/Vector3 and wtf/Complex here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272389</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2010-08-31 14:42:38 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; platform/graphics/math is too specific a directory name; at least some of these classes need to be referenced from the ongoing web audio work. I would suggest platform/math.
&gt; 
&gt; We&apos;ll also want to move wtf/Vector3 and wtf/Complex here.

Ok, platform/math seems reasonable. We should get rid of wtf/Vector3 and replace it with FloatPoint3D once you add cross/dot/etc. to it. And Complex is just a simple audio specific wrapper around std::complex, which I think should go into platform/audio directly. I&apos;ve opened a bug for this work:

    https://bugs.webkit.org/show_bug.cgi?id=44991

Ken, can you add the bug number for the FloatPoint3D work and make the above bug depend on it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272428</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2010-08-31 15:16:25 -0700</bug_when>
    <thetext>I don&apos;t really care that much where Complex.h lives, but Complex::complexFromMagnitudePhase() is kind of general from a mathematical point of view, even if graphics doesn&apos;t really have a use for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272436</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-08-31 15:24:39 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; platform/graphics/math is too specific a directory name; at least some of these classes need to be referenced from the ongoing web audio work. I would suggest platform/math.
&gt; &gt; 
&gt; &gt; We&apos;ll also want to move wtf/Vector3 and wtf/Complex here.
&gt; 
&gt; Ok, platform/math seems reasonable. We should get rid of wtf/Vector3 and replace it with FloatPoint3D once you add cross/dot/etc. to it. And Complex is just a simple audio specific wrapper around std::complex, which I think should go into platform/audio directly. I&apos;ve opened a bug for this work:
&gt; 
&gt;     https://bugs.webkit.org/show_bug.cgi?id=44991
&gt; 
&gt; Ken, can you add the bug number for the FloatPoint3D work and make the above bug depend on it?

44991 now depends on 44970, which has already been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>