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