WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
69817
[skia] Implement Path.currentPoint for skia
https://bugs.webkit.org/show_bug.cgi?id=69817
Summary
[skia] Implement Path.currentPoint for skia
Ben Wells
Reported
2011-10-10 22:39:45 PDT
[skia] Implement Path.currentPoint for skia
Attachments
Patch
(1.57 KB, patch)
2011-10-10 22:43 PDT
,
Ben Wells
no flags
Details
Formatted Diff
Diff
Patch
(1.53 KB, patch)
2011-10-11 21:26 PDT
,
Ben Wells
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ben Wells
Comment 1
2011-10-10 22:43:55 PDT
Created
attachment 110476
[details]
Patch
Ben Wells
Comment 2
2011-10-10 23:22:29 PDT
I implemented this function while working another bug but it wasn'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.
Mike Reed
Comment 3
2011-10-11 04:57:39 PDT
Looks fine. You could also just call skiaPath.getLastPt(), but you'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...
Kenneth Russell
Comment 4
2011-10-11 10:35:22 PDT
Comment on
attachment 110476
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=110476&action=review
Looks fine but there's a problem with the ChangeLog that will cause it to be rejected from the commit queue.
> Source/WebCore/ChangeLog:10 > + No new tests. (OOPS!)
You'll need to remove this OOPS line. Also ideally there would be a test case.
Ben Wells
Comment 5
2011-10-11 21:26:08 PDT
Created
attachment 110633
[details]
Patch
Ben Wells
Comment 6
2011-10-11 21:27:22 PDT
I'm not sure how to test this with a new layout test. Any advice?
Kenneth Russell
Comment 7
2011-10-12 12:41:35 PDT
(In reply to
comment #6
)
> I'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's any way to get it called from JavaScript, for example via a series of Canvas calls?
Kenneth Russell
Comment 8
2011-10-12 12:41:50 PDT
Comment on
attachment 110633
[details]
Patch Looks fine. r=me
Ben Wells
Comment 9
2011-10-12 15:23:35 PDT
(In reply to
comment #7
)
> (In reply to
comment #6
) > > I'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'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.
WebKit Review Bot
Comment 10
2011-10-12 15:25:59 PDT
Comment on
attachment 110633
[details]
Patch Rejecting
attachment 110633
[details]
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.
WebKit Review Bot
Comment 11
2011-10-12 16:58:55 PDT
Comment on
attachment 110633
[details]
Patch Clearing flags on attachment: 110633 Committed
r97319
: <
http://trac.webkit.org/changeset/97319
>
WebKit Review Bot
Comment 12
2011-10-12 16:58:59 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug