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