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