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