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