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