Bug 42189

Summary: Failing 2d.path.stroke.prune.line philip canvas test
Product: WebKit Reporter: Matthew Delaney <mdelaney7>
Component: Layout and RenderingAssignee: Matthew Delaney <mdelaney7>
Status: RESOLVED FIXED    
Severity: Normal CC: adele, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
adele: review+
Updated with Adele's suggestions. kling: review-, commit-queue: commit-queue-

Matthew Delaney
Reported 2010-07-13 13:27:10 PDT
Safari 5 fails 2d.path.stroke.prune.line canvas test.
Attachments
Patch (2.29 KB, patch)
2010-07-13 20:06 PDT, Matthew Delaney
adele: review+
Updated with Adele's suggestions. (2.21 KB, patch)
2010-07-14 11:25 PDT, Matthew Delaney
kling: review-
commit-queue: commit-queue-
Matthew Delaney
Comment 1 2010-07-13 20:06:15 PDT
Adele Peterson
Comment 2 2010-07-13 20:20:54 PDT
Comment on attachment 61461 [details] Patch Looks good. The local variable should get a more meaningful name - like "path". There are a bunch of "p"s and "cp"s in this file, so you don't have to fix those, but since you're adding a new one, you might as well give it a good name. r=me! Do you want to use the commit-queue for this?
Adele Peterson
Comment 3 2010-07-13 20:34:43 PDT
Comment on attachment 61461 [details] Patch Actually, I think you don't need the local variable at all. You can just write it like this: if (p == CGPathGetCurrentPoint(m_path))
Matthew Delaney
Comment 4 2010-07-14 11:25:32 PDT
Created attachment 61545 [details] Updated with Adele's suggestions. Updated with Adele's suggestions.
WebKit Commit Bot
Comment 5 2010-07-14 12:02:43 PDT
Comment on attachment 61545 [details] Updated with Adele's suggestions. Rejecting patch 61545 from commit-queue. mdelaney@apple.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/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 WebKitTools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). Due to bug 30084 the commit-queue will require a restart after your change. Please contact eseidel@chromium.org to request a commit-queue restart. After restart the commit-queue will correctly respect your committer rights.
Darin Adler
Comment 6 2010-07-14 12:13:11 PDT
Comment on attachment 61545 [details] Updated with Adele's suggestions. > void Path::addLineTo(const FloatPoint& p) > -{ > +{ Should not add trailing spaces here. Is it right to have the check be in the CG version of Path::addLineTo? Maybe the caller should do the check in platform independent code. I think it would be good to follow up and investigate that.
Matthew Delaney
Comment 7 2010-07-14 12:17:10 PDT
@Darin: I wanted to put the checking higher up in CanvasRenderingContext2D.cpp so that it would be platform independent, but there's currently no way to expose the current point in in the path, so I'm adding that in at the moment. Though, I'm worried that there may be a good reason why that isn't exposed. I can't find one yet since it seems fine as long as the current point in the path isn't exposed at the canvas api layer we should be all good.
WebKit Commit Bot
Comment 8 2010-07-14 20:52:25 PDT
Comment on attachment 61545 [details] Updated with Adele's suggestions. Rejecting patch 61545 from commit-queue. Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--ignore-tests', 'compositing', '--quiet']" exit_code: 1 Running build-dumprendertree Compiling Java tests make: Nothing to be done for `default'. Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests Testing 20689 test cases. svg/custom/marker-overflow-clip.svg -> failed Exiting early after 1 failures. 18057 tests run. 335.97s total testing time 18056 test cases (99%) succeeded 1 test case (<1%) had incorrect layout 26 test cases (<1%) had stderr output Full output: http://webkit-commit-queue.appspot.com/results/3401413
Andreas Kling
Comment 9 2010-07-16 21:01:55 PDT
Comment on attachment 61545 [details] Updated with Adele's suggestions. Since Path has currentPoint() now, this can and should be done in cross-platform code.
Matthew Delaney
Comment 10 2010-07-16 21:04:35 PDT
True. I actually rolled that into the stroke.prune.arc fix, so I should obsolete this bug. Doing that now...
Matthew Delaney
Comment 11 2010-07-16 21:07:41 PDT
Note You need to log in before you can comment on or make changes to this bug.