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