<?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>61876</bug_id>
          
          <creation_ts>2011-06-01 12:03:00 -0700</creation_ts>
          <short_desc>Add IntPoint + IntPoint operator</short_desc>
          <delta_ts>2019-05-02 16:25:30 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>60318</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Levi Weintraub">leviw</reporter>
          <assigned_to name="Levi Weintraub">leviw</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>eae</cc>
    
    <cc>eric</cc>
    
    <cc>mjs</cc>
    
    <cc>morrita</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vivekjkumar266</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>413561</commentid>
    <comment_count>0</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2011-06-01 12:03:00 -0700</bug_when>
    <thetext>There are a lot of places where it&apos;d be really handy to add two IntPoints together to return an IntPoint, particularly as part of our move away from tx/ty int offsets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413631</commentid>
    <comment_count>1</comment_count>
      <attachid>95653</attachid>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2011-06-01 13:49:24 -0700</bug_when>
    <thetext>Created attachment 95653
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413814</commentid>
    <comment_count>2</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-06-01 18:43:00 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=95653) [details]
&gt; Patch

Someone might say that adding two points doesn&apos;t make sense.
In that case, another idea is to provide IntSize IntPoint::toSize().
There is no big difference though - it&apos;s a matter of preference...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413816</commentid>
    <comment_count>3</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2011-06-01 18:48:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Someone might say that adding two points doesn&apos;t make sense.
&gt; In that case, another idea is to provide IntSize IntPoint::toSize().
&gt; There is no big difference though - it&apos;s a matter of preference...

Strictly logically speaking you&apos;re right and this isn&apos;t ideal. Given that we use IntPoint as an offset in quite a few places though it would be very convenient to allow IntPoint + IntPoint.

We already have a IntSize toSize(IntPoint) method but it adds extra overhead as it has to create a copy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413820</commentid>
    <comment_count>4</comment_count>
      <attachid>95653</attachid>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-06-01 18:51:42 -0700</bug_when>
    <thetext>Comment on attachment 95653
Patch

Yeah, my last comment is as a logical troll ;-)
I agree that this change is convenient and has no harm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413821</commentid>
    <comment_count>5</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2011-06-01 18:52:27 -0700</bug_when>
    <thetext>:)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413846</commentid>
    <comment_count>6</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2011-06-01 19:43:54 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 95653 [details])
&gt; Yeah, my last comment is as a logical troll ;-)
&gt; I agree that this change is convenient and has no harm.

Thanks for the review :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413897</commentid>
    <comment_count>7</comment_count>
      <attachid>95653</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-01 21:51:21 -0700</bug_when>
    <thetext>Comment on attachment 95653
Patch

Clearing flags on attachment: 95653

Committed r87878: &lt;http://trac.webkit.org/changeset/87878&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413898</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-01 21:51:26 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95653</attachid>
            <date>2011-06-01 13:49:24 -0700</date>
            <delta_ts>2011-06-01 21:51:21 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-61876-20110601134923.patch</filename>
            <type>text/plain</type>
            <size>2213</size>
            <attacher name="Levi Weintraub">leviw</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDg3ODQyKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMjEgQEAKKzIwMTEtMDYtMDEgIExldmkgV2Vp
bnRyYXViICA8bGV2aXdAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIEFkZCBJbnRQb2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iLmhlaWdodCgpKTsKIH0KIAoraW5saW5lIEludFBvaW50IG9wZXJhdG9y
Kyhjb25zdCBJbnRQb2ludCYgYSwgY29uc3QgSW50UG9pbnQmIGIpCit7CisgICAgcmV0dXJuIElu
dFBvaW50KGEueCgpICsgYi54KCksIGEueSgpICsgYi55KCkpOworfQorCiBpbmxpbmUgSW50U2l6
ZSBvcGVyYXRvci0oY29uc3QgSW50UG9pbnQmIGEsIGNvbnN0IEludFBvaW50JiBiKQogewogICAg
IHJldHVybiBJbnRTaXplKGEueCgpIC0gYi54KCksIGEueSgpIC0gYi55KCkpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>