Bug 16080

Summary: Clean up DRT code
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
[PATCH] Pull DumpRenderTreeWindow and DumpRenderTreePasteboard out into their own files
timothy: review+
[PATCH] Abstract more of DRT into static methods timothy: review+

Description Eric Seidel (no email) 2007-11-21 01:11:37 PST
I went to hack on DRT tonight, to finally fix bug 15565, but was annoyed at bad code abstraction in DRT.  So I fixed a little of it.  I'll upload my git commits in a sec.
Comment 1 Eric Seidel (no email) 2007-11-21 01:12:37 PST
Created attachment 17426 [details]
[PATCH] Pull DumpRenderTreeWindow and DumpRenderTreePasteboard out into their own files

 WebKitTools/DumpRenderTree/DumpRenderTree.h        |    2 +
 .../DumpRenderTree.xcodeproj/project.pbxproj       |   40 +++-
 WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm   |  227 +-------------------
 .../DumpRenderTree/mac/DumpRenderTreePasteboard.h  |   35 +++
 .../DumpRenderTree/mac/DumpRenderTreePasteboard.m  |  201 +++++++++++++++++
 .../DumpRenderTree/mac/DumpRenderTreeWindow.h      |   35 +++
 .../DumpRenderTree/mac/DumpRenderTreeWindow.mm     |   85 ++++++++
 7 files changed, 401 insertions(+), 224 deletions(-)
Comment 2 Eric Seidel (no email) 2007-11-21 01:12:38 PST
Created attachment 17427 [details]
[PATCH] Abstract more of DRT into static methods

 WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm |  168 +++++++++++++---------
 1 files changed, 102 insertions(+), 66 deletions(-)
Comment 3 Timothy Hatcher 2007-11-21 08:25:55 PST
Comment on attachment 17426 [details]
[PATCH] Pull DumpRenderTreeWindow and DumpRenderTreePasteboard out into their own files

+++ b/WebKitTools/DumpRenderTree/mac/DumpRenderTreePasteboard.h
\ No newline at end of file

Add a new line. r=me
Comment 4 Timothy Hatcher 2007-11-21 08:30:34 PST
Comment on attachment 17427 [details]
[PATCH] Abstract more of DRT into static methods

You should make createCFURLFromPathOrURL static too. r=me
Comment 5 Eric Seidel (no email) 2007-11-21 11:29:45 PST
Landed (with your suggested changes) as r27941 and r27942