RESOLVED FIXED Bug 50028
Simplify directoryName in FileSystemWin.cpp
https://bugs.webkit.org/show_bug.cgi?id=50028
Summary Simplify directoryName in FileSystemWin.cpp
Patrick R. Gansterer
Reported 2010-11-24 08:57:13 PST
see patch
Attachments
Patch (1.11 KB, patch)
2010-11-24 09:01 PST, Patrick R. Gansterer
no flags
Patch (1.11 KB, patch)
2010-11-24 09:38 PST, Patrick R. Gansterer
no flags
Patrick R. Gansterer
Comment 1 2010-11-24 09:01:49 PST
Build Bot
Comment 2 2010-11-24 09:32:16 PST
Patrick R. Gansterer
Comment 3 2010-11-24 09:38:36 PST
Adam Roben (:aroben)
Comment 4 2010-11-29 07:34:12 PST
Comment on attachment 74772 [details] Patch Seems like eventually we should switch to using ::PathRemoveFileSpecW.
Patrick R. Gansterer
Comment 5 2010-11-29 07:40:46 PST
(In reply to comment #4) > (From update of attachment 74772 [details]) > Seems like eventually we should switch to using ::PathRemoveFileSpecW. PathRemoveFileSpecW wants to work in a buffer. So we would need to copy the path first into the buffer and then out of if. I like the current version more, but I can change if you like the other one more.
Adam Roben (:aroben)
Comment 6 2010-11-29 07:47:22 PST
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 74772 [details] [details]) > > Seems like eventually we should switch to using ::PathRemoveFileSpecW. > PathRemoveFileSpecW wants to work in a buffer. So we would need to copy the path first into the buffer and then out of if. I like the current version more, but I can change if you like the other one more. I think if we used StringBuffer or Vector<UniChar> we could get away with only a single copy, which is probably even better than the current implementation. But making this change I think would warrant a separate patch.
Patrick R. Gansterer
Comment 7 2010-11-29 07:50:05 PST
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (From update of attachment 74772 [details] [details] [details]) > > > Seems like eventually we should switch to using ::PathRemoveFileSpecW. > > PathRemoveFileSpecW wants to work in a buffer. So we would need to copy the path first into the buffer and then out of if. I like the current version more, but I can change if you like the other one more. > > I think if we used StringBuffer or Vector<UniChar> we could get away with only a single copy, which is probably even better than the current implementation. But making this change I think would warrant a separate patch. OK, I'll create a new patch in the next days.
WebKit Commit Bot
Comment 8 2010-11-29 08:14:16 PST
Comment on attachment 74772 [details] Patch Rejecting patch 74772 from commit-queue. Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=eseidel-cq-sl', 'build', '--no-clean', '--no-update', '--build-style=both']" exit_code: 2 Last 500 characters of output: g/RenderDataGrid.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2 CompileC /Projects/CommitQueue/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/RenderLayer.o /Projects/CommitQueue/WebCore/rendering/RenderLayer.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2 CompileC /Projects/CommitQueue/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/Frame.o /Projects/CommitQueue/WebCore/page/Frame.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2 (6 failures) Full output: http://queues.webkit.org/results/6387099
WebKit Commit Bot
Comment 9 2010-11-29 09:36:02 PST
The commit-queue encountered the following flaky tests while processing attachment 74772 [details]: fast/workers/storage/use-same-database-in-page-and-workers.html inspector/timeline-event-dispatch.html Please file bugs against the tests. These tests were authored by beidson@apple.com, dumi@chromium.org, and yurys@chromium.org. The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 10 2010-11-29 09:53:11 PST
Comment on attachment 74772 [details] Patch Clearing flags on attachment: 74772 Committed r72808: <http://trac.webkit.org/changeset/72808>
WebKit Commit Bot
Comment 11 2010-11-29 09:53:18 PST
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.