Bug 16385

Summary: Cleanup kjs_window
Product: WebKit Reporter: Sam Weinig <sam>
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
First round of cleanup
darin: review+
move PausedTimeouts
darin: review+
move ScheduledAction mjs: review+

Description Sam Weinig 2007-12-10 13:52:12 PST
Most of the content of kjs_window can be move to more appropriate places (to DOMWindow, WindowFeatures, etc.)
Comment 1 Sam Weinig 2007-12-10 13:54:13 PST
*** Bug 16386 has been marked as a duplicate of this bug. ***
Comment 2 Sam Weinig 2007-12-10 14:13:14 PST
Created attachment 17826 [details]
First round of cleanup
Comment 3 Darin Adler 2007-12-10 14:20:56 PST
Comment on attachment 17826 [details]
First round of cleanup

Please run the sort-Xcode-project-file script on the project file.

+    // - dialogHide: trusted && WindowFeatures::boolFeature(features, "dialoghide"), makes dialog hide when you print
+    // - help: WindowFeatures::boolFeature(features, "help", true), makes help icon appear in dialog (what does it do on Windows?)
+    // - unadorned: trusted && WindowFeatures::boolFeature(features, "unadorned");

Seems a little strange here. Global replace problem?

+static bool isSeparator(::UChar c)

I don't think you need the :: here. It was needed because of "using namespace KJS".

+    {}

We usually put those braces on separate lines.

Where's the update to the .pro and .bkl files?

Otherwise looks fine.
Comment 4 Sam Weinig 2007-12-16 13:40:50 PST
Created attachment 17937 [details]
move PausedTimeouts
Comment 5 Sam Weinig 2007-12-16 14:52:35 PST
The first patch was landed in r28592.
Comment 6 Darin Adler 2007-12-16 15:36:30 PST
Comment on attachment 17937 [details]
move PausedTimeouts

r=me
Comment 7 Sam Weinig 2007-12-16 16:30:41 PST
Second patch landed in r28779.
Comment 8 Sam Weinig 2007-12-16 16:48:11 PST
Created attachment 17943 [details]
move ScheduledAction
Comment 9 Maciej Stachowiak 2007-12-16 19:26:52 PST
Comment on attachment 17943 [details]
move ScheduledAction

Please try to use separate bugs for separate patches. Otherwise the state of the bug gets confusing. 

r=me
Comment 10 Sam Weinig 2007-12-16 20:52:10 PST
Third patch landed in r28794.  Closing this bug, but will follow up with other bugs for more specific single tasks.