Bug 50028 - Simplify directoryName in FileSystemWin.cpp
Summary: Simplify directoryName in FileSystemWin.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Patrick R. Gansterer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 08:57 PST by Patrick R. Gansterer
Modified: 2010-11-29 09:53 PST (History)
3 users (show)

See Also:


Attachments
Patch (1.11 KB, patch)
2010-11-24 09:01 PST, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff
Patch (1.11 KB, patch)
2010-11-24 09:38 PST, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2010-11-24 08:57:13 PST
see patch
Comment 1 Patrick R. Gansterer 2010-11-24 09:01:49 PST
Created attachment 74765 [details]
Patch
Comment 2 Build Bot 2010-11-24 09:32:16 PST
Attachment 74765 [details] did not build on win:
Build output: http://queues.webkit.org/results/6296043
Comment 3 Patrick R. Gansterer 2010-11-24 09:38:36 PST
Created attachment 74772 [details]
Patch
Comment 4 Adam Roben (:aroben) 2010-11-29 07:34:12 PST
Comment on attachment 74772 [details]
Patch

Seems like eventually we should switch to using ::PathRemoveFileSpecW.
Comment 5 Patrick R. Gansterer 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.
Comment 6 Adam Roben (:aroben) 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.
Comment 7 Patrick R. Gansterer 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.
Comment 8 WebKit Commit Bot 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
Comment 9 WebKit Commit Bot 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.
Comment 10 WebKit Commit Bot 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>
Comment 11 WebKit Commit Bot 2010-11-29 09:53:18 PST
All reviewed patches have been landed.  Closing bug.