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