Bug 16080 - Clean up DRT code
Summary: Clean up DRT code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-21 01:11 PST by Eric Seidel (no email)
Modified: 2007-11-21 11:29 PST (History)
0 users

See Also:


Attachments
[PATCH] Pull DumpRenderTreeWindow and DumpRenderTreePasteboard out into their own files (29.41 KB, patch)
2007-11-21 01:12 PST, Eric Seidel (no email)
timothy: review+
Details | Formatted Diff | Diff
[PATCH] Abstract more of DRT into static methods (9.87 KB, patch)
2007-11-21 01:12 PST, Eric Seidel (no email)
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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