<?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>69817</bug_id>
          
          <creation_ts>2011-10-10 22:39:45 -0700</creation_ts>
          <short_desc>[skia] Implement Path.currentPoint for skia</short_desc>
          <delta_ts>2011-10-12 16:58:59 -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>New Bugs</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Wells">benwells</reporter>
          <assigned_to name="Ben Wells">benwells</assigned_to>
          <cc>jamesr</cc>
    
    <cc>kbr</cc>
    
    <cc>reed</cc>
    
    <cc>senorblanco</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>481454</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Wells">benwells</who>
    <bug_when>2011-10-10 22:39:45 -0700</bug_when>
    <thetext>[skia] Implement Path.currentPoint for skia</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481455</commentid>
    <comment_count>1</comment_count>
      <attachid>110476</attachid>
    <who name="Ben Wells">benwells</who>
    <bug_when>2011-10-10 22:43:55 -0700</bug_when>
    <thetext>Created attachment 110476
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481468</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Wells">benwells</who>
    <bug_when>2011-10-10 23:22:29 -0700</bug_when>
    <thetext>I implemented this function while working another bug but it wasn&apos;t needed. It might come in handy in future for someone else or prevent cross platform problems creeping in if this function is used in future by developers of other ports.

It is used in the canvas code to work out if a line, arc etc. will be zero length and therefore whether it should be added or not. The zero length segments get filtered out later so there should be no impact of the change. Tests all pass with the change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481572</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Reed">reed</who>
    <bug_when>2011-10-11 04:57:39 -0700</bug_when>
    <thetext>Looks fine. You could also just call skiaPath.getLastPt(), but you&apos;ll still need the check for count==0. The next rev. of getLastPt returns a bool which indicates if the lastPt is valid. This would simplify the impl as well when that lands...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481718</commentid>
    <comment_count>4</comment_count>
      <attachid>110476</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-10-11 10:35:22 -0700</bug_when>
    <thetext>Comment on attachment 110476
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=110476&amp;action=review

Looks fine but there&apos;s a problem with the ChangeLog that will cause it to be rejected from the commit queue.

&gt; Source/WebCore/ChangeLog:10
&gt; +        No new tests. (OOPS!)

You&apos;ll need to remove this OOPS line. Also ideally there would be a test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482190</commentid>
    <comment_count>5</comment_count>
      <attachid>110633</attachid>
    <who name="Ben Wells">benwells</who>
    <bug_when>2011-10-11 21:26:08 -0700</bug_when>
    <thetext>Created attachment 110633
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482191</commentid>
    <comment_count>6</comment_count>
    <who name="Ben Wells">benwells</who>
    <bug_when>2011-10-11 21:27:22 -0700</bug_when>
    <thetext>I&apos;m not sure how to test this with a new layout test. Any advice?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482617</commentid>
    <comment_count>7</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-10-12 12:41:35 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; I&apos;m not sure how to test this with a new layout test. Any advice?

Did you search the code base for uses of Path.currentPoint() and see if there&apos;s any way to get it called from JavaScript, for example via a series of Canvas calls?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482618</commentid>
    <comment_count>8</comment_count>
      <attachid>110633</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-10-12 12:41:50 -0700</bug_when>
    <thetext>Comment on attachment 110633
Patch

Looks fine. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482788</commentid>
    <comment_count>9</comment_count>
    <who name="Ben Wells">benwells</who>
    <bug_when>2011-10-12 15:23:35 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; I&apos;m not sure how to test this with a new layout test. Any advice?
&gt; 
&gt; Did you search the code base for uses of Path.currentPoint() and see if there&apos;s any way to get it called from JavaScript, for example via a series of Canvas calls?

Yes I searched for where currentPoint is used when making the change, its not exposed anywhere with easy access like that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482790</commentid>
    <comment_count>10</comment_count>
      <attachid>110633</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 15:25:59 -0700</bug_when>
    <thetext>Comment on attachment 110633
Patch

Rejecting attachment 110633 from commit-queue.

aboxhall@chromium.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482858</commentid>
    <comment_count>11</comment_count>
      <attachid>110633</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 16:58:55 -0700</bug_when>
    <thetext>Comment on attachment 110633
Patch

Clearing flags on attachment: 110633

Committed r97319: &lt;http://trac.webkit.org/changeset/97319&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482859</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 16:58:59 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110476</attachid>
            <date>2011-10-10 22:43:55 -0700</date>
            <delta_ts>2011-10-11 21:26:01 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-69817-20111011164353.patch</filename>
            <type>text/plain</type>
            <size>1610</size>
            <attacher name="Ben Wells">benwells</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTcwNTAKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCA1YTZlY2ZkNzY0ZDlhYjU2
OTY0NGU3ZjAyZmRkMWJhMWJmZTBjMjk0Li5kNzBmMjgyZmI1MjI4Y2ZiMjk4MDFhZjNmYmNkMjIx
NDUxMzY5YzIwIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMTAtMTAgIEJlbiBX
ZWxscyAgPGJlbndlbGxzQGNocm9taXVtLm9yZz4KKworICAgICAgICBbc2tpYV0gSW1wbGVtZW50
IFBhdGguY3VycmVudFBvaW50IGZvciBza2lhCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQu
b3JnL3Nob3dfYnVnLmNnaT9pZD02OTgxNworC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F0aC4KKyAgICBpZiAobV9wYXRoLT5jb3VudFBvaW50cygp
ID4gMCkgeworICAgICAgICBTa1BvaW50IHNrUmVzdWx0ID0gbV9wYXRoLT5nZXRQb2ludChtX3Bh
dGgtPmNvdW50UG9pbnRzKCkgLSAxKTsKKyAgICAgICAgRmxvYXRQb2ludCByZXN1bHQ7CisgICAg
ICAgIHJlc3VsdC5zZXRYKFNrU2NhbGFyVG9GbG9hdChza1Jlc3VsdC5mWCkpOworICAgICAgICBy
ZXN1bHQuc2V0WShTa1NjYWxhclRvRmxvYXQoc2tSZXN1bHQuZlkpKTsKKyAgICAgICAgcmV0dXJu
IHJlc3VsdDsKKyAgICB9CisKICAgICBmbG9hdCBxdWlldE5hTiA9IHN0ZDo6bnVtZXJpY19saW1p
dHM8ZmxvYXQ+OjpxdWlldF9OYU4oKTsKICAgICByZXR1cm4gRmxvYXRQb2ludChxdWlldE5hTiwg
cXVpZXROYU4pOwogfQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110633</attachid>
            <date>2011-10-11 21:26:08 -0700</date>
            <delta_ts>2011-10-12 16:58:55 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-69817-20111012152606.patch</filename>
            <type>text/plain</type>
            <size>1570</size>
            <attacher name="Ben Wells">benwells</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTcwNTAKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCA1YTZlY2ZkNzY0ZDlhYjU2
OTY0NGU3ZjAyZmRkMWJhMWJmZTBjMjk0Li42MTYxYmU4MTA4YTY5NmFkYTVmYzdjYTU5ZmJiZDc1
MTIxY2EwNjBjIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYkNvcmUvQ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