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