4b3b35a2bf1a3b667e4616c12862eb979bcfdc00
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2008-03-05  Adam Roben  <aroben@apple.com>
2
3         Remove -parsedSource: from WebScriptDebugger
4
5         Reviewed by Kevin M.
6
7         * WebView/WebCoreScriptDebuggerImp.mm:
8         (WebCoreScriptDebuggerImp::sourceParsed): Moved code here from
9         -[WebScriptDebugger parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]
10         * WebView/WebScriptDebugDelegate.mm: Removed -parsedSource:.
11         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
12
13 2008-03-05  Adam Roben  <aroben@apple.com>
14
15         Remove -enteredFrame:, -leavingFrame:, and -exceptionRaised: from WebScriptDebugger
16
17         Reviewed by Kevin M.
18
19         * WebView/WebCoreScriptDebuggerImp.mm:
20         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Changed to call
21         trhough to callEvent instead of duplicating its code here.
22         (WebCoreScriptDebuggerImp::callEvent): Moved code from
23         -[WebScriptDebugger enteredFrame:sourceId:line:] here.
24         (WebCoreScriptDebuggerImp::returnEvent): Moved code from
25         -[WebScriptDebugger leavingFrame:sourceId:line:] here.
26         (WebCoreScriptDebuggerImp::exception): Moved code from
27         -[WebScriptDebugger exceptionRaised:sourceId:line:] here.
28         * WebView/WebScriptDebugDelegate.mm: Removed -enteredFrame:,
29         -leavingFrame:, and -exceptionRaised:.
30         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
31
32 2008-03-05  Adam Roben  <aroben@apple.com>
33
34         Remove -[WebScriptDebugger hitStatement:sourceId:line:]
35
36         Reviewed by Kevin M.
37
38         * WebView/WebCoreScriptDebuggerImp.mm:
39         (WebCoreScriptDebuggerImp::atStatement): Moved code here from
40         -[WebScriptDebugger hitStatement:sourceId:line:].
41         * WebView/WebScriptDebugDelegate.mm:
42         (-[WebScriptDebugger webFrame]): Added.
43         * WebView/WebScriptDebugDelegatePrivate.h:
44
45 2008-03-05  Adam Roben  <aroben@apple.com>
46
47         Remove WebCoreScriptDebugger
48
49         Reviewed by Kevin M.
50
51         * WebView/WebCoreScriptDebugger.h: Removed.
52         * WebView/WebCoreScriptDebugger.mm: Removed.
53         * WebView/WebCoreScriptDebuggerImp.h: Replaced WebCoreScriptDebugger
54         with WebScriptDebugger.
55         * WebView/WebCoreScriptDebuggerImp.mm: Ditto, and replaced [m_debugger
56         delegate] with just m_debugger.
57         (toNSString): Moved here from WebCoreScriptDebugger.mm.
58         (toNSURL): Ditto.
59         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
60         (WebCoreScriptDebuggerImp::sourceParsed):
61         (WebCoreScriptDebuggerImp::callEvent):
62         (WebCoreScriptDebuggerImp::atStatement):
63         (WebCoreScriptDebuggerImp::returnEvent):
64         (WebCoreScriptDebuggerImp::exception):
65         * WebView/WebScriptDebugDelegate.mm:
66         (-[WebScriptDebugger initWithWebFrame:]): _debugger now holds a
67         WebCoreScriptDebuggerImp, so initialize it properly.
68         * WebView/WebScriptDebugDelegatePrivate.h: Changed _debugger to hold a
69         WebCoreScriptDebuggerImp.
70
71 2008-03-05  Adam Roben  <aroben@apple.com>
72
73         Move WebCoreScriptDebuggerImp to its own source files
74
75         Also changed WebCoreScriptDebuggerImp coding style to match our style
76         guidelines.
77
78         Reviewed by Kevin M.
79
80         * WebView/WebCoreScriptDebugger.h: Added declaration of toNSURL
81         function.
82         * WebView/WebCoreScriptDebugger.mm: Removed WebCoreScriptDebuggerImp
83         implementation.
84         (toNSURL): Made no longer static.
85         * WebView/WebCoreScriptDebuggerImp.h: Added.
86         * WebView/WebCoreScriptDebuggerImp.mm: Added. Code was moved here from
87         WebCoreScriptDebugger.mm and cleaned up.
88         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
89         (WebCoreScriptDebuggerImp::sourceParsed):
90         (WebCoreScriptDebuggerImp::callEvent):
91         (WebCoreScriptDebuggerImp::atStatement):
92         (WebCoreScriptDebuggerImp::returnEvent):
93         (WebCoreScriptDebuggerImp::exception):
94
95 2008-03-05  Adam Roben  <aroben@apple.com>
96
97         Move -_enterFrame and -_leaveFrame from WebCoreScriptDebugger to WebScriptDebugger
98
99         Reviewed by Kevin M.
100
101         * WebView/WebCoreScriptDebugger.h:
102           - Removed newFrameWithGlobalObject:caller:state: from
103             WebScriptDebugger protocol
104           - Added enterFrame: and leaveFrame: to WebScriptDebugger protocol
105           - Removed _current ivar from WebCoreScriptDebugger
106         * WebView/WebCoreScriptDebugger.mm:
107         (WebCoreScriptDebuggerImp::callEvent): Changed to call enterFrame on
108         the delegate.
109         (WebCoreScriptDebuggerImp::returnEvent): Ditto for leaveFrame.
110         * WebView/WebScriptDebugDelegate.mm:
111         (-[WebScriptDebugger dealloc]): Added code to release _current.
112         (-[WebScriptDebugger enterFrame:]): Added. Code came from
113         WebCoreScriptDebugger.
114         (-[WebScriptDebugger leaveFrame]): Ditto.
115         * WebView/WebScriptDebugDelegatePrivate.h: Added _current ivar.
116
117 2008-03-05  Adam Roben  <aroben@apple.com>
118
119         Remove WebCoreScriptCallFrame
120
121         Reviewed by Tim.
122
123         * WebView/WebCoreScriptDebugger.h:
124           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
125           - Replaced -newWrapperForFrame: with
126             -newFrameWithGlobalObject:caller:state:
127           - Removed WebCoreScriptCallFrame interface.
128         * WebView/WebCoreScriptDebugger.mm: Replaced WebCoreScriptCallFrame
129         with WebScriptCallFrame.
130         (-[WebCoreScriptDebugger _enterFrame:]): Changed to call
131         -newFrameWithGlobalObject:caller:state.
132         (-[WebCoreScriptDebugger _leaveFrame]):
133         * WebView/WebScriptDebugDelegate.h: Changed WebScriptCallFrame's
134         _private ivar to be of type WebScriptCallFramePrivate*.
135         * WebView/WebScriptDebugDelegate.mm:
136           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
137           - Added WebScriptCallFramePrivate
138         (-[WebScriptDebugger enteredFrame:sourceId:line:]):
139         (-[WebScriptDebugger hitStatement:sourceId:line:]):
140         (-[WebScriptDebugger leavingFrame:sourceId:line:]):
141         (-[WebScriptDebugger exceptionRaised:sourceId:line:]):
142         (-[WebScriptCallFramePrivate dealloc]): Added.
143         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Added.
144         Code came from WebCoreScriptCallFrame.
145         (-[WebScriptCallFrame dealloc]): Added a call to release the _private
146         ivar.
147         (-[WebScriptCallFrame _convertValueToObjcValue:]): Replaced calls to
148         _private with direct access of _private's ivars.
149         (-[WebScriptCallFrame caller]): Ditto.
150         (-[WebScriptCallFrame scopeChain]): Ditto.
151         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
152
153 2008-03-05  Adam Roben  <aroben@apple.com>
154
155         Move -_convertValueToObjcValue to WebScriptCallFrame
156
157         Reviewed by Darin.
158
159         * WebView/WebCoreScriptDebugger.h: Removed declaration of
160         -_convertValueToObjcValue.
161         * WebView/WebCoreScriptDebugger.mm: Removed -_convertValueToObjcValue.
162         * WebView/WebScriptDebugDelegate.mm:
163         (-[WebScriptCallFrame _convertValueToObjcValue:]): Added. Code came
164         from -[WebCoreScriptCallFrame _convertValueToObjcValue].
165         (-[WebScriptCallFrame scopeChain]): Changed to call
166         -_convertValueToObjcValue on self instead of _private.
167         (-[WebScriptCallFrame exception]): Ditto.
168         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
169
170 2008-03-05  Adam Roben  <aroben@apple.com>
171
172         Move -exception and -evaluateWebScript: to WebScriptCallFrame
173
174         Reviewed by Darin.
175
176         * WebView/WebCoreScriptDebugger.h: Removed declarations of -exception
177         and -evaluateWebScript:.
178         * WebView/WebCoreScriptDebugger.mm: Removed -exception and
179         -evaluateWebScript:.
180         * WebView/WebScriptDebugDelegate.mm:
181         (-[WebScriptCallFrame exception]): Added. Code came from
182         -[WebCoreScriptCallFrame exception].
183         (-[WebScriptCallFrame evaluateWebScript:]): Added. Code came from
184         -[WebCoreScriptCallFrame evaluateWebScript:].
185
186 2008-03-05  Adam Roben  <aroben@apple.com>
187
188         Move -scopeChain to WebScriptCallFrame
189
190         Reviewed by Darin.
191
192         * WebView/WebCoreScriptDebugger.h:
193           - Added declarations of -globalObject and -_convertValueToObjcValue:
194             to WebCoreScriptCallFrame
195           - Removed declaration of -scopeChain.
196         * WebView/WebCoreScriptDebugger.mm: Moved -_convertValueToObjcValue
197         within the main WebCoreScriptCallFrame implementation.
198         (-[WebCoreScriptCallFrame globalObject]): Added.
199         * WebView/WebScriptDebugDelegate.mm:
200         (-[WebScriptCallFrame scopeChain]): Added. Code came from
201         -[WebCoreScriptCallFrame scopeChain].
202
203 2008-03-05  Adam Roben  <aroben@apple.com>
204
205         Move -functionName from WebCoreScriptCallFrame to WebScriptCallFrame
206
207         Reviewed by Darin.
208
209         * WebView/WebCoreScriptDebugger.h:
210           - Removed #else case of #ifdef __cplusplus since this file is only
211             ever used by C++ Objective-C files
212           - Removed 'using KJS::ExecState' statement since we prefer not to
213             have using statements in header files
214           - Consequently prefixed uses of ExecState with KJS::
215           - Added declaration of toNSString method that takes a const
216             UString&
217           - Added declaration of -[WebCoreScriptCallFrame state]
218           - Removed declaration of -[WebCoreScriptCallFrame functionName]
219         * WebView/WebCoreScriptDebugger.mm:
220         (toNSString): Made this no longer static.
221         (-[WebCoreScriptCallFrame state]): Added.
222         * WebView/WebScriptDebugDelegate.mm:
223         (-[WebScriptCallFrame functionName]): Added. Code came from
224         -[WebCoreScriptCallFrame functionName], though I changed some nested
225         ifs into early returns.
226
227 2008-03-05  Adam Roben  <aroben@apple.com>
228
229         Move WebCoreScriptDebugger to WebKit
230
231         Reviewed by Darin.
232
233         * WebView/WebCoreScriptDebugger.h: Renamed from WebCore/page/mac/WebCoreScriptDebugger.h.
234         * WebView/WebCoreScriptDebugger.mm: Renamed from WebCore/page/mac/WebCoreScriptDebugger.mm.
235         (toNSString):
236         (toNSURL):
237         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
238         (WebCoreScriptDebuggerImp::sourceParsed):
239         (WebCoreScriptDebuggerImp::callEvent):
240         (WebCoreScriptDebuggerImp::atStatement):
241         (WebCoreScriptDebuggerImp::returnEvent):
242         (WebCoreScriptDebuggerImp::exception):
243         (+[WebCoreScriptDebugger initialize]):
244         (-[WebCoreScriptDebugger initWithDelegate:]):
245         (-[WebCoreScriptDebugger dealloc]):
246         (-[WebCoreScriptDebugger finalize]):
247         (-[WebCoreScriptDebugger delegate]):
248         (-[WebCoreScriptDebugger _enterFrame:]):
249         (-[WebCoreScriptDebugger _leaveFrame]):
250         (-[WebCoreScriptCallFrame _initWithGlobalObject:caller:state:]):
251         (-[WebCoreScriptCallFrame _setWrapper:]):
252         (-[WebCoreScriptCallFrame _convertValueToObjcValue:]):
253         (-[WebCoreScriptCallFrame dealloc]):
254         (-[WebCoreScriptCallFrame wrapper]):
255         (-[WebCoreScriptCallFrame caller]):
256         (-[WebCoreScriptCallFrame scopeChain]):
257         (-[WebCoreScriptCallFrame functionName]):
258         (-[WebCoreScriptCallFrame exception]):
259         (-[WebCoreScriptCallFrame evaluateWebScript:]):
260         * WebView/WebScriptDebugDelegate.mm: Updated header path.
261         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
262
263 2008-03-05  Anders Carlsson  <andersca@apple.com>
264
265         Reviewed by Geoff.
266
267         Include file changes.
268         
269         * Plugins/WebBaseNetscapePluginView.mm:
270         * Plugins/WebNetscapePluginPackage.m:
271
272 2008-03-04  Timothy Hatcher  <timothy@apple.com>
273
274         Reviewed by Darin Adler.
275
276         <rdar://problem/5720160> Browser windows "do nothing" while modal
277         dialog or menu is up due to run loop modes (or while scrolling)
278
279         Add new API that lets a WebView be scheduled with multiple runloops and modes.
280         This lets loading continue when in a nested runloop or in a different mode.
281
282         * Misc/WebKitVersionChecks.h: Add a new version define:
283         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES.
284         * WebView/WebView.mm:
285         (-[WebView _commonInitializationWithFrameName:groupName:]): Schedule in the main runloop and with
286         the default runloop mode if we are linked on an earlier WebKit version, use common modes otherwise.
287         (-[WebView scheduleInRunLoop:forMode:]): New API, that calls through to Page.
288         (-[WebView unscheduleFromRunLoop:forMode:]): Ditto.
289         * WebView/WebViewPrivate.h: Add the new pending API methods.
290
291 2008-03-04  Anders Carlsson  <andersca@apple.com>
292
293         Reviewed by Darin.
294
295         Fix crash that happens when trying to load a page with a Java applet.
296         
297         * WebCoreSupport/WebFrameLoaderClient.mm:
298         Don't release the names and values array - the kit method returns an autoreleased array.
299
300 2008-03-04  Darin Adler  <darin@apple.com>
301
302         Reviewed by Adam.
303
304         - fix 200+ failing regression tests
305         - fix http://bugs.webkit.org/show_bug.cgi?id=17668
306           Vertical scrollbar at slashdot.org is randomly not shown
307
308         * WebCoreSupport/WebFrameLoaderClient.mm:
309         (WebFrameLoaderClient::transitionToCommittedForNewPage): Changed the refcounting
310         code here to exactly match the way it was before it was moved from WebCore. I had
311         introduced a storage leak and that was causing problems with scroll bars!
312
313 2008-03-04  Darin Adler  <darin@apple.com>
314
315         Reviewed by Adam.
316
317         - remove WebCoreFrameBridge reapplyStyles method
318
319         * WebView/WebHTMLView.mm:
320         (-[WebHTMLView reapplyStyles]): Moved code to reapply styles here from the bridge.
321
322 2008-03-04  Darin Adler  <darin@apple.com>
323
324         Reviewed by Adam.
325
326         - eliminate WebCoreFrameBridge createFrameViewWithNSView
327
328         * WebCoreSupport/WebFrameLoaderClient.mm:
329         (WebFrameLoaderClient::transitionToCommittedForNewPage):
330         Moved code here from createFrameViewWithNSView.
331
332 2008-03-04  Darin Adler  <darin@apple.com>
333
334         Reviewed by Adam.
335
336         - removed WebCoreFrameBridge scrollOverflowInDirection
337
338         * WebView/WebFrameView.mm:
339         (-[WebFrameView _scrollOverflowInDirection:granularity:]): Changed to call
340         EventHandler directly instead of using the bridge.
341         (-[WebFrameView scrollToBeginningOfDocument:]): Updated to use WebCore enums instead
342         of the ones from the bridge.
343         (-[WebFrameView scrollToEndOfDocument:]): Ditto.
344         (-[WebFrameView _pageVertically:]): Ditto.
345         (-[WebFrameView _pageHorizontally:]): Ditto.
346         (-[WebFrameView _scrollLineVertically:]): Ditto.
347         (-[WebFrameView _scrollLineHorizontally:]): Ditto.
348
349 2008-03-04  Darin Adler  <darin@apple.com>
350
351         Reviewed by Adam.
352
353         - remove WebCoreFrameBridge installInFrame: method
354
355         * WebCoreSupport/WebFrameLoaderClient.mm:
356         (WebFrameLoaderClient::transitionToCommittedForNewPage): Call
357         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
358         * WebView/WebFrameView.mm:
359         (-[WebFrameView _install]): Added. Has code from -[WebCoreFrameBridge installInFrame:].
360         (-[WebFrameView _setCustomScrollViewClass:]): Used early return idiom so the entire
361         method isn't nested inside an if statement. Call
362         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
363         * WebView/WebFrameViewInternal.h: Added declaration of _install method so it can be
364         used in WebFrameLoaderClient.mm.
365
366 2008-03-04  Darin Adler  <darin@apple.com>
367
368         Reviewed by Adam.
369
370         - remove WebCoreFrameBridge window method
371
372         * WebCoreSupport/WebFrameBridge.mm: Removed window method.
373
374 2008-03-04  Darin Adler  <darin@apple.com>
375
376         Reviewed by Adam.
377
378         - move code from WebFrameBridge into WebFrameLoaderClient
379
380         * WebCoreSupport/WebFrameBridge.h: Removed unused fields, changed frame name parameters
381         to use WebCore::String instead of NSString, add initSubframeWithOwnerElement declaration,
382         removed viewForPluginWithFrame, viewForJavaAppletWithFrame, createChildFrameNamed,
383         redirectDataToPlugin, determineObjectFromMIMEType, and windowObjectCleared methods.
384         * WebCoreSupport/WebFrameBridge.mm:
385         (-[WebFrameBridge finishInitializingWithPage:frameName:WebCore::frameView:ownerElement:]):
386         Changed to use WebCore::String.
387         (-[WebFrameBridge initMainFrameWithPage:frameName:WebCore::frameView:]): Ditto.
388         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:WebCore::frameView:]): Ditto.
389
390         * WebCoreSupport/WebFrameLoaderClient.mm:
391         (WebFrameLoaderClient::setOriginalURLForDownload): Removed some dead code I found here
392         and added a FIXME.
393         (WebFrameLoaderClient::createFrame): Moved the code from WebFrameBridge here.
394         (WebFrameLoaderClient::objectContentType): Ditto.
395         (parameterValue): Added.  Helper function, based on code originally in WebFrameBridge.
396         (pluginView): Ditto.
397         (WebFrameLoaderClient::createPlugin): Moved the code from WebFrameBridge here.
398
399 2008-03-04  Darin Adler  <darin@apple.com>
400
401         Reviewed by Adam.
402
403         - remove -[WebCoreFrameBridge dashboardRegionsChanged:]
404
405         * WebCoreSupport/WebChromeClient.h:
406         * WebCoreSupport/WebChromeClient.mm:
407         (WebChromeClient::dashboardRegionsChanged): Moved code here from the bridge.
408         The WebCore side now calls this only when there's an actual change.
409         * WebCoreSupport/WebFrameBridge.h: Removed lastDashboardRegions.
410         * WebCoreSupport/WebFrameBridge.mm:
411         (-[WebFrameBridge dealloc]): Removed code to release lastDashboardRegions.
412         Removed _compareDashboardRegions: and dashboardRegionsChanged: methods.
413
414 2008-03-04  Darin Adler  <darin@apple.com>
415
416         Reviewed by Adam.
417
418         - remove WebCoreFrameBridge issuePasteComand method
419
420         * WebCoreSupport/WebFrameBridge.mm: Removed issuePasteCommand method.
421         * WebView/WebHTMLViewInternal.h: Removed declaration of paste: method.
422
423 2008-03-03  Darin Adler  <darin@apple.com>
424
425         Reviewed by Adam.
426
427         - some "cleanup" on the path to removing WebCoreFrameBridge
428
429         * Storage/WebDatabaseManager.mm: Tweak includes.
430         * Storage/WebDatabaseTrackerClient.mm: Ditto.
431         * Storage/WebSecurityOrigin.mm: Ditto.
432         * Storage/WebSecurityOriginInternal.h: Ditto.
433
434         * WebView/WebFrame.mm:
435         (core): Changed to get rid of the requirement that WebKitEditableLinkBehavior exactly
436         match WebCore::EditableLinkBehavior.
437         * WebView/WebFrameInternal.h: Removed unused kit function.
438
439         * WebView/WebHTMLView.mm: Moved WebHTMLViewPrivate class in here.
440         * WebView/WebHTMLViewInternal.h: Moved WebHTMLVewPrivate class out of here.
441         * WebView/WebHTMLViewPrivate.h: Tweaked formatting and removed some unneeded declarations.
442
443         * WebView/WebPreferencesPrivate.h: Removed a no-longer-needed comment.
444
445 2008-03-01  Mark Rowe  <mrowe@apple.com>
446
447         Reviewed by Tim Hatcher.
448
449         Update Xcode configuration to support building debug and release from the mysterious future.
450
451         * Configurations/DebugRelease.xcconfig:
452
453 2008-02-29  Mark Rowe  <mrowe@apple.com>
454
455         Reviewed by Anders Carlsson.
456
457         Replace use of WKPathFromFont with implementation in terms of public API.
458
459         * WebCoreSupport/WebSystemInterface.m:
460         (InitWebCoreSystemInterface): Remove unused symbol.
461
462 2008-02-29  Mark Rowe  <mrowe@apple.com>
463
464         Reviewed by Oliver Hunt.
465
466         Fix spelling of "request" in name of WKNSURLProtocolClassForRequest.
467
468         * Misc/WebNSURLExtras.mm:
469         (-[NSURL _webkit_canonicalize]):
470         * WebKit.order:
471
472 2008-02-29  Mark Rowe  <mrowe@apple.com>
473
474         Reviewed by Oliver Hunt.
475
476         Don't use WKSupportsMultipartXMixedReplace on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest.
477
478         * WebCoreSupport/WebSystemInterface.m:
479         (InitWebCoreSystemInterface):
480
481 2008-02-29  Mark Rowe  <mrowe@apple.com>
482
483         Reviewed by Oliver Hunt.
484
485         Remove obsolete code that had been left intact to support users running WebKit with older versions of Safari.
486
487         * Misc/WebNSViewExtras.m:  Remove _web_superviewOfClass:stoppingAtClass:.
488         * Misc/WebNSWindowExtras.m:  Remove _webkit_displayThrottledWindows.
489         * Misc/WebSearchableTextView.m:  Remove selectionImageForcingWhiteText:.
490         * WebCoreSupport/WebImageRendererFactory.m:  Update comment to mention the last version of Safari that
491         requires this class.
492         * WebInspector/WebInspector.mm:  Remove sharedWebInspector and update comments to mention the last version
493         of Safari that calls other obsolete methods.
494         * WebView/WebDocumentPrivate.h:  Remove selectionImageForcingWhiteText:.
495         * WebView/WebHTMLView.mm:  Ditto.
496         * WebView/WebPDFView.mm:  Ditto.
497         * WebView/WebView.mm:  Update comment to mentoin the last version of Safari that requires the obsolete method.
498
499 2008-02-29  Mark Rowe  <mrowe@apple.com>
500
501         Rubber-stamped by Eric Seidel.
502
503         Remove unneeded includes of WebKitSystemInterface.h.
504
505         * History/WebHistoryItem.mm:
506         * Misc/WebNSViewExtras.m:
507         * WebCoreSupport/WebFrameLoaderClient.mm:
508         * WebView/WebDataSource.mm:
509         * WebView/WebPDFView.mm:
510
511 2008-02-29  Mark Rowe  <mrowe@apple.com>
512
513         Reviewed by Oliver Hunt and Oliver Hunt.
514
515         <rdar://problem/4753845> WebKit should use CGEventSourceSecondsSinceLastEventType in place of WKSecondsSinceLastInputEvent SPI.
516
517         * WebCoreSupport/WebSystemInterface.m:
518         (InitWebCoreSystemInterface):  Remove unused symbol.
519         * WebKit.order:  Ditto.
520
521 2008-02-28  Mark Rowe  <mrowe@apple.com>
522
523         Reviewed by Dave Hyatt.
524
525         Make use of new CGFont APIs on Leopard rather than making a WebKitSystemInterface call.
526
527         * WebCoreSupport/WebSystemInterface.m:
528         (InitWebCoreSystemInterface): Only initialize wkGetFontMetrics on Tiger.
529
530 2008-02-27  Brady Eidson  <beidson@apple.com>
531
532         Reviewed by Mark Rowe (code) and Darin (concept)
533
534         Much better fix for <rdar://problem/4930688> (see r19549)
535         Original fix for <rdar://problem/3947312> (and 14 dupes)
536         
537         Let me tell you a story:
538         A long time ago, in a cvs repository far, far away, loader code was almost all up in WebKit.
539         WebArchive code was intertwined with that code in bizarre and complex ways.
540         During the months long loader re-factoring where we pushed much loader code down into WebCore,
541         many portions of the WebKit loader were thinned out until they ceased to exist.  Others remained
542         with a sole purpose.
543
544         One such section of code whose lineage traces back from WebFrameLoaderClient to WebFrameLoader
545         to WebLoader was originally rooted in the method [WebLoader loadRequest:].  This method was the 
546         single entry point for almost all loading (network or web archives)
547
548         This method would check various headers and other fields on the NSURLRequest and NSURLResponse 
549         to make decisions about the load.  If the cache control fields were expired or other conditions 
550         in the headers were met, the load would be forced to go out to the network.
551
552         As the loader was moved and tweaked repeatedly, most of this code was pruned or re-factored.  
553         At some point, all that remained was the special cases for loading WebArchives.  
554         
555         Somewhere in the r16,000s, this remaining responsibility was noticed and related methods we renamed
556         to be WebArchive specific, further cementing the assumed design.
557
558         Problem is, the design was bad.  A WebArchive is meant to be a static snapshot of a WebPage at a
559         specific point in time.  Referring to the request to see if the resource should be reloaded seems
560         nonsensical, as does referring to the response headers to see if the resource is "expired".  In the 
561         context of loading a WebArchive, available data should *always* be loaded from the WebArchive, at least
562         during the initial load!
563
564         After discovering the secret to reproducing all of these bugs is both emptying our your Foundation 
565         cache and disconnecting your network, it was easy to reproduce the 16 individually reported cases 
566         that were all symptoms of this bug, and easy to verify that they are fixed with this patch.
567
568         * WebCoreSupport/WebFrameLoaderClient.h:
569         * WebCoreSupport/WebFrameLoaderClient.mm:
570         (WebFrameLoaderClient::willUseArchive): Do not call either form of "canUseArchivedResource()" that
571           inspect the request or response objects - We are loading from a WebArchive, and we should never
572           make the decision to go out to the network when we actually have the resource available.
573
574         * WebCoreSupport/WebSystemInterface.m:
575         (InitWebCoreSystemInterface):  Remove two methods that are no longer used anywhere in WebKit
576
577 2008-02-27  Matt Lilek  <webkit@mattlilek.com>
578
579         Reviewed by Adam Roben.
580
581         Bug 14348: Messing up the inspector by dragging an URL into it
582         http://bugs.webkit.org/show_bug.cgi?id=14348
583         <rdar://problem/5283620> and <rdar://problem/5712808>
584
585         * WebCoreSupport/WebInspectorClient.mm:
586         (-[WebInspectorWindowController init]): Remove duplicate preference setting.
587         (-[WebInspectorWindowController webView:dragDestinationActionMaskForDraggingInfo:]):
588
589 2008-02-25  Darin Adler  <darin@apple.com>
590
591         Reviewed by Adam.
592
593         * WebView/WebArchiver.mm:
594         (+[WebArchiver archiveSelectionInFrame:]): Use blankURL.
595         * WebView/WebFrame.mm:
596         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Avoid the
597         variable name URL to avoid clashing with the renamed KURL in the future. Also use
598         blankURL.
599         (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]): Ditto.
600         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]): Ditto.
601         (-[WebFrame loadHTMLString:baseURL:]): Ditto.
602         (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]): Ditto.
603
604 2008-02-24  Darin Adler  <darin@apple.com>
605
606         Reviewed by Sam.
607
608         - remove separate client calls for "standard" and "reload' history
609
610         * WebCoreSupport/WebFrameLoaderClient.h:
611         * WebCoreSupport/WebFrameLoaderClient.mm:
612         (WebFrameLoaderClient::updateGlobalHistory):
613
614 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
615
616         Reviewed by Darin.
617
618         Move basic threading support from WebCore to WTF.
619
620         * ForwardingHeaders/wtf/Threading.h: Added.
621         * ForwardingHeaders/wtf/Locker.h: Added.
622
623 2008-02-23  David Kilzer  <ddkilzer@apple.com>
624
625         Please clarify licensing for some files
626         <http://bugs.webkit.org/show_bug.cgi?id=14970>
627
628         Reviewed by Darin.
629
630         * Plugins/WebNetscapeDeprecatedFunctions.c: Updated copyright statement
631         and added Apple BSD-style license.
632         * Plugins/WebNetscapeDeprecatedFunctions.h: Ditto.
633
634 2008-02-22  John Sullivan  <sullivan@apple.com>
635
636         Reviewed by Adam Roben
637         
638         Reverted the changed from yesterday to add pasteAndMatchStyle:, as the existing
639         pasteAsPlainText: has the same behavior.
640
641         * WebView/WebHTMLView.mm:
642         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
643         (-[WebHTMLView readSelectionFromPasteboard:]):
644         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
645         (-[WebHTMLView pasteAsRichText:]):
646         (-[WebHTMLView paste:]):
647         * WebView/WebView.mm:
648         * WebView/WebViewPrivate.h:
649
650 2008-02-21  Anders Carlsson  <andersca@apple.com>
651
652         Reviewed by Sam.
653
654         Use BackForwardList::create instead.
655         
656         * History/WebBackForwardList.mm:
657         (-[WebBackForwardList init]):
658
659 2008-02-21  John Sullivan  <sullivan@apple.com>
660
661         Reviewed by Jessica Kahn
662         
663         support for pasteAndMatchStyle: command (see <rdar://problem/5723952>)
664
665         * WebView/WebHTMLView.mm:
666         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:matchStyle:]):
667         added matchStyle parameter, passed along to bridge (formerly always passed NO to bridge)
668         (-[WebHTMLView readSelectionFromPasteboard:]):
669         pass NO for new matchStyle parameter to match old behavior
670         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
671         validate pasteAndMatchStyle the same way as pasteAsRichText
672         (-[WebHTMLView pasteAndMatchStyle:]):
673         just like pasteAsRichText but passes YES for matchStyle
674         (-[WebHTMLView pasteAsRichText:]):
675         pass NO for new matchStyle parameter to match old behavior
676         (-[WebHTMLView paste:]):
677         ditto
678         
679         * WebView/WebView.mm:
680         added macro(pasteAndMatchStyle)
681         
682         * WebView/WebViewPrivate.h:
683         added pasteAndMatchStyle: to WebViewEditingActionsPendingPublic category
684
685 2008-02-20  Sam Weinig  <sam@webkit.org>
686
687         Reviewed by Darin and Geoff.
688
689         - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
690
691         * WebView/WebView.mm:
692         (-[WebView _preferencesChangedNotification:]): Added a call to Settings::setNeedsSiteSpecificQuirks.
693         There are currently no site-specific quirks on Mac, but we will propagate the state
694         to WebCore to avoid possible mistakes later.
695
696 2008-02-19  Anders Carlsson  <andersca@apple.com>
697
698         Reviewed by Darin.
699
700         Move back WebKit methods that were unused in WebCore.
701         
702         * Misc/WebNSURLExtras.mm:
703         (+[NSURL _web_URLWithData:]):
704         (+[NSURL _web_URLWithData:relativeToURL:]):
705         (-[NSURL _web_originalData]):
706         (-[NSURL _web_originalDataAsString]):
707         (-[NSURL _web_isEmpty]):
708         (-[NSURL _webkit_canonicalize]):
709         (-[NSURL _webkit_URLByRemovingComponent:]):
710         (-[NSURL _webkit_URLByRemovingFragment]):
711         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
712         (-[NSURL _webkit_isFileURL]):
713         (-[NSString _webkit_isFileURL]):
714         * WebCoreSupport/WebFrameLoaderClient.mm:
715         (WebFrameLoaderClient::setTitle):
716         * WebCoreSupport/WebSystemInterface.m:
717         (InitWebCoreSystemInterface):
718
719 2008-02-18  Darin Adler  <darin@apple.com>
720
721         Reviewed by Sam.
722
723         * Misc/WebNSAttributedStringExtras.mm:
724         (+[NSAttributedString _web_attributedStringFromRange:]): Eliminate use of
725         DeprecatedString.
726
727 2008-02-17  Sam Weinig  <sam@webkit.org>
728
729         Reviewed by Dan Bernstein.
730
731         Fix for http://bugs.webkit.org/show_bug.cgi?id=17365
732         document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
733
734         * MigrateHeaders.make: Migrate DOMProgressEvent.h and DOMTextPrivate.h which were
735         mistakenly not migrated.
736
737 2008-02-15  Dan Bernstein  <mitz@apple.com>
738
739         Reviewed by Alexey Proskuryakov.
740
741         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=17360
742           <rdar://problem/5743131> REGRESSION: mp4 file downloaded from server is downloaded as html
743
744         * WebView/WebDataSource.mm:
745         (+[WebDataSource _representationClassForMIMEType:]):
746         (-[WebDataSource _responseMIMEType]):
747         (-[WebDataSource subresources]):
748         (-[WebDataSource subresourceForURL:]):
749         * WebView/WebResource.mm:
750         (-[WebResource _initWithData:URL:response:]):
751         * WebView/WebResourcePrivate.h:
752
753 2008-02-15  Adam Roben  <aroben@apple.com>
754
755         Make WebKit's FEATURE_DEFINES match WebCore's
756
757         Reviewed by Mark.
758
759         * Configurations/WebKit.xcconfig:
760
761 2008-02-14  Darin Adler  <darin@apple.com>
762
763         Reviewed by Eric Seidel.
764
765         - updated for WebCore KURL changes
766
767         * History/WebHistoryItem.mm:
768         (-[WebHistoryItem URL]): Removed getNSURL call.
769         * Misc/WebElementDictionary.mm:
770         (-[WebElementDictionary _absoluteImageURL]): Ditto.
771         (-[WebElementDictionary _absoluteLinkURL]): Ditto.
772         * Misc/WebNSAttributedStringExtras.mm:
773         (fileWrapperForElement): Ditto.
774         (+[NSAttributedString _web_attributedStringFromRange:]): Ditto.
775         * Misc/WebNSURLExtras.mm:
776         (-[NSString _webkit_stringByReplacingValidPercentEscapes]): Updated
777         for function name change.
778         * WebCoreSupport/WebContextMenuClient.mm:
779         (WebContextMenuClient::downloadURL): Removed getNSURL call.
780         * WebCoreSupport/WebDragClient.mm:
781         (WebDragClient::createDragImageForLink): Ditto.
782         * WebCoreSupport/WebFrameLoaderClient.mm:
783         (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Ditto.
784         (WebFrameLoaderClient::startDownload): Ditto.
785         (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad): Ditto.
786         (WebFrameLoaderClient::updateGlobalHistoryForReload): Ditto.
787         (WebFrameLoaderClient::cancelledError): Ditto.
788         (WebFrameLoaderClient::blockedError): Ditto.
789         (WebFrameLoaderClient::cannotShowURLError): Ditto.
790         (WebFrameLoaderClient::interruptForPolicyChangeError): Ditto.
791         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto.
792         (WebFrameLoaderClient::fileDoesNotExistError): Ditto.
793         (WebFrameLoaderClient::willUseArchive): Ditto.
794         (WebFrameLoaderClient::setTitle): Ditto.
795         (WebFrameLoaderClient::actionDictionary): Ditto.
796         (WebFrameLoaderClient::createFrame): Ditto.
797         (WebFrameLoaderClient::objectContentType): Ditto.
798         (WebFrameLoaderClient::createPlugin): Ditto.
799         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
800         * WebView/WebDataSource.mm:
801         (-[WebDataSource _URL]): Ditto.
802         (-[WebDataSource _initWithDocumentLoader:]): Ditto.
803         (-[WebDataSource unreachableURL]): Ditto.
804         * WebView/WebHTMLView.mm:
805         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
806
807 2008-02-14  Stephanie Lewis  <slewis@apple.com>
808
809         Reviewed by Geoff.
810
811         Update order files.
812
813         * WebKit.order:
814
815 2008-02-14  Alexey Proskuryakov  <ap@webkit.org>
816
817         Reviewed by Adam Roben.
818
819         http://bugs.webkit.org/show_bug.cgi?id=17207
820         Database example doesn't work (requires not-yet-released Safari)
821
822         * WebCoreSupport/WebChromeClient.mm:
823         (WebChromeClient::exceededDatabaseQuota): Check Safari version, and allow 5 megabytes of storage
824         if it's too old.
825
826 2008-02-11  Darin Adler  <darin@apple.com>
827
828         - roll out fix for <rdar://problem/5726016> REGRESSION: Xcode News window renders
829           incorrectly due to visibility fix
830
831         Removed the Xcode-specific quirk at the request of some folks on the Xcode team.
832
833         * Misc/WebKitVersionChecks.h: Removed the constant.
834
835         * WebView/WebView.mm:
836         (-[WebView _needsXcodeVisibilityQuirk]): Removed.
837         (-[WebView _preferencesChangedNotification:]): Removed call to
838         setNeedsXcodeVisibilityQuirk.
839
840 2008-02-12  Anders Carlsson  <andersca@apple.com>
841
842         Reviewed by Mitz.
843
844         * WebCoreSupport/WebFrameBridge.mm:
845         * WebCoreSupport/WebViewFactory.mm:
846         (-[WebViewFactory imageTitleForFilename:size:]):
847         Move implementation from WebFrameBridge to WebViewFactory.
848
849 2008-02-11  Darin Adler  <darin@apple.com>
850
851         Reviewed by Mitz.
852
853         - fix <rdar://problem/5726016> REGRESSION: Xcode News window renders
854           incorrectly due to visibility fix
855
856         Added an Xcode-specific quirk.
857
858         * Misc/WebKitVersionChecks.h: Added a constant for the "linked on or after"
859         part of the check.
860
861         * WebView/WebView.mm:
862         (-[WebView _needsXcodeVisibilityQuirk]): Added.
863         (-[WebView _preferencesChangedNotification:]): Added a call to
864         setNeedsXcodeVisibilityQuirk based on _needsXcodeVisibilityQuirk.
865
866 2008-02-10  Darin Adler  <darin@apple.com>
867
868         - fix http://bugs.webkit.org/show_bug.cgi?id=17274
869           REGRESSION: User Agent string broken in r30119
870
871         * WebView/WebView.mm:
872         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]):
873         Fix wrong variable name. Doh!
874
875 2008-02-09  Darin Adler  <darin@apple.com>
876
877         Reviewed by Tim Hatcher.
878
879         - fix <rdar://problem/5725996> crash every time you open the Xcode documentation window
880
881         * WebView/WebView.mm:
882         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Work around a bug in the
883         garbage collector's Objective C++ support by not initializing a static to an object
884         that needs to be marked when running under GC.
885
886 2008-02-05  Dan Bernstein  <mitz@apple.com>
887
888         Reviewed by Darin Adler.
889
890         - WebKit part of <rdar://problem/5724303> Should implement writing direction shortcuts
891
892         The key bindings are Command-Control-left arrow and
893         Command-Control-right arrow. To match AppKit, the bindings are enabled
894         only when certain user defaults are set.
895
896         * WebView/WebHTMLView.mm:
897         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
898         (-[WebHTMLView toggleBaseWritingDirection:]): Changed to call
899         Frame::baseWritingDirectionForSelectionStart() and
900         Editor::setBaseWritingDirection() directly.
901         (-[WebHTMLView changeBaseWritingDirection:]): Ditto.
902         (writingDirectionKeyBindingsEnabled): Added.
903         (-[WebHTMLView _changeBaseWritingDirectionTo:]): Added this helper
904         method.
905         (-[WebHTMLView changeBaseWritingDirectionToLTR:]): Added.
906         (-[WebHTMLView changeBaseWritingDirectionToRTL:]): Added.
907         * WebView/WebView.mm:
908
909 2008-02-05  Mark Rowe  <mrowe@apple.com>
910
911         Unreviewed build fix.
912
913         * WebView/WebView.mm: Add missing #import.
914
915 2008-02-05  Mark Rowe  <mrowe@apple.com>
916
917         Reviewed by Oliver Hunt.
918
919         Update versioning to support the mysterious future.
920
921         * Configurations/Version.xcconfig: Add SYSTEM_VERSION_PREFIX_1060.
922
923 2008-01-30  Justin Garcia  <justin.garcia@apple.com>
924
925         Reviewed by Darin Adler.
926         
927         <rdar://problem/5708115> REGRESSION: Words selected with a double click and copied won't paste into Mail
928
929         * WebView/WebHTMLView.mm:
930         (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]): Brought 
931         this back, it's used by Mail.
932         (-[WebHTMLView _canSmartReplaceWithPasteboard:]): This WebInternal method is
933         also used by Mail.  Moved to WebPrivate.
934         * WebView/WebHTMLViewPrivate.h: Expose two methods that Mail uses here, so that we don't
935         accidently remove them in the future.
936
937 2008-01-30  Mark Rowe  <mrowe@apple.com>
938
939         Reviewed by Oliver Hunt.
940
941         Move off deprecated NSTableView methods.
942
943         * WebView/WebHTMLView.mm:
944         (-[WebTextCompleteController _buildUI]): Switch from -setDrawsGrid: to -setGridStyleMask:.
945         (-[WebTextCompleteController _placePopupWindow:]): Switch from -selectRow:byExtendingSelection: to -selectRowIndexes:byExtendingSelection:.
946         (-[WebTextCompleteController filterKeyDown:]): Ditto.
947
948 2008-01-26  Mark Rowe  <mrowe@apple.com>
949
950         Reviewed by Darin Adler.
951
952         Fix leaks seen after loading <http://www.funnyordie.com/videos/d70b5a11cb>.
953
954         * Misc/WebNSDataExtras.m:
955         (-[NSString _web_capitalizeRFC822HeaderFieldName]): Transfer ownerhip of the allocated buffers
956         to the new CFString so that they will be freed when no longer needed.
957
958 2008-01-26  Greg Bolsinga  <bolsinga@apple.com>
959
960         <rdar://problem/5708388> WebDashboardRegion.h duplicated between WebCore / WebKit
961
962         Reviewed by Darin.
963
964         * WebCoreSupport/WebDashboardRegion.h: Removed.
965         * WebView/WebView.mm: Updated #import to use copy of WebDashboardRegion.h from WebCore.
966
967 2008-01-21  Darin Adler  <darin@apple.com>
968
969         Reviewed by John Sullivan.
970
971         - fix <rdar://problem/5644324> Delegate-less WebKit clients should have no databases
972         - add a missing export of WebDatabaseExpectedSizeKey
973         - implement deleteOrigin: and remove deleteDatabasesWithOrigin:
974
975         * Storage/WebDatabaseManager.mm:
976         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Updated to check for a null
977         name instead of calling isValid().
978         (-[WebDatabaseManager deleteOrigin:]): Implemented.
979         (WebKitInitializeDatabasesIfNecessary): Updated for name change.
980
981         * Storage/WebDatabaseManagerPrivate.h: Removed deleteDatabasesWithOrigin:.
982
983         * WebCoreSupport/WebChromeClient.h: Updated for changes to ChromeClient.
984         * WebCoreSupport/WebChromeClient.mm:
985         (WebChromeClient::exceededDatabaseQuota): Replaced the two different client functions
986         we had before with a single one.
987
988         * WebKit.exp: Added missing export for WebDatabaseExpectedSizeKey.
989
990         * WebView/WebPreferenceKeysPrivate.h: Removed WebKitDefaultDatabaseQuotaKey.
991         * WebView/WebPreferences.m:
992         (+[WebPreferences initialize]): Removed the default for WebKitDefaultDatabaseQuotaKey.
993         * WebView/WebPreferencesPrivate.h: Removed defaultDatabaseQuota and
994         setDefaultDatabaseQuota:.
995
996         * WebView/WebUIDelegatePrivate.h: Replaced the two different database quota delegate
997         methods we had before with a single one.
998
999         * WebView/WebView.mm:
1000         (-[WebView _preferencesChangedNotification:]): Removed the code to set the
1001         default database origin quota in WebCore::Settings based on WebPreferences.
1002
1003         * WebView/WebViewInternal.h: Removed delegate method dispatch functions for unusual
1004         types of parameters that the database UI delegate methods had before.
1005
1006 2008-01-20  Mark Rowe  <mrowe@apple.com>
1007
1008         Reviewed by Dan Bernstein.
1009
1010         Remove code bracketed by REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM as we are no longer
1011         interested in supporting Safari 2 with TOT WebKit.
1012
1013         * WebView/WebView.mm:
1014         (+[WebView initialize]):
1015
1016 2008-01-17  Timothy Hatcher  <timothy@apple.com>
1017
1018         Reviewed by Adam Roben.
1019
1020         <rdar://problem/5693558> REGRESSION (r29581): no form field focus rings
1021         and inactive text selection after loading a page
1022         Bug 16917: REGRESSION (r29581/2): Google Maps search box loses focused appearance
1023
1024         The problem was other frames were changing the FocusController's active
1025         status to false after the first responder frame set it to true. The last
1026         frame to call _updateActiveState would win.
1027
1028         * WebView/WebHTMLView.mm:
1029         (-[WebHTMLView _updateActiveState]): Only call page->focusController()->setActive()
1030         if the first responder is the current WebHTMLView or the WebFrameView.
1031         (-[WebHTMLView _web_firstResponderCausesFocusDisplay]): Removed, inlined code in _updateActiveState.
1032
1033 2008-01-18  Adam Roben  <aroben@apple.com>
1034
1035         Rename _updateActiveState to _updateFocusedAndActiveState
1036
1037         Also renamed any related methods/members similarly.
1038
1039         Reviewed by Adele.
1040
1041         * WebView/WebHTMLView.mm:
1042         (-[WebHTMLViewPrivate dealloc]):
1043         (-[WebHTMLView _cancelUpdateFocusedAndActiveStateTimer]):
1044         (-[WebHTMLView close]):
1045         (_updateFocusedAndActiveStateTimerCallback):
1046         (-[WebHTMLView viewWillMoveToWindow:]):
1047         (-[WebHTMLView viewDidMoveToWindow]):
1048         (-[WebHTMLView windowDidBecomeKey:]):
1049         (-[WebHTMLView windowDidResignKey:]):
1050         (-[WebHTMLView becomeFirstResponder]):
1051         (-[WebHTMLView resignFirstResponder]):
1052         * WebView/WebHTMLViewInternal.h:
1053         * WebView/WebHTMLViewPrivate.h:
1054
1055 2008-01-17  John Sullivan  <sullivan@apple.com>
1056
1057         Reviewed by Darin
1058         
1059         - fixed <rdar://problem/5692068> -1 WebFrameView world leaks reported after closing view source window
1060
1061         * WebView/WebFrameView.mm:
1062         (-[WebFrameView initWithCoder:]):
1063         override to bump the global WebFrameView count
1064
1065 2008-01-16  Adam Roben  <aroben@apple.com>
1066
1067         Updated for renames/removal of WebCore methods.
1068
1069         Reviewed by Darin.
1070
1071         * Plugins/WebPluginController.mm:
1072         (-[WebPluginController webPlugInContainerSelectionColor]): Changed to
1073         ask isFocusedAndActive directly, instead of going through the frame
1074         bridge.
1075         * WebView/WebHTMLView.mm:
1076         (-[WebHTMLView _updateActiveState]): Updated for method renames.
1077
1078 2008-01-16  John Sullivan  <sullivan@apple.com>
1079
1080         Reviewed by Adam and Dan
1081         
1082         - cleaned up some existing logging
1083
1084         * WebView/WebHTMLView.mm:
1085         (-[WebHTMLView setNeedsDisplay:]):
1086         add method name to log, use "YES" and "NO" instead of (int)flag
1087         (-[WebHTMLView setNeedsLayout:]):
1088         ditto
1089         (-[WebHTMLView setNeedsToApplyStyles:]):
1090         ditto
1091
1092 2008-01-15  Geoffrey Garen  <ggaren@apple.com>
1093
1094         Reviewed by Andre Boule.
1095
1096         Fixed <rdar://problem/5667627> [WebCache empty] implementation should
1097         not disable/enable the cache
1098         
1099         Toggle the cache model instead -- toggling disable/enable just causes
1100         the cache to forget about resources, not reclaim their memory.
1101
1102         * Misc/WebCache.mm:
1103         (+[WebCache empty]):
1104         * WebView/WebView.mm:
1105         * WebView/WebViewInternal.h:
1106
1107 2008-01-15  Adele Peterson  <adele@apple.com>
1108
1109         Reviewed by Adam and Antti.
1110
1111         WebKit part of fix for <rdar://problem/5619062> Add load progress indicator to video controls
1112
1113         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1114           Removed initialization for GetMediaControlBackgroundImageData.  Added initialization for DrawMediaSliderTrack.
1115
1116 2008-01-10  Geoffrey Garen  <ggaren@apple.com>
1117
1118         Reviewed by John Sullivan.
1119
1120         Fixed some world leak reports:
1121         * <rdar://problem/5669436> PLT complains about world leak of 1 JavaScript
1122         Interpreter after running cvs-base suite
1123
1124         * <rdar://problem/5669423> PLT complains about world leak if browser
1125         window is open when PLT starts
1126         
1127         These were both bugs in the reporting mechanism, so I took the
1128         opportunity to do some house cleaning there.
1129
1130         * Misc/WebCoreStatistics.h: Did a little renaming, to match
1131         JavaScriptCore better. I kept the methods with the old names around,
1132         though, because old versions of Safari need them.
1133
1134         * Misc/WebCoreStatistics.mm: Removed dependence on
1135         WebCore::JavaScriptStatistics, which is gone now. 
1136         
1137         These two methods are now distinct, for the sake of world leak reporting:
1138         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1139         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1140
1141 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
1142
1143         Not reviewed. Build fix.
1144         
1145         - Attempt to fix mac build.
1146
1147         * Storage/WebDatabaseManager.mm:
1148
1149 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
1150
1151         Reviewed by Sam.
1152
1153         - remove SecurityOriginData and fold its functionality into SecurityOrigin
1154
1155         * Storage/WebDatabaseManager.mm:
1156         (-[WebDatabaseManager origins]):
1157         (-[WebDatabaseManager databasesWithOrigin:]):
1158         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
1159         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
1160         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
1161         * Storage/WebDatabaseTrackerClient.h:
1162         * Storage/WebDatabaseTrackerClient.mm:
1163         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
1164         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
1165         * Storage/WebSecurityOrigin.mm:
1166         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1167         (-[WebSecurityOrigin protocol]):
1168         (-[WebSecurityOrigin domain]):
1169         (-[WebSecurityOrigin port]):
1170         (-[WebSecurityOrigin usage]):
1171         (-[WebSecurityOrigin quota]):
1172         (-[WebSecurityOrigin setQuota:]):
1173         (-[WebSecurityOrigin isEqual:]):
1174         (-[WebSecurityOrigin dealloc]):
1175         (-[WebSecurityOrigin finalize]):
1176         (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
1177         (-[WebSecurityOrigin _core]):
1178         * Storage/WebSecurityOriginInternal.h:
1179         * WebCoreSupport/WebChromeClient.h:
1180         * WebCoreSupport/WebChromeClient.mm:
1181         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
1182         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
1183
1184 2008-01-10  Sam Weinig  <sam@webkit.org>
1185
1186         Reviewed by Anders Carlsson.
1187
1188         Fixes: http://bugs.webkit.org/show_bug.cgi?id=16522
1189         <rdar://problem/5657355>
1190
1191         * Plugins/WebBaseNetscapePluginView.mm:
1192         (-[WebBaseNetscapePluginView loadPluginRequest:]): call findFrameForNavigation
1193         to ensure the shouldAllowNavigation check is made.
1194
1195 2008-01-07  Nikolas Zimmermann  <zimmermann@kde.org>
1196
1197         Reviewed by Mark.
1198
1199         Enable SVG_FONTS by default.
1200
1201         * Configurations/WebKit.xcconfig:
1202
1203 2008-01-07  Adele Peterson  <adele@apple.com>
1204
1205         Reviewed by Antti, Adam, and Mitz.
1206
1207         WebKit part of fix for 
1208         <rdar://problem/5619073> Updated look for <video> controls
1209         <rdar://problem/5619057> Add volume control to video controls
1210
1211         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1212
1213 2008-01-07  Dan Bernstein  <mitz@apple.com>
1214
1215         Reviewed by Dave Hyatt.
1216
1217         - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
1218
1219         * Misc/WebNSAttributedStringExtras.mm:
1220
1221 2008-01-03  Alexey Proskuryakov  <ap@webkit.org>
1222
1223         Reviewed by Darin.
1224
1225         <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController
1226
1227         * WebView/WebView.mm:
1228         (-[WebView _executeCoreCommandByName:value:]):
1229         * WebView/WebViewPrivate.h:
1230         Added an SPI to implement layoutTestController.execCommand.
1231
1232 2008-01-03  Kevin Decker  <kdecker@apple.com>
1233
1234         Reviewed by Darin.
1235
1236         Fixed: <rdar://problem/4106190> Include "Where from" metadata in drag-and-dropped images
1237         
1238         * Misc/WebNSFileManagerExtras.h:
1239         * Misc/WebNSFileManagerExtras.m:
1240         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Added new method. Uses WebKitSystemInterface to set
1241         "Where from:" metadata information.
1242         * WebView/WebHTMLView.mm:
1243         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Added "Where from:" metadata for drag and dropped images.
1244         
1245 2008-01-03  Alice Liu  <alice.liu@apple.com>
1246
1247         Reviewed by Darin.
1248
1249         This fixes pageup/down in iframes.  test for this is fast/frames/iframe-scroll-page-up-down.html
1250
1251         * WebView/WebHTMLView.mm:
1252         (-[WebHTMLView doCommandBySelector:]):
1253         Have the editor handle all the commands it supports instead of just text commands.
1254         If not handled by the editor, the webview will handle the command. 
1255
1256 2008-01-02  Kevin Decker  <kdecker@apple.com>
1257
1258         Reviewed by Darin.
1259         
1260         Fixed: <rdar://problem/5660603> QuickDraw plug-ins can cause a 100% reproducible assertion failure in AppKit (breaks Safari UI)
1261
1262         * Plugins/WebBaseNetscapePluginView.mm:
1263         (-[WebBaseNetscapePluginView updateAndSetWindow]): Simplified an early return for non-QuickDraw plug-ins and switched
1264         to using the more NSView friendly version of lockFocus, lockFocusIfCanDraw.
1265
1266 2008-01-01  David D. Kilzer  <ddkilzer@webkit.org>
1267
1268         Reviewed by Dan.
1269
1270         - fix http://bugs.webkit.org/show_bug.cgi?id=16700
1271           Fix -[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]
1272
1273         * DefaultDelegates/WebDefaultPolicyDelegate.m: Check return value of
1274         -[NSFileManager fileExistsAtPath:isDirectory:] before using the value
1275         of isDirectory.
1276
1277 2007-12-29  Nikolas Zimmermann  <zimmermann@kde.org>
1278
1279         Reviewed by Eric.
1280
1281         Add DOMSVGFontElement/DOMSVGGlyphElement/DOMSVGMissingGlyphElement to MigrateHeaders.make
1282
1283         * MigrateHeaders.make:
1284
1285 2007-12-25  Dan Bernstein  <mitz@apple.com>
1286
1287         Reviewed by Oliver Hunt.
1288
1289         - fix an assertion failure when pressing the num lock key
1290
1291         * WebView/WebHTMLView.mm:
1292         (-[WebHTMLView flagsChanged:]): Avoid passing key code 10 down to
1293         WebCore.
1294
1295 2007-12-20  Darin Adler  <darin@apple.com>
1296
1297         Reviewed by Oliver.
1298
1299         - fix <rdar://problem/5658787> Selector -[WebView insertLineBreak:] is not implemented
1300
1301         * WebView/WebView.mm: Added all selectors implemented by WebHTMLView to the list of
1302         selectors to forward here. The new ones are: changeBaseWritingDirection:, changeSpelling:,
1303         deleteToMark:, insertLineBreak:, moveParagraphBackwardAndModifySelection:,
1304         moveParagraphForwardAndModifySelection:, pageDownAndModifySelection:, pageUpAndModifySelection:,
1305         selectToMark:, setMark:, swapWithMark:, takeFindStringFromSelection:, toggleBaseWritingDirection:,
1306         and transpose:.
1307
1308 2007-12-20  Kevin Decker  <kdecker@apple.com>
1309
1310         Reviewed by Anders.
1311         
1312         Fixed: <rdar://problem/5638288> REGRESSION: Flash movies show up in other tabs above the page (16373)
1313
1314         * Plugins/WebBaseNetscapePluginView.mm:
1315         (-[WebBaseNetscapePluginView updateAndSetWindow]): QuickDraw plug-ins must manually be told when to stop
1316          writing to the window backing store. The problem was that change-set 28400 introduced an early return 
1317          which prevented this necessary operation. The fix is to limit the scope of the early return to CG and GL
1318          plug-ins and to tweak the needsFocus check to prevent an exception from occurring in QuickDraw-based plug-ins.
1319
1320 2007-12-19  Geoffrey Garen  <ggaren@apple.com>
1321
1322         Reviewed by Oliver Hunt.
1323
1324         Build fix.
1325
1326         * ForwardingHeaders/kjs/SymbolTable.h: Added.
1327         * ForwardingHeaders/wtf/VectorTraits.h: Added.
1328
1329 2007-12-16  Mark Rowe  <mrowe@apple.com>
1330
1331         Reviewed by Maciej Stachowiak.
1332
1333         Refactor Mac plugin stream code to use the shared NetscapePlugInStreamLoader implementation.
1334
1335         * Plugins/WebBaseNetscapePluginStream.h:
1336         * Plugins/WebNetscapePluginStream.h:
1337         * Plugins/WebNetscapePluginStream.mm:
1338         (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
1339         (-[WebNetscapePluginStream dealloc]):
1340         (-[WebNetscapePluginStream finalize]):
1341         * Plugins/WebPlugInStreamLoaderDelegate.h: Moved from WebCore.
1342         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h: Added.
1343         (WebNetscapePlugInStreamLoaderClient::WebNetscapePlugInStreamLoaderClient):
1344         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm: Added.
1345         (WebNetscapePlugInStreamLoaderClient::didReceiveResponse): Call through to the equivalent WebPlugInStreamLoaderDelegate method.
1346         (WebNetscapePlugInStreamLoaderClient::didReceiveData): Ditto.
1347         (WebNetscapePlugInStreamLoaderClient::didFail): Ditto.
1348         (WebNetscapePlugInStreamLoaderClient::didFinishLoading): Ditto.
1349
1350 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
1351
1352         Reviewed by Darin.
1353
1354         http://bugs.webkit.org/show_bug.cgi?id=14140
1355         <rdar://problem/5270958> REGRESSION: Complex system KeyBindings don't work properly
1356
1357         * WebView/WebHTMLView.mm:
1358         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): Made command replaying work
1359         when handling keypress, too.
1360         (-[WebHTMLView doCommandBySelector:]): Adapted for the new way to store commands in events.
1361         (-[WebHTMLView insertText:]): Append a command, not replace the whole existing vector. Also,
1362         restore the state for additional commands to be saved correctly.
1363
1364 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
1365
1366         <rdar://problem/5647272> Remove user agent string hack for flickr.com
1367
1368         Reviewed by Darin.
1369
1370         * WebView/WebView.mm:
1371         (-[WebView _userAgentForURL:]): Removed hack.
1372
1373 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
1374
1375         <rdar://problem/5647261> Remove user agent string hack for yahoo.com
1376
1377         Reviewed by Darin.
1378
1379         * WebView/WebView.mm:
1380         (-[WebView _userAgentForURL:]): Removed hack.
1381
1382 2007-12-14  Darin Adler  <darin@apple.com>
1383
1384         Reviewed by Brady.
1385
1386         - fix http://bugs.webkit.org/show_bug.cgi?id=16296
1387           <rdar://problem/5635641> -[WebFrameLoadDelegate didReceiveIcon:forFrame:] never called
1388
1389         * WebView/WebView.mm:
1390         (-[WebView setFrameLoadDelegate:]): Call [WebIconDatabase sharedIconDatabase] if the
1391         a didReceiveIcon method is present.
1392
1393 2007-12-14  Darin Adler  <darin@apple.com>
1394
1395         Reviewed by Alexey.
1396
1397         - Changed a few more editing operations to use WebCore instead of WebKit.
1398         - Removed some obsolete unused code.
1399
1400         * WebCoreSupport/WebFrameBridge.h: Moved declarations of methods that are both
1401         defined and used on the WebKit side to here. These no longer belong on the bridge
1402         and should be moved to the WebFrame class (or elsewhere).
1403         * WebCoreSupport/WebFrameBridge.mm: Removed some unused methods.
1404
1405         * WebView/WebFrameView.mm:
1406         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): Fix typo in comment.
1407
1408         * WebView/WebHTMLView.mm:
1409         (-[WebHTMLViewPrivate dealloc]): Removed unused firstResponderTextViewAtMouseDownTime.
1410         (-[WebHTMLViewPrivate clear]): Ditto.
1411         (-[WebHTMLView _setMouseDownEvent:]): Ditto.
1412         (commandNameForSelector): Added special cases for pageDown:, pageDownAndModifySelection:,
1413         pageUp:, and pageUpAndModifySelection:, since those names probably aren't specific enough
1414         to be used in WebCore (what AppKit calls scrollPageDown: vs. pageDown: needs to be
1415         disambiguated with the word "Move"). Added deleteBackward:,
1416         deleteBackwardByDecomposingPreviousCharacter:, deleteForward:, deleteToBeginningOfLine:,
1417         deleteToBeginningOfParagraph:, deleteToEndOfLine:, deleteToEndOfParagraph:, pageDown:,
1418         pageDownAndModifySelection:, pageUp:, pageUpAndModifySelection:, selectLine:,
1419         selectParagraph:, selectSentence:, and selectWord: to the list of commands that are
1420         forwarded to WebCore.
1421         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Eliminated the long list of
1422         operations that we forward to WebCore. Instead, look up any command that WebCore can
1423         handle, after any that we handle specially in WebHTMLView. Also fixed a bug where
1424         an item that's not a menu item with changeBaseWritingDirection:NSWritingDirectionNatural
1425         would end up enabled instead of disabled and streamlined the logic for toggleGrammarChecking:.
1426         (-[WebHTMLView mouseDown:]): Removed unused firstResponderTextViewAtMouseDownTime.
1427         (-[WebHTMLView becomeFirstResponder]): Removed unused willBecomeFirstResponderForNodeFocus.
1428         (-[WebHTMLView resignFirstResponder]): Ditto.
1429         (-[WebHTMLView checkSpelling:]): Took unneeded extra initialization of NSSpellChecker.
1430
1431         * WebView/WebHTMLViewInternal.h: Removed unused willBecomeFirstResponderForNodeFocus,
1432         firstResponderTextViewAtMouseDownTime, _textViewWasFirstResponderAtMouseDownTime: and
1433         _willMakeFirstResponderForNodeFocus.
1434
1435 2007-12-13  Alexey Proskuryakov  <ap@webkit.org>
1436
1437         Reviewed by Darin.
1438
1439         Turn on keyboard event processing quirks for feed views and old applications on Mac OS X.
1440
1441         * Misc/WebKitVersionChecks.h:
1442         * WebView/WebView.mm:
1443         (-[WebView _needsKeyboardEventHandlingQuirks]):
1444         (-[WebView _preferencesChangedNotification:]):
1445
1446 2007-12-12  Brady Eidson  <beidson@apple.com>
1447
1448         Reviewed by Sam Weinig
1449
1450         Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows)
1451
1452         * WebCoreSupport/WebCachedPagePlatformData.h: Added.
1453         (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes a WebDocumentView for later restoration
1454         (WebCachedPagePlatformData::clear):
1455         (WebCachedPagePlatformData::webDocumentView):
1456
1457         * WebCoreSupport/WebFrameLoaderClient.h:
1458         * WebCoreSupport/WebFrameLoaderClient.mm:
1459         (WebFrameLoaderClient::savePlatformDataToCachedPage):
1460         (WebFrameLoaderClient::transitionToCommittedFromCachedPage): Don't set the DocumentLoader to the Frame here, 
1461           because that is now done in WebCore.
1462         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1463
1464 2007-12-12  Mark Rowe  <mrowe@apple.com>
1465
1466         Reviewed by Dave Kilzer.
1467
1468         Remove abuse of projectDirPath from WebKit.xcodeproj to fix Production builds.
1469
1470         * Configurations/WebKit.xcconfig:
1471
1472 2007-12-11  Sam Weinig  <sam@webkit.org>
1473
1474         Reviewed by Darin Adler.
1475
1476         Scrub URL out of the tree in preparation for renaming KURL to URL.
1477
1478         * WebCoreSupport/WebFrameLoaderClient.mm:
1479         (WebFrameLoaderClient::actionDictionary):
1480         * WebView/WebDataSource.mm:
1481         (-[WebDataSource _URL]):
1482         * WebView/WebView.mm:
1483         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1484
1485 2007-12-11  Darin Adler  <darin@apple.com>
1486
1487         Reviewed by Geoff.
1488
1489         - change more editing commands to use WebCore::Editor
1490         - change to use the new WebCore::Editor::command() function
1491
1492         * WebView/WebHTMLView.mm: Changed alignCenter, alignJustified, alignLeft,
1493         alignRight, cut, copy, deleteToMark, indent, insertNewlineIgnoringFieldEditor,
1494         insertTabIgnoringFieldEditor, outdent, selectAll, selectToMark, setMark,
1495         subscript, superscript, swapWithMark, underline, unscript, yank, and yankAndSelect
1496         to use the "forward to WebCore" macro instead of having hand-written implementations.
1497         (kit): Added function to change a TriState to an AppKit-style tri-state value.
1498         (-[WebHTMLView coreCommandBySelector:]): Added. No longer converts case of the
1499         first character or copies the selector name, since the Editor commands are not case
1500         sensitive any more. Returns a command object.
1501         (-[WebHTMLView coreCommandByName:]): Added.
1502         (-[WebHTMLView executeCoreCommandBySelector:]): Renamed from callWebCoreCommand:,
1503         and changed to use the new coreCommandBySelector: method.
1504         (-[WebHTMLView executeCoreCommandByName:]): Added.
1505         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Changed all the
1506         methods that call through to WebCore to also use the state() and isEnabled()
1507         functions on the commands for the menu item state and user interface item enabling.
1508         (-[WebHTMLView _handleStyleKeyEquivalent:]): Use ToggleBold and ToggleItalic by
1509         name rather than having local methods for them; no need for methods with a single
1510         call site.
1511         (-[WebHTMLView insertParagraphSeparator:]): Use executeCoreCommandByName: rather
1512         than the deprecated execCommand().
1513         (-[WebHTMLView doCommandBySelector:]): Changed to use command().execute() rather
1514         than the deprecated execCommand().
1515         * WebView/WebHTMLViewInternal.h: Removed some unneeded method declarations.
1516
1517 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
1518
1519         Reviewed by Darin.
1520
1521         <rdar://problem/5535636>
1522         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
1523
1524         http://bugs.webkit.org/show_bug.cgi?id=13916
1525         JavaScript detects Tab as a character input on a textfield validation
1526
1527         * WebCoreSupport/WebEditorClient.h:
1528         Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
1529         Renamed handleInputMethodKeypress() to handleInputMethodKeydown().
1530         * WebCoreSupport/WebEditorClient.mm:
1531         (WebEditorClient::handleKeyboardEvent): This change makes sense only remotely, but it helped
1532         to get tests working. I guess Mac keyboard event handling needs further refactoring.
1533
1534         * WebView/WebHTMLView.mm:
1535         (selectorToCommandName): Convert AppKit editing selector name to Editor command name - extracted
1536         from callWebCoreCommand:.
1537         (_interceptEditingKeyEvent:shouldSaveCommand:): Insert text from keypress.
1538
1539         * WebView/WebPDFView.mm:
1540         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1541         Convert incoming platform KeyDown into RawKeyDown, as this is what the view is interested in.
1542
1543 2007-12-10  Brady Eidson  <beidson@apple.com>
1544
1545         Reviewed by John Sullivan
1546
1547         Fix for <rdar://problem/5640080> - Database UI delegate calls need to specify WebFrame
1548
1549         This is because a common UI case is to want to know the originating URL of a Database
1550
1551         * WebCoreSupport/WebChromeClient.mm:
1552         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
1553         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
1554
1555         * WebView/WebUIDelegatePrivate.h:
1556
1557         * WebView/WebView.mm:
1558         (CallDelegateReturningUnsignedLongLong):
1559         (CallUIDelegateReturningUnsignedLongLong):
1560         * WebView/WebViewInternal.h:
1561
1562 2007-12-10  Timothy Hatcher  <timothy@apple.com>
1563
1564         Reviewed by Mark Rowe.
1565
1566         <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
1567
1568         * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
1569           so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
1570
1571 2007-12-10  Kevin Decker  <kdecker@apple.com>
1572
1573         Reviewed by Darin.
1574
1575         Fixed: <rdar://problem/4290098> Right-mouse click on element doesn't call onmousedown handler
1576         
1577         * WebView/WebHTMLView.mm:
1578         (-[WebHTMLView menuForEvent:]): Match behavior of other browsers by sending an onmousedown event for right clicks.
1579
1580 2007-12-08  Oliver Hunt  <oliver@apple.com>
1581
1582         Reviewed by Sam W.
1583
1584         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
1585         
1586         Fixes <rdar://problem/5620249> Must disable SVG animation
1587         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
1588         
1589         Minor updates to the feature flags used.
1590
1591         * Configurations/WebKit.xcconfig:
1592         * DOM/WebDOMOperations.mm:
1593
1594 2007-12-07  Darin Adler  <darin@apple.com>
1595
1596         Reviewed by Kevin Decker and Tim Hatcher.
1597
1598         - speculative fix for <rdar://problem/5400159> CrashTracer: [USER] 726 crashes
1599           in Safari at com.apple.WebKit: -[WebHTMLView(WebPrivate) _updateMouseoverWithFakeEvent] + 389
1600
1601         * WebView/WebHTMLView.mm:
1602         (-[WebHTMLView _frameOrBoundsChanged]): Only schedule the mouseover timer if we are in a window
1603         and not closed. That's because viewDidMoveToWindow and close are the entry points for cancelling.
1604         (-[WebHTMLView close]): Add code to cancel both timers. Needed for the case where the entire
1605         window goes away, and the view is never removed from the window.
1606         (-[WebHTMLView viewDidMoveToWindow]): Don't do work if the view is closed.
1607
1608 2007-12-07  Darin Adler  <darin@apple.com>
1609
1610         Reviewed by Mitz.
1611
1612         - http://bugs.webkit.org/show_bug.cgi?id=15981
1613           speed up visited-link code a bit
1614
1615         * History/WebHistory.mm: Removed unused Latin-1 code path.
1616         (-[_WebCoreHistoryProvider containsURL:length:]): Updated for method name change.
1617
1618 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
1619
1620         Reviewed by Sam Weinig.
1621         
1622         Added a forwarding header, since we now #include nodes.h through some
1623         JavaScriptCore headers.
1624
1625         * ForwardingHeaders/wtf/ListRefPtr.h: Added.
1626
1627 2007-12-06  Brady Eidson  <beidson@apple.com>
1628
1629         Reviewed by Oliver's rubber stamp
1630
1631         Let's go ahead and call the correct UI Delegate method, shall we?
1632
1633         * WebCoreSupport/WebChromeClient.mm:
1634         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Call the correct UI delegate
1635
1636 2007-12-06  Adam Roben  <aroben@apple.com>
1637
1638         Remove some assertions we know can fire and replace them with a FIXME
1639
1640         Reviewed by Anders.
1641
1642         * WebCoreSupport/WebFrameLoaderClient.mm:
1643
1644 2007-12-06  Timothy Hatcher  <timothy@apple.com>
1645
1646         Change the ASSERT added for the previous fix. The ASSERT was firing for 10.5.0.
1647         Only assert if the major version is zero, since zero is handled in the other cases.
1648
1649         * WebView/WebView.mm:
1650         (callGestalt): Remove the ASSERT.
1651         (createMacOSXVersionString): ASSERT that major is not zero.
1652
1653 2007-12-06  Darin Adler  <darin@apple.com>
1654
1655         Reviewed by Tim Hatcher.
1656
1657         - fix <rdar://problem/5513394> No way to detect Tiger vs Leopard from Safari's user agent string
1658
1659         * WebView/WebView.mm:
1660         (callGestalt): Added.
1661         (createMacOSXVersionString): Added.
1662         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Added Mac OS X version string,
1663         right after the string "Mac OS X", but with underscores instead of dots to avoid the dreaded
1664         "4." problem (old libraries that think a "4." anywhere in the user agent means Netscape 4).
1665         (-[WebView _userAgentForURL:]): Fixed incorrect bug numbers.
1666
1667 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
1668
1669         Reviewed by Darin Adler.
1670
1671         Third step in refactoring JSGlobalObject: Moved data members and data
1672         member access from Interpreter to JSGlobalObject.
1673         
1674         * WebView/WebFrame.mm:
1675         (-[WebFrame _attachScriptDebugger]):
1676
1677 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
1678
1679         Reviewed by Darin.
1680
1681         - <rdar://5621435>
1682         - Security Fix. Instead of having it off by default, WebKit now must
1683         explicitly turn off local-resource restriction when needed for backwards
1684         coimpatibility reasons.
1685
1686         * WebView/WebView.mm:
1687         (-[WebView _commonInitializationWithFrameName:groupName:]):
1688
1689 2007-12-05  Brady Eidson  <beidson@apple.com>
1690
1691         Reviewed by Kevin Deckers rubberstamp
1692
1693         Disclose and export the Databases Directory defaults key
1694
1695         * Storage/WebDatabaseManager.mm:
1696         * Storage/WebDatabaseManagerPrivate.h:
1697         * WebKit.exp:
1698
1699 2007-12-04  Kevin Decker  <kdecker@apple.com>
1700
1701         Reviewed by Anders.
1702
1703         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
1704
1705         * WebCoreSupport/WebViewFactory.mm:
1706         (-[WebViewFactory pluginNameForMIMEType:]): Added.
1707
1708 2007-12-04  Brady Eidson  <beidson@apple.com>
1709
1710         Reviewed by Mark Rowe
1711
1712         Tweaked the way we typedef and cast these objc_msgSend calls
1713
1714         * WebView/WebView.mm:
1715         (CallDelegateReturningUnsignedLongLong):
1716
1717 2007-12-04  John Sullivan  <sullivan@apple.com>
1718
1719         Reviewed by Brady Eidson (with help from Mark Rowe)
1720         
1721         Fixed return values for unsigned-long-long delegate methods
1722
1723         * WebView/WebView.mm:
1724         (CallDelegateReturningUnsignedLongLong):
1725         redid the change that Brady did at home over the weekend but forgot to check in
1726
1727 2007-11-27  Adam Roben  <aroben@apple.com>
1728
1729         Remove -[WebFrameBridge setNeedsReapplyStyles]
1730
1731         This functionality is now WebCore's responsibility.
1732
1733         Reviewed by Hyatt.
1734
1735         * WebCoreSupport/WebFrameBridge.mm:
1736         * WebKit.order:
1737
1738 2007-12-04  John Sullivan  <sullivan@apple.com>
1739
1740         Reviewed by Darin
1741         
1742         Added deleteOrigin: SPI, which isn't fully implemented
1743
1744         * Storage/WebDatabaseManagerPrivate.h:
1745         * Storage/WebDatabaseManager.mm:
1746         (-[WebDatabaseManager deleteOrigin:]):
1747         just calls deleteDatabasesWithOrigin: for now, but needs to delete origin itself too
1748
1749 2007-12-04  Timothy Hatcher  <timothy@apple.com>
1750
1751         Reviewed by Mark Rowe.
1752
1753         Remove a check for early versions of Leopard CFNetwork now that
1754         Leopard has shipped.
1755
1756         * Misc/WebKitVersionChecks.h: Remove WEBKIT_FIRST_CFNETWORK_VERSION_WITH_LARGE_DISK_CACHE_FIX.
1757         * WebView/WebView.mm:
1758         (+[WebView _setCacheModel:]): Remove the early Leopard CFNetwork check.
1759
1760 2007-12-04  Kevin Decker  <kdecker@apple.com>
1761
1762         Reviewed by Darin.
1763
1764         Revised fix for: <rdar://problem/5586978> REGRESSION (Safari 2-3): WebKit sometimes doesn't invoke Flash's NPP_SetWindow function and causes a hang
1765
1766         This fix is exactly the same as chageset 28359 with the exception of an added early return in
1767         updateAndSetWindow to cover the additional case of when a plug-in isn't drawable.
1768         
1769         The CG-based Flash player would sometimes hang because (for CoreGraphics-based plug-ins) our code would
1770         only call into the NPP_SetWindow() function when we tell the plug-in to draw. This created havoc with 
1771         Flash because Flash expects the browser to call NPP_SetWindow() and provide a valid graphics context 
1772         regardless of whether or not it actually needs to draw. 
1773         
1774         * Plugins/WebBaseNetscapePluginView.mm:
1775         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): Removed an incorrect comment and toned
1776         down an ASSERT that was too strict. 
1777         (-[WebBaseNetscapePluginView updateAndSetWindow]): Removed an early return for CoreGraphics-based plug-ins
1778         which would sometimes altogether prevent updating the PortState and calling into a plug-ins NPP_SetWindow()
1779         function. Also tweaked a comment and added an early return if the plug-in can't draw.
1780
1781 2007-12-04  Darin Adler  <darin@apple.com>
1782
1783         Reviewed by Kevin Decker.
1784
1785         * WebCoreSupport/WebFrameLoaderClient.h: Removed obsolete privateBrowsingEnabled.
1786         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
1787         * WebKit.order: Ditto.
1788
1789 2007-12-03  Dan Bernstein  <mitz@apple.com>
1790
1791         Reviewed by Dave Hyatt.
1792
1793         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
1794
1795         * WebView/WebHTMLView.mm:
1796         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Removed the code
1797         that checked if the view had resized and sent the resize event, since
1798         FrameView sends resize events now.
1799         * WebView/WebHTMLViewInternal.h:
1800
1801 2007-12-03  Timothy Hatcher  <timothy@apple.com>
1802
1803         Reviewed by Darin.
1804
1805         Change WebViewGetResourceLoadDelegateImplementations and WebViewGetFrameLoadDelegateImplementations
1806         to return a pointer to the implementation struct instead of a copy of the struct. This changes
1807         all of the callers to dereference the pointer to access the struct fields.
1808
1809         * Plugins/WebNullPluginView.mm:
1810         (-[WebNullPluginView reportFailure]):
1811         * WebCoreSupport/WebFrameBridge.mm:
1812         * WebCoreSupport/WebFrameLoaderClient.mm:
1813         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1814         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1815         (WebFrameLoaderClient::dispatchWillSendRequest):
1816         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1817         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1818         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1819         (WebFrameLoaderClient::willCacheResponse):
1820         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1821         (WebFrameLoaderClient::dispatchDidFinishLoading):
1822         (WebFrameLoaderClient::dispatchDidFailLoading):
1823         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
1824         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1825         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
1826         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1827         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1828         (WebFrameLoaderClient::dispatchWillClose):
1829         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1830         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1831         (WebFrameLoaderClient::dispatchDidCommitLoad):
1832         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1833         (WebFrameLoaderClient::dispatchDidFailLoad):
1834         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
1835         (WebFrameLoaderClient::dispatchDidFinishLoad):
1836         (WebFrameLoaderClient::dispatchDidFirstLayout):
1837         * WebView/WebView.mm:
1838         (WebViewGetResourceLoadDelegateImplementations):
1839         (WebViewGetFrameLoadDelegateImplementations):
1840         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1841         * WebView/WebViewInternal.h:
1842
1843 2007-12-03  Timothy Hatcher  <timothy@apple.com>
1844
1845         Reviewed by Brady Eidson.
1846
1847         <rdar://problem/5539913> 188 crashes in WebViewGetFrameLoadDelegateImplementations
1848         <rdar://problem/5586095> CrashTracer: [USER] 5000+ crashes in Safari and Dashboard in dispatchDidFailLoading
1849         <rdar://problem/5607081> CrashTracer: [USER] 2150 crashes in Safari at com.apple.WebKit:
1850         WebViewGetResourceLoadDelegateImplementations + 28
1851
1852         * WebView/WebView.mm:
1853         (-[WebView _cacheResourceLoadDelegateImplementations]): If the delegate is nil, bzero the
1854         implementation cache. This just prevents us from calling getMethod() multiple times just to zero.
1855         (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
1856         (WebViewGetResourceLoadDelegateImplementations): Return a zeroed implementations struct
1857         if the WebView is nil. This fixes the crashes.
1858         (WebViewGetFrameLoadDelegateImplementations): Ditto.
1859
1860 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
1861
1862         Reviewed by Eric Seidel.
1863
1864         Updated to match the JavaScriptCore change to move virtual methods from
1865         Interpreter to JSGlobalObject.
1866
1867         * WebView/WebFrame.mm:
1868         (-[WebFrame globalContext]): Use the toRef function instead of manually
1869         casting.
1870
1871 2007-12-01  Brady Eidson  <beidson@apple.com>
1872
1873         Reviewed by Tim
1874
1875         Added a default database quota of 5mb to the default WebPreferences
1876
1877         * WebView/WebPreferences.m:
1878         (+[WebPreferences initialize]):
1879
1880 2007-11-30  John Sullivan  <sullivan@apple.com>
1881
1882         Reviewed by Geoff Garen
1883         
1884         Added another symbol for WebDatabaseManager clients
1885
1886         * WebKit.exp:
1887         added .objc_class_name_WebSecurityOrigin
1888
1889 2007-11-30  Brady Eidson  <beidson@apple.com>
1890
1891         Reviewed by Geoff
1892
1893         Add isEqual operator to WebSecurityOrigin
1894
1895         * Storage/WebSecurityOrigin.mm:
1896         (-[WebSecurityOrigin isEqual:]):
1897
1898 2007-11-30  John Sullivan  <sullivan@apple.com>
1899
1900         Reviewed by Darin
1901         
1902         Tweaks to newly-declared NSString * constants to make them usable from clients
1903
1904         * Storage/WebDatabaseManagerPrivate.h:
1905         * Storage/WebDatabaseManager.mm:
1906         removed "const" from new NSNotification names and userInfo keys; these generate compiler warnings when used
1907         
1908         * WebKit.exp:
1909         export new NSNotification names and userInfo keys so clients can use them
1910
1911 2007-11-29  Anders Carlsson  <andersca@apple.com>
1912
1913         Reviewed by John.
1914
1915         Rename WebKitShrinksStandaloneImagesToFitKey to WebKitShrinksStandaloneImagesToFit.
1916         
1917         This is safe to do because the preference is off by default and Safari 3, which is the only client that turns it on,
1918         is using the setter and not messing around with NSUserDefaults.
1919         
1920         * WebView/WebPreferenceKeysPrivate.h:
1921         * WebView/WebPreferences.m:
1922         (+[WebPreferences initialize]):
1923         (-[WebPreferences shrinksStandaloneImagesToFit]):
1924         (-[WebPreferences setShrinksStandaloneImagesToFit:]):
1925
1926 2007-11-29  Brady Eidson  <beidson@apple.com>
1927
1928         Reviewed by Anders
1929
1930         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
1931
1932         Hook up UI Delegate calls for the database engine feature and other small tweaks
1933
1934         * Storage/WebDatabaseManager.mm:
1935         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
1936         (-[WebDatabaseManager deleteDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
1937         * Storage/WebDatabaseManagerPrivate.h:
1938
1939         * Storage/WebDatabaseTrackerClient.h:
1940         * Storage/WebDatabaseTrackerClient.mm:
1941         (WebDatabaseTrackerClient::dispatchDidModifyDatabase): Renamed databaseName parameter to databaseIdentifier for clarity
1942
1943         * WebCoreSupport/WebChromeClient.h:
1944         * WebCoreSupport/WebChromeClient.mm:
1945         (WebChromeClient::requestQuotaIncreaseForNewDatabase): Call through to the UI Delegate
1946         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Ditto
1947
1948         * WebView/WebUIDelegatePrivate.h: Added the two UI Delegate methods
1949
1950         * WebView/WebView.mm:
1951         (CallDelegateReturningUnsignedLongLong):
1952         (CallUIDelegateReturningUnsignedLongLong):
1953         * WebView/WebViewInternal.h:
1954
1955 2007-11-28  Kevin McCullough  <kmccullough@apple.com>
1956
1957         Reviewed by Sam.
1958
1959         - Added recursive runloop guards.
1960
1961         * DefaultDelegates/WebScriptDebugServer.m:
1962         (-[WebScriptDebugServer suspendProcessIfPaused]):
1963
1964 2007-11-29  Mark Rowe  <mrowe@apple.com>
1965
1966         Reviewed by Oliver Hunt.
1967
1968         Fix an assertion failure seen on the layout tests, and when closing the window after
1969         visiting <http://www.coudal.com/losalamos/>.
1970
1971         * Plugins/WebBaseNetscapePluginStream.mm:
1972         (-[WebBaseNetscapePluginStream _destroyStream]): Unlink the file and close the file
1973         descriptor even when the stream is being destroyed without the load completing. This
1974         avoids leaking the path and file descriptor, and leaving the temporary file on disk.
1975
1976 2007-11-28  Adele Peterson  <adele@apple.com>
1977
1978         Reviewed by Darin.
1979
1980         Fix for <rdar://problem/5524216> CrashTracer: [USER] 496 crashes in Safari at com.apple.WebCore: WebCore::Frame::eventHandler const + 6
1981
1982         The CrashTracer shows a variety of crashes in different methods (including keyDown and keyUp). This change adds nil checks for the frame in 
1983         WebHTMLView to prevent future problems in other methods as well.
1984
1985         * WebView/WebHTMLView.mm:
1986         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
1987         (-[WebHTMLView keyDown:]):
1988         (-[WebHTMLView keyUp:]):
1989         (-[WebHTMLView flagsChanged:]):
1990         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
1991         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
1992         (-[WebHTMLView checkSpelling:]):
1993         (-[WebHTMLView showGuessPanel:]):
1994         (-[WebHTMLView indent:]):
1995         (-[WebHTMLView outdent:]):
1996         (-[WebHTMLView paste:]):
1997         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1998         (-[WebHTMLView insertText:]):
1999         (-[WebHTMLView selectionTextRects]):
2000
2001 2007-11-28  Dan Bernstein  <mitz@apple.com>
2002
2003         Reviewed by Maciej Stachowiak.
2004
2005         - fix <rdar://problem/5596160> fast/events/objc-event-api.html fails when run alone (or first)
2006
2007         * WebView/WebHTMLView.mm:
2008         (-[WebHTMLView setDataSource:]): This method calls addMouseMovedObserver
2009         because addMouseMovedObserver returns early if the dataSource
2010         is not nil. But if the dataSource is already set (which happens when
2011         a WebHTMLView is being reused) then addMouseMovedObserver must not
2012         be called again.
2013
2014 2007-11-27  Anders Carlsson  <andersca@apple.com>
2015
2016         Reviewed by Brady.
2017
2018         * Storage/WebDatabaseManager.mm:
2019         * Storage/WebDatabaseManagerPrivate.h:
2020         * Storage/WebDatabaseTrackerClient.mm:
2021         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
2022         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
2023         * Storage/WebSecurityOrigin.mm:
2024         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
2025         * Storage/WebSecurityOriginInternal.h:
2026
2027 2007-11-27  Kevin Decker  <kdecker@apple.com>
2028
2029         Reviewed by Darin, landed by Anders.
2030
2031         Fixed: <rdar://problem/4610818> CrashTracer: 1533 crashes in Safari at com.macromedia.Flash Player.plugin: native_ShockwaveFlash_TCallLabel + 271131
2032
2033         The problem was that some Leopard users were still inadvertently using the old Flash 8 plug-in, even though Leopard
2034         shipped with Flash 9. To avoid loading an older version of a plug-in when a newer version is installed, the plug-in
2035         database will compare bundle versions and always load the latest version.
2036
2037         * Plugins/WebBasePluginPackage.h:
2038         * Plugins/WebBasePluginPackage.m:
2039         (-[WebBasePluginPackage versionNumber]): New method. CFBundleGetVersionNumber doesn't work with all possible versioning schemes,
2040         but we think for now it's good enough for us.
2041         * Plugins/WebPluginDatabase.m:
2042         (considerCandidate): Added a C utility function which compares the current plug-in against a candidate plug-in's version number.
2043         If both plug-ins have the same bundle ID and the candiate is newer, the current plug-in becomes the candidate.
2044         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): Calls the new considerCandidate() function.
2045
2046 2007-11-26  Timothy Hatcher  <timothy@apple.com>
2047
2048         Reviewed by Dave Hyatt.
2049
2050         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
2051
2052         * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey.
2053         * WebView/WebPreferences.m:
2054         (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES.
2055         (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value.
2056         (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value.
2057         * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:.
2058         * WebView/WebView.mm:
2059         (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled.
2060
2061 2007-11-26  Brady Eidson  <beidson@apple.com>
2062
2063         Reviewed by Mark Rowe
2064
2065         Provide API for setting the default storage quota per database origin
2066
2067         * Misc/WebNSDictionaryExtras.h:
2068         * Misc/WebNSDictionaryExtras.m:
2069         (-[NSMutableDictionary _webkit_setUnsignedLongLong:forKey:]): Helper for UINT64 preferences
2070
2071         * WebView/WebPreferenceKeysPrivate.h:
2072         * WebView/WebPreferences.m:
2073         (-[WebPreferences _unsignedLongLongValueForKey:]): Helper for UINT64 prefs
2074         (-[WebPreferences _setUnsignedLongLongValue:forKey:]): Ditto
2075         (-[WebPreferences defaultDatabaseQuota]):
2076         (-[WebPreferences setDefaultDatabaseQuota:]):
2077         * WebView/WebPreferencesPrivate.h:
2078
2079         * WebView/WebView.mm:
2080         (-[WebView _preferencesChangedNotification:]): Set the WebCore Settings version of the default storage pref
2081
2082 2007-11-26  Darin Adler  <darin@apple.com>
2083
2084         Reviewed by Adele.
2085
2086         - some middle-mouse-button-related fixes
2087
2088         These don't affect Safari since it maps the middle mouse button to the command key,
2089         but that might not always be the case for future versions.
2090
2091         * WebView/WebHTMLView.mm:
2092         (-[WebHTMLView otherMouseDown:]): Pass through middle mouse down events to WebCore.
2093         (-[WebHTMLView otherMouseDragged:]): Ditto, for drag events.
2094         (-[WebHTMLView otherMouseUp:]): Ditto, for up events.
2095
2096         * WebView/WebPolicyDelegate.h: Fixed inaccurate documentation of WebActionButtonKey.
2097
2098 2007-11-26  Anders Carlsson  <andersca@apple.com>
2099
2100         Reviewed by Brady.
2101
2102         Get rid of the WebSecurityOriginPrivate object and store 
2103         the WebCore::SecurityOriginData pointer in the _private field of
2104         the WebSecurityOrigin object instead.
2105         
2106         * Storage/WebDatabaseManager.mm:
2107         (-[WebDatabaseManager databasesWithOrigin:]):
2108         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
2109         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
2110         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2111         * Storage/WebSecurityOrigin.mm:
2112         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
2113         (-[WebSecurityOrigin protocol]):
2114         (-[WebSecurityOrigin domain]):
2115         (-[WebSecurityOrigin port]):
2116         (-[WebSecurityOrigin usage]):
2117         (-[WebSecurityOrigin quota]):
2118         (-[WebSecurityOrigin setQuota:]):
2119         (-[WebSecurityOrigin dealloc]):
2120         (-[WebSecurityOrigin finalize]):
2121         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
2122         (-[WebSecurityOrigin _core]):
2123         * Storage/WebSecurityOriginInternal.h:
2124
2125 2007-11-26  Timothy Hatcher  <timothy@apple.com>
2126
2127         Reviewed by Adam Roben.
2128
2129         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
2130         http://bugs.webkit.org/show_bug.cgi?id=16137
2131
2132         Create the Web Inspector window with the textured style. Set the content border
2133         thickness for the top of the window or the height of the toolbar. Also make the
2134         window's bottom corners square, since a normal textured window normally has
2135         rounded bottom corners.
2136
2137         * WebCoreSupport/WebInspectorClient.mm:
2138         (-[WebInspectorWindowController window]):
2139
2140 2007-11-24  Mark Rowe  <mrowe@apple.com>
2141
2142         Tiger build fix.
2143
2144         * Plugins/WebBaseNetscapePluginStream.mm:
2145         (CarbonPathFromPOSIXPath): Use WebCFAutorelease as this also works on Tiger.
2146
2147 2007-11-24  Mark Rowe  <mrowe@apple.com>
2148
2149         Reviewed by Tim Hatcher.
2150
2151         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
2152         http://bugs.webkit.org/show_bug.cgi?id=13705
2153
2154         Have NP_ASFILE and NP_ASFILEONLY streams write the data to disk as they receive it rather than
2155         dumping the data to disk in a single go when the stream has completed loading.  On a test case
2156         involving a 150MB Flash movie being streamed from a local web server this reduces memory consumption
2157         on page load from around 400MB to 22MB.
2158
2159         The only plugin I have found that uses NP_ASFILE or NP_ASFILEONLY on the Mac is our NetscapeMoviePlugin
2160         example code so the NP_ASFILE portion of this change has not had any testing with a real-world plugin.
2161
2162         * Plugins/WebBaseNetscapePluginStream.h:
2163         * Plugins/WebBaseNetscapePluginStream.mm:
2164         (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
2165         (-[WebBaseNetscapePluginStream dealloc]):
2166         (-[WebBaseNetscapePluginStream finalize]):
2167         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
2168         (-[WebBaseNetscapePluginStream _destroyStream]): Update to work with paths as NSStrings.
2169         (-[WebBaseNetscapePluginStream _deliverDataToFile:]): Open the file if it is not already open, and write any data
2170         to disk.
2171         (-[WebBaseNetscapePluginStream finishedLoading]): If the stream is NP_ASFILE or NP_ASFILEONLY we need to ensure
2172         that the file exists before _destroyStream passes it to the plugin.  Simulating the arrival of an empty data block
2173         ensure that the file will be created if it has not already.
2174         (-[WebBaseNetscapePluginStream receivedData:]):
2175         (CarbonPathFromPOSIXPath):
2176         * Plugins/WebBaseNetscapePluginView.mm:
2177         (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]): Data is dealt with incrementally so there's no need to pass
2178         it to finishedLoading.
2179         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Ditto.
2180
2181 2007-11-23  Oliver Hunt  <oliver@apple.com>
2182
2183         Reviewed by Mark Rowe.
2184         
2185         Fixed <rdar://problem/3759190> allow input methods the option of processing mouse events themselves
2186
2187         * WebView/WebHTMLView.mm:
2188         (-[WebHTMLView mouseDown:]):
2189
2190 2007-11-22  Dan Bernstein  <mitz@apple.com>
2191
2192         Reviewed by Antti Koivisto.
2193
2194         - http://bugs.webkit.org/show_bug.cgi?id=15811
2195           WebKit plug-ins can re-enter WebKit under attach()
2196           <rdar://problem/5577978>
2197
2198         * Plugins/WebNullPluginView.mm:
2199         (-[WebNullPluginView viewDidMoveToWindow]): Removed workaround for the
2200         above bug that added as part of fixing
2201         <http://bugs.webkit.org/show_bug.cgi?id=15804>.
2202
2203 2007-11-21  Mark Rowe  <mrowe@apple.com>
2204
2205         Reviewed by Eric.
2206
2207         Fix WebKit to build without warnings under GCC 4.2.
2208
2209         * Configurations/Base.xcconfig:
2210
2211 2007-11-21  Mark Rowe  <mrowe@apple.com>
2212
2213         Reviewed by Tim Hatcher.
2214
2215         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
2216
2217         Update format strings to use format specifiers that match the argument types.
2218
2219         * Misc/WebGraphicsExtras.c:
2220         (WebConvertBGRAToARGB):
2221
2222 2007-11-19  Brady Eidson <beidson@apple.com>
2223
2224         Reviewed by Maciej
2225
2226         Finished hooking up the WebKit API for database management.
2227         Most of the API is actually implemented in WebCore and some of those methods might
2228         only be stubs for now.
2229
2230         * Storage/WebDatabaseManager.mm:
2231         (-[WebDatabaseManager origins]): Call through to the WebCore tracker and construct an API result
2232         (-[WebDatabaseManager databasesWithOrigin:]): Ditto
2233         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Ditto
2234
2235         * Storage/WebSecurityOrigin.mm:
2236         (-[WebSecurityOrigin usage]): Call through to WebCore
2237         (-[WebSecurityOrigin quota]): Ditto
2238         (-[WebSecurityOrigin setQuota:]): Ditto
2239         (-[WebSecurityOrigin _core]): Get WebCore version of this object
2240         * Storage/WebSecurityOriginInternal.h:
2241
2242 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2243
2244         Reviewed by Mark Rowe.
2245
2246         Bug 13470: i18n: The Web Inspector is not localizable
2247         http://bugs.webkit.org/show_bug.cgi?id=13470
2248
2249         Implement the localizedStringsURL() client method to return the
2250         localized URL of InspectorLocalizedStrings.js in WebCore.
2251
2252         * WebCoreSupport/WebInspectorClient.h: Added localizedStringsURL.
2253         * WebCoreSupport/WebInspectorClient.mm:
2254         (WebInspectorClient::localizedStringsURL): Added.
2255         (WebInspectorClient::updateWindowTitle): Localized the window title.
2256         (-[WebInspectorWindowController init]): Remove a FIXME that dosen't make sense anymore.
2257         (-[WebInspectorWindowController initWithInspectedWebView:]): Code style cleanup.
2258
2259 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
2260
2261         Reviewed by Darin.
2262
2263         http://bugs.webkit.org/show_bug.cgi?id=15969
2264         Eliminate Editor::deleteRange()
2265
2266         * WebView/WebHTMLView.mm:
2267         (+[WebHTMLView initialize]):
2268         (-[WebHTMLView yank:]):
2269         (-[WebHTMLView yankAndSelect:]):
2270         (-[WebHTMLView setMark:]):
2271         (-[WebHTMLView deleteToMark:]):
2272         (-[WebHTMLView selectToMark:]):
2273         (-[WebHTMLView swapWithMark:]):
2274         Pushed all kill ring methods to WebCore. They were guilty of using Editor::deleteRange()!
2275
2276 2007-11-16  Mark Rowe  <mrowe@apple.com>
2277
2278         Reviewed by Tim Hatcher.
2279
2280         Build WebCore as a sub-framework of WebKit in all configurations.
2281
2282         * Configurations/WebKit.xcconfig:
2283
2284 2007-11-16  John Sullivan  <sullivan@apple.com>
2285
2286         Reviewed by Brady
2287
2288         * WebKit.exp:
2289         Exported some new database-related symbols
2290
2291 2007-11-16  Brady Eidson  <beidson@apple.com>
2292
2293         Reviewed by John
2294
2295         Database management API tweaks
2296
2297         Fleshed out "WebSecurityOrigin" to be the API object representing an origin.  This relieves some
2298         burden off WebDatabaseManager and allows usage/quota operations on the SecurityOrigin object itself
2299
2300         Also added a new subdirectory for Storage related API - Why are we afraid to add new directories to
2301         the WebKit tree?
2302
2303         * Misc/WebSecurityOrigin.mm: Removed.
2304         * Misc/WebSecurityOriginInternal.h: Removed.
2305         * Misc/WebSecurityOriginPrivate.h: Removed.
2306
2307         * Storage/WebDatabaseManager.mm: Work in terms of WebSecurityOrigin
2308         * Storage/WebDatabaseManagerPrivate.h:
2309
2310         * Storage/WebSecurityOrigin.mm: Added.
2311         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
2312         (-[WebSecurityOriginPrivate initWithWebCoreSecurityOrigin:]):
2313         (-[WebSecurityOriginPrivate finalize]):
2314         (-[WebSecurityOriginPrivate dealloc]):
2315         (-[WebSecurityOrigin initWithProtocol:domain:]):
2316         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
2317         (-[WebSecurityOrigin protocol]):
2318         (-[WebSecurityOrigin domain]):
2319         (-[WebSecurityOrigin port]):
2320         (-[WebSecurityOrigin usage]): 
2321         (-[WebSecurityOrigin quota]):
2322         (-[WebSecurityOrigin setQuota:]): Clients will set quotas on the WebSecurityOrigin object itself
2323         (-[WebSecurityOrigin dealloc]):
2324         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
2325         * Storage/WebSecurityOriginInternal.h: Added.
2326         * Storage/WebSecurityOriginPrivate.h: Added.
2327
2328 2007-11-15  Brady Eidson  <beidson@apple.com>
2329
2330         Reviewed by John
2331
2332         Stubbing out everything required for a WebKit API for databases
2333
2334         These interfaces seem to provide everything we need for UI and management at the browser level
2335
2336         * Misc/WebDatabaseManager.h: Removed.
2337         * Misc/WebDatabaseManager.mm: Removed.
2338         * Misc/WebDatabaseManagerPrivate.h: Removed.
2339
2340         * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
2341           (protocol, domain, and port)
2342         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
2343         (-[WebSecurityOriginPrivate dealloc]):
2344         (-[WebSecurityOrigin initWithProtocol:domain:]):
2345         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
2346         (-[WebSecurityOrigin protocol]):
2347         (-[WebSecurityOrigin domain]):
2348         (-[WebSecurityOrigin port]):
2349         (-[WebSecurityOrigin dealloc]):
2350         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
2351         * Misc/WebSecurityOriginInternal.h: Added.
2352         * Misc/WebSecurityOriginPrivate.h: Added.
2353
2354         * Storage/WebDatabaseManager.mm: Added.
2355         (+[WebDatabaseManager sharedWebDatabaseManager]):
2356         (-[WebDatabaseManager origins]):  Get a list of all origins currently tracked
2357         (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
2358         (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
2359         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
2360         (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
2361         (-[WebDatabaseManager deleteAllDatabases]):
2362         (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
2363         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2364         * Storage/WebDatabaseManagerPrivate.h: Added.
2365         * Storage/WebDatabaseManagerInternal.h: Added.
2366         (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
2367
2368         * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
2369         * Storage/WebDatabaseTrackerClient.mm: Added.
2370         (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
2371         (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
2372         (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
2373         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
2374         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
2375
2376         * WebView/WebView.mm:
2377         (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
2378           Database-related things here
2379
2380 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
2381
2382         Reviewed by Anders Carlsson.
2383         
2384         Renamed Shared to RefCounted.
2385
2386         * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
2387         * ForwardingHeaders/wtf/Shared.h: Removed.
2388         * WebCoreSupport/WebContextMenuClient.h:
2389
2390 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
2391
2392         Reviewed by Sam Weinig.
2393
2394         Moved Shared.h into wtf so it could be used in more places.
2395
2396         * ChangeLog:
2397         * WebCoreSupport/WebContextMenuClient.h:
2398
2399 2007-11-13  John Sullivan  <sullivan@apple.com>
2400
2401         Reviewed by Darin.
2402
2403         removed recently-added PreferredType concept; we found a better way to do what
2404         ths was accomplishing
2405
2406         * WebCoreSupport/WebChromeClient.mm:
2407         (WebChromeClient::createWindow):
2408         removed use of PreferredType
2409
2410 2007-11-13  John Sullivan  <sullivan@apple.com>
2411
2412         Reviewed by Dan Bernstein.
2413         
2414         - fixed <rdar://problem/5567954> REGRESSION (Safari 2-3): Autofill no longer automatically fills in 
2415         form fields other than the one you're typing into
2416
2417         * WebCoreSupport/WebEditorClient.mm:
2418         (selectorForKeyEvent):
2419         correct the key identifier strings for Tab and Esc; these were updated in WebCore as part of r21445
2420         but didn't get updated here.
2421
2422 2007-11-12  Josh Aas  <joshmoz@gmail.com>
2423
2424         Reviewed by Darin.
2425
2426         - http://bugs.webkit.org/show_bug.cgi?id=15946
2427           add NPPValue NPPVpluginDrawingModel (Mozilla bug 403418 compat)
2428
2429         * Plugins/WebBaseNetscapePluginView.mm:
2430         (-[WebBaseNetscapePluginView setVariable:value:]):
2431
2432 2007-11-12  Alexey Proskuryakov  <ap@webkit.org>
2433
2434         Reviewed by Darin.
2435
2436         http://bugs.webkit.org/show_bug.cgi?id=15954
2437         Move DOM Selection operations out of SelectionController
2438
2439         * WebView/WebHTMLView.mm:
2440         (-[WebHTMLView _expandSelectionToGranularity:]):
2441         (-[WebHTMLView selectToMark:]):
2442         (-[WebHTMLView swapWithMark:]):
2443         * WebView/WebView.mm:
2444         (-[WebView setSelectedDOMRange:affinity:]):
2445         Adapted for SelectionController::setSelectedRange() now returning a bool.
2446
2447 2007-11-12  Oliver Hunt  <oliver@apple.com>
2448
2449         Reviewed by Darin and Geoff.
2450
2451         <rdar://problem/5522011> The content of the password field of 
2452         Safari is displayed by reconversion.
2453
2454         Some input methods (notably Kotoeri) can incorrectly provide 
2455         access to the raw text of a password field.  To work around 
2456         this we forcefully override the inputContext whenever a password
2457         field is active.
2458
2459         * WebView/WebHTMLView.mm:
2460         (-[WebHTMLView inputContext]):
2461
2462 2007-11-12  John Sullivan  <sullivan@apple.com>
2463
2464         Reviewed by Tim Hatcher
2465         
2466         - speculative fix for <rdar://problem/5509989> CrashTracer: [USER] 1 crash in Safari at com.apple.WebKit: 
2467         -[WebPDFView(FileInternal) _updatePreferencesSoon] + 56
2468         
2469         The crash is probably due to messaging a dealloc'ed dataSource ivar. The dataSource ivar isn't retained
2470         by this class, but should be. (It is retained by WebHTMLView, e.g.).
2471
2472         * WebView/WebPDFView.mm:
2473         (-[WebPDFView dealloc]):
2474         release dataSource ivar
2475         (-[WebPDFView setDataSource:]):
2476         retain dataSource ivar
2477
2478 2007-11-09  Tristan O'Tierney  <tristan@apple.com>
2479
2480         Reviewed by Timothy Hatcher.
2481         
2482         This patch is for the WebKit side of <rdar://problem/5591115>.
2483         We need a way to tell context menu navigations, such as "Open in New Window"
2484         to override any sort of browser preference for tab based navigation.
2485
2486         * WebCoreSupport/WebChromeClient.mm:
2487         (WebChromeClient::createWindow):
2488         Pass up the new preferredType parameter as a string.
2489         
2490 2007-11-09  Timothy Hatcher  <timothy@apple.com>
2491
2492         Reviewed by John.
2493
2494         <rdar://problem/5103720> REGRESSION: [WebView stringByEvaluatingJavaScriptFromString:] fails if "return" is used
2495
2496         Extend the linked on or after check to every application when a script passed to
2497         stringByEvaluatingJavaScriptFromString: has a return statement. Before the check
2498         was limited to VitalSource Bookshelf, but other developers are running into this.
2499
2500         * Misc/WebKitVersionChecks.h: Add the WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK define.
2501         * WebView/WebDocumentLoaderMac.mm:
2502         (needsDataLoadWorkaround): Use WEBKIT_FIRST_VERSION_WITHOUT_ADOBE_INSTALLER_QUIRK sicne the
2503           WebKitLinkedOnOrAfter check here was about the Adobe installer, not VitalSource.
2504         * WebView/WebView.mm:
2505         (-[WebView stringByEvaluatingJavaScriptFromString:]): Remove the bundle ID check and use
2506           WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK for the WebKitLinkedOnOrAfter call.
2507
2508 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
2509
2510         Build Fix.
2511
2512         * WebCoreSupport/WebFrameLoaderClient.h:
2513         * WebCoreSupport/WebFrameLoaderClient.mm:
2514         (WebFrameLoaderClient::windowObjectCleared):
2515
2516 2007-11-07  Darin Adler  <darin@apple.com>
2517
2518         Reviewed by Steve.
2519
2520         - removed some unused WebCore bridge methods
2521
2522         * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
2523
2524         * WebCoreSupport/WebFrameLoaderClient.mm:
2525         (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
2526         using the bridge object.
2527
2528 2007-11-06  Mark Rowe  <mrowe@apple.com>
2529
2530         Rubber-stamped by Dave Kilzer.
2531
2532         Move Mac files from WebKit into WebKit/mac.
2533
2534         * Carbon: Copied from WebKit/Carbon.
2535         * ChangeLog: Copied from WebKit/ChangeLog.
2536         * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03.
2537         * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09.
2538         * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14.
2539         * Configurations: Copied from WebKit/Configurations.
2540         * DOM: Copied from WebKit/DOM.
2541         * DefaultDelegates: Copied from WebKit/DefaultDelegates.
2542         * ForwardingHeaders: Copied from WebKit/ForwardingHeaders.
2543         * History: Copied from WebKit/History.
2544         * Info.plist: Copied from WebKit/Info.plist.
2545         * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make.
2546         * Misc: Copied from WebKit/Misc.
2547         * Panels: Copied from WebKit/Panels.
2548         * Plugins: Copied from WebKit/Plugins.
2549         * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt.
2550         * Resources: Copied from WebKit/Resources.
2551         * WebCoreSupport: Copied from WebKit/WebCoreSupport.
2552         * WebInspector: Copied from WebKit/WebInspector.
2553         * WebKit.exp: Copied from WebKit/WebKit.exp.
2554         * WebKit.order: Copied from WebKit/WebKit.order.
2555         * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h.
2556         * WebView: Copied from WebKit/WebView.
2557         * icu: Copied from WebKit/icu.
2558
2559 2007-11-06  Alexey Proskuryakov  <ap@webkit.org>
2560
2561         Reviewed by Darin.
2562
2563         http://bugs.webkit.org/show_bug.cgi?id=15847
2564         Some editing cleanup
2565
2566         No change in functionality.
2567
2568         * WebView/WebHTMLView.mm:
2569         (-[WebHTMLView deleteToEndOfLine:]):
2570         (-[WebHTMLView deleteToEndOfParagraph:]):
2571         WebCore had a duplicate of the same logic already. We are passing a boundary value to
2572         a function that expects granularity, this may need to be straightened out in the future.
2573
2574 2007-11-05  John Sullivan  <sullivan@apple.com>
2575
2576         * WebView/WebView.mm:
2577         (-[WebView _searchWithSpotlightFromMenu:]):
2578
2579         Teeny style tweak to test svn access on other machine
2580
2581 2007-11-05  John Sullivan  <sullivan@apple.com>
2582
2583         * WebView/WebView.mm:
2584         (-[WebView computedStyleForElement:pseudoElement:]):
2585         
2586         Teeny style tweak to test svn access
2587
2588 2007-11-02  Tristan O'Tierney  <tristan@apple.com>
2589
2590         Reviewed by Darin Adler.
2591
2592         * DefaultDelegates/WebDefaultUIDelegate.m:
2593         (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
2594         Forward the UI delegate to call webView:createWebViewWithRequest: if
2595         this method doesn't exist.
2596         
2597         * WebCoreSupport/WebFrameLoaderClient.mm:
2598         (WebFrameLoaderClient::dispatchCreatePage):
2599         * Plugins/WebBaseNetscapePluginView.mm:
2600         (-[WebBaseNetscapePluginView loadPluginRequest:]):
2601         * WebView/WebView.mm:
2602         (-[WebView _openNewWindowWithRequest:]):
2603         Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
2604         
2605         * WebCoreSupport/WebChromeClient.h:
2606         * WebCoreSupport/WebChromeClient.mm:
2607         (WebChromeClient::createWindow):
2608         Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
2609         Removed createModalDialog to use new createWindow function.
2610         
2611         * WebView/WebUIDelegatePrivate.h:
2612         Added new webView:createWebViewWithRequest:windowFeatures: method.
2613
2614 2007-11-05  Geoffrey Garen  <ggaren@apple.com>
2615
2616         Reviewed by Darin Adler.
2617         
2618         http://bugs.webkit.org/show_bug.cgi?id=15835
2619
2620         Small adaptations to new KJS::List class.
2621
2622         * ForwardingHeaders/kjs/value.h: Added.
2623
2624 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
2625
2626         Sort files(...); sections of Xcode project files.
2627
2628         Rubber-stamped by Darin.
2629
2630         * WebKit.xcodeproj/project.pbxproj:
2631
2632 2007-11-02  Antti Koivisto  <antti@apple.com>
2633
2634         Reviewed by Darin.
2635         
2636         Add method to enable video composition.
2637
2638         * WebCoreSupport/WebSystemInterface.m:
2639         (InitWebCoreSystemInterface):
2640
2641 2007-11-02  Darin Adler  <darin@apple.com>
2642
2643         Reviewed by Mitz.
2644
2645         - fix problem I ran into while doing some testing on Mac for
2646           <rdar://problem/5530185> WebKit does not show <object>
2647           fallback content when both URL and MIME type is omitted
2648
2649         I don't know how to reproduce this failure in DumpRenderTree, so there is no
2650         regression test.
2651
2652         * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including
2653         the didSendError local variable. Instead we just set the error to nil once
2654         we've sent it.
2655         * Plugins/WebNullPluginView.mm:
2656         (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that
2657         the null plug-in image code is separate from the rest of the function and
2658         so that the whole thing is not inside an if statement. Also don't hold a
2659         reference to the DOM element if there is no error to report.
2660         (-[WebNullPluginView reportFailure]): Added. Does the actual delegate
2661         callback. Happens back at the top level of the run loop so it doesn't
2662         fire deep inside layout. Also wrote this so that it is guaranteed not to
2663         reenter and so that it can handle the case where the delegate destroys
2664         the world (including this object). NOTE: This is not a real, general
2665         solution to the problem of plug-ins that do work inside layout. We will need
2666         a more general fix that works for other plug-ins, and we'll track that with
2667         a separate bug report.
2668         (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code;
2669         changed so it just does a performSelector:afterDelay:0.
2670
2671 2007-11-02  Mark Rowe  <mrowe@apple.com>
2672
2673         Reviewed by Darin Adler.
2674
2675         Fix http://bugs.webkit.org/show_bug.cgi?id=15780
2676         Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
2677
2678         * WebCoreSupport/WebFrameLoaderClient.mm:
2679         (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
2680         in the page coordinate system rather than the client area coordinate system.
2681
2682 2007-11-01  Dan Bernstein  <mitz@apple.com>
2683
2684         Reviewed by Oliver Hunt.
2685
2686         - fix an assertion failure when Command-Tabbing out of Safari
2687
2688         * WebView/WebHTMLView.mm:
2689         (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to
2690         WebCore.
2691
2692 2007-11-01  Justin Garcia  <justin.garcia@apple.com>
2693
2694         Reviewed by Oliver Hunt.
2695         
2696         <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
2697         
2698         No need to match style when pasting plain text, since the fragment we build for plain text
2699         won't have any style information on it.
2700
2701         * WebView/WebHTMLView.mm:
2702         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no
2703         longer a need to know whether this function chosePlaintext.
2704         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
2705         (-[WebHTMLView _documentFragmentFromPasteboard:]):
2706
2707 2007-10-31  Timothy Hatcher  <timothy@apple.com>
2708
2709         Reviewed by John Sullivan.
2710
2711         Move the developer extras preference to WebPreferences.
2712
2713         * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey
2714         * WebView/WebPreferences.m:
2715         (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO.
2716         (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras
2717           and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey.
2718         (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey.
2719         * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:.
2720         * WebView/WebView.mm:
2721         (+[WebView _developerExtrasEnabled]): Removed.
2722         (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled.
2723         * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled.
2724
2725 2007-10-30  David D. Kilzer  <ddkilzer@webkit.org>
2726
2727         Generated files missing from WebCore's Xcode project file
2728         <http://bugs.webkit.org/show_bug.cgi?id=15406>
2729
2730         Reviewed by Darin.
2731
2732         Added the following private header files to MigrateHeaders.make:
2733
2734         - DOMCSSStyleSheetPrivate.h
2735         - DOMEventPrivate.h
2736         - DOMHTMLCollectionPrivate.h
2737         - DOMHTMLEmbedElementPrivate.h
2738         - DOMHTMLIFrameElementPrivate.h
2739         - DOMHTMLObjectElementPrivate.h
2740         - DOMHTMLSelectElementPrivate.h
2741
2742         * MigrateHeaders.make:
2743
2744 2007-10-29  Antti Koivisto  <antti@apple.com>
2745
2746         Reviewed by Maciej.
2747         
2748         Some SPIs for media support.
2749
2750         * WebCoreSupport/WebSystemInterface.m:
2751         (InitWebCoreSystemInterface):
2752
2753 2007-10-29  Timothy Hatcher  <timothy@apple.com>
2754
2755         Reviewed by John Sullivan.
2756
2757         Various semi-related changes:
2758         - A WebView can now be asked for it's WebInspector. There is one
2759           WebInspector per WebView. 
2760         - Refactor the WebInspector class and move obsolete methods to
2761           a special category.
2762         - Add new WebInspector methods to show, hide and show the
2763           console/timeline panels.
2764         - Add an isDisabled method to WebCache.
2765         - Allow WebLocalizableStrings.h to be used in C files.
2766
2767         * Misc/WebCache.h: Add isDisabled.
2768         * Misc/WebCache.mm:
2769         (+[WebCache isDisabled]): New method.
2770
2771         * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files.
2772
2773         * WebCoreSupport/WebInspectorClient.mm:
2774         (-[WebInspectorWindowController showWindow:]): Call super if already visible
2775           so the window will be ordered front.
2776         (-[WebInspectorWindowController showWebInspector:]): Method used by menu items,
2777           so they are enabled and work when the Inspector window is key.
2778         (-[WebInspectorWindowController showErrorConsole:]): Ditto.
2779         (-[WebInspectorWindowController showNetworkTimeline:]): Ditto.
2780
2781         * WebInspector/WebInspector.h: Add and remove methods.
2782         * WebInspector/WebInspector.mm:
2783         (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced.
2784           Clears the _webView pointer.
2785         (-[WebInspector show:]): Calls thru to the Page's InspectorController.
2786         (-[WebInspector showConsole:]): Ditto.
2787         (-[WebInspector showTimeline:]): Ditto.
2788         (-[WebInspector close:]): Ditto.
2789         (-[WebInspector attach:]): Ditto.
2790         (-[WebInspector detach:]): Ditto.
2791         (+[WebInspector sharedWebInspector]): Moved to the obsolete category.
2792         (+[WebInspector webInspector]): Ditto.
2793         (-[WebInspector setWebFrame:]): Ditto.
2794         (-[WebInspector window]): Ditto.
2795         (-[WebInspector showWindow:]): Ditto.
2796
2797         * WebView/WebView.mm:
2798         (-[WebViewPrivate dealloc]): Release the WebInspector.
2799         (-[WebView _close]): Call webViewClosed on the WebInspector.
2800         (-[WebView inspector]): Create a WebInspector if needed and return it.
2801         * WebView/WebViewPrivate.h: Add the inspector method.
2802
2803 2007-10-30  Adele Peterson  <adele@apple.com>
2804
2805         Reviewed by Darin.
2806
2807         WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
2808         <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
2809
2810         * WebView/WebHTMLView.mm:
2811         (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
2812         (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
2813         (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
2814
2815 2007-10-27  Mark Ambachtsheer  <mark.a@apple.com>
2816
2817         Reviewed by Darin.
2818
2819         Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at 
2820         (0, 0) the clipping rectangle is not correct.
2821         Added the origin to the window clip rectangle coordinates to account for plugins that
2822         don't originate at (0,0); affects code for offscreen GWorlds only.
2823
2824         * Plugins/WebBaseNetscapePluginView.mm:
2825         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2826
2827 2007-10-26  Adele Peterson  <adele@apple.com>
2828
2829         Reviewed by Oliver.
2830
2831         Adding WebKitSystemInterface support for the caps lock indicator
2832
2833         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2834
2835 2007-10-25  David Hyatt  <hyatt@apple.com>
2836
2837         Fix for bug 15672, backgrounds don't tile properly inside transforms.  This patch fixes tiling
2838         of backgrounds inside CSS transforms and also of HTML content with background images inside SVG
2839         transforms.
2840
2841         Reviewed by aroben and mmitz
2842
2843         * WebCoreSupport/WebSystemInterface.m:
2844         (InitWebCoreSystemInterface):
2845         * WebKit.xcodeproj/project.pbxproj:
2846
2847 2007-10-25  John Sullivan  <sullivan@apple.com>
2848
2849         Reviewed by Tim Hatcher
2850         
2851         Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it
2852         always does, when available.
2853
2854         * WebView/WebPreferencesPrivate.h:
2855         removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with
2856         a comment that says that they can be removed when no longer needed. That time is now.
2857
2858         * WebView/WebPreferences.m:
2859         (+[WebPreferences initialize]):
2860         removed WebKitUsePDFPreviewViewPreferenceKey
2861         (-[WebPreferences _usePDFPreviewView]):
2862         removed
2863         (-[WebPreferences _setUsePDFPreviewView:]):
2864         removed
2865
2866         * WebView/WebPDFView.mm:
2867         (-[WebPDFView initWithFrame:]):
2868         don't check _usePDFPreviewView
2869         
2870         * WebView/WebPreferenceKeysPrivate.h:
2871         removed WebKitUsePDFPreviewViewPreferenceKey
2872         
2873 2007-10-24  Timothy Hatcher  <timothy@apple.com>
2874
2875         Reviewed by Mark Rowe.
2876
2877         <rdar://problem/5069711> OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard
2878
2879         Use the WebKitSystemInterface that matches the system version.
2880
2881         * Configurations/DebugRelease.xcconfig:
2882         * WebKit.xcodeproj/project.pbxproj:
2883
2884 2007-10-24  Brady Eidson  <beidson@apple.com>
2885
2886         Reviewed by Anders
2887
2888         <rdar://problem/5554130> DatabaseTracker.o has a global initializer
2889
2890         * Misc/WebDatabaseManager.mm:
2891         (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
2892
2893 2007-10-23  Mark Rowe  <mrowe@apple.com>
2894
2895         Build fix for Eric's build fix in r26916.
2896
2897         * MigrateHeaders.make:
2898
2899 2007-10-22  Eric Seidel  <eric@webkit.org>
2900
2901         Reviewed by Maciej.
2902
2903         * MigrateHeaders.make: copy over font-face related DOM headers
2904
2905 2007-10-22  Andrew Wellington  <proton@wiretapped.net>
2906
2907         Reviewed by Mark Rowe.
2908         
2909         Fix for local database support after r26879
2910         Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
2911
2912         * Configurations/WebKit.xcconfig:
2913
2914 2007-10-19  Brady Eidson <beidson@apple.com>
2915
2916         Reviewed by Tim Hatcher
2917
2918         Added support for Chrome prompts required by the Storage API
2919         Added support API for future managing of databases from the WebKit client
2920         Added preference and initialization for the databases path
2921
2922         * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
2923           remove the current available databases
2924         * Misc/WebDatabaseManager.mm: Added.
2925         (+[WebDatabaseManager origins]):
2926         (+[WebDatabaseManager databasesWithOrigin:]):
2927         (+[WebDatabaseManager deleteAllDatabases]):
2928         (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
2929         (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
2930         (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
2931         * Misc/WebDatabaseManagerPrivate.h: Added.
2932
2933         * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for 
2934           an origin exceeding its size limit
2935         * WebCoreSupport/WebChromeClient.mm:
2936         (WebChromeClient::runDatabaseSizeLimitPrompt):
2937         * WebKit.xcodeproj/project.pbxproj:
2938         * WebView/WebUIDelegate.h:
2939
2940         * WebView/WebView.mm:
2941         (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
2942         * WebView/WebViewInternal.h:
2943
2944 2007-10-19  John Sullivan  <sullivan@apple.com>
2945
2946         Reviewed by Tim Hatcher
2947         
2948         - fixed <rdar://problem/5540325> REGRESSION (2.0.4-3): History menu looks odd after clearing history
2949
2950         * History/WebHistory.mm:
2951         (-[WebHistoryPrivate removeAllItems]):
2952         This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition
2953         to the other places where it's cleared.
2954
2955 2007-10-18  Dan Bernstein  <mitz@apple.com>
2956
2957         Tiger build fix.
2958
2959         * WebView/WebDataSource.mm:
2960         (-[WebDataSource _MIMETypeOfResponse:]):
2961
2962 2007-10-18  Dan Bernstein  <mitz@apple.com>
2963
2964         Reviewed by Adam Roben.
2965
2966         - fix <rdar://problem/5313523>
2967         REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard
2968
2969         * WebCoreSupport/WebFrameLoaderClient.mm:
2970         (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType.
2971         * WebView/WebDataSource.mm:
2972         (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around
2973         <rdar://problem/5321972> by testing for the case of an NSHTTPURLResponse
2974         with a MIMEType of application/octet-stream and a Content-Type header
2975         starting with text/plain and returning text/plain as the MIME type in
2976         that case.
2977         (-[WebDataSource _responseMIMEType]): Added. Used to get the correct
2978         response MIME type.
2979         (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType.
2980         (-[WebDataSource _makeRepresentation]): Ditto.
2981         (-[WebDataSource mainResource]): Ditto.
2982         (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and
2983         pass the MIME type explicitly.
2984         (-[WebDataSource subresourceForURL:]): Ditto.
2985         * WebView/WebDataSourcePrivate.h:
2986         * WebView/WebFrameView.mm:
2987         (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use
2988         _responseMIMEType.
2989         * WebView/WebResource.mm:
2990         (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this
2991         method to take a MIME type instead of extracting it from the response,
2992         so that WebDataSource could pass the correct MIME type.
2993         * WebView/WebResourcePrivate.h:
2994
2995 2007-10-17  Darin Adler  <darin@apple.com>
2996
2997         Reviewed by Mark Rowe.
2998
2999         - fix <rdar://problem/5183775> Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers]
3000
3001         * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
3002         Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object.
3003         It's safe to do that for functions that return integers or pointers, but not structures.
3004
3005 2007-10-16  David Kilzer  <ddkilzer@apple.com>
3006
3007         Reviewed by Timothy.
3008
3009         <rdar://problem/5544354> Wrong delegate method called in
3010         WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
3011
3012         * WebCoreSupport/WebFrameLoaderClient.mm:
3013         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name.
3014
3015 2007-10-16  Darin Adler  <darin@apple.com>
3016
3017         Reviewed by Adele.
3018
3019         - moved transpose command implementation into WebCore
3020
3021         * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
3022
3023 2007-10-16  Darin Adler  <darin@apple.com>
3024
3025         Reviewed by Maciej and Geoff (and looked over by Eric).
3026
3027         - http://bugs.webkit.org/show_bug.cgi?id=15519
3028           eliminate use of <ctype.h> for processing ASCII
3029
3030         * ForwardingHeaders/wtf/ASCIICType.h: Added.
3031         * ForwardingHeaders/wtf/DisallowCType.h: Added.
3032
3033         * WebKitPrefix.h: Include DisallowCType.h.
3034
3035         * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower.
3036         * WebView/WebHTMLView.mm:
3037         (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper.
3038         (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes,
3039         instead of using ispunct.
3040
3041 2007-10-16  John Sullivan  <sullivan@apple.com>
3042
3043         Reviewed by Adam Roben
3044         
3045         Cleaned up localizable strings
3046
3047         * English.lproj/Localizable.strings:
3048         updated
3049         * StringsNotToBeLocalized.txt:
3050         updated
3051         * WebKit.xcodeproj/project.pbxproj:
3052         StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
3053
3054 2007-10-15  Kevin Decker  <kdecker@apple.com>
3055
3056         Reviewed by Darin Adler.
3057         
3058         Fixed: <rdar://problem/5520541> REGRESSION: Broken image when forwarding certain email on Tiger
3059         
3060         * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
3061         too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
3062         that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
3063         load during first layout and not attach time. For this plug-in, loading at first layout is 
3064         expected and is consistent with Safari 2 behavior.
3065
3066 2007-10-15  John Sullivan  <sullivan@apple.com>
3067
3068         Reviewed by Geoff Garen
3069         
3070         Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
3071
3072         I made the following changes:
3073         - replaced NS_DURING with @try, and added opening brace if there wasn't one
3074         - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
3075         - removed NS_ENDHANDLER, and added a closing brace if there wasn't one
3076         - in a couple of places, fixed indentation therein
3077
3078         * Misc/WebIconDatabase.mm:
3079         (objectFromPathForKey):
3080         * WebView/WebHTMLView.mm:
3081         (-[WebHTMLView drawSingleRect:]):
3082         (-[WebHTMLView beginDocument]):
3083         (-[WebHTMLView deleteToMark:]):
3084         * WebView/WebView.mm:
3085         (-[WebView initWithCoder:]):
3086
3087 == Rolled over to ChangeLog-2007-10-14 ==