JavaScriptCore:
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2008-06-15  Darin Adler  <darin@apple.com>
2
3         Rubber stamped by Sam.
4
5         - use JS prefix and simpler names for basic JavaScriptCore types,
6           to complement JSValue and JSObject
7
8         * WebView/WebView.mm:
9         (aeDescFromJSValue):
10
11 2008-06-14  Darin Adler  <darin@apple.com>
12
13         Rubber stamped by Sam.
14
15         - new names for kjs_binding.h and kjs_proxy.h
16
17         * WebView/WebFrame.mm:
18         * WebView/WebScriptDebugDelegate.mm:
19         * WebView/WebView.mm:
20
21 2008-06-14  Darin Adler  <darin@apple.com>
22
23         Rubber stamped by Sam.
24
25         - renamed HTMLGenericFormElement to HTMLFormControlElement
26
27         * WebView/WebHTMLRepresentation.mm:
28         (-[WebHTMLRepresentation elementWithName:inForm:]):
29         (-[WebHTMLRepresentation controlsInForm:]):
30
31 2008-06-14  Darin Adler  <darin@apple.com>
32
33         Reviewed by Sam.
34
35         - more of https://bugs.webkit.org/show_bug.cgi?id=17257
36           start ref counts at 1 instead of 0 for speed
37
38         * WebCoreSupport/WebFrameLoaderClient.mm:
39         (WebFrameLoaderClient::createDocumentLoader): Use create instead of new.
40         (WebFrameLoaderClient::createFrame): Remove now-obsolete adoptRef that was balanced by
41         a ref call inside the Frame constructor. The lifetime rules for Frame are now the
42         conventional ones without a special case.
43
44         * WebView/WebDataSource.mm:
45         (-[WebDataSource _initWithDocumentLoader:]): Changed argument to be a PassRefPtr, since
46         this function takes ownership of the DocumentLoader.
47         (-[WebDataSource initWithRequest:]): Use create instead of new.
48         * WebView/WebDataSourceInternal.h: Changed _initWithDocumentLoader argument to be a
49         PassRefPtr and also cleaned up the header a bit.
50
51         * WebView/WebDocumentLoaderMac.h:
52         (WebDocumentLoaderMac::create): Added. Also made the constructor and a couple of virtual
53         functions private.
54
55         * WebView/WebFrame.mm:
56         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]): Use create instead
57         of new.
58
59 2008-06-14  Darin Adler  <darin@apple.com>
60
61         Reviewed by Sam.
62
63         - more work on https://bugs.webkit.org/show_bug.cgi?id=17257
64           start ref counts at 1 instead of 0 for speed
65
66         * WebView/WebFrame.mm:
67         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
68         * WebView/WebPDFView.mm:
69         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
70
71 2008-06-13  Darin Adler  <darin@apple.com>
72
73         Reviewed by John Sullivan.
74
75         - updated for addition of FormState argument to action policy functions
76         - added WebActionFormKey
77
78         * WebCoreSupport/WebFrameLoaderClient.h:
79         * WebCoreSupport/WebFrameLoaderClient.mm:
80         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
81         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
82         (WebFrameLoaderClient::actionDictionary):
83         * WebKit.exp:
84         * WebView/WebPolicyDelegate.mm:
85         * WebView/WebPolicyDelegatePrivate.h:
86
87 2008-06-12  John Sullivan  <sullivan@apple.com>
88
89         Reviewed by Dan and Darin
90
91         Clear up the confusion about _close (older private method) vs -close (newer public method).
92
93         * WebView/WebView.mm:
94         (-[WebView _isClosed]):
95         simplified style
96         (-[WebView _close]):
97         added a comment about how clients and subclasses should use -close instead
98         (-[WebView dealloc]):
99         call -close instead of _close, so subclasses that override the public method will have the intended behavior
100         (-[WebView close]):
101         added a comment
102         (-[WebView _windowWillClose:]):
103         call -close instead of _close, so subclasses that override the public method will have the intended behavior
104
105         * WebView/WebViewPrivate.h:
106         added a comment about how clients and subclasses should use -close instead
107
108 2008-06-07  Darin Adler  <darin@apple.com>
109
110         Reviewed by Mitz.
111
112         - work on https://bugs.webkit.org/show_bug.cgi?id=17257
113           start ref counts at 1 instead of 0 for speed
114
115         * History/WebHistoryItem.mm:
116         (-[WebHistoryItem init]):
117         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
118         (-[WebHistoryItem initWithURL:target:parent:title:]):
119         (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
120         * WebView/WebView.mm:
121         (+[WebView _decodeData:]):
122
123 2008-06-03  Oliver Hunt  <oliver@apple.com>
124
125         Reviewed by Tim.
126
127         Bug 12983: Web Inspector break on the debugger keyword
128         <https://bugs.webkit.org/show_bug.cgi?id=12983>
129
130         Add stubs to allow old webkit debugger interface to build.
131
132         * WebView/WebScriptDebugger.h:
133         * WebView/WebScriptDebugger.mm:
134
135 2008-06-03  Anders Carlsson  <andersca@apple.com>
136
137         Reviewed by Darin.
138
139         <rdar://problem/5980961>
140         
141         In 64-bit Web Kit, converting between float and double, can cause rounding errors which in turn causes
142         newBottom to be larger than oldBottom which is illegal.
143         
144         * WebView/WebHTMLView.mm:
145         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
146
147 2008-06-02  Anders Carlsson  <andersca@apple.com>
148
149         Reviewed by Mitz.
150
151         Speculative fix for <rdar://problem/5661112> 
152         CrashTracer: [USER] 49 crashes in DashboardClient at com.apple.WebCore: WebCore::RenderPart::setWidget + 62
153         
154         Defer loads while calling NPP_New. Some plug-ins start a run-loop inside NPP_New and finished loads could cause
155         layouts to be triggered.
156         
157         * Plugins/WebBaseNetscapePluginView.mm:
158         (-[WebBaseNetscapePluginView _createPlugin]):
159
160 2008-05-29  Justin Garcia  <justin.garcia@apple.com>
161
162         Reviewed by Darin.
163         
164         <rdar://problem/5949462> REGRESSION: Can't paste screen captures into Mail
165         
166         AppKit started putting PNG instead of PICT onto the pasteboard for screen 
167         captures.  Added support for PNG with kUTTypePNG.  Tiger doesn't support
168         setting and retrieving pasteboard types with UTIs, but we don't know of any
169         applications on Tiger that put only PNG on the pasteboard.
170
171         * WebView/WebHTMLView.mm:
172         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
173         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
174
175 2008-05-29  Anders Carlsson  <andersca@apple.com>
176
177         Reviewed by Brady.
178
179         <rdar://problem/5970312> 
180         icon file specified for stand alone web app causes crash if the icon can't be found
181         
182         Handle the case where iconData is null.
183         
184         * Misc/WebIconFetcher.mm:
185         (WebIconFetcherClient::finishedFetchingIcon):
186
187 2008-05-29  Anders Carlsson  <andersca@apple.com>
188
189         Reviewed by Mitz.
190
191         <rdar://problem/5971845>
192         https://bugs.webkit.org/show_bug.cgi?id=19313
193         Add version member to NPCocoaEvent
194
195         Initialize the version member to 0 for all events.
196         
197         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
198         (initializeEvent):
199         (WebNetscapePluginEventHandlerCocoa::drawRect):
200         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
201         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
202         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
203         (WebNetscapePluginEventHandlerCocoa::windowFocusChanged):
204         (WebNetscapePluginEventHandlerCocoa::focusChanged):
205
206 2008-05-29  Dan Bernstein  <mitz@apple.com>
207
208         Reviewed by Jessica Kahn.
209
210         - fix <rdar://problem/5965013> Page 2 does not print correctly
211
212         When printing, _recursiveDisplayRectIfNeededIgnoringOpacity:... and
213         _recursiveDisplayAllDirtyWithLockFocus:... can be invoked without
214         -viewWillDraw being sent first, which could lead to painting without
215         valid layout. The fix is to ensure up-to-date layout in those methods
216         when printing.
217
218         * WebView/WebHTMLView.mm:
219         (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
220         (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
221
222 2008-05-28  Anders Carlsson  <andersca@apple.com>
223
224         Reviewed by Jon.
225
226         Remove workaround, this is no longer a problem.
227         
228         * WebView/WebView.mm:
229         (-[WebView _removeObjectForIdentifier:]):
230
231 2008-05-27  Geoffrey Garen  <ggaren@apple.com>
232
233         Reviewed by Tim Hatcher.
234         
235         Fixed https://bugs.webkit.org/show_bug.cgi?id=19183
236         REGRESSION (r33979): Crash in DebuggerCallFrame::functionName when
237         clicking button in returnEvent-crash.html
238         
239         Added implementations for willExecuteProgram and didExecuteProgram, which
240         take care of making sure we're not hanging on to stale data.
241
242 2008-05-27  Timothy Hatcher  <timothy@apple.com>
243
244         Fixes a bug where unplugging the monitor from a video card and
245         moving it to another video card would no longer show OpenGL plugins
246         until you relaunched Safari.
247
248         <rdar://problem/5790983> Add AllowOfflineDisplays pixel format
249         attribute to OpenGL contexts
250
251         Reviewed by Kevin Decker.
252
253         * Plugins/WebBaseNetscapePluginView.mm:
254         (-[WebBaseNetscapePluginView _createWindowedAGLContext]): Added
255         AGL_ALLOW_OFFLINE_RENDERERS for non-Tiger builds.
256         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]): Ditto.
257
258 2008-05-25  Mark Rowe  <mrowe@apple.com>
259
260         Reviewed by Darin Adler.
261
262         <rdar://problem/5840884> _recursive_resumeNullEventsForAllNetscapePlugins and _pauseNullEvents not defined
263
264         Follow-up for r33052.  _recursive_resumeNullEventsForAllNetscapePlugins and _recursive_pauseNullEventsForAllNetscapePlugins
265         need to be declared in WebFramePrivate.h rather than WebFrameInternal.h so they can be used from outside of WebKit.
266
267         * WebView/WebFrame.mm:
268         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
269         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
270         * WebView/WebFrameInternal.h:
271         * WebView/WebFramePrivate.h:
272
273 2008-05-23  Timothy Hatcher  <timothy@apple.com>
274
275         Fix attaching and detaching the Web Inspector. This change removes
276         the clunky animation that never looked right and was causing issues
277         where the inspected WebView would get into a no useable state.
278
279         <rdar://problem/5958812> Attaching and Detaching the Web Inspector
280         can cause the inspected WebVIew to be unusable
281
282         Reviewed by Adam Roben.
283
284         * WebCoreSupport/WebInspectorClient.mm:
285         (-[WebInspectorWindowController close]): Removes animation code.
286         Sets the frame directly and does a displayIfNeeded to prevent
287         showing the Inspector in the page and in the Inspector window.
288         (-[WebInspectorWindowController showWindow:]): Removes animation code.
289         Sets the frame directly.
290         (-[WebInspectorWindowController attach]): Simplified.
291         (-[WebInspectorWindowController detach]): Ditto.
292
293 2008-05-22  Dan Bernstein  <mitz@apple.com>
294
295         Reviewed by Darin Adler.
296
297         - fix broken documentation of
298           webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:
299
300         * WebView/WebUIDelegate.h: Fixed method name in HeaderDoc for
301         -webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:
302
303 2008-05-22  Timothy Hatcher  <timothy@apple.com>
304
305         <rdar://problem/5956403> Update the Develop menu to match the new Inspector items
306
307         Reviewed by Adam Roben.
308
309         * WebCoreSupport/WebInspectorClient.mm:
310         (-[WebInspectorWindowController showWebInspector:]):
311         (-[WebInspectorWindowController showErrorConsole:]):
312         (-[WebInspectorWindowController toggleDebuggingJavaScript:]):
313         (-[WebInspectorWindowController toggleProfilingJavaScript:]):
314         (-[WebInspectorWindowController validateUserInterfaceItem:]):
315         * WebInspector/WebInspector.h:
316         * WebInspector/WebInspector.mm:
317         (-[WebInspector showConsole:]):
318         (-[WebInspector showTimeline:]):
319         (-[WebInspector isDebuggingJavaScript]):
320         (-[WebInspector toggleDebuggingJavaScript:]):
321         (-[WebInspector startDebuggingJavaScript:]):
322         (-[WebInspector stopDebuggingJavaScript:]):
323         (-[WebInspector isProfilingJavaScript]):
324         (-[WebInspector toggleProfilingJavaScript:]):
325         (-[WebInspector startProfilingJavaScript:]):
326         (-[WebInspector stopProfilingJavaScript:]):
327
328 2008-05-22  Josh Aas  <joshmoz@gmail.com>
329
330         Reviewed by Anders.
331
332         <rdar://problem/5956429> 
333         https://bugs.webkit.org/show_bug.cgi?id=19192
334         remove NPNVpluginEventModel, fix example plugin
335         
336         * Plugins/WebBaseNetscapePluginView.mm:
337         (-[WebBaseNetscapePluginView getVariable:value:]):
338
339 2008-05-21  Anders Carlsson  <andersca@apple.com>
340
341         Reviewed by Maciej.
342
343         Add WebIconFetcher.
344         
345         * Misc/WebIconFetcher.h: Added.
346         * Misc/WebIconFetcher.mm: Added.
347         (WebIconFetcherClient::WebIconFetcherClient):
348         (WebIconFetcherClient::finishedFetchingIcon):
349         (WebIconFetcherClient::setFetcher):
350         (-[WebIconFetcher init]):
351         (-[WebIconFetcher dealloc]):
352         (-[WebIconFetcher finalize]):
353         (-[WebIconFetcher cancel]):
354         (-[WebIconFetcher _initWithIconFetcher:client:]):
355         (+[WebIconFetcher _fetchApplicationIconForFrame:target:selector:]):
356         * Misc/WebIconFetcherInternal.h: Added.
357         * WebView/WebFrame.mm:
358         (-[WebFrame fetchApplicationIcon:selector:]):
359         * WebView/WebFramePrivate.h:
360
361 === End merge of squirrelfish ===
362
363 2008-05-21  Geoffrey Garen  <ggaren@apple.com>
364
365         Reviewed by Tim Hatcher.
366         
367         Updated for API changes from merging with trunk WebCore's new debugger.
368
369         * WebView/WebScriptDebugDelegate.mm:
370         (-[WebScriptCallFrame evaluateWebScript:]): Explicitly check for an
371         exception return, since the DebuggerCallFrame no longer automatically
372         substitutes the exception for the return value.
373
374         * WebView/WebScriptDebugger.mm: Use the dynamic global object, not the
375         lexical global object, since the debugger attaches based on dynamic
376         global object.
377
378 2008-05-17  Geoffrey Garen  <ggaren@apple.com>
379
380         Reviewed by Oliver Hunt.
381         
382         Re-enabled previously disabled debugging functionality.
383         
384         There are two major changes from how the WebKit debugger used to work:
385         
386         (1) All the interesting bits are implemented down in JavaScriptCore. The
387         debugger just calls through to KJS::DebuggerCallFrame for everything.
388         
389         (2) Instead of copyihng a pointer to an ExecState once, the debugger
390         copies the DebuggerCallFrame passed to it in each callback. This is
391         because the VM no longer maintains a fully transparent execution state
392         to which you can hold a pointer, and the DebuggerCallFrames it vends
393         are temporaries.
394         
395         Also, we NULL out a WebScriptCallFrame's DebuggerCallFrame upon return
396         from its function. This is safer than the old method, which was to
397         hold a stale ExecState* and hope for the best.
398
399 2008-05-13  Geoffrey Garen  <ggaren@apple.com>
400
401         Reviewed by Oliver Hunt.
402
403         Updated for API changes in KJS::Debugger.
404
405         * WebView/WebFrame.mm:
406         (-[WebFrame _attachScriptDebugger]): Changed the order of operations to
407         fix an ASSERT that can happen when re-entering _attachScriptDebugger.
408
409 2008-05-13  Geoffrey Garen  <ggaren@apple.com>
410
411         Reviewed by Oliver Hunt.
412         
413         Updated WebScriptDebugger API to accept a SourceProvider instead
414         of a WebCore::String, to avoid copying.
415
416         (WebScriptDebugger::sourceParsed): Updated this function not to return
417         a value.
418
419 2008-04-30  Geoffrey Garen  <ggaren@apple.com>
420
421         Build fix: #ifdef'd out some code that doesn't work anymore.
422
423 2008-04-30  Geoffrey Garen  <ggaren@apple.com>
424
425         Reviewed by Oliver Hunt.
426         
427         #ifdef'd out some debugger code that doesn't work anymore.
428
429         * WebView/WebScriptDebugDelegate.mm:
430         (-[WebScriptCallFrame scopeChain]):
431
432 2008-04-21  Geoffrey Garen  <ggaren@apple.com>
433
434         Build fix.
435
436         * ChangeLog:
437         * WebView/WebScriptDebugDelegate.mm:
438         (-[WebScriptCallFrame scopeChain]):
439
440 2008-03-30  Geoffrey Garen  <ggaren@apple.com>
441
442         Reviewed by Oliver Hunt.
443         
444         Build fix.
445
446 === Start merge of squirrelfish ===
447
448 2008-05-21  Darin Adler  <darin@apple.com>
449
450         - fix build
451
452         * WebView/WebViewPrivate.h: Remove declaration of closeWithFastTeardown. We can add it back later
453         if we want, but if we do, we should probably make some refinements like checking _private->closed
454         and applicationIsTerminating.
455
456 2008-05-21  Darin Adler  <darin@apple.com>
457
458         Reviewed by Anders and Kevin Decker.
459
460         - fix <rdar://problem/5951130> REGRESSION: crash on quit after reopening windows from previous session
461
462         * WebView/WebView.mm:
463         (-[WebViewPrivate dealloc]): Fix assertions to not complain when fast teardown is used.
464         (-[WebView _closePluginDatabases]): Factored out some common code from both versions of close.
465         (-[WebView _closeWithFastTeardown]): Added an underscore to this method's name, since it's internal.
466         Streamlined the code a bit. Added a line of code to set _private->closed (this is the bug fix).
467         (-[WebView _close]): Changed for new method name and to use _closePluginDatabases.
468
469 2008-05-19  Stephanie Lewis  <slewis@apple.com>
470
471         Reviewed by Darin.
472     
473         more fast teardown performance work
474
475         * Misc/WebDownload.m:
476         (-[WebDownloadInternal downloadDidBegin:]):
477         (-[WebDownloadInternal downloadDidFinish:]):
478         (-[WebDownloadInternal download:didFailWithError:]):
479         * WebCoreSupport/WebChromeClient.h:
480         * WebCoreSupport/WebChromeClient.mm:
481         (WebChromeClient::disableSuddenTermination):
482         (WebChromeClient::enableSuddenTermination):
483
484 2008-05-18  Dan Bernstein  <mitz@apple.com>
485
486         Reviewed by Sam Weinig.
487
488         - fix <rdar://problem/5944596> IDNs are displayed as punycode in the authentication panel
489
490         * Panels/WebAuthenticationPanel.m:
491         (-[WebAuthenticationPanel setUpForChallenge:]):
492
493 2008-05-16  Timothy Hatcher  <timothy@apple.com>
494
495         Removes WebScriptDebugServer files and related calls. This removes
496         the hooks that Drosera uses for debugging. Now that the Web Inspector
497         has a better debugger, we don't need these anymore.
498
499         Reviewed by Sam Weinig.
500
501         * DefaultDelegates/WebScriptDebugServer.h: Removed.
502         * DefaultDelegates/WebScriptDebugServer.m: Removed.
503         * DefaultDelegates/WebScriptDebugServerPrivate.h: Removed.
504         * WebCoreSupport/WebFrameLoaderClient.mm:
505         * WebKit.exp:
506         * WebView/WebScriptDebugDelegate.mm:
507         * WebView/WebScriptDebugger.mm:
508         (WebScriptDebugger::sourceParsed):
509         (WebScriptDebugger::callEvent):
510         (WebScriptDebugger::atStatement):
511         (WebScriptDebugger::returnEvent):
512         (WebScriptDebugger::exception):
513         * WebView/WebView.mm:
514         (-[WebView _commonInitializationWithFrameName:groupName:]):
515         * WebView/WebViewPrivate.h:
516
517 2008-05-16  Brady Eidson  <beidson@apple.com>
518
519         Reviewed by Anders
520
521         <rdar://problem/5942616> - Need to standardize LocalStorage persistence path
522
523         Took the opportunity to touch up another pref that needs the same standardization.
524         That pref is currently not in use on Mac.
525
526         * WebView/WebPreferences.m:
527         (-[WebPreferences _setFTPDirectoryTemplatePath:]):
528         (-[WebPreferences _localStorageDatabasePath]):
529         (-[WebPreferences _setLocalStorageDatabasePath:]):
530         (-[WebPreferences _ftpDirectoryTemplatePath]):
531
532 2008-05-16  Chris Fleizach  <cfleizach@apple.com>
533
534         Reviewed by Alice Liu
535
536         <rdar://problem/5710317> REGRESSION:Selecting ranges of text should be possible using the keyboard (15310)
537
538         * WebView/WebFrame.mm:
539         (-[WebFrame _accessibilityTree]):
540
541 2008-05-15  Stephanie Lewis  <slewis@apple.com>
542         
543         fix mac build
544
545         * WebView/WebView.mm:
546         (-[WebView closeWithFastTeardown]):
547
548 2008-05-15  Stephanie Lewis  <slewis@apple.com>
549
550         Reviewed by Anders.
551
552         Turn on fast teardown.  I added a preference for using full teardown because 
553         the LEAKS output will be useless without a full teardown.  
554
555         preference for fullteardown
556         * WebView/WebPreferenceKeysPrivate.h:
557         * WebView/WebPreferences.m:
558         (-[WebPreferences setFullDocumentTeardownEnabled:]):
559         (-[WebPreferences fullDocumentTeardownEnabled]):
560         * WebView/WebPreferencesPrivate.h:
561         
562         on application quit dispatch unload events and destroy plugins then exit
563         * WebView/WebView.mm:
564         (-[WebView closeWithFastTeardown]):
565         (-[WebView _close]):
566         * WebView/WebViewPrivate.h:
567
568 2008-05-15  Stephanie Lewis  <slewis@apple.com>
569
570         Reviewed by Anders.
571
572         get the pending frame unload count from WebCore
573
574         * WebView/WebFrame.mm:
575         (-[WebFrame _pendingFrameUnloadEventCount]):
576         * WebView/WebFramePrivate.h:
577
578 2008-05-15  John Sullivan  <sullivan@apple.com>
579
580         Reviewed by Kevin Decker
581         
582         - fixed <rdar://problem/5940275> Inspector highlighting moves to bottom-left corner of 
583           screen when new tab appears
584           
585         The highlight should go away entirely, but this simple patch just makes it not jump away.
586         The issue with it not going away entirely is harder to fix and covered by <rdar://problem/5322306>
587
588         * WebInspector/WebNodeHighlight.m:
589         (-[WebNodeHighlight _repositionHighlightWindow]):
590         Bail out if target view isn't in a window
591
592 2008-05-15  Stephanie Lewis  <slewis@apple.com>
593
594         Reviewed by Anders.
595
596         Track views that contain plugin instances so that they can be destroyed at application
597         quit without walking the entire document tree.
598
599         Add/Remove Netscape plugin views from instance list.  Start/stop are when netscape
600         plugins are created and destroyed
601         * Plugins/WebBaseNetscapePluginView.mm:
602         (-[WebBaseNetscapePluginView start]):
603         (-[WebBaseNetscapePluginView stop]):
604  
605         Add/remove WebKit plugin views from instance list
606         * Plugins/WebPluginController.mm:
607         (-[WebPluginController addPlugin:]):
608         (-[WebPluginController destroyPlugin:]):
609         (-[WebPluginController destroyAllPlugins]):
610
611         Add a set of views with plugin instances to the WebPluginDatabase
612         * Plugins/WebPluginDatabase.h:
613         * Plugins/WebPluginDatabase.mm:
614         (-[WebPluginDatabase init]):
615         (-[WebPluginDatabase dealloc]):
616         (-[WebPluginDatabase addPluginInstanceView:]):
617         (-[WebPluginDatabase removePluginInstanceView:]):
618         (-[WebPluginDatabase removePluginInstanceViewsFor:]):
619         (-[WebPluginDatabase destroyAllPluginInstanceViews]):
620         
621         Handle cases where plugin views are detached before the plugin is destroyed.
622         * WebCoreSupport/WebFrameLoaderClient.mm:
623         (WebFrameLoaderClient::detachedFromParent2):
624         (WebFrameLoaderClient::transitionToCommittedFromCachedPage):
625         (WebFrameLoaderClient::transitionToCommittedForNewPage):
626
627         Add plugin instances to the set in the WebPluginDatabase by way of the WebView
628         * WebView/WebHTMLView.mm:
629         (-[WebHTMLView _destroyAllWebPlugins]):
630         * WebView/WebHTMLViewInternal.h:
631         * WebView/WebView.mm:
632         (-[WebView addPluginInstanceView:]):
633         (-[WebView removePluginInstanceView:]):
634         (-[WebView removePluginInstanceViewsFor:]):
635         * WebView/WebViewInternal.h:
636
637 2008-05-15  Brady Eidson  <beidson@apple.com>
638
639         Reviewed by Tim Hatcher
640
641         Until the settings/preferences equation can be reworked, we'll need to manually set the local storage path
642         before setting the page group of the new page.
643         
644         * WebView/WebView.mm:
645         (-[WebView _commonInitializationWithFrameName:groupName:]): Set the LocalStorage path 
646           immediately after creating the page so it is in place for initializing the LocalStorageThread
647
648 2008-05-15  Timothy Hatcher  <timothy@apple.com>
649
650         Fixes the bug where the Web Inspector would flash white while resizing.
651         This was cause by deferring the window creation.
652
653         <rdar://problem/5873549> REGRESSION: Inspector flickers horribly while resizing (17979)
654
655         Reviewed by Darin Adler.
656
657         * WebCoreSupport/WebInspectorClient.mm:
658         (-[WebInspectorWindowController window]): Don't defer the window creation.
659
660 2008-05-15  Alexey Proskuryakov  <ap@webkit.org>
661
662         Tiger build fix.
663
664         * Misc/WebNSAttributedStringExtras.mm: Import WebTypesInternal.h for NSUInteger.
665
666 2008-05-15  Adele Peterson  <adele@apple.com>
667
668         Reviewed and landed by Alexey.
669
670         Use TextIterator in +[NSAttributedString _web_attributedStringFromRange:].
671
672         * Misc/WebNSAttributedStringExtras.mm:
673         (+[NSAttributedString _web_attributedStringFromRange:]):
674
675 2008-05-14  Eric Seidel  <eric@webkit.org>
676
677         Reviewed by Oliver.
678
679         Add missing NULL check to match rest of file, this was found by the editing fuzzer.
680
681         * WebView/WebResource.mm:
682         (-[WebResource data]):
683
684 2008-05-14  Alexey Proskuryakov  <ap@webkit.org>
685
686         Reviewed by Dan Bernstein.
687
688         NPP_ValidAttributesForMarkedText should return NSArray*, not NSArray.
689
690         * Plugins/nptextinput.h:
691
692 2008-05-13  Anders Carlsson  <andersca@apple.com>
693
694         Reviewed by Sam.
695
696         Don't empty the application cache in _setCacheModel, since it will be called during initialization.
697         Instead, do it in [WebCache empty].
698         
699         * Misc/WebCache.mm:
700         (+[WebCache empty]):
701         * WebView/WebView.mm:
702         (+[WebView _setCacheModel:]):
703
704 2008-05-13  chris fleizach  <cfleizach@apple.com>
705
706         Reviewed by Beth Dakin
707
708         <rdar://problem/4780592> WebKit application has its window announced as HTML content
709
710         * WebCoreSupport/WebViewFactory.mm:
711         (-[WebViewFactory AXWebAreaText]):
712
713 2008-05-13  Timothy Hatcher  <timothy@apple.com>
714
715         Fixes a crash seen in Xcode where CallUIDelegateReturningBoolean
716         was referencing a nil WebView under validateUserInterfaceItem.
717         The validateUserInterfaceItem methods was being called at a time
718         when the WebHTMLView is being torndown.
719
720         <rdar://problem/5806229> A crash occurs at CallUIDelegateReturningBoolean()
721         while mousing down on menu bar after Xcode News window is opened
722
723         Reviewed by Ada Chan.
724
725         * WebView/WebHTMLView.mm:
726         (-[WebHTMLView validateUserInterfaceItem:]): NULL check the WebView and
727         return NO when it is nil. Adds a comment.
728         * WebView/WebPDFView.mm:
729         (-[WebPDFView validateUserInterfaceItem:]): Ditto.
730
731 2008-05-13  Mark Rowe  <mrowe@apple.com>
732
733         Reviewed by John Sullivan.
734
735         <rdar://problem/5926425> HIWebViewCreateWithClass declared as API in HIWebView.h but never exported from WebKit.framework
736
737         * Carbon/HIWebView.h: Remove HIWebViewCreateWithClass.
738         * Carbon/HIWebView.m: Ditto.
739         (HIWebViewCreate):
740         (HIWebViewConstructor):
741
742 2008-05-12  Dan Bernstein  <mitz@apple.com>
743
744         Reviewed by Ada Chan.
745
746         - WebKit/mac changes for https://bugs.webkit.org/show_bug.cgi?id=17097
747           <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
748
749         Added font cache statistics and a function to purge inactive font data.
750
751         * Misc/WebCoreStatistics.h:
752         * Misc/WebCoreStatistics.mm:
753         (+[WebCoreStatistics cachedFontDataCount]):
754         (+[WebCoreStatistics cachedFontDataInactiveCount]):
755         (+[WebCoreStatistics purgeInactiveFontData]):
756         (+[WebCoreStatistics glyphPageCount]):
757
758 2008-05-12  Mark Rowe  <mrowe@apple.com>
759
760         Reviewed by Tim Hatcher.
761
762         Decorate some deprecated delegate methods with the availability macros.
763
764         The compiler doesn't appear to warn if a delegate implements these methods, but using the availability
765         macros is good for consistency and documentation.
766
767         * WebView/WebFrameLoadDelegate.h:
768         * WebView/WebUIDelegate.h:
769
770 2008-05-12  Mark Rowe  <mrowe@apple.com>
771
772         Reviewed by Tim Hatcher.
773
774         <rdar://problem/5835604> Deprecate HIWebView
775
776         Use of HIWebView is deprecated in favor of embedding a WebView in a HICocoaView.
777
778         * Carbon/CarbonUtils.h: Include the availability macro header and decorate the functions appropriately.
779         * Carbon/HIWebView.h: Ditto.
780
781 2008-05-12  Kevin Decker  <kdecker@apple.com>
782
783         Reviewed by Anders.
784
785         Fixed: <rdar://problem/5840884>_recursive_resumeNullEventsForAllNetscapePlugins and _pauseNullEvents not defined
786         
787         Re-added these SPI methods because they are needed by some clients. They were accidentally removed
788         in changeset <http://trac.webkit.org/changeset/31028>
789         
790         * Plugins/WebBaseNetscapePluginView.h: Added stopTimers, restartTimers to the header.
791         * WebView/WebFrame.mm:
792         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]): Re-addd.
793         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]): Ditto.
794         * WebView/WebFrameInternal.h: Ditto.
795         * WebView/WebHTMLView.mm: Ditto.
796         (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]): Ditto.
797         (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]): Ditto.
798         * WebView/WebHTMLViewInternal.h: Ditto.
799         * WebView/WebHTMLViewPrivate.h: Ditto.
800
801 2008-05-12  Anders Carlsson  <andersca@apple.com>
802
803         Reviewed by Alexey.
804
805         Empty the application cache when changing the cache model.
806         
807         * WebView/WebView.mm:
808         (+[WebView _setCacheModel:]):
809
810 2008-05-12  Anders Carlsson  <andersca@apple.com>
811
812         Reviewed by Oliver.
813
814         <rdar://problem/5774495> Make Unicode text input possible in Netscape-style plug-ins
815         
816         * Plugins/WebBaseNetscapePluginView.h:
817         * Plugins/WebBaseNetscapePluginView.mm:
818         (-[WebBaseNetscapePluginView start]):
819         Get the plug-in text input vtable pointer.
820         
821         (-[WebBaseNetscapePluginView stop]):
822         Set the plug-in text input vtable pointer to 0.
823         
824         (-[WebBaseNetscapePluginView inputContext]):
825         Return 0 for Carbon plug-ins since we don't want Cocoa to handle text input for them.
826         
827         (-[WebBaseNetscapePluginView hasMarkedText]):        
828         (-[WebBaseNetscapePluginView insertText:]):
829         (-[WebBaseNetscapePluginView markedRange]):
830         (-[WebBaseNetscapePluginView selectedRange]):
831         (-[WebBaseNetscapePluginView setMarkedText:selectedRange:]):
832         (-[WebBaseNetscapePluginView unmarkText]):
833         (-[WebBaseNetscapePluginView validAttributesForMarkedText]):
834         (-[WebBaseNetscapePluginView attributedSubstringFromRange:]):
835         (-[WebBaseNetscapePluginView characterIndexForPoint:]):
836         (-[WebBaseNetscapePluginView doCommandBySelector:]):
837         (-[WebBaseNetscapePluginView firstRectForCharacterRange:]):
838         (-[WebBaseNetscapePluginView conversationIdentifier]):
839         Implement NSTextInput and call into the plug-in text input vtable.
840         
841         (browserTextInputFuncs):
842         New method which returns the browser input vtable.
843         
844         (-[WebBaseNetscapePluginView getVariable:value:]):
845         Support getting the browser input vtable pointer.
846         
847         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
848         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
849         (WebNetscapePluginEventHandlerCocoa::keyDown):
850         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
851         If the plug-in returns 0 when a NPCocoaEventKeyDown is passed to NPP_HandleEvent,
852         it means that the event should be passed on to the input manager.
853          
854         * Plugins/npapi.mm:
855         (NPN_MarkedTextAbandoned):
856         (NPN_MarkedTextSelectionChanged):
857         Add implementations of browser input method methods.
858         
859         * Plugins/nptextinput.h: Added.
860         Add file with new text input API.
861
862 2008-05-12  Alexey Proskuryakov  <ap@webkit.org>
863
864         Roll out recent  threading changes (r32807, r32810, r32819, r32822) to simplify
865         SquirrelFish merging.
866
867         * Misc/WebCoreStatistics.mm:
868         (+[WebCoreStatistics javaScriptObjectsCount]):
869         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
870         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
871         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
872         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
873         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
874         * WebView/WebScriptDebugDelegate.mm:
875         (-[WebScriptCallFrame evaluateWebScript:]):
876
877 2008-05-07  Anders Carlsson  <andersca@apple.com>
878
879         Reviewed by Mitz.
880
881         REGRESSION (3.1.1-TOT): Arrow keys are sticky in Google Maps street view
882         https://bugs.webkit.org/show_bug.cgi?id=18880
883         <rdar://problem/5909513>
884
885         Stop suspending key up events before calling handleEvent.
886         
887         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
888         (WebNetscapePluginEventHandlerCarbon::sendEvent):
889
890 2008-05-06  Stephanie Lewis  <slewis@apple.com>
891
892         Reviewed by Andersca.
893
894         prepare for plugin fast teardown work - make WebPluginDatabase a objective C++ file.
895
896         * Plugins/WebPluginDatabase.m: Removed.
897         * Plugins/WebPluginDatabase.mm: Copied from WebKit/mac/Plugins/WebPluginDatabase.m.
898         * Plugins/npapi.m: Removed.
899         * Plugins/npapi.mm: Copied from WebKit/mac/Plugins/npapi.m.
900
901 2008-05-06  Anders Carlsson  <andersca@apple.com>
902
903         Reviewed by Darin.
904
905         Initialize numArchs to 0.
906         
907         * Plugins/WebBasePluginPackage.m:
908         (-[WebBasePluginPackage isNativeLibraryData:]):
909
910 2008-05-06  Anders Carlsson  <andersca@apple.com>
911
912         Reviewed by Darin.
913
914         Add implementation of NPN_PopUpContextMenu.
915         
916         * Plugins/WebBaseNetscapePluginView.mm:
917         (-[WebBaseNetscapePluginView popUpContextMenu:]):
918         * Plugins/WebBaseNetscapePluginViewPrivate.h:
919         * Plugins/WebNetscapePluginPackage.m:
920         (-[WebNetscapePluginPackage load]):
921         * Plugins/npapi.m:
922         (NPN_PopUpContextMenu):
923
924 2008-05-06  Anders Carlsson  <andersca@apple.com>
925
926         Fix typo (don't read random memory).
927         
928         * Plugins/WebBasePluginPackage.m:
929         (-[WebBasePluginPackage isNativeLibraryData:]):
930
931 2008-05-05  Anders Carlsson  <andersca@apple.com>
932
933         Reviewed by Darin.
934
935         Change the isNativeLibraryData: method to handle universal binaries.
936         
937         * Plugins/WebBasePluginPackage.m:
938         (swapIntsInHeader):
939         (-[WebBasePluginPackage isNativeLibraryData:]):
940
941 2008-05-06  Brady Eidson  <beidson@apple.com>
942
943         Reviewed by Darin Adler
944
945         Preparation for upcoming work making LocalStorage persistent.
946
947         When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
948
949         * WebView/WebView.mm:
950         (+[WebView _applicationWillTerminate]):  Close all LocalStorage areas before quitting.
951
952 2008-05-05  Sam Weinig  <sam@webkit.org>
953
954         Reviewed by Darin Adler.
955
956         Fix for <rdar://problem/5884383>
957         Escape look-a-like characters from the the entire url.
958
959         * Misc/WebNSURLExtras.mm:
960         (escapeUnsafeCharacters):
961         (-[NSURL _web_userVisibleString]):
962
963 2008-05-05  Justin Garcia  <justin.garcia@apple.com>
964
965         Reviewed by Darin.
966         
967         <rdar://problem/5865171> REGRESSION: Creating a new quote places caret at beginning of quote instead of the end
968
969         * WebView/WebView.mm:
970         (-[WebView _updateSettingsFromPreferences:]): Disable Range mutation on changes to
971         the document for Tiger and Leopard Mail.  There is code in Mail that does it, and
972         the two interfere.
973
974 2008-05-05  Sam Weinig  <sam@webkit.org>
975
976         Reviewed by Tim Hatcher.
977
978         Make the Inspector's localizable strings file match the format used by Dashboard widgets.
979
980         * WebCoreSupport/WebInspectorClient.mm:
981         (WebInspectorClient::localizedStringsURL):
982
983 2008-05-05  Anders Carlsson  <andersca@apple.com>
984
985         Reviewed by Jess.
986
987         Apparently preflighting can cause hangs for some reason. Revert this for now.
988         
989         * Plugins/WebNetscapePluginPackage.m:
990         (-[WebNetscapePluginPackage _initWithPath:]):
991         * Plugins/WebPluginPackage.m:
992         (-[WebPluginPackage initWithPath:]):
993
994 2008-05-05  Darin Adler  <darin@apple.com>
995
996         Reviewed by Mitz.
997
998         - https://bugs.webkit.org/show_bug.cgi?id=18789
999           fix some shouldCloseWithWindow edge cases
1000
1001         * WebView/WebView.mm:
1002         (-[WebView viewWillMoveToWindow:]): Fix bug where we would stop observing the
1003         NSWindowWillCloseNotification if the view was moved out of the window but still
1004         had that window set as the host window. Also make sure this function doesn't do
1005         anything if the WebView is already closed.
1006         (-[WebView setHostWindow:]): Ditto.
1007
1008 2008-05-04  David Kilzer  <ddkilzer@apple.com>
1009
1010         Make parameters match for WebChromeClient::addMessageToConsole()
1011
1012         Reviewed by John.
1013
1014         * WebCoreSupport/WebChromeClient.h:
1015         (WebChromeClient::addMessageToConsole): Renamed sourceID parameter
1016         to sourceURL to match implementation in WebChromeClient.mm.
1017
1018 2008-05-02  Anders Carlsson  <andersca@apple.com>
1019
1020         Reviewed by Mark.
1021
1022         Various Cocoa event model and 64-bit plug-in fixes.
1023         
1024         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1025         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
1026         Set click count.
1027         
1028         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1029         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1030         Don't try to get the mouse location for keyboard events.
1031         
1032         * Plugins/WebPluginPackage.m:
1033         (-[WebPluginPackage initWithPath:]):
1034         Preflight the bundle so we won't show 32-bit WebKit plug-ins when running as 64-bit.
1035
1036 2008-05-02  Anders Carlsson  <andersca@apple.com>
1037
1038         Reviewed by Sam.
1039
1040         The event union is now named.
1041         
1042         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1043         (WebNetscapePluginEventHandlerCocoa::drawRect):
1044         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
1045         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1046         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1047         (WebNetscapePluginEventHandlerCocoa::windowFocusChanged):
1048         (WebNetscapePluginEventHandlerCocoa::focusChanged):
1049
1050 2008-05-02  Anders Carlsson  <andersca@apple.com>
1051
1052         Reviewed by Mark.
1053
1054         Make sure that 32-bit only plug-ins aren't shown when running as 64-bit.
1055         
1056         Call preflightAndReturnError on the bundle, which will check if any of the architectures
1057         in the bundle match the current architecture.
1058         
1059         * Plugins/WebNetscapePluginPackage.m:
1060         (-[WebNetscapePluginPackage _initWithPath:]):
1061
1062 2008-05-02  Alexey Proskuryakov  <ap@webkit.org>
1063
1064         Reviewed by Geoffrey Garen.
1065
1066         https://bugs.webkit.org/show_bug.cgi?id=18826
1067         Make JavaScript heap per-thread
1068
1069         * Misc/WebCoreStatistics.mm:
1070         (+[WebCoreStatistics javaScriptObjectsCount]):
1071         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1072         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
1073         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1074         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1075         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
1076         Replaced static Collector calls with calls to a current thread's instance.
1077
1078         * WebView/WebScriptDebugDelegate.mm:
1079         (-[WebScriptCallFrame evaluateWebScript:]):
1080         Pass ExecState to jsString().
1081
1082 2008-05-01  Anders Carlsson  <andersca@apple.com>
1083
1084         Reviewed by Mark.
1085
1086         64-bit NPAPI plugin build fixes.
1087         
1088         * Plugins/WebBaseNetscapePluginView.mm:
1089         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1090         (-[WebBaseNetscapePluginView updateAndSetWindow]):
1091         (-[WebBaseNetscapePluginView start]):
1092         (-[WebBaseNetscapePluginView windowBecameKey:]):
1093         * Plugins/WebNetscapeDeprecatedFunctions.c:
1094         * Plugins/WebNetscapeDeprecatedFunctions.h:
1095         * Plugins/WebNetscapePluginEventHandler.mm:
1096         (WebNetscapePluginEventHandler::create):
1097         * Plugins/WebNetscapePluginEventHandlerCarbon.h:
1098         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1099         * Plugins/WebPluginDatabase.m:
1100         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
1101
1102 2008-05-01  Anders Carlsson  <andersca@apple.com>
1103
1104         Reviewed by Tim.
1105
1106         Remove duplicate npfunctions.h header from WebKit.
1107
1108         * MigrateHeaders.make:
1109         Migrate npfunctions.h
1110         
1111         * Plugins/npfunctions.h: Removed.
1112
1113 2008-05-01  Anders Carlsson  <andersca@apple.com>
1114
1115         Reviewed by John.
1116         
1117         Add null checks for the event handler.
1118         
1119         * Plugins/WebBaseNetscapePluginView.mm:
1120         (-[WebBaseNetscapePluginView stopTimers]):
1121         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1122
1123 2008-05-01  Anders Carlsson  <andersca@apple.com>
1124
1125         Fix 64-bit build.
1126         
1127         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
1128         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1129         * WebCoreSupport/WebFrameLoaderClient.mm:
1130
1131 2008-05-01  Anders Carlsson  <andersca@apple.com>
1132
1133         Fix build.
1134         
1135         * Plugins/npfunctions.h:
1136
1137 2008-05-01  Anders Carlsson  <andersca@apple.com>
1138
1139         Reviewed by Adam.
1140
1141         Forward mouse move events to the Netscape plug-in view.
1142         
1143         * Plugins/WebBaseNetscapePluginView.h:
1144         * Plugins/WebBaseNetscapePluginView.mm:
1145         (-[WebBaseNetscapePluginView handleMouseMoved:]):
1146         New method that just calls the current event handler.
1147         
1148         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1149         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1150         NSFlagsChanged is not a regular keyboard event and some of the NSEvent accessors
1151         don't work on it so don't call them.
1152         
1153         * WebCoreSupport/WebFrameLoaderClient.mm:
1154         (NetscapePluginWidget::NetscapePluginWidget):
1155         New Widget subclass to be used for Netscape plug-ins.
1156         
1157         (NetscapePluginWidget::handleEvent):
1158         Forward NSMouseMoved events to the plug-in.
1159         
1160         (WebFrameLoaderClient::createPlugin):
1161         Wrap the plug-in view in a NetscapePluginWidget.
1162
1163 2008-05-01  Alp Toker  <alp@nuanti.com>
1164
1165         Rubber-stamped by Anders.
1166
1167         GTK+ build fix for changes in r32752. Use int32, not int32_t types in
1168         npapi.h.
1169
1170         Additional fix to use same signedness in npapi.h and Mac for the
1171         interval parameter.
1172
1173         * Plugins/WebBaseNetscapePluginView.h:
1174         * Plugins/WebBaseNetscapePluginView.mm:
1175         (PluginTimer::PluginTimer):
1176         (-[WebBaseNetscapePluginView stopTimers]):
1177         (-[WebBaseNetscapePluginView restartTimers]):
1178         (-[WebBaseNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1179         (-[WebBaseNetscapePluginView unscheduleTimer:]):
1180         * Plugins/WebBaseNetscapePluginViewPrivate.h:
1181         * Plugins/npapi.m:
1182         (NPN_ScheduleTimer):
1183         (NPN_UnscheduleTimer):
1184         * Plugins/npfunctions.h:
1185
1186 2008-04-30  Anders Carlsson  <andersca@apple.com>
1187
1188         Reviewed by Adam.
1189
1190         Add new Cocoa event model and the NPN_ScheduleTimer/NPN_UnscheduleTimer methods.
1191         
1192         * Plugins/WebBaseNetscapePluginView.h:
1193         * Plugins/WebBaseNetscapePluginView.mm:
1194         (PluginTimer::PluginTimer):
1195         (PluginTimer::start):
1196         (PluginTimer::fired):
1197         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1198         (-[WebBaseNetscapePluginView stopTimers]):
1199         (-[WebBaseNetscapePluginView restartTimers]):
1200         (-[WebBaseNetscapePluginView scrollWheel:]):
1201         (-[WebBaseNetscapePluginView flagsChanged:]):
1202         (-[WebBaseNetscapePluginView start]):
1203         (-[WebBaseNetscapePluginView eventModel]):
1204         (-[WebBaseNetscapePluginView fini]):
1205         (-[WebBaseNetscapePluginView getVariable:value:]):
1206         (-[WebBaseNetscapePluginView setVariable:value:]):
1207         (-[WebBaseNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1208         (-[WebBaseNetscapePluginView unscheduleTimer:]):
1209         * Plugins/WebBaseNetscapePluginViewInternal.h:
1210         * Plugins/WebBaseNetscapePluginViewPrivate.h:
1211         * Plugins/WebNetscapePluginEventHandler.h:
1212         * Plugins/WebNetscapePluginEventHandler.mm:
1213         (WebNetscapePluginEventHandler::create):
1214         * Plugins/WebNetscapePluginEventHandlerCarbon.h:
1215         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1216         (WebNetscapePluginEventHandlerCarbon::scrollWheel):
1217         (WebNetscapePluginEventHandlerCarbon::flagsChanged):
1218         (WebNetscapePluginEventHandlerCarbon::platformWindow):
1219         * Plugins/WebNetscapePluginEventHandlerCocoa.h: Added.
1220         (WebNetscapePluginEventHandlerCocoa::startTimers):
1221         (WebNetscapePluginEventHandlerCocoa::stopTimers):
1222         * Plugins/WebNetscapePluginEventHandlerCocoa.mm: Added.
1223         (WebNetscapePluginEventHandlerCocoa::WebNetscapePluginEventHandlerCocoa):
1224         (WebNetscapePluginEventHandlerCocoa::drawRect):
1225         (WebNetscapePluginEventHandlerCocoa::mouseDown):
1226         (WebNetscapePluginEventHandlerCocoa::mouseDragged):
1227         (WebNetscapePluginEventHandlerCocoa::mouseEntered):
1228         (WebNetscapePluginEventHandlerCocoa::mouseExited):
1229         (WebNetscapePluginEventHandlerCocoa::mouseMoved):
1230         (WebNetscapePluginEventHandlerCocoa::mouseUp):
1231         (WebNetscapePluginEventHandlerCocoa::scrollWheel):
1232         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
1233         (WebNetscapePluginEventHandlerCocoa::keyDown):
1234         (WebNetscapePluginEventHandlerCocoa::keyUp):
1235         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1236         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1237         (WebNetscapePluginEventHandlerCocoa::windowFocusChanged):
1238         (WebNetscapePluginEventHandlerCocoa::focusChanged):
1239         (WebNetscapePluginEventHandlerCocoa::platformWindow):
1240         (WebNetscapePluginEventHandlerCocoa::sendEvent):
1241         * Plugins/WebNetscapePluginPackage.m:
1242         (-[WebNetscapePluginPackage load]):
1243         * Plugins/npapi.m:
1244         (NPN_ScheduleTimer):
1245         (NPN_UnscheduleTimer):
1246         * Plugins/npfunctions.h:
1247
1248 2008-04-30  Brady Eidson  <beidson@apple.com>
1249
1250         Fix my WebPreferences revert check-in
1251
1252         * WebView/WebView.mm:
1253         (-[WebView _preferencesChangedNotification:]):
1254
1255 2008-04-30  Brady Eidson  <beidson@apple.com>
1256
1257         Rubberstamped by John Sullivan
1258
1259         Revert the remainder of my original preferences changes from last week.
1260         They caused a massive PLT regression (too many notifications being sent out
1261         or listened to that weren't previously) and it's not in my schedule to refine
1262         the preferences code instead of working on my feature!
1263
1264         * WebView/WebView.mm:
1265         (-[WebView _updateSettingsFromPreferences:]):
1266         (-[WebView _commonInitializationWithFrameName:groupName:]):
1267
1268 2008-04-30  Anders Carlsson  <andersca@apple.com>
1269
1270         Fix the 64-bit build.
1271         
1272         * Plugins/WebNetscapePluginEventHandler.h:
1273         * Plugins/WebNetscapePluginEventHandler.mm:
1274         * Plugins/WebNetscapePluginEventHandlerCarbon.h:
1275         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1276
1277 2008-04-29  David D. Kilzer  <ddkilzer@apple.com>
1278
1279         BUILD FIX for Release build.
1280
1281         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1282         (WebNetscapePluginEventHandlerCarbon::drawRect): Declare acceptedEvent
1283         separately so the compiler doesn't complain about an unused variable.
1284         (WebNetscapePluginEventHandlerCarbon::TSMEventHandler): Ditto.
1285
1286 2008-04-29  Anders Carlsson  <andersca@apple.com>
1287
1288         Reviewed by Adam.
1289
1290         Refactor the Carbon event handling code out into a separate class in preparation for adding
1291         the Cocoa event handling code.
1292         
1293         * Plugins/WebBaseNetscapePluginView.h:
1294         * Plugins/WebBaseNetscapePluginView.mm:
1295         (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]):
1296         (-[WebBaseNetscapePluginView sendActivateEvent:]):
1297         (-[WebBaseNetscapePluginView sendDrawRectEvent:]):
1298         (-[WebBaseNetscapePluginView stopTimers]):
1299         (-[WebBaseNetscapePluginView restartTimers]):
1300         (-[WebBaseNetscapePluginView setHasFocus:]):
1301         (-[WebBaseNetscapePluginView mouseDown:]):
1302         (-[WebBaseNetscapePluginView mouseUp:]):
1303         (-[WebBaseNetscapePluginView mouseEntered:]):
1304         (-[WebBaseNetscapePluginView mouseExited:]):
1305         (-[WebBaseNetscapePluginView mouseDragged:]):
1306         (-[WebBaseNetscapePluginView keyUp:]):
1307         (-[WebBaseNetscapePluginView keyDown:]):
1308         (-[WebBaseNetscapePluginView cut:]):
1309         (-[WebBaseNetscapePluginView copy:]):
1310         (-[WebBaseNetscapePluginView paste:]):
1311         (-[WebBaseNetscapePluginView selectAll:]):
1312         (-[WebBaseNetscapePluginView start]):
1313         (-[WebBaseNetscapePluginView stop]):
1314         (-[WebBaseNetscapePluginView fini]):
1315         (-[WebBaseNetscapePluginView drawRect:]):
1316         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
1317         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
1318         (-[WebBaseNetscapePluginView windowBecameKey:]):
1319         (-[WebBaseNetscapePluginView windowResignedKey:]):
1320         (-[WebBaseNetscapePluginView windowDidMiniaturize:]):
1321         (-[WebBaseNetscapePluginView windowDidDeminiaturize:]):
1322         (-[WebBaseNetscapePluginView loginWindowDidSwitchFromUser:]):
1323         (-[WebBaseNetscapePluginView loginWindowDidSwitchToUser:]):
1324         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1325         (-[WebBaseNetscapePluginView _viewHasMoved]):
1326         * Plugins/WebBaseNetscapePluginViewInternal.h:
1327         * Plugins/WebNetscapePluginEmbeddedView.h:
1328         * Plugins/WebNetscapePluginEventHandler.h: Added.
1329         (WebNetscapePluginEventHandler::~WebNetscapePluginEventHandler):
1330         (WebNetscapePluginEventHandler::currentEventIsUserGesture):
1331         (WebNetscapePluginEventHandler::WebNetscapePluginEventHandler):
1332         * Plugins/WebNetscapePluginEventHandler.mm: Added.
1333         (WebNetscapePluginEventHandler::create):
1334         * Plugins/WebNetscapePluginEventHandlerCarbon.h: Added.
1335         * Plugins/WebNetscapePluginEventHandlerCarbon.mm: Added.
1336         (WebNetscapePluginEventHandlerCarbon::WebNetscapePluginEventHandlerCarbon):
1337         (getCarbonEvent):
1338         (modifiersForEvent):
1339         (WebNetscapePluginEventHandlerCarbon::sendNullEvent):
1340         (WebNetscapePluginEventHandlerCarbon::drawRect):
1341         (WebNetscapePluginEventHandlerCarbon::mouseDown):
1342         (WebNetscapePluginEventHandlerCarbon::mouseUp):
1343         (WebNetscapePluginEventHandlerCarbon::mouseEntered):
1344         (WebNetscapePluginEventHandlerCarbon::mouseExited):
1345         (WebNetscapePluginEventHandlerCarbon::mouseDragged):
1346         (WebNetscapePluginEventHandlerCarbon::mouseMoved):
1347         (WebNetscapePluginEventHandlerCarbon::keyDown):
1348         (keyMessageForEvent):
1349         (WebNetscapePluginEventHandlerCarbon::keyUp):
1350         (WebNetscapePluginEventHandlerCarbon::focusChanged):
1351         (WebNetscapePluginEventHandlerCarbon::windowFocusChanged):
1352         (WebNetscapePluginEventHandlerCarbon::TSMEventHandler):
1353         (WebNetscapePluginEventHandlerCarbon::installKeyEventHandler):
1354         (WebNetscapePluginEventHandlerCarbon::removeKeyEventHandler):
1355         (WebNetscapePluginEventHandlerCarbon::nullEventTimerFired):
1356         (WebNetscapePluginEventHandlerCarbon::startTimers):
1357         (WebNetscapePluginEventHandlerCarbon::stopTimers):
1358         (WebNetscapePluginEventHandlerCarbon::sendEvent):
1359
1360 2008-04-29  Mark Rowe  <mrowe@apple.com>
1361
1362         Reviewed by David Harrison.
1363
1364         Ensure that WebDynamicScrollBarsView defines WebCoreScrollbarAlwaysOn to keep Mail building.
1365
1366         * WebKit.exp:
1367         * WebView/WebDynamicScrollBarsView.h:
1368         * WebView/WebDynamicScrollBarsView.m:
1369
1370 2008-04-29  Greg Bolsinga  <bolsinga@apple.com>
1371
1372         Reviewed by Darin.
1373
1374         Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)
1375
1376         * WebCoreSupport/WebChromeClient.h:
1377         * WebCoreSupport/WebChromeClient.mm:
1378         * WebView/WebClipView.m:
1379         (-[WebClipView scrollWheel:]):
1380         * WebView/WebHTMLView.mm:
1381         (-[WebHTMLView addMouseMovedObserver]):
1382         (-[WebHTMLView removeMouseMovedObserver]):
1383         (-[WebHTMLView acceptsFirstMouse:]):
1384         * WebView/WebUIDelegatePrivate.h:
1385         * WebView/WebView.mm:
1386         (-[WebViewPrivate init]):
1387         * WebView/WebViewPrivate.h:
1388
1389 2008-04-28  Rob Buis  <buis@kde.org>
1390
1391         Reviewed by Maciej.
1392
1393         Build fix for Tiger.
1394
1395         * WebView/WebView.mm:
1396         (WebKitInitializeApplicationCachePathIfNecessary):
1397
1398 2008-04-28  Adele Peterson  <adele@apple.com>
1399
1400         Reviewed by Dan Bernstein, Tim Hatcher, Anders Carlsson, and Darin Adler.
1401
1402         WebKit part of fix for <rdar://problem/3709505>
1403         Safari should have a way to upload bundles from the file upload control (as zip)
1404
1405         Added UIDelegate methods to let the application handle generating replacement files for uploads.
1406         In this case, Safari will create archived files for bundles so they can be uploaded properly.
1407
1408         * DefaultDelegates/WebDefaultUIDelegate.m:
1409         (-[WebDefaultUIDelegate webView:shouldReplaceUploadFile:usingGeneratedFilename:]):
1410         (-[WebDefaultUIDelegate webView:generateReplacementFile:]):
1411         * WebCoreSupport/WebChromeClient.h:
1412         * WebCoreSupport/WebChromeClient.mm:
1413         (WebChromeClient::shouldReplaceWithGeneratedFileForUpload):
1414         (WebChromeClient::generateReplacementFile):
1415         * WebView/WebUIDelegatePrivate.h:
1416
1417 2008-04-28  Anders Carlsson  <andersca@apple.com>
1418
1419         Reviewed by Sam, Mark, Adele and Darin.
1420
1421         Initialize the application cache path.
1422         
1423         * WebView/WebView.mm:
1424         (WebKitInitializeApplicationCachePathIfNecessary):
1425         (-[WebView _commonInitializationWithFrameName:groupName:]):
1426
1427 2008-04-28  Alice Liu  <alice.liu@apple.com>
1428
1429         Reviewed by Darin.
1430
1431         Fix <rdar://problem/4911289> Add tabindex property to all children 
1432         of HTMLElement (7138)
1433         http://bugs.webkit.org/show_bug.cgi?id=7138
1434
1435         * MigrateHeaders.make:
1436         Removing DOMHTMLLabelElementPrivate.h and DOMHTMLLegendElementPrivate.h
1437         because now that focus() has been moved to DOMHTMLElement.h, these
1438         files are no longer needed.
1439
1440 2008-04-25  Alexey Proskuryakov  <ap@webkit.org>
1441
1442         Reviewed by Darin.
1443
1444         Fix run-webkit-tests --threading
1445         and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
1446         Proxy server issue in Sunday's Nightly
1447
1448         * WebView/WebView.mm: (-[WebViewPrivate init]): Initialize threading. Previously, this was
1449         only done from icon database code, which is not robust enough.
1450
1451 2008-04-20 Adam Barth <hk9565@gmail.com>
1452
1453         Reviewed by Adam Roben and Sam Weinig.
1454
1455         Updated WebSecurityOrigin to match new SecurityOrigin API.
1456
1457         Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
1458
1459         * Storage/WebSecurityOrigin.mm:
1460         (-[WebSecurityOrigin host]):
1461         (-[WebSecurityOrigin domain]):
1462         * Storage/WebSecurityOriginPrivate.h:
1463
1464 2008-04-25  Mark Rowe  <mrowe@apple.com>
1465
1466         Rubber-stamped by Sam Weinig.
1467
1468         Add some content to an empty ICU header file to prevent verification errors.
1469
1470         * icu/unicode/utf_old.h:
1471
1472 2008-04-25  Anders Carlsson  <andersca@apple.com>
1473
1474         Reviewed by Sam.
1475
1476         Add offlineWebApplicationCacheEnabled preference.
1477         
1478         * WebView/WebPreferenceKeysPrivate.h:
1479         * WebView/WebPreferences.m:
1480         (+[WebPreferences initialize]):
1481         (-[WebPreferences offlineWebApplicationCacheEnabled]):
1482         (-[WebPreferences setOfflineWebApplicationCacheEnabled:]):
1483         * WebView/WebPreferencesPrivate.h:
1484         * WebView/WebView.mm:
1485         (-[WebView _updateSettingsFromPreferences:]):
1486
1487 2008-04-24  Mark Rowe  <mrowe@apple.com>
1488
1489         Reviewed by Sam Weinig.
1490
1491         Remove code for calculating the glyph cache size.
1492
1493         * WebCoreSupport/WebSystemInterface.m:
1494         (InitWebCoreSystemInterface): Remove unused symbol.
1495
1496 2008-04-24  Mark Rowe  <mrowe@apple.com>
1497
1498         Reviewed by Sam Weinig.
1499
1500         Add a definition of BUILDING_ON_LEOPARD to complement BUILDING_ON_TIGER.
1501
1502         * WebKitPrefix.h:
1503
1504 2008-04-24  Brady Eidson  <beidson@apple.com>
1505
1506         Reviewed by Darin
1507
1508         Fix layout test regressions from my earlier preferences/settings tweak.
1509
1510         * WebView/WebView.mm:
1511         (-[WebView _commonInitializationWithFrameName:groupName:]): Even if we're not posting
1512           the notification to update the settings, each WebView still needs to register for the
1513           notification - restore that behavior.
1514
1515 2008-04-24  Dan Bernstein  <mitz@apple.com>
1516
1517         Reviewed by Darin Adler.
1518
1519         - preparation for https://bugs.webkit.org/show_bug.cgi?id=3729
1520           <rdar://problem/4036353> REGRESSION: arrow keys move insertion bar backwards in RTL text
1521
1522         * WebView/WebFrame.mm:
1523         (-[WebFrame _caretRectAtNode:offset:affinity:]): Changed to use
1524         VisiblePosition::caretRect() instead of the RenderObject method which
1525         was removed.
1526
1527 2008-04-24  Brady Eidson  <beidson@apple.com>
1528
1529         Reviewed by Darin
1530
1531         Rework the Settings population again.
1532
1533         * WebView/WebView.mm:
1534         (-[WebView _updateSettingsFromPreferences:]): This method is called both from _preferencesChangedNotification
1535           and directly from WebView's common init function.
1536         (-[WebView _preferencesChangedNotification:]):
1537         (-[WebView _commonInitializationWithFrameName:groupName:]): Call _updateSettingsFromPreferences immediately
1538           after creating the new Page
1539
1540 2008-04-24  Darin Adler  <darin@apple.com>
1541
1542         Reviewed by Geoff.
1543
1544         - fix crash in regression test where we'd ask a frame for a user agent string
1545           after the WebView was already closed
1546
1547         * WebCoreSupport/WebFrameLoaderClient.mm:
1548         (WebFrameLoaderClient::userAgent): Assert that the WebView is not nil. Also
1549         added some code to prevent the crash in release builds if this problem happens
1550         again.
1551
1552 2008-04-24  Anders Carlsson  <andersca@apple.com>
1553
1554         Reviewed by Sam.
1555
1556         Change some String arguments to be const references instead.
1557
1558         * WebCoreSupport/WebEditorClient.h:
1559         * WebCoreSupport/WebEditorClient.mm:
1560         (WebEditorClient::shouldInsertText):
1561
1562 2008-04-24  John Sullivan  <sullivan@apple.com>
1563
1564         Mac build fix
1565         
1566         * WebCoreSupport/WebViewFactory.mm:
1567         (-[WebViewFactory AXButtonActionVerb]):
1568         implement this method using the text in WebCoreLocalizedStrings.cpp
1569         (-[WebViewFactory AXRadioButtonActionVerb]):
1570         ditto
1571         (-[WebViewFactory AXTextFieldActionVerb]):
1572         ditto
1573         (-[WebViewFactory AXCheckedCheckBoxActionVerb]):
1574         ditto
1575         (-[WebViewFactory AXUncheckedCheckBoxActionVerb]):
1576         ditto
1577         (-[WebViewFactory AXLinkActionVerb]):
1578         ditto
1579
1580 2008-04-23  Brady Eidson  <beidson@apple.com>
1581
1582         Reviewed by Sam Weinig
1583
1584         In some current work I noticed that when a new Page is created, it is possible that it requires info from its Settings
1585         object before the Settings object is initialized.  It seems quite prudent to post the preferences changed notification,
1586         thereby populating the Settings object, immediately after the Page is created.
1587
1588         * WebView/WebView.mm:
1589         (-[WebView _commonInitializationWithFrameName:groupName:]): Post the notification right after the Page is created
1590
1591 2008-04-24  John Sullivan  <sullivan@apple.com>
1592
1593         Reviewed by Jess
1594         
1595         - fixed <rdar://problem/5886655> JavaScript input panel automatic resizing doesn't work right with HiDPI
1596
1597         * Misc/WebNSControlExtras.m:
1598         (-[NSControl sizeToFitAndAdjustWindowHeight]):
1599         deploy userSpaceScaleFactor when using view distances on the window
1600
1601 2008-04-22  Anders Carlsson  <andersca@apple.com>
1602
1603         Reviewed by Darin.
1604
1605         Add NPN_Construct and NPN_PluginThreadAsyncCall declarations.
1606         
1607         * Plugins/npfunctions.h:
1608
1609 2008-04-20  Matt Lilek  <webkit@mattlilek.com>
1610
1611         Mysteriously reviewed by mitz|away.
1612
1613         Bug 18111: Closing a tab while dragging crashes Safari
1614         https://bugs.webkit.org/show_bug.cgi?id=18111
1615
1616         Null check the page before handling drag events.
1617
1618         * WebView/WebView.mm:
1619         (-[WebView draggingUpdated:]):
1620         (-[WebView draggingExited:]):
1621
1622 2008-04-19  Brady Eidson  <beidson@apple.com>
1623
1624         Reviewed by Tim Hatcher
1625
1626         Add a WebPreference for the path of the local storage persistent store.
1627
1628         * WebView/WebPreferenceKeysPrivate.h:
1629
1630         * WebView/WebPreferences.m:
1631         (-[WebPreferences _localStorageDatabasePath]):
1632         (-[WebPreferences _setLocalStorageDatabasePath:]):
1633         * WebView/WebPreferencesPrivate.h:
1634
1635         * WebView/WebView.mm:
1636         (-[WebView _preferencesChangedNotification:]):
1637
1638 2008-04-18  Brady Eidson  <beidson@apple.com>
1639
1640         Reviewed by Sam Weinig
1641
1642         Don't clear the PageGroup on _close, as the WebCore::Page destructor already does this.
1643         No reason to do the work twice...
1644
1645         * WebView/WebView.mm:
1646         (-[WebView _close]):
1647
1648 2008-04-17  Eric Seidel  <eric@webkit.org>
1649
1650         Reviewed by beth.
1651
1652         Rename Frame::renderer() to contentRenderer() and fix uses.
1653
1654         * Misc/WebCoreStatistics.mm:
1655         * WebView/WebRenderNode.mm:
1656         (-[WebRenderNode initWithWebFrameView:]):
1657
1658 2008-04-17  Jon Honeycutt  <jhoneycutt@apple.com>
1659
1660         Reviewed by mrowe.
1661
1662         * WebView/WebFrame.mm: Remove temporary build fix.
1663
1664 2008-04-17  Mark Rowe  <mrowe@apple.com>
1665
1666         Reviewed by Dan Bernstein.
1667
1668         Fix <rdar://problem/5863552> REGRESSION (r30741): Attachments don't appear in the iChat message window after sending
1669
1670         The order of arguments to -[NSDictionary initWithObjects:andKeys:] had been transposed accidentally during refactoring.
1671
1672         * WebCoreSupport/WebFrameLoaderClient.mm:
1673         (WebFrameLoaderClient::createPlugin): Pass the arguments in the correct order.
1674
1675 2008-04-17  Mark Rowe  <mrowe@apple.com>
1676
1677         Rubber-stamped by Dan Bernstein.
1678
1679         Fix the Mac build.
1680
1681         * WebView/WebFrame.mm: Define HAVE_ACCESSIBILITY before including AccessibilityObject.h and AXObjectCache.h to get things building
1682         for now.  This comes from config.h in WebCore but we don't have an equivalent in WebKit so we'll need to work out the correct place
1683         for this to live going forward.
1684
1685 2008-04-15  Kevin Decker  <kdecker@apple.com>
1686
1687         Reviewed by Anders.
1688
1689         <rdar://problem/5412759> CrashTracer: [USER] 22 crashes in Safari at com.apple.quicktime.webplugin: NPN_SetValue + 15403
1690         
1691         In certain situations, code in WebBasePluginPackage would load a plug-in only for the explicit reason of asking it to create a
1692         preference file, but wouldn't actually unload the bundle. This created problems for the QuickTime WebKit plug-in by unloading
1693         a bundle out from underneath itself.
1694
1695         * Plugins/WebBasePluginPackage.h: Added unload method.
1696         * Plugins/WebBasePluginPackage.m:
1697         (-[WebBasePluginPackage unload]): Added new method. Currently, only Netscape plug-ins support unload.
1698         (-[WebBasePluginPackage pListForPath:createFile:]): Added a call to unload.
1699         * Plugins/WebNetscapePluginPackage.m:
1700         (-[WebNetscapePluginPackage unload]): Added.
1701
1702 2008-04-15  Anders Carlsson  <andersca@apple.com>
1703
1704         Reviewed by Adam.
1705
1706         Add ENABLE_OFFLINE_WEB_APPLICATIONS to FEATURE_DEFINES.
1707
1708         * Configurations/WebKit.xcconfig:
1709
1710 2008-04-15  Brady Eidson  <beidson@apple.com>
1711
1712         Reviewed by John Sullivan
1713
1714         Do a more complete job adding the "WebArchiveDebugMode" pref
1715
1716         * WebView/WebPreferences.m: Add both getter *and* setter
1717         (-[WebPreferences webArchiveDebugModeEnabled]):
1718         (-[WebPreferences setWebArchiveDebugModeEnabled:]):
1719         * WebView/WebPreferencesPrivate.h:
1720
1721         * WebView/WebView.mm:
1722         (-[WebView _preferencesChangedNotification:]): Call the renamed getter
1723
1724 2008-04-14  Brady Eidson  <beidson@apple.com>
1725
1726         Reviewed by Anders
1727
1728         Add a hidden pref to debug WebArchive loading.  With this pref on, when loading a WebArchive,
1729         if the resource isn't in the ArchiveResourceCollection, the loader will not fall back to the 
1730         network and will instead fail the load as "cancelled."
1731
1732         * WebView/WebPreferenceKeysPrivate.h:
1733
1734         * WebView/WebPreferences.m:
1735         (+[WebPreferences initialize]):
1736         (-[WebPreferences _webArchiveDebugModeEnabled]):
1737         * WebView/WebPreferencesPrivate.h:
1738
1739         * WebView/WebView.mm:
1740         (-[WebView _preferencesChangedNotification:]):
1741
1742 2008-04-11  David Hyatt  <hyatt@apple.com>
1743
1744         Rename CachedResource ref/deref methods to addClient/removeClient.
1745
1746         Reviewed by olliej
1747
1748         * WebView/WebHTMLView.mm:
1749         (-[WebHTMLViewPrivate dealloc]):
1750         (-[WebHTMLViewPrivate finalize]):
1751         (-[WebHTMLViewPrivate clear]):
1752         (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
1753
1754 2008-04-07  Brady Eidson  <beidson@apple.com>
1755
1756         Add "ENABLE_DOM_STORAGE" to keep in sync with the rest of the project
1757
1758         * Configurations/WebKit.xcconfig:
1759
1760 2008-04-04  Adam Roben  <aroben@apple.com>
1761
1762         Use WebCore's ICU headers instead of our own copy
1763
1764         Rubberstamped by Tim Hatcher.
1765
1766         * Configurations/WebKit.xcconfig: Pick up ICU headers from WebCore's
1767         PrivateHeaders.
1768
1769 2008-04-04  Adam Roben  <aroben@apple.com>
1770
1771         Fix <rdar://problem/5804776> Would like to use WebCore's
1772         ForwardingHeaders in WebKit without manually creating copies
1773
1774         Patch by Tim Hatcher, typed by me.
1775
1776         * Configurations/WebKit.xcconfig: Use the copy of ForwardingHeaders in
1777         WebCore's PrivateHeaders instead of our own copy.
1778
1779 2008-04-04  Ada Chan  <adachan@apple.com>
1780
1781         Now we pass width and height directly as integers to format
1782         the window title for a standalone image.
1783
1784         Reviewed by Dan.
1785
1786         * WebCoreSupport/WebViewFactory.mm:
1787         (-[WebViewFactory imageTitleForFilename:width:height:]):
1788
1789 2008-04-03  Nicholas Shanks  <webkit@nickshanks.com>
1790
1791         Updated by Dan Bernstein. Reviewed by Dave Hyatt.
1792
1793         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
1794           font-weight does not properly support graded weights
1795
1796         * WebView/WebHTMLView.mm:
1797         (-[WebHTMLView _styleFromFontAttributes:]):
1798         (-[WebHTMLView _originalFontB]):
1799         (-[WebHTMLView _addToStyle:fontA:fontB:]):
1800
1801 2008-04-02  Mark Rowe  <mrowe@apple.com>
1802
1803         Reviewed by Oliver Hunt.
1804
1805         Ensure that debug symbols are generated for x86_64 and ppc64 builds.
1806
1807         * Configurations/Base.xcconfig:
1808
1809 2008-03-31  Alice Liu  <alice.liu@apple.com>
1810
1811         Reviewed by Darin.
1812
1813         * WebView/WebFrame.mm:
1814         (-[WebFrame _accessibilityTree]):
1815         The syntax for fetching an object from the AXObjectCache changed slightly
1816
1817 2008-03-31  Brady Eidson  <beidson@apple.com>
1818
1819         Reviewed by Jon Honeycutt
1820         
1821         Move a WebArchive loading check into WebCore
1822
1823         * WebView/WebHTMLRepresentation.mm:
1824         (-[WebHTMLRepresentation receivedData:withDataSource:]): Don't check "isDisplayingWebArchive" as WebCore is now
1825           responsible for checking that state
1826
1827 2008-03-31  Brady Eidson  <beidson@apple.com>
1828
1829         Reviewed by Darin and Mitz's rubber stamp
1830
1831         Remove dataForArchivedSelection(WebCore::Frame*) from the EditorClient - only usage is now directly in WebCore
1832
1833         * WebCoreSupport/WebEditorClient.mm:
1834         * WebCoreSupport/WebEditorClient.h:
1835
1836 2008-03-28  Brady Eidson  <beidson@apple.com>
1837
1838         Rubberstamped by Darin Adler
1839
1840         Remove WebArchiver.h/mm
1841
1842         * WebView/WebArchiver.h: Removed.
1843         * WebView/WebArchiver.mm: Removed.
1844
1845         * DOM/WebDOMOperations.mm:
1846         * WebCoreSupport/WebDragClient.mm:
1847         * WebCoreSupport/WebEditorClient.mm:
1848         * WebView/WebDataSource.mm:
1849         * WebView/WebHTMLView.mm:
1850
1851 2008-03-28  Brady Eidson  <beidson@apple.com>
1852
1853         Reviewed by Darin Adler
1854
1855         Now that WebCore can create archives from a frame selection directly, we don't need it in WebArchiver anymore
1856
1857         * WebCoreSupport/WebEditorClient.mm:
1858         (WebEditorClient::dataForArchivedSelection):
1859
1860         * WebView/WebArchiver.h: Nuke archiveSelectionInFrame, as there are no remaining users
1861         * WebView/WebArchiver.mm: Ditto
1862
1863         * WebView/WebHTMLView.mm:
1864         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1865
1866 2008-03-28  Brady Eidson  <beidson@apple.com>
1867
1868         Reviewed by Darin Adler
1869
1870         More Kit->Core WebArchive changes.
1871
1872         Create an archive from the current selection in a frame
1873
1874         * WebView/WebArchiver.mm: Remove one more *undeclared* method, the last method will drop off
1875           easily in a followup
1876
1877 2008-03-28  Brady Eidson  <beidson@apple.com>
1878
1879         Reviewed by Sam Weinig
1880
1881         WebArchive saga continues - Can now make archives from ranges in WebCore
1882
1883         * DOM/WebDOMOperations.mm:
1884         (-[DOMRange webArchive]):
1885         (-[DOMRange markupString]):
1886
1887         * WebView/WebArchiver.h: Remove newly obsolete [WebArchiver archiveRange:]
1888         * WebView/WebArchiver.mm:
1889
1890 2008-03-28  Brady Eidson  <beidson@apple.com>
1891
1892         Reviewed by Sam Weinig
1893
1894         More Kit->Core webarchive code movement
1895
1896         * DOM/WebDOMOperations.mm:
1897         (-[DOMNode markupString]): Call createFullMarkup() instead
1898
1899         * WebView/WebFrame.mm: Remove obsolete _markupStringFromNode
1900         * WebView/WebFrameInternal.h: Ditto
1901
1902 2008-03-28  Brady Eidson  <beidson@apple.com>
1903
1904         Reviewed by Sam Weinig
1905
1906         Fold [WebArchiver archiveFrame:] into WebDataSource - the last remaining caller
1907
1908         * WebView/WebArchiver.h:
1909         * WebView/WebArchiver.mm:
1910         * WebView/WebDataSource.mm:
1911         (-[WebDataSource webArchive]):
1912
1913 2008-03-28  Brady Eidson  <beidson@apple.com>
1914
1915         Reviewed by Sam Weinig
1916
1917         Remove unused [WebArchiver archiveNode:], made obsolete in r31400
1918
1919         * WebView/WebArchiver.h:
1920         * WebView/WebArchiver.mm:
1921
1922 2008-03-28  Brady Eidson  <beidson@apple.com>
1923
1924         Reviewed by Darin
1925
1926         "Yet another transitional step" to empty out WebKit-based code for archiving.
1927
1928         With this patch, the key operation of "Creating a WebArchive rooted at a single Node" takes place
1929         entirely within WebCore, and opens the door to saving WebArchives on Windows.
1930
1931         * DOM/WebDOMOperations.mm:
1932         * WebView/WebArchiver.mm:
1933         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
1934
1935 2008-03-27  Brady Eidson  <beidson@apple.com>
1936
1937         Reviewed by Adam Roben
1938
1939         Move [WebDataSource mainResource] and [WebDataSource subresources] down into WebCore
1940         as the push to core-ify WebArchives continues.
1941
1942         This patch also introduces a behavior change.  WebCore allows ArchiveResources with null or empty data.  
1943         WebKit has had the inexplicable distinction of allowing empty Data in a WebResource, but not null.  
1944         Since WebResource is API, I decided to leave it be to avoid a behavior change.  But internally created resources 
1945         (as in "while archiving a page") are accepting of null or empty data.
1946
1947         This actually fixes a bug where not all subframes are archived, and resulted in a layout test change. 
1948
1949         * WebView/WebDataSource.mm:
1950         (-[WebDataSource mainResource]): Call DocumentLoader implementation
1951         (-[WebDataSource subresources]): Ditto
1952         * WebView/WebFrame.mm: Remove [WebFrame _getAllResourceDatas:andResponses:] as its only caller is obsolete
1953         * WebView/WebFrameInternal.h:
1954
1955 2008-03-27  Brady Eidson  <beidson@apple.com>
1956
1957         Reviewed by Adam
1958
1959         Change the "init from WebCore resource" version of WebResource to take PassRefPtr
1960         (more efficient)
1961
1962         * WebView/WebResource.mm:
1963         (-[WebResource _initWithCoreResource:]):
1964         * WebView/WebResourceInternal.h:
1965
1966 2008-03-26  Brady Eidson  <beidson@apple.com>
1967
1968         Build fix - accidentally checked in this change which was work in progress
1969
1970         * DOM/WebDOMOperations.mm:
1971
1972 2008-03-26  Brady Eidson  <beidson@apple.com>
1973
1974         Reviewed by Darin
1975
1976         When we create a WebArchive, we walk every node from some starting point, asking each node
1977         along the way "What are your subresource URLs?"
1978
1979         That logic is currently in DOMNode in WebKitMac - this patch moves that ability down into
1980         WebCore::Node
1981
1982         * DOM/WebDOMOperations.mm:
1983         (-[DOMNode _subresourceURLs]): One generic DOMNode method can now handle all DOMNodes by
1984           calling into individual WebCore::Node implementations
1985         * DOM/WebDOMOperationsPrivate.h:
1986
1987 2008-03-26  Brady Eidson  <beidson@apple.com>
1988
1989         Reviewed by Mark Rowe
1990
1991         Part of the continued push to move WebArchive-related code down to WebCore, this
1992         moves [WebDataSource subresourceForURL:] down to DocumentLoader->subresource()
1993
1994         * WebView/WebDataSource.mm:
1995         (-[WebDataSource subresourceForURL:]): Call through to the DocumentLoader 
1996
1997         * WebView/WebFrame.mm: Remove [WebFrame _getData:andResponse:forURL:], as its only use
1998           has now been ported down to WebCore
1999         * WebView/WebFrameInternal.h:
2000
2001 2008-03-26  Mark Rowe  <mrowe@apple.com>
2002
2003         Rubber-stamped by Brady Eidson.
2004
2005         Update FEATURE_DEFINES to be consistent with the other locations in which it is defined.
2006
2007         * Configurations/WebKit.xcconfig:
2008
2009 2008-03-26  Mark Rowe  <mrowe@apple.com>
2010
2011         Reviewed by David Hyatt.
2012
2013         Make the Ahem font antialias correctly on Acid3 on Tiger.
2014
2015         * WebCoreSupport/WebSystemInterface.m:
2016         (InitWebCoreSystemInterface):
2017
2018 2008-03-26  Mark Rowe  <mrowe@apple.com>
2019
2020         Fix the Mac build.
2021
2022         * MigrateHeaders.make: Copy the newly generated header into the right place.
2023
2024 2008-03-25  Brady Eidson  <beidson@apple.com>
2025
2026         Reviewed by Beth Dakin
2027
2028         Remove entirely unused internal method
2029
2030         * WebView/WebArchiver.h:
2031         * WebView/WebArchiver.mm:
2032
2033 2008-03-25  Brady Eidson  <beidson@apple.com>
2034
2035         Reviewed by Adam Roben
2036
2037         <rdar://problem/5819308> - View Source is empty when view webarchives
2038
2039         * WebCore.base.exp:
2040         * loader/DocumentLoader.cpp:
2041         (WebCore::DocumentLoader::setParsedArchiveData):
2042         (WebCore::DocumentLoader::parsedArchiveData):
2043         * loader/DocumentLoader.h:
2044
2045         * loader/FrameLoader.cpp:
2046         (WebCore::FrameLoader::finishedLoadingDocument): Set the archive's MainResource data as the parsedArchiveData
2047           in the DocumentLoader
2048
2049 2008-03-25  Dan Bernstein  <mitz@apple.com>
2050
2051         Reviewed by Darin Adler.
2052
2053         - fix http://bugs.webkit.org/show_bug.cgi?id=17933
2054           Reopen All Windows From Last Session causes crash
2055
2056         * WebView/WebHTMLView.mm:
2057         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Added null
2058         check.
2059
2060 2008-03-25  Brady Eidson  <beidson@apple.com>
2061
2062         Reviewed by Jon Honeycutt's rubberstamp
2063
2064         Fix a leak with the new WebArchive setup
2065
2066         * WebView/WebArchive.mm:
2067         (-[WebArchivePrivate setCoreArchive:]): Deref() the old WebArchive
2068
2069 2008-03-25  Brady Eidson  <beidson@apple.com>
2070
2071         Reviewed by Darin
2072
2073         Removed the concept of "pending archive resources" and the "archive resources delivery timer"
2074         from WebFrameLoaderClient, as those concepts have been pushed into WebCore
2075
2076         * WebCoreSupport/WebFrameLoaderClient.h:
2077         * WebCoreSupport/WebFrameLoaderClient.mm:
2078         (WebFrameLoaderClient::WebFrameLoaderClient):
2079
2080 2008-03-25  Brady Eidson  <beidson@apple.com>
2081
2082         Reviewed by Darin
2083
2084         Remove newly obsolete FrameLoaderClient methods
2085
2086         * WebCoreSupport/WebFrameLoaderClient.h:
2087         * WebCoreSupport/WebFrameLoaderClient.mm:
2088
2089 2008-03-25  Brady Eidson  <beidson@apple.com>
2090
2091         Release build fix
2092
2093         * WebView/WebArchive.mm:
2094         (-[WebArchive subresources]):
2095         (-[WebArchive subframeArchives]):
2096
2097 2008-03-25  Brady Eidson  <beidson@apple.com>
2098
2099         Reviewed by Darin
2100
2101         <rdar://problem/4516169> - Support WebArchives on Windows
2102         And paves the way for many future WebArchive bug fixes and enhancements
2103
2104         This change moves most of the real workhorse code about WebArchives into WebCore.  It maintains 
2105         1-to-1 relationships between a few objects in WebCore and WebKit.  Such as:
2106          * WebArchive <-> LegacyWebArchive
2107          * WebResource <-> ArchiveResource
2108          * WebUnarchivingState <-> ArchiveResourceCollection
2109  
2110         The other biggest changes involve many FrameLoaderClient methods that existed soley for WebArchives 
2111         and now exist in WebCore
2112
2113         * WebCoreSupport/WebFrameLoaderClient.mm:
2114         (WebFrameLoaderClient::clearUnarchivingState): Emptied - to be removed in a followup patch
2115         (WebFrameLoaderClient::finalSetupForReplace):
2116         (WebFrameLoaderClient::setDefersLoading):
2117         (WebFrameLoaderClient::willUseArchive):
2118         (WebFrameLoaderClient::isArchiveLoadPending):
2119         (WebFrameLoaderClient::cancelPendingArchiveLoad):
2120         (WebFrameLoaderClient::clearArchivedResources):
2121         (WebFrameLoaderClient::createFrame):
2122
2123         * WebView/WebArchive.mm:
2124         (+[WebArchivePrivate initialize]):
2125         (-[WebArchivePrivate init]):
2126         (-[WebArchivePrivate initWithCoreArchive:]):
2127         (-[WebArchivePrivate coreArchive]):
2128         (-[WebArchivePrivate setCoreArchive:]):
2129         (-[WebArchivePrivate dealloc]):
2130         (-[WebArchivePrivate finalize]):
2131         (-[WebArchive init]):
2132         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2133         (-[WebArchive initWithData:]):
2134         (-[WebArchive initWithCoder:]):
2135         (-[WebArchive encodeWithCoder:]):
2136         (-[WebArchive mainResource]):
2137         (-[WebArchive subresources]):
2138         (-[WebArchive subframeArchives]):
2139         (-[WebArchive data]):
2140         (-[WebArchive _initWithCoreLegacyWebArchive:WebCore::]):
2141         (-[WebArchive WebCore::]):
2142         * WebView/WebArchiveInternal.h: Added.
2143
2144         * WebView/WebDataSource.mm:
2145         (-[WebDataSourcePrivate dealloc]):
2146         (-[WebDataSource _addSubframeArchives:]):
2147         (-[WebDataSource _documentFragmentWithArchive:]):
2148         (-[WebDataSource subresourceForURL:]):
2149         (-[WebDataSource addSubresource:]):
2150         * WebView/WebDataSourceInternal.h:
2151
2152         * WebView/WebFrame.mm:
2153         (-[WebFrame loadArchive:]):
2154         * WebView/WebFrameInternal.h:
2155
2156         * WebView/WebHTMLRepresentation.mm:
2157         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
2158
2159         * WebView/WebResource.mm:
2160         (+[WebResourcePrivate initialize]):
2161         (-[WebResourcePrivate init]):
2162         (-[WebResourcePrivate initWithCoreResource:]):
2163         (-[WebResourcePrivate dealloc]):
2164         (-[WebResourcePrivate finalize]):
2165         (-[WebResource initWithCoder:]):
2166         (-[WebResource encodeWithCoder:]):
2167         (-[WebResource data]):
2168         (-[WebResource URL]):
2169         (-[WebResource MIMEType]):
2170         (-[WebResource textEncodingName]):
2171         (-[WebResource frameName]):
2172         (-[WebResource _initWithCoreResource:WebCore::]):
2173         (-[WebResource WebCore::]):
2174         (-[WebResource _ignoreWhenUnarchiving]):
2175         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
2176         (-[WebResource _fileWrapperRepresentation]):
2177         (-[WebResource _response]):
2178         (-[WebResource _stringValue]):
2179         * WebView/WebResourceInternal.h: Added.
2180         * WebView/WebResourcePrivate.h:
2181
2182         * WebView/WebUnarchivingState.h: Removed.
2183         * WebView/WebUnarchivingState.m: Removed.
2184
2185 2008-03-24  Oliver Hunt  <oliver@apple.com>
2186
2187         Reviewed by Mark Rowe.
2188
2189         Bug 18030: REGRESSION(r31236): Space bar fails to scroll down page
2190         <http://bugs.webkit.org/show_bug.cgi?id=18030>
2191
2192         Rollout keyDown changes from r31236 -- fix for keyDown behaviour is
2193         tracked by Bug 18057: keyDown incorrectly propagates up the frame tree
2194         <http://bugs.webkit.org/show_bug.cgi?id=18057>
2195
2196         * WebView/WebHTMLView.mm:
2197         (-[WebHTMLView keyDown:]):
2198
2199 2008-03-24  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
2200
2201         Reviewed by Maciej, landed by Brady
2202
2203         Bug 3580: iFrames Appear to be Cached
2204         <http://bugs.webkit.org/show_bug.cgi?id=3580>
2205
2206         Bug 15486: REGRESSION: Reload causes WebKit to *forget* fragment URLs
2207         <http://bugs.webkit.org/show_bug.cgi?id=15486>
2208
2209         Bug 15554: Reload causes <object> to use old data
2210         <http://bugs.webkit.org/show_bug.cgi?id=15554>
2211
2212         If a page is reloaded, a child frame's URL can not be taken from a history item.
2213
2214         * WebView/WebFrame.mm:
2215         (-[WebFrame _loadURL:referrer:intoChild:]):
2216
2217 2008-03-24  Darin Adler  <darin@apple.com>
2218
2219         Reviewed by Beth.
2220
2221         - fix <rdar://problem/5817067> -[WebDataSource unreachableURL] invokes KURL's copy constructor
2222
2223         * History/WebHistoryItem.mm:
2224         (-[WebHistoryItem URL]): Use a reference to avoid making a copy.
2225         * WebView/WebDataSource.mm:
2226         (-[WebDataSource _URL]): Ditto.
2227         (-[WebDataSource unreachableURL]): Ditto.
2228         * WebView/WebHTMLView.mm:
2229         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
2230
2231         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2232         * History/WebHistory.mm:
2233         * Misc/WebElementDictionary.mm:
2234         * Misc/WebNSAttributedStringExtras.mm:
2235         Remove unneeded imports of KURL.h.
2236
2237 2008-03-24  Brady Eidson  <beidson@apple.com>
2238
2239         Reviewed by Darin's rubberstamp
2240
2241         Rename this file for upcoming work.
2242
2243         * WebView/WebArchive.m: Removed.
2244         * WebView/WebArchive.mm: Copied from WebKit/mac/WebView/WebArchive.m.
2245
2246 2008-03-24  Alexey Proskuryakov  <ap@webkit.org>
2247
2248         Build fix.
2249
2250         * MigrateHeaders.make: Added DOMSVGAltGlyphElement.h and DOMSVGAltGlyphElementInternal.h.
2251
2252 2008-03-23  Oliver Hunt  <oliver@apple.com>
2253
2254         Reviewed by Maciej.
2255
2256         Bug 17670: Key events may improperly propagate from iframe to parent frame
2257         <http://bugs.webkit.org/show_bug.cgi?id=17670>
2258         Bug 16381: REGRESSION: Shift, command, option, ctrl keys in Gmail Rich Text changes focus
2259         <http://bugs.webkit.org/show_bug.cgi?id=16381>
2260
2261         Prevent the Cocoa event system from propagating key events to the parent WebHTMLView,
2262         as that results in us dispatching the key events for each frame going up the frame
2263         tree.
2264
2265         * WebView/WebHTMLView.mm:
2266         (-[WebHTMLView keyDown:]):
2267         (-[WebHTMLView keyUp:]):
2268         (-[WebHTMLView flagsChanged:]):
2269
2270 2008-03-21  Timothy Hatcher  <timothy@apple.com>
2271
2272         Bug 17980: Regression: Inspector highlighting of webpage not cleared when going to new URL
2273         http://bugs.webkit.org/show_bug.cgi?id=17980
2274
2275         Reviewed by Adam.
2276
2277         The new highlight drawing was not honoring the fade value, so it was
2278         always drawing at full opacity. The animation code didn't match Windows
2279         and the new highlight anyway, so it has been removed. The highlight
2280         how just detaches when it is hidden.
2281
2282         * WebCoreSupport/WebInspectorClient.mm:
2283         (-[WebInspectorWindowController windowShouldClose:]): Call hideHighlight.
2284         (-[WebInspectorWindowController close]): Ditto.
2285         (-[WebInspectorWindowController highlightNode:]): Call attach.
2286         (-[WebInspectorWindowController hideHighlight]): Call detach and release _currentHighlight.
2287         * WebInspector/WebNodeHighlight.h:
2288         * WebInspector/WebNodeHighlight.m:
2289         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2290         (-[WebNodeHighlight dealloc]): Assert we have no _highlightView.
2291         (-[WebNodeHighlight attach]): Renamed from attachHighlight.
2292         (-[WebNodeHighlight detach]): Renamed from detachHighlight.
2293         (-[WebNodeHighlight setNeedsUpdateInTargetViewRect:]): Renamed from setHolesNeedUpdateInTargetViewRect:.
2294         * WebInspector/WebNodeHighlightView.h:
2295         * WebInspector/WebNodeHighlightView.m:
2296         (-[WebNodeHighlightView setNeedsDisplayInRect:]): Renamed from setHolesNeedUpdateInRect:.
2297
2298 2008-03-20  Mark Rowe  <mrowe@apple.com>
2299
2300         Reviewed by Sam Weinig.
2301
2302         Ensure that the defines in FEATURE_DEFINES are sorted so that they will match the default settings of build-webkit.
2303         This will prevent the world from being rebuilt if you happen to switch between building in Xcode and with build-webkit on the
2304         command-line.
2305
2306         * Configurations/WebKit.xcconfig:
2307
2308 2008-03-20  Adam Roben  <aroben@apple.com>
2309
2310         Make WebNodeHighlightView use InspectorController to do its painting
2311
2312         Reviewed by Tim Hatcher.
2313
2314         * WebCoreSupport/WebInspectorClient.mm:
2315         (-[WebInspectorWindowController highlightNode:]): Pass the
2316         InspectorController to the WebNodeHighlight, and don't call
2317         setHighlightedNode: (which has been removed).
2318         (-[WebInspectorWindowController hideHighlight]): Removed call to
2319         setHighlightedNode:.
2320         * WebInspector/WebNodeHighlight.h:
2321           - Replaced _highlightNode with _inspectorController
2322           - Removed _highlightedNode accessors
2323           - Added -inspectorController method
2324         * WebInspector/WebNodeHighlight.m:
2325         (-[WebNodeHighlight initWithTargetView:inspectorController:]): Now
2326         takes an InspectorController* and stores it in _inspectorController.
2327         (-[WebNodeHighlight dealloc]): Removed code dealing with
2328         _highlightedNode.
2329         (-[WebNodeHighlight inspectorController]): Added.
2330         * WebInspector/WebNodeHighlightView.m: Removed FileInternal category.
2331         (-[WebNodeHighlightView isFlipped]): Added. WebCore expects all
2332         GraphicsContexts to be based on a flipped CGContext, so we have to
2333         specify that this view is flipped.
2334         (-[WebNodeHighlightView drawRect:]): Changed to create a
2335         GraphicsContext and pass it to InspectorController::drawNodeHighlight.
2336
2337 2008-03-18  David Hyatt  <hyatt@apple.com>
2338
2339         Add support for a preference in WebKit that can be used in nightly builds to test full page
2340         zoom.
2341
2342         Reviewed by Antti
2343
2344         * WebView/WebPreferenceKeysPrivate.h:
2345         * WebView/WebView.mm:
2346         (-[WebView setTextSizeMultiplier:]):
2347         (-[WebView canMakeTextSmaller]):
2348         (-[WebView makeTextSmaller:]):
2349         (-[WebView canMakeTextLarger]):
2350         (-[WebView makeTextLarger:]):
2351         (-[WebView canMakeTextStandardSize]):
2352         (-[WebView makeTextStandardSize:]):
2353
2354 2008-03-17  Eric Seidel  <eric@webkit.org>
2355
2356         Reviewed by darin.
2357
2358         Export _NPN_IntFromIdentifier as part of our NPAPI interface
2359
2360         * Plugins/WebNetscapePluginPackage.m:
2361         (-[WebNetscapePluginPackage load]):
2362
2363 2008-03-14  Brady Eidson  <beidson@apple.com>
2364
2365         Reviewed by Brian Dash's rubberstamp
2366
2367         Remove a class declaration for a class that has never existed
2368
2369         * WebView/WebResource.h:
2370
2371 2008-03-14  David D. Kilzer  <ddkilzer@apple.com>
2372
2373         Unify concept of enabling the Mac Java bridge.
2374
2375         Reviewed by Darin and Anders.
2376
2377         * Plugins/WebPluginJava.h: Removed unused file.
2378         * WebCoreSupport/WebFrameLoaderClient.h:
2379         (WebFrameLoaderClient::javaApplet): Added #if ENABLE(MAC_JAVA_BRIDGE) guard.
2380         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto for #import and NSView SPI method.
2381         (WebFrameLoaderClient::javaApplet): Ditto.
2382
2383 2008-03-13  Antti Koivisto  <antti@apple.com>
2384
2385         Reviewed by Darin.
2386
2387         * ForwardingHeaders/wtf/Deque.h: Added.
2388
2389 2008-03-13  Anders Carlsson  <andersca@apple.com>
2390
2391         Reviewed by Adam.
2392
2393         Call originalRequest, not initialRequest.
2394         
2395         * WebView/WebDataSource.mm:
2396         (-[WebDataSource initialRequest]):
2397
2398 2008-03-12  Darin Adler  <darin@apple.com>
2399
2400         Reviewed by John Sullivan.
2401
2402         - cleanup after removing the bridge
2403
2404         * DOM/WebDOMOperations.mm:
2405         (-[DOMDocument URLWithAttributeString:]): Call computeURL directly.
2406
2407         * Misc/WebCoreStatistics.mm:
2408         (-[WebFrame renderTreeAsExternalRepresentation]): Call externalRepresentation directly.
2409
2410         * Plugins/WebBaseNetscapePluginView.mm:
2411         (-[WebBaseNetscapePluginView loadPluginRequest:]): Use core function instead of
2412         _frameLoader method.
2413         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2414         Ditto.
2415         * Plugins/WebPluginController.mm:
2416         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]): Ditto.
2417
2418         * WebCoreSupport/WebFrameLoaderClient.mm:
2419         (WebFrameLoaderClient::frameLoaderDestroyed): Added a call to the new _clearCoreFrame
2420         method. Without this we could leave a stale frame pointer around.
2421         (WebFrameLoaderClient::dispatchDidReceiveIcon): Rewrote assertion so it's not the single
2422         caller of the _isMainFrame method.
2423         (WebFrameLoaderClient::transitionToCommittedForNewPage): Use core function instead of
2424         _frameLoader method.
2425         (WebFrameLoaderClient::createFrame): Moved code here from _addChild.
2426
2427         * WebView/WebFrame.mm: Removed lots of methods. Some were moved elsewhere, others
2428         turned out to be unused.
2429         (core): Added overload for DocumentFragment.
2430         (kit): Ditto.
2431         (-[WebFrame _loadURL:referrer:intoChild:]): Get to Frame using _private->coreFrame and
2432         to FrameLoader with _private->coreFrame->loader().
2433         (-[WebFrame _attachScriptDebugger]): Ditto.
2434         (-[WebFrame _clearCoreFrame]): Added.
2435         (-[WebFrame _updateBackground]): More of the same.
2436         (-[WebFrame _unmarkAllBadGrammar]): Ditto.
2437         (-[WebFrame _unmarkAllMisspellings]): Ditto.
2438         (-[WebFrame _hasSelection]): Ditto.
2439         (-[WebFrame _atMostOneFrameHasSelection]): Ditto.
2440         (-[WebFrame _findFrameWithSelection]): Ditto.
2441         (-[WebFrame _dataSource]): Ditto.
2442         (-[WebFrame _addData:]): Streamlined code a bit.
2443         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]): Ditto.
2444         (-[WebFrame _receivedData:textEncodingName:]): Ditto.
2445         (-[WebFrame _isDescendantOfFrame:]): Ditto.
2446         (-[WebFrame _bodyBackgroundColor]): Ditto.
2447         (-[WebFrame _isFrameSet]): Ditto.
2448         (-[WebFrame _firstLayoutDone]): Ditto.
2449         (-[WebFrame _loadType]): Ditto.
2450         (-[WebFrame _isDisplayingStandaloneImage]): Ditto.
2451         (-[WebFrame name]): Ditto.
2452         (-[WebFrame DOMDocument]): Ditto.
2453         (-[WebFrame frameElement]): Ditto.
2454         (-[WebFrame provisionalDataSource]): Ditto.
2455         (-[WebFrame dataSource]): Ditto.
2456         (-[WebFrame loadRequest:]): Ditto.
2457         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Ditto.
2458         (-[WebFrame loadArchive:]): Ditto.
2459         (-[WebFrame stopLoading]): Ditto.
2460         (-[WebFrame reload]): Ditto.
2461         (-[WebFrame findFrameNamed:]): Ditto.
2462         (-[WebFrame parentFrame]): Ditto.
2463         (-[WebFrame childFrames]): Ditto.
2464         (-[WebFrame windowObject]): Ditto.
2465         (-[WebFrame globalContext]): Ditto.
2466
2467         * WebView/WebFrameInternal.h: Added overloads of core and kit.
2468         Removed method declarations.
2469
2470         * WebView/WebHTMLRepresentation.mm:
2471         (-[WebHTMLRepresentation documentSource]): Moved code here from WebFrame.
2472         (formElementFromDOMElement): Ditto.
2473         (-[WebHTMLRepresentation elementWithName:inForm:]): Ditto.
2474         (inputElementFromDOMElement): Ditto.
2475         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Ditto.
2476         (-[WebHTMLRepresentation elementIsPassword:]): Ditto.
2477         (-[WebHTMLRepresentation formForElement:]): Ditto.
2478         (-[WebHTMLRepresentation currentForm]): Ditto.
2479         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2480         (-[WebHTMLRepresentation searchForLabels:beforeElement:]): Ditto.
2481         (-[WebHTMLRepresentation matchLabels:againstElement:]): Ditto.
2482
2483         * WebView/WebHTMLView.mm:
2484         (-[WebHTMLView _frameOrBoundsChanged]): Moved sendScrollEvent code here from WebFrame.
2485         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2486         Call createFragmentFromText directly instead of via WebFrame.
2487         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
2488         Moved layout calls here from WebFrame.
2489         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
2490         (-[WebHTMLView _updateFontPanel]): Ditto, but with fontForSelection.
2491         (-[WebHTMLView _canSmartCopyOrDelete]): Ditto, but with selectionGranularity.
2492         (-[WebHTMLView markedRange]): Moved code here from _markedTextNSRange.
2493         (-[WebHTMLView attributedSubstringFromRange:]): Tweaked code a bit.
2494         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
2495         Moved code here from WebFrame.
2496         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
2497         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): Ditto.
2498         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]): Ditto.
2499         (-[WebHTMLView markedTextMatchesAreHighlighted]): Ditto.
2500         (-[WebHTMLView unmarkAllTextMatches]): Ditto.
2501         (-[WebHTMLView rectsForTextMatches]): Ditto.
2502
2503         * WebView/WebHTMLViewInternal.h: Removed unused method declarations.
2504
2505         * WebView/WebPDFView.mm:
2506         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Use core function instead of
2507         _frameLoader method.
2508
2509         * WebView/WebRenderNode.mm:
2510         (copyRenderNode): Moved code here from WebFrame.
2511         (-[WebRenderNode initWithWebFrameView:]): Ditto.
2512
2513         * WebView/WebResource.mm:
2514         (-[WebResource _stringValue]): Moved code here from WebFrame.
2515
2516         * WebView/WebView.mm:
2517         (-[WebView _close]): Use core function intsead of _frameLoader method.
2518         (-[WebView setCustomTextEncodingName:]): Ditto.
2519         (-[WebView setHostWindow:]): Moved code here from WebFrame.
2520         (aeDescFromJSValue): Moved this here from WebFrame.
2521         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Moved code here from WebFrame.
2522
2523 2008-03-12  Darin Adler  <darin@apple.com>
2524
2525         Reviewed by Anders.
2526
2527         - http://bugs.webkit.org/show_bug.cgi?id=17640
2528           eliminate WebCoreFrameBridge
2529
2530         Moved all the code from the bridge into WebFrame. This need not be the final
2531         home of these methods -- they can be moved closer to their callers and improved
2532         further -- but it eliminates the bridge without requiring a rewrite of the code.
2533         It's a fairly mechanical process (just adding underscores to method names really).
2534
2535         There's even a chance that some of the methods are unused. Those we can remove
2536         after checking if that's so.
2537
2538         * DOM/WebDOMOperations.mm:
2539         (-[DOMNode markupString]): Use WebFrame rather than bridge.
2540         (-[DOMDocument webFrame]): Changed to use the core and kit functions
2541         instead of using the bridge.
2542         (-[DOMDocument URLWithAttributeString:]): Use WebFrame rather than bridge.
2543         (-[DOMRange markupString]): Ditto.
2544         * DOM/WebDOMOperationsPrivate.h: Removed _bridge methods.
2545
2546         * DefaultDelegates/WebDefaultContextMenuDelegate.mm: Removed unneeded import.
2547         * History/WebHistoryItem.mm: Ditto.
2548
2549         * MigrateHeaders.make: Added DOMDocumentFragmentInternal.h.
2550         * Misc/WebCoreStatistics.mm:
2551         (-[WebFrame renderTreeAsExternalRepresentation]): Use WebFrame rather than bridge.
2552
2553         * Misc/WebElementDictionary.mm: Removed unneeded import.
2554
2555         * Misc/WebKitStatistics.m:
2556         (+[WebKitStatistics bridgeCount]): Removed WebBridgeCount and just return 0.
2557         * Misc/WebKitStatisticsPrivate.h: Ditto.
2558
2559         * Misc/WebNSAttributedStringExtras.mm: Removed unneeded import.
2560         * Misc/WebNSPasteboardExtras.mm: Ditto.
2561
2562         * Plugins/WebBaseNetscapePluginView.mm:
2563         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Use WebFrame
2564         rather than bridge.
2565
2566         * Plugins/WebNetscapePluginEmbeddedView.mm: Removed unneeded import.
2567         * Plugins/WebNetscapePluginStream.mm: Ditto.
2568
2569         * Plugins/WebPluginContainerCheck.mm:
2570         (-[WebPluginContainerCheck _isForbiddenFileLoad]): Use WebFrame rather than
2571         bridge to get to the WebCore::Frame.
2572
2573         * Plugins/WebPluginController.h: Declare webFrame method and remove bridge method.
2574         * Plugins/WebPluginController.mm:
2575         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]): Use WebFrame
2576         rather than bridge.
2577
2578         * WebCoreSupport/WebEditorClient.mm:
2579         (selectorForKeyEvent): Tweaked comment.
2580
2581         * WebCoreSupport/WebFrameBridge.h: Removed.
2582         * WebCoreSupport/WebFrameBridge.mm: Removed.
2583
2584         * WebCoreSupport/WebFrameLoaderClient.mm:
2585         (WebFrameLoaderClient::frameLoaderDestroyed): Removed bridge assertion.
2586         (WebFrameLoaderClient::detachedFromParent4): Removed bridge teardown code.
2587         I could remove this function entirely, but it looks like the Qt port is using it.
2588
2589         * WebCoreSupport/WebViewFactory.mm: Removed unneeded import.
2590
2591         * WebView/WebArchiver.mm:
2592         (+[WebArchiver archiveRange:]): Use WebFrame rather than bridge.
2593         (+[WebArchiver archiveNode:]): Ditto.
2594         (+[WebArchiver archiveSelectionInFrame:]): Ditto.
2595
2596         * WebView/WebDataSource.mm:
2597         (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): Ditto.
2598         (-[WebDataSource _documentFragmentWithArchive:]): Ditto.
2599         (-[WebDataSource subresources]): Ditto.
2600         (-[WebDataSource subresourceForURL:]): Ditto.
2601
2602         * WebView/WebDataSourceInternal.h: Removed _bridge method.
2603
2604         * WebView/WebFrame.mm:
2605         (-[WebFramePrivate dealloc]): Removed code to release the bridge.
2606         (core): Go directly to the core frame, not via the bridge.
2607         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
2608         Remove the code to deal with the bridge.
2609         (-[WebFrame _initWithWebFrameView:webView:]): Ditto. Also added code to set the
2610         shouldCreateRenderers flag, formerly on the bridge.
2611         (-[WebFrame _updateBackground]): Change to call mehods on self, not bridge.
2612         (aeDescFromJSValue): Moved here from bridge.
2613         (-[WebFrame _domain]): Ditto.
2614         (-[WebFrame _addData:]): Ditto.
2615         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]): Ditto.
2616         (-[WebFrame _nodesFromList:]): Ditto.
2617         (-[WebFrame _markupStringFromNode:nodes:]): Ditto.
2618         (-[WebFrame _markupStringFromRange:nodes:]): Ditto.
2619         (-[WebFrame _selectedString]): Ditto.
2620         (-[WebFrame _stringForRange:]): Ditto.
2621         (-[WebFrame _forceLayoutAdjustingViewSize:]): Ditto.
2622         (-[WebFrame _forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Ditto.
2623         (-[WebFrame _sendScrollEvent]): Ditto.
2624         (-[WebFrame _drawRect:]): Ditto.
2625         (-[WebFrame _computePageRectsWithPrintWidthScaleFactor:printHeight:]): Ditto.
2626         (-[WebFrame _adjustPageHeightNew:top:bottom:limit:]): Ditto.
2627         (-[WebFrame _copyRenderNode:copier:]): Ditto.
2628         (-[WebFrame _copyRenderTree:]): Ditto.
2629         (inputElementFromDOMElement): Ditto.
2630         (formElementFromDOMElement): Ditto.
2631         (-[WebFrame _elementWithName:inForm:]): Ditto.
2632         (-[WebFrame _elementDoesAutoComplete:]): Ditto.
2633         (-[WebFrame _elementIsPassword:]): Ditto.
2634         (-[WebFrame _formForElement:]): Ditto.
2635         (-[WebFrame _currentForm]): Ditto.
2636         (-[WebFrame _controlsInForm:]): Ditto.
2637         (-[WebFrame _searchForLabels:beforeElement:]): Ditto.
2638         (-[WebFrame _matchLabels:againstElement:]): Ditto.
2639         (-[WebFrame _URLWithAttributeString:]): Ditto.
2640         (-[WebFrame _searchFor:direction:caseSensitive:wrap:startInSelection:]): Ditto.
2641         (-[WebFrame _markAllMatchesForText:caseSensitive:limit:]): Ditto.
2642         (-[WebFrame _markedTextMatchesAreHighlighted]): Ditto.
2643         (-[WebFrame _setMarkedTextMatchesAreHighlighted:]): Ditto.
2644         (-[WebFrame _unmarkAllTextMatches]): Ditto.
2645         (-[WebFrame _rectsForTextMatches]): Ditto.
2646         (-[WebFrame _stringByEvaluatingJavaScriptFromString:]): Ditto.
2647         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Ditto.
2648         (-[WebFrame _aeDescByEvaluatingJavaScriptFromString:]): Ditto.
2649         (-[WebFrame _caretRectAtNode:offset:affinity:]): Ditto.
2650         (-[WebFrame _firstRectForDOMRange:]): Ditto.
2651         (-[WebFrame _scrollDOMRangeToVisible:]): Ditto.
2652         (-[WebFrame _baseURL]): Ditto.
2653         (-[WebFrame _stringWithData:]): Ditto.
2654         (+[WebFrame _stringWithData:textEncodingName:]): Ditto.
2655         (-[WebFrame _needsLayout]): Ditto.
2656         (-[WebFrame _renderTreeAsExternalRepresentation]): Ditto.
2657         (-[WebFrame _accessibilityTree]): Ditto.
2658         (-[WebFrame _setBaseBackgroundColor:]): Ditto.
2659         (-[WebFrame _setDrawsBackground:]): Ditto.
2660         (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
2661         Ditto.
2662         (-[WebFrame _selectionGranularity]): Ditto.
2663         (-[WebFrame _convertToNSRange:]): Ditto.
2664         (-[WebFrame _convertToDOMRange:]): Ditto.
2665         (-[WebFrame _convertNSRangeToDOMRange:]): Ditto.
2666         (-[WebFrame _convertDOMRangeToNSRange:]): Ditto.
2667         (-[WebFrame _markDOMRange]): Ditto.
2668         (-[WebFrame _markedTextNSRange]): Ditto.
2669         (-[WebFrame _smartDeleteRangeForProposedRange:]): Ditto.
2670         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
2671         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]): Ditto.
2672         (-[WebFrame _documentFragmentWithText:inContext:]): Ditto.
2673         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]): Ditto.
2674         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]): Ditto.
2675         (-[WebFrame _replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]): Ditto.
2676         (-[WebFrame _replaceSelectionWithMarkupString:baseURLString:selectReplacement:smartReplace:]): Ditto.
2677         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]): Ditto.
2678         (-[WebFrame _insertParagraphSeparatorInQuotedContent]): Ditto.
2679         (-[WebFrame _visiblePositionForPoint:]): Ditto.
2680         (-[WebFrame _characterRangeAtPoint:]): Ditto.
2681         (-[WebFrame _typingStyle]): Ditto.
2682         (-[WebFrame _setTypingStyle:withUndoAction:]): Ditto.
2683         (-[WebFrame _fontForSelection:]): Ditto.
2684         (-[WebFrame _dragSourceMovedTo:]): Ditto.
2685         (-[WebFrame _dragSourceEndedAt:operation:]): Ditto.
2686         (-[WebFrame _getData:andResponse:forURL:]): Ditto.
2687         (-[WebFrame _getAllResourceDatas:andResponses:]): Ditto.
2688         (-[WebFrame _canProvideDocumentSource]): Ditto.
2689         (-[WebFrame _canSaveAsWebArchive]): Ditto.
2690         (-[WebFrame _receivedData:textEncodingName:]): Ditto.
2691         (-[WebFrame _setShouldCreateRenderers:]): Put the code from the bridge in this preexisting
2692         function. Couldn't just keep the bridge method because this was already here with the same name.
2693         (-[WebFrame _selectedNSRange]): Ditto.
2694         (-[WebFrame _selectNSRange:]): Ditto.
2695         (-[WebFrame dealloc]): Remove bridge-related code.
2696         (-[WebFrame finalize]): Ditto.
2697
2698         * WebView/WebFrameInternal.h: Added all the method declarations from the bridge.
2699         Removed the bridge parameter from the init method. Removed the #if blocks that
2700         tried to make this header work in non-C++ ObjC files -- they were broken and unused.
2701         Removed the _bridge method.
2702
2703         * WebView/WebFrameView.mm: Removed the _bridge method.
2704
2705         * WebView/WebHTMLRepresentation.mm:
2706         (-[WebHTMLRepresentation setDataSource:]): Removed the code to set up the bridge
2707         field.
2708         (-[WebHTMLRepresentation receivedData:withDataSource:]): Use WebFrame instead of bridge.
2709         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Ditto.
2710         (-[WebHTMLRepresentation canProvideDocumentSource]): Ditto.
2711         (-[WebHTMLRepresentation canSaveAsWebArchive]): Ditto.
2712         (-[WebHTMLRepresentation documentSource]): Ditto.
2713         (-[WebHTMLRepresentation DOMDocument]): Ditto.
2714         (-[WebHTMLRepresentation elementWithName:inForm:]): Ditto.
2715         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Ditto.
2716         (-[WebHTMLRepresentation elementIsPassword:]): Ditto.
2717         (-[WebHTMLRepresentation formForElement:]): Ditto.
2718         (-[WebHTMLRepresentation currentForm]): Ditto.
2719         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2720         (-[WebHTMLRepresentation searchForLabels:beforeElement:]): Ditto.
2721         (-[WebHTMLRepresentation matchLabels:againstElement:]): Ditto.
2722
2723         * WebView/WebHTMLRepresentationPrivate.h: Removed the _bridge method.
2724
2725         * WebView/WebHTMLView.mm:
2726         (-[WebHTMLView _documentFragmentWithPaths:]): Use WebFrame instead of bridge.
2727         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Ditto.
2728         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Ditto.
2729         (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
2730         (-[WebHTMLView _frameOrBoundsChanged]): Ditto.
2731         (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
2732         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]): Ditto.
2733         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Ditto.
2734         (-[WebHTMLView drawSingleRect:]): Ditto.
2735         (-[WebHTMLView draggedImage:movedTo:]): Ditto.
2736         (-[WebHTMLView draggedImage:endedAt:operation:]): Ditto.
2737         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
2738         (-[WebHTMLView knowsPageRange:]): Ditto.
2739         (-[WebHTMLView accessibilityAttributeValue:]): Ditto.
2740         (-[WebHTMLView accessibilityFocusedUIElement]): Ditto.
2741         (-[WebHTMLView accessibilityHitTest:]): Ditto.
2742         (-[WebHTMLView _accessibilityParentForSubview:]): Ditto.
2743         (-[WebHTMLView changeDocumentBackgroundColor:]): Ditto.
2744         (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
2745         (-[WebHTMLView _changeSpellingToWord:]): Ditto.
2746         (-[WebHTMLView startSpeaking:]): Ditto.
2747         (-[WebHTMLView _updateFontPanel]): Ditto.
2748         (-[WebHTMLView _canSmartCopyOrDelete]): Ditto.
2749         (-[WebHTMLView _layoutIfNeeded]): Ditto.
2750         (-[WebHTMLView characterIndexForPoint:]): Ditto.
2751         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
2752         (-[WebHTMLView selectedRange]): Ditto.
2753         (-[WebHTMLView markedRange]): Ditto.
2754         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
2755         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
2756         (-[WebHTMLView insertText:]): Ditto.
2757         (-[WebTextCompleteController _insertMatch:]): Ditto.
2758         (-[WebTextCompleteController doCompletion]): Ditto.
2759         (-[WebTextCompleteController endRevertingChange:moveLeft:]): Ditto.
2760         (-[WebHTMLView string]): Ditto.
2761         (-[WebHTMLView selectedString]): Ditto.
2762         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Ditto.
2763         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): Ditto.
2764         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]): Ditto.
2765         (-[WebHTMLView markedTextMatchesAreHighlighted]): Ditto.
2766         (-[WebHTMLView unmarkAllTextMatches]): Ditto.
2767         (-[WebHTMLView rectsForTextMatches]): Ditto.
2768         * WebView/WebRenderNode.mm:
2769         (-[WebRenderNode initWithWebFrameView:]): Ditto.
2770         * WebView/WebResource.mm:
2771         (-[WebResource _stringValue]): Ditto.
2772
2773         * WebView/WebScriptDebugDelegate.mm: Removed unneeded include.
2774
2775         * WebView/WebView.mm:
2776         (-[WebView _dashboardRegions]): Use WebFrame instead of bridge.
2777         (-[WebView setProhibitsMainFrameScrolling:]): Ditto.
2778         (-[WebView _setInViewSourceMode:]): Ditto.
2779         (-[WebView _inViewSourceMode]): Ditto.
2780         (-[WebView _executeCoreCommandByName:value:]): Ditto.
2781         (-[WebView stringByEvaluatingJavaScriptFromString:]): Ditto.
2782         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Ditto.
2783         (-[WebView scrollDOMRangeToVisible:]): Ditto.
2784         (-[WebView setSelectedDOMRange:affinity:]): Ditto.
2785         (-[WebView setEditable:]): Ditto.
2786         (-[WebView setTypingStyle:]): Ditto.
2787         (-[WebView typingStyle]): Ditto.
2788         (-[WebView replaceSelectionWithNode:]): Ditto.
2789         (-[WebView replaceSelectionWithText:]): Ditto.
2790         (-[WebView replaceSelectionWithMarkupString:]): Ditto.
2791         (-[WebView replaceSelectionWithArchive:]): Ditto.
2792         (-[WebView _insertNewlineInQuotedContent]): Ditto.
2793         (-[WebView _replaceSelectionWithNode:matchStyle:]): Ditto.
2794
2795 2008-03-12  David Hyatt  <hyatt@apple.com>
2796
2797         Make the zoom factor a float and not a percent.
2798
2799         Reviewed by antti
2800
2801         * WebView/WebView.mm:
2802         (-[WebView _setZoomMultiplier:isTextOnly:]):
2803
2804 2008-03-11  David Hyatt  <hyatt@apple.com>
2805
2806         This patch prepares Mac WebKit to handle two different zooming modes (full page zoom and text only zoom).
2807         New API is added that is parallel to the text zoom public API.  You can get/set a pageSizeMultiplier and you
2808         can zoom the page in, out or reset it to the standard size.
2809
2810         In the implementation only one zoom factor is stored, and setting one multiplier will shift you into that mode
2811         and set the common zoom factor.  In other words you can't combine text zoom and page zoom.  One will always
2812         win.
2813
2814         Reviewed by Tim H.
2815
2816         * WebCoreSupport/WebFrameBridge.mm:
2817         (-[WebFrameBridge finishInitializingWithPage:frameName:WebCore::frameView:ownerElement:]):
2818         * WebView/WebDocumentInternal.h:
2819         * WebView/WebHTMLView.mm:
2820         (-[WebHTMLView viewDidMoveToSuperview]):
2821         * WebView/WebPDFView.h:
2822         * WebView/WebPDFView.mm:
2823         (-[WebPDFView _zoomOut:]):
2824         (-[WebPDFView _zoomIn:]):
2825         (-[WebPDFView _resetZoom:]):
2826         (-[WebPDFView _canZoomOut]):
2827         (-[WebPDFView _canZoomIn]):
2828         (-[WebPDFView _canResetZoom]):
2829         * WebView/WebView.mm:
2830         (-[WebViewPrivate init]):
2831         (-[WebView setTextSizeMultiplier:]):
2832         (-[WebView textSizeMultiplier]):
2833         (-[WebView _setZoomMultiplier:isTextOnly:]):
2834         (-[WebView _zoomMultiplier:]):
2835         (-[WebView _realZoomMultiplier]):
2836         (-[WebView _realZoomMultiplierIsTextOnly]):
2837         (-[WebView _canZoomOut:]):
2838         (-[WebView _canZoomIn:]):
2839         (-[WebView _zoomOut:isTextOnly:]):
2840         (-[WebView _zoomIn:isTextOnly:]):
2841         (-[WebView _canResetZoom:]):
2842         (-[WebView _resetZoom:isTextOnly:]):
2843         (-[WebView canMakeTextSmaller]):
2844         (-[WebView makeTextSmaller:]):
2845         (-[WebView canMakeTextLarger]):
2846         (-[WebView makeTextLarger:]):
2847         (-[WebView canMakeTextStandardSize]):
2848         (-[WebView makeTextStandardSize:]):
2849         (-[WebView setPageSizeMultiplier:]):
2850         (-[WebView pageSizeMultiplier]):
2851         (-[WebView canZoomPageIn]):
2852         (-[WebView zoomPageIn:]):
2853         (-[WebView canZoomPageOut]):
2854         (-[WebView zoomPageOut:]):
2855         (-[WebView canResetPageZoom]):
2856         (-[WebView resetPageZoom:]):
2857         (-[WebView _searchWithSpotlightFromMenu:]):
2858         * WebView/WebViewInternal.h:
2859         * WebView/WebViewPrivate.h:
2860
2861 2008-03-12  Dan Bernstein  <mitz@apple.com>
2862
2863         Reviewed by Darin Adler and Sam Weinig.
2864
2865         - <rdar://problem/4433248> use CoreText API instead of SPI on Leopard
2866
2867         * WebCoreSupport/WebSystemInterface.m:
2868         (InitWebCoreSystemInterface): Made WKGetCGFontFromNSFont and
2869         WKGetNSFontATSUFontId Tiger-only.
2870
2871 2008-03-12  Darin Adler  <darin@apple.com>
2872
2873         - fix http://bugs.webkit.org/show_bug.cgi?id=17794
2874           REGRESSION (r30980): 23 tests hanging on the Mac buildbot
2875
2876         * WebView/WebFrame.mm:
2877         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Added missing call to set
2878         up pointer from the bridge to the frame. (My next check-in removes the bridge
2879         entirely, but we need this until then.)
2880
2881 2008-03-11  Darin Adler  <darin@apple.com>
2882
2883         Reviewed by Sam.
2884
2885         - remove all bridge-related things from WebCore except the bridge itself
2886
2887         * DOM/WebDOMOperations.mm:
2888         (-[DOMNode _bridge]): Reimplemented to not use the bridgeForDOMDocument: method.
2889
2890         * DefaultDelegates/WebDefaultContextMenuDelegate.mm: Removed unneeded include.
2891
2892         * Plugins/WebPluginController.mm: Ditto.
2893
2894         * WebCoreSupport/WebFrameBridge.h: Removed unneeded things, including the
2895         init and close methods. Added a setWebFrame: method.
2896
2897         * WebCoreSupport/WebFrameBridge.mm:
2898         (-[WebFrameBridge setWebFrame:]): Added.
2899
2900         * WebCoreSupport/WebFrameLoaderClient.mm:
2901         (WebFrameLoaderClient::frameLoaderDestroyed): Added an assertion.
2902         (WebFrameLoaderClient::detachedFromParent4): Moved the call to close on the
2903         bridge here. Soon we will be able to remove this entirely!
2904         (WebFrameLoaderClient::createFrame): Rewrote this to use the method moved
2905         into WebFrame from the bridge.
2906
2907         * WebView/WebFrame.mm:
2908         (-[WebFramePrivate dealloc]): Added code to release the bridge, because it's
2909         now owned by the frame.
2910         (-[WebFramePrivate finalize]): Added this missing method. We'd leak the script
2911         debugger under GC without this!
2912         (kit): Rewrote the function that maps from a WebCore::Frame to a WebFrame to
2913         use WebFrameLoaderClient instead of the bridge.
2914         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]): Added.
2915         This is code that used to live in the bridge's init function.
2916         (+[WebFrame _createMainFrameWithPage:frameName:frameView:]): Ditto.
2917         (+[WebFrame WebCore::_createSubframeWithOwnerElement:frameName:frameView:]): Ditto.
2918         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Retain the bridge, since
2919         the WebView is now the bridge's owner.
2920         (-[WebFrame _updateBackground]): Changed this one call site that was calling the
2921         WebCore::Frame::bridge function directly to use the kit function instead.
2922         (-[WebFrame dealloc]): Added code to clear the WebFrame pointer in the bridge.
2923         This code won't last long -- we're eliminating the bridge soon.
2924         (-[WebFrame finalize]): Ditto.
2925
2926         * WebView/WebFrameInternal.h: Added a coreFrame backpointer and two new methods
2927         for creating frames.
2928
2929         * WebView/WebView.mm:
2930         (-[WebView _commonInitializationWithFrameName:groupName:]): Rewrote this to use
2931         the method moved into WebFrame from the bridge. Gets rid of the unpleasant idiom
2932         where we have to allocate a WebFrameBridge and then immediately release it.
2933
2934 2008-03-11  Darin Adler  <darin@apple.com>
2935
2936         Reviewed by Anders.
2937
2938         - remove code depending on the bridge to get from an NSView to a WebCore::Frame
2939
2940         * WebCoreSupport/WebFrameLoaderClient.mm:
2941         (WebFrameLoaderClient::transitionToCommittedForNewPage): Remove incorrect call
2942         to setView. A couple lines later, there is a call to _install, which sets the
2943         view to the scroll view.
2944
2945         * WebCoreSupport/WebViewFactory.mm: Removed bridgeForView method.
2946
2947         * WebView/WebDynamicScrollBarsView.h: Moved most of the declarations out of
2948         this file, since it's used by Safari.
2949         * WebView/WebDynamicScrollBarsViewInternal.h: Added.
2950         * WebView/WebDynamicScrollBarsView.m:
2951         (-[WebDynamicScrollBarsView updateScrollers]): Ditto.
2952         (-[WebDynamicScrollBarsView setAllowsScrolling:]): Ditto.
2953         (-[WebDynamicScrollBarsView allowsScrolling]): Ditto.
2954         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]): Ditto.
2955         (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]): Ditto.
2956         (-[WebDynamicScrollBarsView allowsHorizontalScrolling]): Ditto.
2957         (-[WebDynamicScrollBarsView allowsVerticalScrolling]): Ditto.
2958         (-[WebDynamicScrollBarsView horizontalScrollingMode]): Ditto.
2959         (-[WebDynamicScrollBarsView verticalScrollingMode]): Ditto.
2960         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]): Ditto.
2961         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:andLock:]): Ditto.
2962         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]): Ditto.
2963         (-[WebDynamicScrollBarsView setVerticalScrollingMode:andLock:]): Ditto.
2964         (-[WebDynamicScrollBarsView setScrollingMode:]): Ditto.
2965         (-[WebDynamicScrollBarsView setScrollingMode:andLock:]): Ditto.
2966
2967         * WebView/WebFrameView.mm:
2968         (-[WebFrameView _web_frame]): Added. Replaces the webCoreBridge method.
2969
2970         * WebView/WebView.mm:
2971         (-[WebView setAlwaysShowVerticalScroller:]): Updated for changes to WebCoreFrameView.h.
2972         (-[WebView alwaysShowVerticalScroller]): Ditto.
2973         (-[WebView setAlwaysShowHorizontalScroller:]): Ditto.
2974         (-[WebView alwaysShowHorizontalScroller]): Ditto.
2975
2976 2008-03-11  Darin Adler  <darin@apple.com>
2977
2978         Reviewed by Sam.
2979
2980         - eliminate the remaining parts of WebCoreBridge used for calls to WebKit from WebCore
2981
2982         * WebCoreSupport/WebChromeClient.h: Added new virtual functions that replace
2983         bridge methods.
2984         * WebCoreSupport/WebChromeClient.mm: Added lots of BEGIN_BLOCK_OBJC_EXCEPTIONS
2985         to recently-created functions.
2986         (WebChromeClient::firstResponder): Moved code here from the bridge.
2987         (WebChromeClient::makeFirstResponder): Ditto.
2988         (WebChromeClient::runOpenPanel): Ditto.
2989         (WebChromeClient::willPopUpMenu): Ditto.
2990
2991         * WebCoreSupport/WebFrameBridge.h: Removed almost everything. What's left
2992         is related to creating the bridge and connecting it to WebCore, which will
2993         go next when I eliminate use of the bridge to get to/from the Frame*.
2994         * WebCoreSupport/WebFrameBridge.mm:
2995         (-[WebFrameBridge close]): Moved the code to track the bridge count here
2996         instead of the dealloc and finalize methods.
2997
2998 2008-03-11  Darin Adler  <darin@apple.com>
2999
3000         Reviewed by Mitz.
3001
3002         - update code affected by Range changes
3003
3004         * Misc/WebNSAttributedStringExtras.mm:
3005         (+[NSAttributedString _web_attributedStringFromRange:]): Update for name changes.
3006         * WebView/WebHTMLRepresentation.mm:
3007         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
3008         Use Range::create.
3009         * WebView/WebHTMLView.mm:
3010         (-[WebHTMLView attributedString]): Ditto.
3011
3012 2008-03-10  Darin Adler  <darin@apple.com>
3013
3014         Reviewed by Sam.
3015
3016         - eliminate keyboard UI mode method from WebCoreFrameBridge
3017
3018         * WebCoreSupport/WebChromeClient.h: Added keyboardUIMode function.
3019         * WebCoreSupport/WebChromeClient.mm:
3020         (WebChromeClient::keyboardUIMode): Ditto. Calls WebView.
3021         * WebCoreSupport/WebFrameBridge.h: Removed unused things, including the
3022         fields for keyboard UI mode.
3023         * WebCoreSupport/WebFrameBridge.mm:
3024         (-[WebFrameBridge dealloc]): Removed unneeded code; eliminated the fini
3025         method.
3026         (-[WebFrameBridge finalize]): Ditto.
3027         * WebView/WebView.mm: Moved the keyboard mode code in here.
3028         (-[WebView _close]): Remove observer from the distributed notification
3029         center as well as the normal one.
3030         (-[WebView _retrieveKeyboardUIModeFromPreferences:]): Added. Code moved
3031         here from the bridge.
3032         (-[WebView _keyboardUIMode]): Ditto.
3033         * WebView/WebViewInternal.h: Added _keyboardUIMode method.
3034
3035 2008-03-10  Darin Adler  <darin@apple.com>
3036
3037         Reviewed by Sam.
3038
3039         - eliminate Java applet methods from WebCoreFrameBridge
3040
3041         * WebCoreSupport/WebChromeClient.mm: Removed unneeded headers and declarations.
3042         * WebCoreSupport/WebFrameBridge.mm: Ditto. Also removed unneeded methods, including
3043         the ones that load Java applets.
3044         * WebCoreSupport/WebFrameLoaderClient.h: Added javaApplet function.
3045         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
3046
3047 2008-03-07  Simon Hausmann  <hausmann@webkit.org>
3048
3049         Reviewed by Darin.
3050
3051         Done with Lars.
3052
3053         Simplified WebViewFactory's refreshPlugins method to only refresh the
3054         plugins and not reload the frames anymore since that's now done in a
3055         platform independent manner by WebCore::Page.
3056
3057         Also removed the now unused pluginNameForMIMEType and
3058         pluginSupportsMIMEType methods.
3059
3060         * WebCoreSupport/WebViewFactory.mm:
3061         * WebView/WebFrame.mm:
3062         * WebView/WebFrameInternal.h:
3063         * WebView/WebView.mm:
3064
3065 2008-03-08  Mark Rowe  <mrowe@apple.com>
3066
3067         Reviewed by Darin Adler.
3068
3069         Fix 64-bit build with GCC 4.2.
3070
3071         * DefaultDelegates/WebDefaultScriptDebugDelegate.m: Use NSUInteger in place of unsigned where required.
3072         * DefaultDelegates/WebDefaultUIDelegate.m: Ditto.
3073         * History/WebHistoryItem.mm: Ditto.
3074         * Misc/WebElementDictionary.mm: Ditto.
3075         * WebCoreSupport/WebFrameLoaderClient.mm:
3076         (WebFrameLoaderClient::objectContentType): Move variable declaration outside of if to avoid warning about the
3077         variable being unused in 64-bit.
3078         * WebCoreSupport/WebInspectorClient.mm: Use NSUInteger in place of unsigned where required.
3079         * WebView/WebHTMLView.mm:
3080         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Use CGFloat in place of float where required.
3081         (-[WebTextCompleteController numberOfRowsInTableView:]): Use NSInteger in place of int where required.
3082
3083 2008-03-08  Darin Adler  <darin@apple.com>
3084
3085         Reviewed by Adele.
3086
3087         - eliminate custom highlight methods from WebCoreFrameBridge
3088
3089         * WebCoreSupport/WebChromeClient.h: Added custom highlight functions.
3090         * WebCoreSupport/WebChromeClient.mm:
3091         (WebChromeClient::customHighlightRect): Moved code here from bridge.
3092         (WebChromeClient::paintCustomHighlight): Ditto.
3093         * WebCoreSupport/WebFrameBridge.mm: Removed code here.
3094
3095 2008-03-07  David D. Kilzer  <ddkilzer@apple.com>
3096
3097         Unify concept of enabling Netscape Plug-in API (NPAPI).
3098
3099         Reviewed by Darin.
3100
3101         * WebKit.exp: Removed unused class export for WebBaseNetscapePluginView.
3102
3103         * WebKitPrefix.h: Removed WTF_USE_NPOBJECT since we now use
3104         ENABLE(NETSCAPE_PLUGIN_API) as defined in Platform.h.
3105
3106         * Plugins/WebBaseNetscapePluginStream.h: Replaced #ifndef __LP64__ with
3107         #if ENABLE(NETSCAPE_PLUGIN_API).
3108         * Plugins/WebBaseNetscapePluginStream.mm: Ditto.
3109         * Plugins/WebBaseNetscapePluginView.h: Ditto.
3110         * Plugins/WebBaseNetscapePluginView.mm: Ditto.
3111         * Plugins/WebBaseNetscapePluginViewInternal.h: Ditto.
3112         * Plugins/WebBaseNetscapePluginViewPrivate.h: Ditto.
3113         * Plugins/WebBasePluginPackage.h: Ditto.
3114         * Plugins/WebBasePluginPackage.m: Ditto.
3115         (+[WebBasePluginPackage pluginWithPath:]):
3116         * Plugins/WebNetscapeDeprecatedFunctions.c: Ditto.
3117         * Plugins/WebNetscapeDeprecatedFunctions.h: Ditto.
3118         * Plugins/WebNetscapePluginEmbeddedView.h: Ditto.
3119         * Plugins/WebNetscapePluginEmbeddedView.mm: Ditto.
3120         * Plugins/WebNetscapePluginPackage.h: Ditto.
3121         * Plugins/WebNetscapePluginPackage.m: Ditto.
3122         * Plugins/WebNetscapePluginStream.h: Ditto.
3123         * Plugins/WebNetscapePluginStream.mm: Ditto.
3124         * Plugins/WebPluginDatabase.m: Ditto.
3125         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
3126         * Plugins/npapi.m: Ditto.
3127         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
3128         (WebFrameLoaderClient::objectContentType):
3129         (WebFrameLoaderClient::createPlugin):
3130         * WebView/WebHTMLView.mm: Ditto.
3131         (-[NSArray _web_makePluginViewsPerformSelector:withObject:]):
3132         * WebView/WebHTMLViewInternal.h: Ditto.
3133
3134         * WebView/WebFrame.mm: Replaced #ifndef __LP64__ with
3135         #if ENABLE(NETSCAPE_PLUGIN_API). Moved methods below from (WebPrivate)
3136         category to (WebInternal) category so we don't expose the ENABLE() macro
3137         from the private header.
3138         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
3139         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
3140         * WebView/WebFrameInternal.h: Ditto.
3141         * WebView/WebFramePrivate.h: Ditto.
3142
3143 2008-03-07  Alexey Proskuryakov  <ap@webkit.org>
3144
3145         Reviewed by Darin.
3146
3147         <rdar://problem/5579292> REGRESSION: (safari 2-3): "Default default" encoding for Korean
3148         changed from Korean (Windows, DOS) to Korean (ISO 2022-KR), which breaks some sites
3149
3150         * WebView/WebPreferences.m:
3151         (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Make encoding name match
3152         the one used in Safari.
3153
3154 2008-03-07  Mark Rowe  <mrowe@apple.com>
3155
3156         Reviewed by Oliver Hunt.
3157
3158         Fix WebKit build with GCC 4.2.
3159
3160         * Plugins/WebBaseNetscapePluginView.mm: Use the correct return type in method signature.
3161
3162 2008-03-07  Darin Adler  <darin@apple.com>
3163
3164         Reviewed by Adam.
3165
3166         - eliminated WebCoreFrameBridge runOpenPanel
3167
3168         * WebCoreSupport/WebChromeClient.h: Added runOpenPanel.
3169         * WebCoreSupport/WebChromeClient.mm:
3170         (WebChromeClient::runOpenPanel): Added.
3171         (-[WebOpenPanelResultListener initWithChooser:]): Added. Used to wrap the
3172         FileChooser so it can get a result from the UI delegate.
3173         (-[WebOpenPanelResultListener dealloc]): Added.
3174         (-[WebOpenPanelResultListener finalize]): Added.
3175         (-[WebOpenPanelResultListener cancel]): Added.
3176         (-[WebOpenPanelResultListener chooseFilename:]): Added.
3177
3178 2008-03-06  Darin Adler  <darin@apple.com>
3179
3180         Reviewed by Mitz.
3181
3182         - fix regression test failures from the visited-link change
3183
3184         * History/WebHistory.mm:
3185         (+[WebHistory setOptionalSharedHistory:]): Call PageGroup::setShouldTrackVisitedLinks
3186         to turn off visited links if there is no history object. Also call
3187         removeAllVisitedLinks so we can start over from scratch with the new history.
3188
3189 2008-03-06  Dan Bernstein  <mitz@apple.com>
3190
3191         Reviewed by Darin Adler.
3192
3193         - fix a regression from r30741: a crash under
3194           WebFrameLoaderClient::createPlugin() when showing a Mail message with
3195           an attachment
3196
3197         * WebCoreSupport/WebFrameLoaderClient.mm:
3198         (WebFrameLoaderClient::createPlugin):
3199
3200 2008-03-06  Darin Adler  <darin@apple.com>
3201
3202         - fix Tiger build
3203
3204         * History/WebHistory.mm: Added include of WebTypesInternal.h.
3205
3206 2008-03-06  Darin Adler  <darin@apple.com>
3207
3208         - fix Release build
3209
3210         * History/WebHistory.mm:
3211         (-[WebHistoryPrivate setLastVisitedTimeInterval:forItem:]): Removed underscore.
3212         (-[WebHistoryPrivate loadFromURL:collectDiscardedItemsInto:error:]): Added #if.
3213         (-[WebHistoryPrivate saveToURL:error:]): Ditto.
3214
3215 2008-03-06  Darin Adler  <darin@apple.com>
3216
3217         Reviewed by Mitz.
3218
3219         - fix http://bugs.webkit.org/show_bug.cgi?id=17526
3220           REGRESSION: iframes are added to Safari's History menu
3221           by separating the visited link machinery from global history
3222
3223         * History/WebHistory.mm: Moved WebHistoryPrivate inside this file.
3224         (-[WebHistoryPrivate removeItemFromDateCaches:]): Removed the underscore from this
3225         method name, since it's on a private object.
3226         (-[WebHistoryPrivate removeItemForURLString:]): Added a call to the
3227         PageGroup::removeAllVisitedLinks function if the last URL was removed.
3228         (-[WebHistoryPrivate addItemToDateCaches:]): Removed the underscore from this
3229         method name, since it's on a private object.
3230         (-[WebHistoryPrivate removeAllItems]): Call PageGroup::removeAllVisitedLinks.
3231         (-[WebHistoryPrivate ageLimitDate]): Removed the underscore from this
3232         method name, since it's on a private object.
3233         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
3234         Ditto.
3235         (-[WebHistoryPrivate saveHistoryGuts:URL:error:]): Ditto. Also changed this
3236         to correctly return the error by using the newer version of writeToURL: and
3237         removed the FIXME about that.
3238         (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Added. Calls addVisitedLink
3239         for every link in the history.
3240         (-[WebHistory saveToURL:error:]): Removed the FIXME, since we do get the error now.
3241         (-[WebHistory addItem:]): Moved into the WebPrivate category.
3242         (-[WebHistory addItemForURL:]): Ditto.
3243         (-[WebHistory _addItemForURL:title:]): Added. Used for the normal case where we
3244         create an item and already know its title.
3245         (-[WebHistory ageLimitDate]): Moved into the WebPrivate category.
3246         (-[WebHistory containsItemForURLString:]): Ditto.
3247         (-[WebHistory removeItem:]): Ditto.
3248         (-[WebHistory setLastVisitedTimeInterval:forItem:]): Ditto.
3249         (-[WebHistory _itemForURLString:]): Ditto.
3250         (-[WebHistory _addVisitedLinksToPageGroup:]): Added. For use only inside WebKit.
3251
3252         * History/WebHistoryInternal.h: Added.
3253         * History/WebHistoryItemInternal.h: Tweaked formatting and includes.
3254         * History/WebHistoryPrivate.h: Moved the WebHistoryPrivate class out of this header.
3255         Also reorganized what was left behind.
3256
3257         * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks.
3258         * WebCoreSupport/WebChromeClient.mm:
3259         (WebChromeClient::populateVisitedLinks): Added a call to the new
3260         -[WebHistory _addVisitedLinksToPageGroup:] method.
3261
3262         * WebCoreSupport/WebFrameLoaderClient.mm:
3263         (WebFrameLoaderClient::updateGlobalHistory): Changed code to use the new
3264         -[WebHistory _addItemForURL:title:] method.
3265
3266 2008-03-05  Adam Roben  <aroben@apple.com>
3267
3268         Rename WebCoreScriptDebuggerImp.{h,mm} to WebScriptDebugger.{h,mm}
3269
3270         Reviewed by Kevin M.
3271
3272         * WebView/WebFrame.mm:
3273         * WebView/WebScriptDebugDelegate.mm:
3274         * WebView/WebScriptDebugger.h: Renamed from WebKit/mac/WebView/WebCoreScriptDebuggerImp.h.
3275         * WebView/WebScriptDebugger.mm: Renamed from WebKit/mac/WebView/WebCoreScriptDebuggerImp.mm.
3276
3277 2008-03-05  Adam Roben  <aroben@apple.com>
3278
3279         Rename WebCoreScriptDebuggerImp to WebScriptDebugger
3280
3281         Reviewed by Kevin M.
3282
3283         * WebView/WebCoreScriptDebuggerImp.h:
3284         * WebView/WebCoreScriptDebuggerImp.mm:
3285         * WebView/WebFrame.mm:
3286         (-[WebFrame _attachScriptDebugger]):
3287         * WebView/WebFrameInternal.h:
3288
3289 2008-03-05  Adam Roben  <aroben@apple.com>
3290
3291         Remove WebScriptDebugger
3292
3293         Uses of WebScriptDebugger have been replaced with
3294         WebCoreScriptDebuggerImp.
3295
3296         Reviewed by Kevin M.
3297
3298         * WebView/WebFrame.mm:
3299         (-[WebFramePrivate dealloc]): Use delete instead of release since
3300         WebCoreScriptDebuggerImp is a C++ class.
3301         (-[WebFrame _attachScriptDebugger]): Updated to use early returns and
3302         WebCoreScriptDebuggerImp.
3303         (-[WebFrame _detachScriptDebugger]): Ditto.
3304         * WebView/WebFrameInternal.h:
3305         * WebView/WebScriptDebugDelegate.mm: Removed WebScriptDebugger
3306         * WebView/WebScriptDebugDelegatePrivate.h: Removed.
3307         * WebView/WebView.mm:
3308
3309 2008-03-05  Adam Roben  <aroben@apple.com>
3310
3311         Remove -webFrame and -globalObject from WebScriptDebugger
3312
3313         WebCoreScriptDebuggerImp is now unaware of WebScriptDebugger
3314
3315         Reviewed by Kevin M.
3316
3317         * WebView/WebCoreScriptDebuggerImp.h: Removed WebScriptDebugger*
3318         parameter to the constructor.
3319         * WebView/WebCoreScriptDebuggerImp.mm:
3320         (toWebFrame): Added.
3321         (WebCoreScriptDebuggerImp::sourceParsed): Call toWebFrame.
3322         (WebCoreScriptDebuggerImp::callEvent): Ditto, and get the Frame's
3323         WindowScriptObject ourselves instead of asking WebScriptDebugger for
3324         it.
3325         (WebCoreScriptDebuggerImp::atStatement): Call toWebFrame.
3326         (WebCoreScriptDebuggerImp::returnEvent): Ditto.
3327         (WebCoreScriptDebuggerImp::exception): Ditto.
3328         * WebView/WebScriptDebugDelegate.mm:
3329         (-[WebScriptDebugger initWithWebFrame:]): Updated for change to
3330         WebScriptDebuggerImp's constructor.
3331         * WebView/WebScriptDebugDelegatePrivate.h: Removed
3332         -webFrame/-globalObject.
3333
3334 2008-03-05  Adam Roben  <aroben@apple.com>
3335
3336         Remove -enterFrame: and -leaveFrame from WebScriptDebugger
3337
3338         Reviewed by Kevin M.
3339
3340         * WebView/WebCoreScriptDebuggerImp.h: Changed to store m_topCallFrame
3341         in a RetainPtr, now that WebCoreScriptDebuggerImp is in charge of its
3342         lifetime.
3343         * WebView/WebCoreScriptDebuggerImp.mm:
3344           - Added declaration of -[WebScriptCallFrame
3345             _initWithGlobalObject:caller:state:].
3346           - Changed most uses of m_topCallFrame to m_topCallFrame.get()
3347         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Removed
3348         now-unnecessary initialization of m_topCallFrame.
3349         (WebCoreScriptDebuggerImp::callEvent): Replaced call to enterFrame:
3350         with its implementation. The one difference between this
3351         implementation and the old enterFrame: method is that we don't hand
3352         our reference to m_topCallFrame to _initWithGlobalObject: -- that
3353         method must now retain the passed-in WebScriptCallFrame manually.
3354         (WebCoreScriptDebuggerImp::atStatement):
3355         (WebCoreScriptDebuggerImp::returnEvent): Replaced call to leaveFrame
3356         with its implementation.
3357         (WebCoreScriptDebuggerImp::exception):
3358         * WebView/WebScriptDebugDelegate.mm: Removed declaration of
3359         -[WebScriptCallFrame _initWithGlobalObject:caller:state:].
3360         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Changed
3361         to retain the passed-in caller.
3362         * WebView/WebScriptDebugDelegatePrivate.h:
3363           - Removed _current ivar
3364           - Removed enterFrame:/leaveFrame declarations.
3365
3366 2008-03-05  Adam Roben  <aroben@apple.com>
3367
3368         Remove -parsedSource: from WebScriptDebugger
3369
3370         Reviewed by Kevin M.
3371
3372         * WebView/WebCoreScriptDebuggerImp.mm:
3373         (WebCoreScriptDebuggerImp::sourceParsed): Moved code here from
3374         -[WebScriptDebugger parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]
3375         * WebView/WebScriptDebugDelegate.mm: Removed -parsedSource:.
3376         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
3377
3378 2008-03-05  Adam Roben  <aroben@apple.com>
3379
3380         Remove -enteredFrame:, -leavingFrame:, and -exceptionRaised: from WebScriptDebugger
3381
3382         Reviewed by Kevin M.
3383
3384         * WebView/WebCoreScriptDebuggerImp.mm:
3385         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Changed to call
3386         trhough to callEvent instead of duplicating its code here.
3387         (WebCoreScriptDebuggerImp::callEvent): Moved code from
3388         -[WebScriptDebugger enteredFrame:sourceId:line:] here.
3389         (WebCoreScriptDebuggerImp::returnEvent): Moved code from
3390         -[WebScriptDebugger leavingFrame:sourceId:line:] here.
3391         (WebCoreScriptDebuggerImp::exception): Moved code from
3392         -[WebScriptDebugger exceptionRaised:sourceId:line:] here.
3393         * WebView/WebScriptDebugDelegate.mm: Removed -enteredFrame:,
3394         -leavingFrame:, and -exceptionRaised:.
3395         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
3396
3397 2008-03-05  Adam Roben  <aroben@apple.com>
3398
3399         Remove -[WebScriptDebugger hitStatement:sourceId:line:]
3400
3401         Reviewed by Kevin M.
3402
3403         * WebView/WebCoreScriptDebuggerImp.mm:
3404         (WebCoreScriptDebuggerImp::atStatement): Moved code here from
3405         -[WebScriptDebugger hitStatement:sourceId:line:].
3406         * WebView/WebScriptDebugDelegate.mm:
3407         (-[WebScriptDebugger webFrame]): Added.
3408         * WebView/WebScriptDebugDelegatePrivate.h:
3409
3410 2008-03-05  Adam Roben  <aroben@apple.com>
3411
3412         Remove WebCoreScriptDebugger
3413
3414         Reviewed by Kevin M.
3415
3416         * WebView/WebCoreScriptDebugger.h: Removed.
3417         * WebView/WebCoreScriptDebugger.mm: Removed.
3418         * WebView/WebCoreScriptDebuggerImp.h: Replaced WebCoreScriptDebugger
3419         with WebScriptDebugger.
3420         * WebView/WebCoreScriptDebuggerImp.mm: Ditto, and replaced [m_debugger
3421         delegate] with just m_debugger.
3422         (toNSString): Moved here from WebCoreScriptDebugger.mm.
3423         (toNSURL): Ditto.
3424         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
3425         (WebCoreScriptDebuggerImp::sourceParsed):
3426         (WebCoreScriptDebuggerImp::callEvent):
3427         (WebCoreScriptDebuggerImp::atStatement):
3428         (WebCoreScriptDebuggerImp::returnEvent):
3429         (WebCoreScriptDebuggerImp::exception):
3430         * WebView/WebScriptDebugDelegate.mm:
3431         (-[WebScriptDebugger initWithWebFrame:]): _debugger now holds a
3432         WebCoreScriptDebuggerImp, so initialize it properly.
3433         * WebView/WebScriptDebugDelegatePrivate.h: Changed _debugger to hold a
3434         WebCoreScriptDebuggerImp.
3435
3436 2008-03-05  Adam Roben  <aroben@apple.com>
3437
3438         Move WebCoreScriptDebuggerImp to its own source files
3439
3440         Also changed WebCoreScriptDebuggerImp coding style to match our style
3441         guidelines.
3442
3443         Reviewed by Kevin M.
3444
3445         * WebView/WebCoreScriptDebugger.h: Added declaration of toNSURL
3446         function.
3447         * WebView/WebCoreScriptDebugger.mm: Removed WebCoreScriptDebuggerImp
3448         implementation.
3449         (toNSURL): Made no longer static.
3450         * WebView/WebCoreScriptDebuggerImp.h: Added.
3451         * WebView/WebCoreScriptDebuggerImp.mm: Added. Code was moved here from
3452         WebCoreScriptDebugger.mm and cleaned up.
3453         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
3454         (WebCoreScriptDebuggerImp::sourceParsed):
3455         (WebCoreScriptDebuggerImp::callEvent):
3456         (WebCoreScriptDebuggerImp::atStatement):
3457         (WebCoreScriptDebuggerImp::returnEvent):
3458         (WebCoreScriptDebuggerImp::exception):
3459
3460 2008-03-05  Adam Roben  <aroben@apple.com>
3461
3462         Move -_enterFrame and -_leaveFrame from WebCoreScriptDebugger to WebScriptDebugger
3463
3464         Reviewed by Kevin M.
3465
3466         * WebView/WebCoreScriptDebugger.h:
3467           - Removed newFrameWithGlobalObject:caller:state: from
3468             WebScriptDebugger protocol
3469           - Added enterFrame: and leaveFrame: to WebScriptDebugger protocol
3470           - Removed _current ivar from WebCoreScriptDebugger
3471         * WebView/WebCoreScriptDebugger.mm:
3472         (WebCoreScriptDebuggerImp::callEvent): Changed to call enterFrame on
3473         the delegate.
3474         (WebCoreScriptDebuggerImp::returnEvent): Ditto for leaveFrame.
3475         * WebView/WebScriptDebugDelegate.mm:
3476         (-[WebScriptDebugger dealloc]): Added code to release _current.
3477         (-[WebScriptDebugger enterFrame:]): Added. Code came from
3478         WebCoreScriptDebugger.
3479         (-[WebScriptDebugger leaveFrame]): Ditto.
3480         * WebView/WebScriptDebugDelegatePrivate.h: Added _current ivar.
3481
3482 2008-03-05  Adam Roben  <aroben@apple.com>
3483
3484         Remove WebCoreScriptCallFrame
3485
3486         Reviewed by Tim.
3487
3488         * WebView/WebCoreScriptDebugger.h:
3489           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
3490           - Replaced -newWrapperForFrame: with
3491             -newFrameWithGlobalObject:caller:state:
3492           - Removed WebCoreScriptCallFrame interface.
3493         * WebView/WebCoreScriptDebugger.mm: Replaced WebCoreScriptCallFrame
3494         with WebScriptCallFrame.
3495         (-[WebCoreScriptDebugger _enterFrame:]): Changed to call
3496         -newFrameWithGlobalObject:caller:state.
3497         (-[WebCoreScriptDebugger _leaveFrame]):
3498         * WebView/WebScriptDebugDelegate.h: Changed WebScriptCallFrame's
3499         _private ivar to be of type WebScriptCallFramePrivate*.
3500         * WebView/WebScriptDebugDelegate.mm:
3501           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
3502           - Added WebScriptCallFramePrivate
3503         (-[WebScriptDebugger enteredFrame:sourceId:line:]):
3504         (-[WebScriptDebugger hitStatement:sourceId:line:]):
3505         (-[WebScriptDebugger leavingFrame:sourceId:line:]):
3506         (-[WebScriptDebugger exceptionRaised:sourceId:line:]):
3507         (-[WebScriptCallFramePrivate dealloc]): Added.
3508         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Added.
3509         Code came from WebCoreScriptCallFrame.
3510         (-[WebScriptCallFrame dealloc]): Added a call to release the _private
3511         ivar.
3512         (-[WebScriptCallFrame _convertValueToObjcValue:]): Replaced calls to
3513         _private with direct access of _private's ivars.
3514         (-[WebScriptCallFrame caller]): Ditto.
3515         (-[WebScriptCallFrame scopeChain]): Ditto.
3516         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
3517
3518 2008-03-05  Adam Roben  <aroben@apple.com>
3519
3520         Move -_convertValueToObjcValue to WebScriptCallFrame
3521
3522         Reviewed by Darin.
3523
3524         * WebView/WebCoreScriptDebugger.h: Removed declaration of
3525         -_convertValueToObjcValue.
3526         * WebView/WebCoreScriptDebugger.mm: Removed -_convertValueToObjcValue.
3527         * WebView/WebScriptDebugDelegate.mm:
3528         (-[WebScriptCallFrame _convertValueToObjcValue:]): Added. Code came
3529         from -[WebCoreScriptCallFrame _convertValueToObjcValue].
3530         (-[WebScriptCallFrame scopeChain]): Changed to call
3531         -_convertValueToObjcValue on self instead of _private.
3532         (-[WebScriptCallFrame exception]): Ditto.
3533         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
3534
3535 2008-03-05  Adam Roben  <aroben@apple.com>
3536
3537         Move -exception and -evaluateWebScript: to WebScriptCallFrame
3538
3539         Reviewed by Darin.
3540
3541         * WebView/WebCoreScriptDebugger.h: Removed declarations of -exception
3542         and -evaluateWebScript:.
3543         * WebView/WebCoreScriptDebugger.mm: Removed -exception and
3544         -evaluateWebScript:.
3545         * WebView/WebScriptDebugDelegate.mm:
3546         (-[WebScriptCallFrame exception]): Added. Code came from
3547         -[WebCoreScriptCallFrame exception].
3548         (-[WebScriptCallFrame evaluateWebScript:]): Added. Code came from
3549         -[WebCoreScriptCallFrame evaluateWebScript:].
3550
3551 2008-03-05  Adam Roben  <aroben@apple.com>
3552
3553         Move -scopeChain to WebScriptCallFrame
3554
3555         Reviewed by Darin.
3556
3557         * WebView/WebCoreScriptDebugger.h:
3558           - Added declarations of -globalObject and -_convertValueToObjcValue:
3559             to WebCoreScriptCallFrame
3560           - Removed declaration of -scopeChain.
3561         * WebView/WebCoreScriptDebugger.mm: Moved -_convertValueToObjcValue
3562         within the main WebCoreScriptCallFrame implementation.
3563         (-[WebCoreScriptCallFrame globalObject]): Added.
3564         * WebView/WebScriptDebugDelegate.mm:
3565         (-[WebScriptCallFrame scopeChain]): Added. Code came from
3566         -[WebCoreScriptCallFrame scopeChain].
3567
3568 2008-03-05  Adam Roben  <aroben@apple.com>
3569
3570         Move -functionName from WebCoreScriptCallFrame to WebScriptCallFrame
3571
3572         Reviewed by Darin.
3573
3574         * WebView/WebCoreScriptDebugger.h:
3575           - Removed #else case of #ifdef __cplusplus since this file is only
3576             ever used by C++ Objective-C files
3577           - Removed 'using KJS::ExecState' statement since we prefer not to
3578             have using statements in header files
3579           - Consequently prefixed uses of ExecState with KJS::
3580           - Added declaration of toNSString method that takes a const
3581             UString&
3582           - Added declaration of -[WebCoreScriptCallFrame state]
3583           - Removed declaration of -[WebCoreScriptCallFrame functionName]
3584         * WebView/WebCoreScriptDebugger.mm:
3585         (toNSString): Made this no longer static.
3586         (-[WebCoreScriptCallFrame state]): Added.
3587         * WebView/WebScriptDebugDelegate.mm:
3588         (-[WebScriptCallFrame functionName]): Added. Code came from
3589         -[WebCoreScriptCallFrame functionName], though I changed some nested
3590         ifs into early returns.
3591
3592 2008-03-05  Adam Roben  <aroben@apple.com>
3593
3594         Move WebCoreScriptDebugger to WebKit
3595
3596         Reviewed by Darin.
3597
3598         * WebView/WebCoreScriptDebugger.h: Renamed from WebCore/page/mac/WebCoreScriptDebugger.h.
3599         * WebView/WebCoreScriptDebugger.mm: Renamed from WebCore/page/mac/WebCoreScriptDebugger.mm.
3600         (toNSString):
3601         (toNSURL):
3602         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
3603         (WebCoreScriptDebuggerImp::sourceParsed):
3604         (WebCoreScriptDebuggerImp::callEvent):
3605         (WebCoreScriptDebuggerImp::atStatement):
3606         (WebCoreScriptDebuggerImp::returnEvent):
3607         (WebCoreScriptDebuggerImp::exception):
3608         (+[WebCoreScriptDebugger initialize]):
3609         (-[WebCoreScriptDebugger initWithDelegate:]):
3610         (-[WebCoreScriptDebugger dealloc]):
3611         (-[WebCoreScriptDebugger finalize]):
3612         (-[WebCoreScriptDebugger delegate]):
3613         (-[WebCoreScriptDebugger _enterFrame:]):
3614         (-[WebCoreScriptDebugger _leaveFrame]):
3615         (-[WebCoreScriptCallFrame _initWithGlobalObject:caller:state:]):
3616         (-[WebCoreScriptCallFrame _setWrapper:]):
3617         (-[WebCoreScriptCallFrame _convertValueToObjcValue:]):
3618         (-[WebCoreScriptCallFrame dealloc]):
3619         (-[WebCoreScriptCallFrame wrapper]):
3620         (-[WebCoreScriptCallFrame caller]):
3621         (-[WebCoreScriptCallFrame scopeChain]):
3622         (-[WebCoreScriptCallFrame functionName]):
3623         (-[WebCoreScriptCallFrame exception]):
3624         (-[WebCoreScriptCallFrame evaluateWebScript:]):
3625         * WebView/WebScriptDebugDelegate.mm: Updated header path.
3626         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
3627
3628 2008-03-05  Anders Carlsson  <andersca@apple.com>
3629
3630         Reviewed by Geoff.
3631
3632         Include file changes.
3633         
3634         * Plugins/WebBaseNetscapePluginView.mm:
3635         * Plugins/WebNetscapePluginPackage.m:
3636
3637 2008-03-04  Timothy Hatcher  <timothy@apple.com>
3638
3639         Reviewed by Darin Adler.
3640
3641         <rdar://problem/5720160> Browser windows "do nothing" while modal
3642         dialog or menu is up due to run loop modes (or while scrolling)
3643
3644         Add new API that lets a WebView be scheduled with multiple runloops and modes.
3645         This lets loading continue when in a nested runloop or in a different mode.
3646
3647         * Misc/WebKitVersionChecks.h: Add a new version define:
3648         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES.
3649         * WebView/WebView.mm:
3650         (-[WebView _commonInitializationWithFrameName:groupName:]): Schedule in the main runloop and with
3651         the default runloop mode if we are linked on an earlier WebKit version, use common modes otherwise.
3652         (-[WebView scheduleInRunLoop:forMode:]): New API, that calls through to Page.
3653         (-[WebView unscheduleFromRunLoop:forMode:]): Ditto.
3654         * WebView/WebViewPrivate.h: Add the new pending API methods.
3655
3656 2008-03-04  Anders Carlsson  <andersca@apple.com>
3657
3658         Reviewed by Darin.
3659
3660         Fix crash that happens when trying to load a page with a Java applet.
3661         
3662         * WebCoreSupport/WebFrameLoaderClient.mm:
3663         Don't release the names and values array - the kit method returns an autoreleased array.
3664
3665 2008-03-04  Darin Adler  <darin@apple.com>
3666
3667         Reviewed by Adam.
3668
3669         - fix 200+ failing regression tests
3670         - fix http://bugs.webkit.org/show_bug.cgi?id=17668
3671           Vertical scrollbar at slashdot.org is randomly not shown
3672
3673         * WebCoreSupport/WebFrameLoaderClient.mm:
3674         (WebFrameLoaderClient::transitionToCommittedForNewPage): Changed the refcounting
3675         code here to exactly match the way it was before it was moved from WebCore. I had
3676         introduced a storage leak and that was causing problems with scroll bars!
3677
3678 2008-03-04  Darin Adler  <darin@apple.com>
3679
3680         Reviewed by Adam.
3681
3682         - remove WebCoreFrameBridge reapplyStyles method
3683
3684         * WebView/WebHTMLView.mm:
3685         (-[WebHTMLView reapplyStyles]): Moved code to reapply styles here from the bridge.
3686
3687 2008-03-04  Darin Adler  <darin@apple.com>
3688
3689         Reviewed by Adam.
3690
3691         - eliminate WebCoreFrameBridge createFrameViewWithNSView
3692
3693         * WebCoreSupport/WebFrameLoaderClient.mm:
3694         (WebFrameLoaderClient::transitionToCommittedForNewPage):
3695         Moved code here from createFrameViewWithNSView.
3696
3697 2008-03-04  Darin Adler  <darin@apple.com>
3698
3699         Reviewed by Adam.
3700
3701         - removed WebCoreFrameBridge scrollOverflowInDirection
3702
3703         * WebView/WebFrameView.mm:
3704         (-[WebFrameView _scrollOverflowInDirection:granularity:]): Changed to call
3705         EventHandler directly instead of using the bridge.
3706         (-[WebFrameView scrollToBeginningOfDocument:]): Updated to use WebCore enums instead
3707         of the ones from the bridge.
3708         (-[WebFrameView scrollToEndOfDocument:]): Ditto.
3709         (-[WebFrameView _pageVertically:]): Ditto.
3710         (-[WebFrameView _pageHorizontally:]): Ditto.
3711         (-[WebFrameView _scrollLineVertically:]): Ditto.
3712         (-[WebFrameView _scrollLineHorizontally:]): Ditto.
3713
3714 2008-03-04  Darin Adler  <darin@apple.com>
3715
3716         Reviewed by Adam.
3717
3718         - remove WebCoreFrameBridge installInFrame: method
3719
3720         * WebCoreSupport/WebFrameLoaderClient.mm:
3721         (WebFrameLoaderClient::transitionToCommittedForNewPage): Call
3722         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
3723         * WebView/WebFrameView.mm:
3724         (-[WebFrameView _install]): Added. Has code from -[WebCoreFrameBridge installInFrame:].
3725         (-[WebFrameView _setCustomScrollViewClass:]): Used early return idiom so the entire
3726         method isn't nested inside an if statement. Call
3727         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
3728         * WebView/WebFrameViewInternal.h: Added declaration of _install method so it can be
3729         used in WebFrameLoaderClient.mm.
3730
3731 2008-03-04  Darin Adler  <darin@apple.com>
3732
3733         Reviewed by Adam.
3734
3735         - remove WebCoreFrameBridge window method
3736
3737         * WebCoreSupport/WebFrameBridge.mm: Removed window method.
3738
3739 2008-03-04  Darin Adler  <darin@apple.com>
3740
3741         Reviewed by Adam.
3742
3743         - move code from WebFrameBridge into WebFrameLoaderClient
3744
3745         * WebCoreSupport/WebFrameBridge.h: Removed unused fields, changed frame name parameters
3746         to use WebCore::String instead of NSString, add initSubframeWithOwnerElement declaration,
3747         removed viewForPluginWithFrame, viewForJavaAppletWithFrame, createChildFrameNamed,
3748         redirectDataToPlugin, determineObjectFromMIMEType, and windowObjectCleared methods.
3749         * WebCoreSupport/WebFrameBridge.mm:
3750         (-[WebFrameBridge finishInitializingWithPage:frameName:WebCore::frameView:ownerElement:]):
3751         Changed to use WebCore::String.
3752         (-[WebFrameBridge initMainFrameWithPage:frameName:WebCore::frameView:]): Ditto.
3753         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:WebCore::frameView:]): Ditto.
3754
3755         * WebCoreSupport/WebFrameLoaderClient.mm:
3756         (WebFrameLoaderClient::setOriginalURLForDownload): Removed some dead code I found here
3757         and added a FIXME.
3758         (WebFrameLoaderClient::createFrame): Moved the code from WebFrameBridge here.
3759         (WebFrameLoaderClient::objectContentType): Ditto.
3760         (parameterValue): Added.  Helper function, based on code originally in WebFrameBridge.
3761         (pluginView): Ditto.
3762         (WebFrameLoaderClient::createPlugin): Moved the code from WebFrameBridge here.
3763
3764 2008-03-04  Darin Adler  <darin@apple.com>
3765
3766         Reviewed by Adam.
3767
3768         - remove -[WebCoreFrameBridge dashboardRegionsChanged:]
3769
3770         * WebCoreSupport/WebChromeClient.h:
3771         * WebCoreSupport/WebChromeClient.mm:
3772         (WebChromeClient::dashboardRegionsChanged): Moved code here from the bridge.
3773         The WebCore side now calls this only when there's an actual change.
3774         * WebCoreSupport/WebFrameBridge.h: Removed lastDashboardRegions.
3775         * WebCoreSupport/WebFrameBridge.mm:
3776         (-[WebFrameBridge dealloc]): Removed code to release lastDashboardRegions.
3777         Removed _compareDashboardRegions: and dashboardRegionsChanged: methods.
3778
3779 2008-03-04  Darin Adler  <darin@apple.com>
3780
3781         Reviewed by Adam.
3782
3783         - remove WebCoreFrameBridge issuePasteComand method
3784
3785         * WebCoreSupport/WebFrameBridge.mm: Removed issuePasteCommand method.
3786         * WebView/WebHTMLViewInternal.h: Removed declaration of paste: method.
3787
3788 2008-03-03  Darin Adler  <darin@apple.com>
3789
3790         Reviewed by Adam.
3791
3792         - some "cleanup" on the path to removing WebCoreFrameBridge
3793
3794         * Storage/WebDatabaseManager.mm: Tweak includes.
3795         * Storage/WebDatabaseTrackerClient.mm: Ditto.
3796         * Storage/WebSecurityOrigin.mm: Ditto.
3797         * Storage/WebSecurityOriginInternal.h: Ditto.
3798
3799         * WebView/WebFrame.mm:
3800         (core): Changed to get rid of the requirement that WebKitEditableLinkBehavior exactly
3801         match WebCore::EditableLinkBehavior.
3802         * WebView/WebFrameInternal.h: Removed unused kit function.
3803
3804         * WebView/WebHTMLView.mm: Moved WebHTMLViewPrivate class in here.
3805         * WebView/WebHTMLViewInternal.h: Moved WebHTMLVewPrivate class out of here.
3806         * WebView/WebHTMLViewPrivate.h: Tweaked formatting and removed some unneeded declarations.
3807
3808         * WebView/WebPreferencesPrivate.h: Removed a no-longer-needed comment.
3809
3810 2008-03-01  Mark Rowe  <mrowe@apple.com>
3811
3812         Reviewed by Tim Hatcher.
3813
3814         Update Xcode configuration to support building debug and release from the mysterious future.
3815
3816         * Configurations/DebugRelease.xcconfig:
3817
3818 2008-02-29  Mark Rowe  <mrowe@apple.com>
3819
3820         Reviewed by Anders Carlsson.
3821
3822         Replace use of WKPathFromFont with implementation in terms of public API.
3823
3824         * WebCoreSupport/WebSystemInterface.m:
3825         (InitWebCoreSystemInterface): Remove unused symbol.
3826
3827 2008-02-29  Mark Rowe  <mrowe@apple.com>
3828
3829         Reviewed by Oliver Hunt.
3830
3831         Fix spelling of "request" in name of WKNSURLProtocolClassForRequest.
3832
3833         * Misc/WebNSURLExtras.mm:
3834         (-[NSURL _webkit_canonicalize]):
3835         * WebKit.order:
3836
3837 2008-02-29  Mark Rowe  <mrowe@apple.com>
3838
3839         Reviewed by Oliver Hunt.
3840
3841         Don't use WKSupportsMultipartXMixedReplace on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest.
3842
3843         * WebCoreSupport/WebSystemInterface.m:
3844         (InitWebCoreSystemInterface):
3845
3846 2008-02-29  Mark Rowe  <mrowe@apple.com>
3847
3848         Reviewed by Oliver Hunt.
3849
3850         Remove obsolete code that had been left intact to support users running WebKit with older versions of Safari.
3851
3852         * Misc/WebNSViewExtras.m:  Remove _web_superviewOfClass:stoppingAtClass:.
3853         * Misc/WebNSWindowExtras.m:  Remove _webkit_displayThrottledWindows.
3854         * Misc/WebSearchableTextView.m:  Remove selectionImageForcingWhiteText:.
3855         * WebCoreSupport/WebImageRendererFactory.m:  Update comment to mention the last version of Safari that
3856         requires this class.
3857         * WebInspector/WebInspector.mm:  Remove sharedWebInspector and update comments to mention the last version
3858         of Safari that calls other obsolete methods.
3859         * WebView/WebDocumentPrivate.h:  Remove selectionImageForcingWhiteText:.
3860         * WebView/WebHTMLView.mm:  Ditto.
3861         * WebView/WebPDFView.mm:  Ditto.
3862         * WebView/WebView.mm:  Update comment to mentoin the last version of Safari that requires the obsolete method.
3863
3864 2008-02-29  Mark Rowe  <mrowe@apple.com>
3865
3866         Rubber-stamped by Eric Seidel.
3867
3868         Remove unneeded includes of WebKitSystemInterface.h.
3869
3870         * History/WebHistoryItem.mm:
3871         * Misc/WebNSViewExtras.m:
3872         * WebCoreSupport/WebFrameLoaderClient.mm:
3873         * WebView/WebDataSource.mm:
3874         * WebView/WebPDFView.mm:
3875
3876 2008-02-29  Mark Rowe  <mrowe@apple.com>
3877
3878         Reviewed by Oliver Hunt and Oliver Hunt.
3879
3880         <rdar://problem/4753845> WebKit should use CGEventSourceSecondsSinceLastEventType in place of WKSecondsSinceLastInputEvent SPI.
3881
3882         * WebCoreSupport/WebSystemInterface.m:
3883         (InitWebCoreSystemInterface):  Remove unused symbol.
3884         * WebKit.order:  Ditto.
3885
3886 2008-02-28  Mark Rowe  <mrowe@apple.com>
3887
3888         Reviewed by Dave Hyatt.
3889
3890         Make use of new CGFont APIs on Leopard rather than making a WebKitSystemInterface call.
3891
3892         * WebCoreSupport/WebSystemInterface.m:
3893         (InitWebCoreSystemInterface): Only initialize wkGetFontMetrics on Tiger.
3894
3895 2008-02-27  Brady Eidson  <beidson@apple.com>
3896
3897         Reviewed by Mark Rowe (code) and Darin (concept)
3898
3899         Much better fix for <rdar://problem/4930688> (see r19549)
3900         Original fix for <rdar://problem/3947312> (and 14 dupes)
3901         
3902         Let me tell you a story:
3903         A long time ago, in a cvs repository far, far away, loader code was almost all up in WebKit.
3904         WebArchive code was intertwined with that code in bizarre and complex ways.
3905         During the months long loader re-factoring where we pushed much loader code down into WebCore,
3906         many portions of the WebKit loader were thinned out until they ceased to exist.  Others remained
3907         with a sole purpose.
3908
3909         One such section of code whose lineage traces back from WebFrameLoaderClient to WebFrameLoader
3910         to WebLoader was originally rooted in the method [WebLoader loadRequest:].  This method was the 
3911         single entry point for almost all loading (network or web archives)
3912
3913         This method would check various headers and other fields on the NSURLRequest and NSURLResponse 
3914         to make decisions about the load.  If the cache control fields were expired or other conditions 
3915         in the headers were met, the load would be forced to go out to the network.
3916
3917         As the loader was moved and tweaked repeatedly, most of this code was pruned or re-factored.  
3918         At some point, all that remained was the special cases for loading WebArchives.  
3919         
3920         Somewhere in the r16,000s, this remaining responsibility was noticed and related methods we renamed
3921         to be WebArchive specific, further cementing the assumed design.
3922
3923         Problem is, the design was bad.  A WebArchive is meant to be a static snapshot of a WebPage at a
3924         specific point in time.  Referring to the request to see if the resource should be reloaded seems
3925         nonsensical, as does referring to the response headers to see if the resource is "expired".  In the 
3926         context of loading a WebArchive, available data should *always* be loaded from the WebArchive, at least
3927         during the initial load!
3928
3929         After discovering the secret to reproducing all of these bugs is both emptying our your Foundation 
3930         cache and disconnecting your network, it was easy to reproduce the 16 individually reported cases 
3931         that were all symptoms of this bug, and easy to verify that they are fixed with this patch.
3932
3933         * WebCoreSupport/WebFrameLoaderClient.h:
3934         * WebCoreSupport/WebFrameLoaderClient.mm:
3935         (WebFrameLoaderClient::willUseArchive): Do not call either form of "canUseArchivedResource()" that
3936           inspect the request or response objects - We are loading from a WebArchive, and we should never
3937           make the decision to go out to the network when we actually have the resource available.
3938
3939         * WebCoreSupport/WebSystemInterface.m:
3940         (InitWebCoreSystemInterface):  Remove two methods that are no longer used anywhere in WebKit
3941
3942 2008-02-27  Matt Lilek  <webkit@mattlilek.com>
3943
3944         Reviewed by Adam Roben.
3945
3946         Bug 14348: Messing up the inspector by dragging an URL into it
3947         http://bugs.webkit.org/show_bug.cgi?id=14348
3948         <rdar://problem/5283620> and <rdar://problem/5712808>
3949
3950         * WebCoreSupport/WebInspectorClient.mm:
3951         (-[WebInspectorWindowController init]): Remove duplicate preference setting.
3952         (-[WebInspectorWindowController webView:dragDestinationActionMaskForDraggingInfo:]):
3953
3954 2008-02-25  Darin Adler  <darin@apple.com>
3955
3956         Reviewed by Adam.
3957
3958         * WebView/WebArchiver.mm:
3959         (+[WebArchiver archiveSelectionInFrame:]): Use blankURL.
3960         * WebView/WebFrame.mm:
3961         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Avoid the
3962         variable name URL to avoid clashing with the renamed KURL in the future. Also use
3963         blankURL.
3964         (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]): Ditto.
3965         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]): Ditto.
3966         (-[WebFrame loadHTMLString:baseURL:]): Ditto.
3967         (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]): Ditto.
3968
3969 2008-02-24  Darin Adler  <darin@apple.com>
3970
3971         Reviewed by Sam.
3972
3973         - remove separate client calls for "standard" and "reload' history
3974
3975         * WebCoreSupport/WebFrameLoaderClient.h:
3976         * WebCoreSupport/WebFrameLoaderClient.mm:
3977         (WebFrameLoaderClient::updateGlobalHistory):
3978
3979 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
3980
3981         Reviewed by Darin.
3982
3983         Move basic threading support from WebCore to WTF.
3984
3985         * ForwardingHeaders/wtf/Threading.h: Added.
3986         * ForwardingHeaders/wtf/Locker.h: Added.
3987
3988 2008-02-23  David Kilzer  <ddkilzer@apple.com>
3989
3990         Please clarify licensing for some files
3991         <http://bugs.webkit.org/show_bug.cgi?id=14970>
3992
3993         Reviewed by Darin.
3994
3995         * Plugins/WebNetscapeDeprecatedFunctions.c: Updated copyright statement
3996         and added Apple BSD-style license.
3997         * Plugins/WebNetscapeDeprecatedFunctions.h: Ditto.
3998
3999 2008-02-22  John Sullivan  <sullivan@apple.com>
4000
4001         Reviewed by Adam Roben
4002         
4003         Reverted the changed from yesterday to add pasteAndMatchStyle:, as the existing
4004         pasteAsPlainText: has the same behavior.
4005
4006         * WebView/WebHTMLView.mm:
4007         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
4008         (-[WebHTMLView readSelectionFromPasteboard:]):
4009         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
4010         (-[WebHTMLView pasteAsRichText:]):
4011         (-[WebHTMLView paste:]):
4012         * WebView/WebView.mm:
4013         * WebView/WebViewPrivate.h:
4014
4015 2008-02-21  Anders Carlsson  <andersca@apple.com>
4016
4017         Reviewed by Sam.
4018
4019         Use BackForwardList::create instead.
4020         
4021         * History/WebBackForwardList.mm:
4022         (-[WebBackForwardList init]):
4023
4024 2008-02-21  John Sullivan  <sullivan@apple.com>
4025
4026         Reviewed by Jessica Kahn
4027         
4028         support for pasteAndMatchStyle: command (see <rdar://problem/5723952>)
4029
4030         * WebView/WebHTMLView.mm:
4031         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:matchStyle:]):
4032         added matchStyle parameter, passed along to bridge (formerly always passed NO to bridge)
4033         (-[WebHTMLView readSelectionFromPasteboard:]):
4034         pass NO for new matchStyle parameter to match old behavior
4035         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
4036         validate pasteAndMatchStyle the same way as pasteAsRichText
4037         (-[WebHTMLView pasteAndMatchStyle:]):
4038         just like pasteAsRichText but passes YES for matchStyle
4039         (-[WebHTMLView pasteAsRichText:]):
4040         pass NO for new matchStyle parameter to match old behavior
4041         (-[WebHTMLView paste:]):
4042         ditto
4043         
4044         * WebView/WebView.mm:
4045         added macro(pasteAndMatchStyle)
4046         
4047         * WebView/WebViewPrivate.h:
4048         added pasteAndMatchStyle: to WebViewEditingActionsPendingPublic category
4049
4050 2008-02-20  Sam Weinig  <sam@webkit.org>
4051
4052         Reviewed by Darin and Geoff.
4053
4054         - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
4055
4056         * WebView/WebView.mm:
4057         (-[WebView _preferencesChangedNotification:]): Added a call to Settings::setNeedsSiteSpecificQuirks.
4058         There are currently no site-specific quirks on Mac, but we will propagate the state
4059         to WebCore to avoid possible mistakes later.
4060
4061 2008-02-19  Anders Carlsson  <andersca@apple.com>
4062
4063         Reviewed by Darin.
4064
4065         Move back WebKit methods that were unused in WebCore.
4066         
4067         * Misc/WebNSURLExtras.mm:
4068         (+[NSURL _web_URLWithData:]):
4069         (+[NSURL _web_URLWithData:relativeToURL:]):
4070         (-[NSURL _web_originalData]):
4071         (-[NSURL _web_originalDataAsString]):
4072         (-[NSURL _web_isEmpty]):
4073         (-[NSURL _webkit_canonicalize]):
4074         (-[NSURL _webkit_URLByRemovingComponent:]):
4075         (-[NSURL _webkit_URLByRemovingFragment]):
4076         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
4077         (-[NSURL _webkit_isFileURL]):
4078         (-[NSString _webkit_isFileURL]):
4079         * WebCoreSupport/WebFrameLoaderClient.mm:
4080         (WebFrameLoaderClient::setTitle):
4081         * WebCoreSupport/WebSystemInterface.m:
4082         (InitWebCoreSystemInterface):
4083
4084 2008-02-18  Darin Adler  <darin@apple.com>
4085
4086         Reviewed by Sam.
4087
4088         * Misc/WebNSAttributedStringExtras.mm:
4089         (+[NSAttributedString _web_attributedStringFromRange:]): Eliminate use of
4090         DeprecatedString.
4091
4092 2008-02-17  Sam Weinig  <sam@webkit.org>
4093
4094         Reviewed by Dan Bernstein.
4095
4096         Fix for http://bugs.webkit.org/show_bug.cgi?id=17365
4097         document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
4098
4099         * MigrateHeaders.make: Migrate DOMProgressEvent.h and DOMTextPrivate.h which were
4100         mistakenly not migrated.
4101
4102 2008-02-15  Dan Bernstein  <mitz@apple.com>
4103
4104         Reviewed by Alexey Proskuryakov.
4105
4106         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=17360
4107           <rdar://problem/5743131> REGRESSION: mp4 file downloaded from server is downloaded as html
4108
4109         * WebView/WebDataSource.mm:
4110         (+[WebDataSource _representationClassForMIMEType:]):
4111         (-[WebDataSource _responseMIMEType]):
4112         (-[WebDataSource subresources]):
4113         (-[WebDataSource subresourceForURL:]):
4114         * WebView/WebResource.mm:
4115         (-[WebResource _initWithData:URL:response:]):
4116         * WebView/WebResourcePrivate.h:
4117
4118 2008-02-15  Adam Roben  <aroben@apple.com>
4119
4120         Make WebKit's FEATURE_DEFINES match WebCore's
4121
4122         Reviewed by Mark.
4123
4124         * Configurations/WebKit.xcconfig:
4125
4126 2008-02-14  Darin Adler  <darin@apple.com>
4127
4128         Reviewed by Eric Seidel.
4129
4130         - updated for WebCore KURL changes
4131
4132         * History/WebHistoryItem.mm:
4133         (-[WebHistoryItem URL]): Removed getNSURL call.
4134         * Misc/WebElementDictionary.mm:
4135         (-[WebElementDictionary _absoluteImageURL]): Ditto.
4136         (-[WebElementDictionary _absoluteLinkURL]): Ditto.
4137         * Misc/WebNSAttributedStringExtras.mm:
4138         (fileWrapperForElement): Ditto.
4139         (+[NSAttributedString _web_attributedStringFromRange:]): Ditto.
4140         * Misc/WebNSURLExtras.mm:
4141         (-[NSString _webkit_stringByReplacingValidPercentEscapes]): Updated
4142         for function name change.
4143         * WebCoreSupport/WebContextMenuClient.mm:
4144         (WebContextMenuClient::downloadURL): Removed getNSURL call.
4145         * WebCoreSupport/WebDragClient.mm:
4146         (WebDragClient::createDragImageForLink): Ditto.
4147         * WebCoreSupport/WebFrameLoaderClient.mm:
4148         (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Ditto.
4149         (WebFrameLoaderClient::startDownload): Ditto.
4150         (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad): Ditto.
4151         (WebFrameLoaderClient::updateGlobalHistoryForReload): Ditto.
4152         (WebFrameLoaderClient::cancelledError): Ditto.
4153         (WebFrameLoaderClient::blockedError): Ditto.
4154         (WebFrameLoaderClient::cannotShowURLError): Ditto.
4155         (WebFrameLoaderClient::interruptForPolicyChangeError): Ditto.
4156         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto.
4157         (WebFrameLoaderClient::fileDoesNotExistError): Ditto.
4158         (WebFrameLoaderClient::willUseArchive): Ditto.
4159         (WebFrameLoaderClient::setTitle): Ditto.
4160         (WebFrameLoaderClient::actionDictionary): Ditto.
4161         (WebFrameLoaderClient::createFrame): Ditto.
4162         (WebFrameLoaderClient::objectContentType): Ditto.
4163         (WebFrameLoaderClient::createPlugin): Ditto.
4164         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
4165         * WebView/WebDataSource.mm:
4166         (-[WebDataSource _URL]): Ditto.
4167         (-[WebDataSource _initWithDocumentLoader:]): Ditto.
4168         (-[WebDataSource unreachableURL]): Ditto.
4169         * WebView/WebHTMLView.mm:
4170         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
4171