47ac1cd3171c39556b2dc392175014f7bb609cf7
[WebKit-https.git] / WebKit / ChangeLog
1 2006-11-15  Adam Roben  <aroben@apple.com>
2
3         Reviewed by Anders.
4
5         Added new WebContextMenuClient class to act as WebCore's ChromeClient,
6         and moved context menu-related code there from WebChromeClient.
7
8         * WebCoreSupport/WebChromeClient.h:
9         * WebCoreSupport/WebChromeClient.mm:
10         * WebCoreSupport/WebContextMenuClient.h: Added.
11         (WebContextMenuClient::webView):
12         * WebCoreSupport/WebContextMenuClient.mm: Added.
13         (WebContextMenuClient::create):
14         (WebContextMenuClient::WebContextMenuClient):
15         (WebContextMenuClient::ref):
16         (WebContextMenuClient::deref):
17         (WebContextMenuClient::addCustomContextMenuItems):
18         * WebKit.xcodeproj/project.pbxproj: Added new files.
19         * WebView/WebView.mm:
20         (-[WebView _commonInitializationWithFrameName:groupName:]):
21
22 2006-11-15  Beth Dakin  <bdakin@apple.com>
23         &   Adam Roben  <aroben@apple.com>
24
25         Reviewed by Adam & Beth.
26
27         WebKit side of first cut at engine context menus. Use the client to 
28         call into the UIDelegate.
29
30         * WebCoreSupport/WebChromeClient.h:
31         * WebCoreSupport/WebChromeClient.mm:
32         (WebChromeClient::addCustomContextMenuItems):
33         * WebKit.xcodeproj/project.pbxproj:
34
35 2006-11-15  Brady Eidson  <beidson@apple.com>
36
37         Reviewed by Maciej
38
39         Quick change of files to ObjC++ for BF cache re-write
40
41         * History/WebBackForwardList.m: Removed.
42         * History/WebBackForwardList.mm: Added.
43         * History/WebHistoryItem.m: Removed.
44         * History/WebHistoryItem.mm: Added.
45         * WebKit.xcodeproj/project.pbxproj:
46
47 2006-11-15  Brady Eidson  <beidson@apple.com>
48
49         Reviewed by Sarge
50
51         SPI addition
52
53         * WebView/WebFrame.mm:
54         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
55         * WebView/WebFrameInternal.h:
56         * WebView/WebFramePrivate.h:
57
58 2006-11-15  Brady Eidson  <beidson@apple.com>
59
60         Reviewed by Adele
61
62         <rdar://problem/4838729> - Replace mistakenly removed SPI
63
64         * WebView/WebHTMLView.m:
65         (-[WebHTMLView _handleAutoscrollForMouseDragged:]):
66         * WebView/WebHTMLViewPrivate.h:
67
68 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
69
70         Reviewed by Adele.
71
72         isTargetItem is used by DRT, so make it private instead of internal.
73         
74         * History/WebHistoryItem.m:
75         (-[WebHistoryItem isTargetItem]):
76         * History/WebHistoryItemInternal.h:
77         * History/WebHistoryItemPrivate.h:
78         * WebCoreSupport/WebFrameLoaderClient.mm:
79
80 2006-11-15  Brady Eidson  <beidson@apple.com>
81
82         Reviewed by Maciej
83
84         Split much of unused WebHistoryItemPrivate.h SPI into WebHistoryItemInternal.h
85
86         * History/WebBackForwardList.m:
87         * History/WebHistory.m:
88         * History/WebHistoryItem.m:
89         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
90         (-[WebHistoryItem initWithURL:title:]):
91         (-[WebHistoryItem visitCount]):
92         (-[WebHistoryItem RSSFeedReferrer]):
93         (-[WebHistoryItem setRSSFeedReferrer:]):
94         (-[WebHistoryItem children]):
95         (-[WebHistoryItem dictionaryRepresentation]):
96         (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
97         (+[WebHistoryItem _releaseAllPendingPageCaches]):
98         (-[WebHistoryItem URL]):
99         (-[WebHistoryItem target]):
100         (-[WebHistoryItem _setLastVisitedTimeInterval:]):
101         (-[WebHistoryItem _lastVisitedDate]):
102         (-[WebHistoryItem targetItem]):
103         * History/WebHistoryItemInternal.h: Added.
104         * History/WebHistoryItemPrivate.h:
105         * WebCoreSupport/WebFrameBridge.mm:
106         * WebCoreSupport/WebFrameLoaderClient.mm:
107         * WebKit.xcodeproj/project.pbxproj:
108         * WebView/WebFrame.mm:
109         * WebView/WebView.mm:
110
111 2006-11-14  Beth Dakin  <bdakin@apple.com>
112
113         Reviewed by Geoff.
114
115         Moving things off the bridge and onto clients.
116
117         * WebCoreSupport/WebEditorClient.h:
118         * WebCoreSupport/WebEditorClient.mm:
119         (WebEditorClient::selectWordBeforeMenuEvent):
120         (WebEditorClient::isEditable):
121         * WebCoreSupport/WebFrameBridge.mm:
122         * WebKit.xcodeproj/project.pbxproj:
123
124 2006-11-14  Timothy Hatcher  <timothy@apple.com>
125
126         Reviewed by Harrison.
127
128         <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
129
130         Adds an Open Link, Open Link in New Window and Copy Link to the editing context menu.
131         Adds a new WebKitEditableLinkNeverLive preference value that maps to WebCore's EditableLinkNeverLive.
132
133         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
134         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
135         (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
136         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
137         (-[WebDefaultUIDelegate requestWithURL:includingReferrerFromFrame:]):
138         (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
139         (-[WebDefaultUIDelegate openLink:]):
140         * English.lproj/Localizable.strings:
141         * WebKit.exp:
142         * WebView/WebPreferences.m:
143         (-[WebPreferences editableLinkBehavior]):
144         * WebView/WebPreferencesPrivate.h:
145         * WebView/WebUIDelegatePrivate.h:
146
147 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
148
149         Turns out I wasn't forcing DWARF on the world at all, 
150         it's now the default!
151
152         * WebKit.xcodeproj/project.pbxproj:
153
154 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
155
156         I must stop trying to force DWARF on the world.
157
158         * WebKit.xcodeproj/project.pbxproj:
159
160 2006-11-14  Darin Adler  <darin@apple.com>
161
162         Reviewed by Anders.
163
164         - update for creation of EventHandler
165
166         * WebCoreSupport/WebFrameLoaderClient.mm:
167         (WebFrameLoaderClient::actionDictionary):
168         * WebView/WebHTMLView.m:
169         (-[WebHTMLView _updateMouseoverWithEvent:]):
170         (-[NSArray menuForEvent:]):
171         (-[NSArray scrollWheel:]):
172         (-[NSArray acceptsFirstMouse:]):
173         (-[NSArray shouldDelayWindowOrderingForEvent:]):
174         (-[NSArray mouseDown:]):
175         (-[NSArray mouseDragged:]):
176         (-[NSArray mouseUp:]):
177         (-[NSArray keyDown:]):
178         (-[NSArray keyUp:]):
179         (-[NSArray performKeyEquivalent:]):
180         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
181
182 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
183
184         Fix build for real this time.
185         
186         * WebCoreSupport/WebEditorClient.mm:
187         (-[WebEditCommand initWithEditCommand:WebCore::]):
188         (-[WebEditCommand dealloc]):
189         (-[WebEditCommand finalize]):
190         (+[WebEditCommand commandWithEditCommand:]):
191         (-[WebEditCommand command]):
192
193 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
194
195         Try fixing the build.
196         
197         * WebCoreSupport/WebEditorClient.mm:
198         (-[WebEditorUndoTarget undoEditing:]):
199         (-[WebEditorUndoTarget redoEditing:]):
200
201 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
202
203         Reviewed by Darin.
204
205         Move undo/redo handling into WebEditorClient.
206         
207         * WebCoreSupport/WebEditorClient.h:
208         * WebCoreSupport/WebEditorClient.mm:
209         (WebEditorClient::WebEditorClient):
210         (WebEditorClient::~WebEditorClient):
211         (-[WebEditCommand initWithEditCommand:WebCore::]):
212         (-[WebEditCommand dealloc]):
213         (-[WebEditCommand finalize]):
214         (+[WebEditCommand commandWithEditCommand:]):
215         (-[WebEditCommand command]):
216         (-[WebEditorUndoTarget undoEditing:]):
217         (-[WebEditorUndoTarget redoEditing:]):
218         (undoNameForEditAction):
219         (WebEditorClient::registerCommandForUndoOrRedo):
220         (WebEditorClient::registerCommandForUndo):
221         (WebEditorClient::registerCommandForRedo):
222         (WebEditorClient::clearUndoRedoOperations):
223         (WebEditorClient::canUndo):
224         (WebEditorClient::canRedo):
225         (WebEditorClient::undo):
226         (WebEditorClient::redo):
227         * WebCoreSupport/WebFrameBridge.mm:
228         * WebKit.xcodeproj/project.pbxproj:
229
230 2006-11-14  Alexey Proskuryakov  <ap@webkit.org>
231
232         Reviewed by Tim H.
233
234         http://bugs.webkit.org/show_bug.cgi?id=3387
235         Redundant keydown, keypress, keyup events sent for arrow keys
236
237         Added another layer of ugly hacks around AppKit event dispatching.
238
239         1. For arrow keys, keyDown: is invoked after performKeyEquivalent:, so had to store
240         _private->keyDownEvent in both methods, and make it persist after leaving them.
241
242         2. For Esc, AppKit calls performKeyEquivalent: with a fake event of some kind,
243         use [NSApp currentEvent] to check for this to prevent it from being passed to  WebCore.
244
245         Test: manual-tests/arrow-key-events.html
246
247         * WebView/WebHTMLView.m:
248         (-[NSMutableDictionary dealloc]):
249         (-[NSArray keyDown:]):
250         (-[NSArray keyUp:]):
251         (-[NSArray performKeyEquivalent:]):
252         * WebView/WebHTMLViewInternal.h:
253
254 2006-11-12  Brady Eidson <beidson@apple.com>
255
256         Rubberstamped by Anders
257
258         Changed some #includes from <WebKit/foo.h> to "foo.h"
259
260         * History/WebBackForwardList.m:
261         * History/WebHistory.m:
262
263 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
264
265         Reviewed by Maciej Stachowiak.
266         
267         - Fixed loader crash by clarifying ownership of WebKit client objects. 
268         WebCore objects own their WebKit clients, and ref and deref through 
269         virtual methods, leaving WebKit free to use whatever client / reference-counting 
270         implementation it likes.
271         
272         WebKit on Mac just uses the same refcounting class that WebCore uses (Shared),
273         but other platforms may choose to do other things.
274
275         * WebCoreSupport/WebChromeClient.h:
276         (WebChromeClient::ref):
277         (WebChromeClient::deref):
278         (WebChromeClient::refCount):
279         * WebCoreSupport/WebEditorClient.h: Nixed commented-out function prototypes.
280         The ones in WebCore make clear what remains to be implemented. Replaced constructor
281         with factory function to avoid leaks.
282         * WebCoreSupport/WebEditorClient.mm:
283         (WebEditorClient::create):
284         (WebEditorClient::WebEditorClient):
285         (WebEditorClient::setWebFrame):
286         * WebCoreSupport/WebFrameBridge.mm:
287         (-[WebFrameBridge initMainFrameWithPage:WebCore::frameName:view:webView:]):
288         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
289         * WebCoreSupport/WebFrameLoaderClient.h: Replaced constructor with factory
290         function to avoid leaks.
291         (WebFrameLoaderClient::ref):
292         (WebFrameLoaderClient::deref):
293         (WebFrameLoaderClient::refCount):
294         * WebCoreSupport/WebFrameLoaderClient.mm:
295         (WebFrameLoaderClient::create):
296         * WebView/WebFrame.mm:
297         (-[WebFrame _initWithWebFrameView:webView:coreFrame:]):
298
299 === Safari-521.30 ===
300
301 2006-11-10  Maciej Stachowiak  <mjs@apple.com>
302
303         Reviewed by Anders.
304         
305         - remove some unnecessary uses of WebDataProtocol
306
307         * WebView/WebDataSource.mm: Remove the unneeded include.
308         * WebView/WebView.mm:
309         (+[WebView _canHandleRequest:]): Don't bother to check for unreachable URL here.
310         Any request that has one will be an applewebdata: request, which will pass the check anyway.
311
312 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
313
314         Reviewed by Geoff.
315
316         Update for changes to WebCore
317         * WebView/WebHTMLView.m:
318         (-[NSArray _applyStyleToSelection:withUndoAction:]):
319         (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
320         (-[NSArray _toggleBold]):
321         (-[NSArray _toggleItalic]):
322
323 2006-11-09  Anders Carlsson  <acarlsson@apple.com>
324
325         Reviewed by Maciej, Geoff.
326
327         Call execCommand directly here instead of going through the bridge.
328         
329         * WebView/WebHTMLView.m:
330         (-[NSArray moveBackward:]):
331         (-[NSArray moveBackwardAndModifySelection:]):
332         (-[NSArray moveDown:]):
333         (-[NSArray moveDownAndModifySelection:]):
334         (-[NSArray moveForward:]):
335         (-[NSArray moveForwardAndModifySelection:]):
336         (-[NSArray moveLeft:]):
337         (-[NSArray moveLeftAndModifySelection:]):
338         (-[NSArray moveRight:]):
339         (-[NSArray moveRightAndModifySelection:]):
340         (-[NSArray moveToBeginningOfDocument:]):
341         (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
342         (-[NSArray moveToBeginningOfSentence:]):
343         (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
344         (-[NSArray moveToBeginningOfLine:]):
345         (-[NSArray moveToBeginningOfLineAndModifySelection:]):
346         (-[NSArray moveToBeginningOfParagraph:]):
347         (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
348         (-[NSArray moveToEndOfDocument:]):
349         (-[NSArray moveToEndOfDocumentAndModifySelection:]):
350         (-[NSArray moveToEndOfSentence:]):
351         (-[NSArray moveToEndOfSentenceAndModifySelection:]):
352         (-[NSArray moveToEndOfLine:]):
353         (-[NSArray moveToEndOfLineAndModifySelection:]):
354         (-[NSArray moveToEndOfParagraph:]):
355         (-[NSArray moveToEndOfParagraphAndModifySelection:]):
356         (-[NSArray moveParagraphBackwardAndModifySelection:]):
357         (-[NSArray moveParagraphForwardAndModifySelection:]):
358         (-[NSArray moveUp:]):
359         (-[NSArray moveUpAndModifySelection:]):
360         (-[NSArray moveWordBackward:]):
361         (-[NSArray moveWordBackwardAndModifySelection:]):
362         (-[NSArray moveWordForward:]):
363         (-[NSArray moveWordForwardAndModifySelection:]):
364         (-[NSArray moveWordLeft:]):
365         (-[NSArray moveWordLeftAndModifySelection:]):
366         (-[NSArray moveWordRight:]):
367         (-[NSArray moveWordRightAndModifySelection:]):
368
369 2006-11-10  Brady Eidson  <beidson@apple.com>
370
371         Reviewed by Darin
372   
373         Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
374
375         * Misc/WebIconDatabase.m:
376         (-[WebIconDatabase init]):
377         (-[WebIconDatabase iconForURL:withSize:cache:]):
378         (-[WebIconDatabase iconURLForURL:]):
379         (-[WebIconDatabase defaultIconWithSize:]):
380         (-[WebIconDatabase defaultIconForURL:withSize:]):
381         (-[WebIconDatabase retainIconForURL:]):
382         (-[WebIconDatabase releaseIconForURL:]):
383         (-[WebIconDatabase setDelegate:]):
384         (-[WebIconDatabase removeAllIcons]):
385         (-[WebIconDatabase isIconExpiredForIconURL:]):
386         (-[WebIconDatabase _isEnabled]):
387         (-[WebIconDatabase _setIconData:forIconURL:]):
388         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
389         (-[WebIconDatabase _setIconURL:forURL:]):
390         (-[WebIconDatabase _hasEntryForIconURL:]):
391         (-[WebIconDatabase _applicationWillTerminate:]):
392         (-[WebIconDatabase _resetCachedWebPreferences:]):
393         (-[WebIconDatabase _convertToWebCoreFormat]):
394         (webGetNSImage):
395         * Misc/WebIconDatabaseInternal.h: Added.
396         * Misc/WebIconDatabasePrivate.h:
397         * WebCoreSupport/WebFrameLoaderClient.h:
398         * WebCoreSupport/WebFrameLoaderClient.mm:
399         (WebFrameLoaderClient::dispatchDidReceiveIcon):
400         * WebCoreSupport/WebIconDatabaseBridge.h: Removed.
401         * WebCoreSupport/WebIconDatabaseBridge.m: Removed.
402         * WebKit.xcodeproj/project.pbxproj:
403
404 2006-11-09  Oliver Hunt  <oliver@apple.com>
405
406         Reviewed by Brady.
407         
408         Updated to make use of MimeTypeRegistry/bridge
409
410         * Misc/WebNSPasteboardExtras.m:
411         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
412         * WebCoreSupport/WebFrameBridge.mm:
413         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
414         * WebView/WebDataSource.mm:
415         (-[WebDataSource _documentFragmentWithArchive:]):
416         * WebView/WebHTMLRepresentation.m:
417         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
418         (+[WebHTMLRepresentation supportedImageMIMETypes]):
419         * WebView/WebHTMLView.m:
420         (-[WebHTMLView _imageExistsAtPaths:]):
421         (-[WebHTMLView _documentFragmentWithPaths:]):
422
423 2006-11-09  Brady Eidson  <beidson@apple.com>
424
425         Reviewed by Darin
426
427         <rdar://problem/4829080>
428         More loader re-factoring cleanup - WebFramePolicyListener was over-released
429
430         * WebCoreSupport/WebFrameLoaderClient.h: Changed vanilla ptr to a RetainPtr<> 
431         * WebCoreSupport/WebFrameLoaderClient.mm:
432         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType): Ditto
433         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Ditto
434         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto
435         (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto
436         (WebFrameLoaderClient::setUpPolicyListener): Ditto
437         (-[WebFramePolicyListener receivedPolicyDecision:]): Ditto 
438
439 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
440
441         Reviewed by Adam, Oliver.
442
443         Update for changes to WebCore. Pass a specific WebFrame to WebEditorClient
444         instead of just passing the WebView.
445         
446         * WebCoreSupport/WebEditorClient.h:
447         * WebCoreSupport/WebEditorClient.mm:
448         (WebEditorClient::WebEditorClient):
449         (WebEditorClient::setWebFrame):
450         (WebEditorClient::isContinuousSpellCheckingEnabled):
451         (WebEditorClient::spellCheckerDocumentTag):
452         (WebEditorClient::shouldDeleteRange):
453         (WebEditorClient::shouldShowDeleteInterface):
454         (WebEditorClient::shouldApplyStyle):
455         (WebEditorClient::shouldBeginEditing):
456         (WebEditorClient::shouldEndEditing):
457         (WebEditorClient::didBeginEditing):
458         (WebEditorClient::respondToChangedContents):
459         (WebEditorClient::didEndEditing):
460         * WebCoreSupport/WebFrameBridge.mm:
461         (-[WebFrameBridge initMainFrameWithPage:WebCore::frameName:view:webView:]):
462         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
463
464 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
465
466         Reviewed by Adam.
467
468         Move more code into editor.
469
470         * WebCoreSupport/WebEditorClient.h:
471         * WebCoreSupport/WebEditorClient.mm:
472         (WebEditorClient::shouldBeginEditing):
473         (WebEditorClient::shouldEndEditing):
474         (WebEditorClient::didBeginEditing):
475         (WebEditorClient::didEndEditing):
476         * WebCoreSupport/WebFrameBridge.mm:
477         * WebView/WebHTMLView.m:
478         (-[NSArray indent:]):
479         (-[NSArray outdent:]):
480         * WebView/WebView.mm:
481         * WebView/WebViewInternal.h:
482
483 2006-11-08  Beth Dakin  <bdakin@apple.com>
484
485         Reviewed by Adam.
486
487         Add WebElementIsContentEditableKey to the WebElementDictionary, and 
488         use it!
489
490         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
491         (-[WebDefaultUIDelegate 
492         webView:contextMenuItemsForElement:defaultMenuItems:]): Use new 
493         WebElementIsContentEditableKey.
494         * Misc/WebElementDictionary.m:
495         (+[WebElementDictionary initializeLookupTable]):
496         (-[WebElementDictionary _isContentEditable]): Call into 
497         HitTestResult::isContentEditable()
498         * WebView/WebView.mm: Add new key.
499         * WebView/WebViewPrivate.h: Add new key.
500
501 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
502
503         Reviewed by Oliver.
504
505         Call into the WebCore editor object directly.
506         
507         * MigrateHeaders.make:
508         * WebCoreSupport/WebEditorClient.h:
509         * WebCoreSupport/WebEditorClient.mm:
510         (WebEditorClient::shouldDeleteRange):
511         (WebEditorClient::shouldShowDeleteInterface):
512         (WebEditorClient::shouldApplyStyle):
513         * WebView/WebFrame.mm:
514         (core):
515         (kit):
516         * WebView/WebFrameInternal.h:
517         * WebView/WebHTMLView.m:
518         (-[NSArray _applyStyleToSelection:withUndoAction:]):
519         (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
520         (-[NSArray _toggleBold]):
521         (-[NSArray _toggleItalic]):
522         (-[NSArray _changeCSSColorUsingSelector:inRange:]):
523         (-[NSArray underline:]):
524         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
525         * WebView/WebView.mm:
526         (-[WebView applyStyle:]):
527
528 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
529
530         Reviewed by Oliver.
531
532         <rdar://problem/4825370>
533         REGRESSION: Selecting "Look Up In Dictionary" from contextual menu fails to open the Dictionary app
534         
535         * WebView/WebHTMLView.m:
536         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
537         Initialize the framework pointer to 0.
538         
539 2006-11-07  Darin Adler  <darin@apple.com>
540
541         Reviewed by Geoff.
542
543         - udpated for changes to move from Frame/FrameMac to FrameLoader
544
545         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
546         (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
547         * Misc/WebNSAttributedStringExtras.m:
548         (+[NSAttributedString _web_attributedStringFromRange:]):
549         * Plugins/WebBaseNetscapePluginView.mm:
550         (-[WebBaseNetscapePluginView requestWithURLCString:]):
551         * Plugins/WebNetscapePluginEmbeddedView.m:
552         (-[WebNetscapePluginEmbeddedView didStart]):
553         * Plugins/WebNetscapePluginStream.mm:
554         * Plugins/WebPluginController.mm:
555         (-[WebPluginController pluginView:receivedResponse:]):
556         * WebCoreSupport/WebFrameBridge.mm:
557         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
558         * WebCoreSupport/WebFrameLoaderClient.mm:
559         (WebFrameLoaderClient::provisionalLoadStarted):
560         * WebView/WebFrame.mm:
561         (-[WebFrame _canCachePage]):
562         (+[WebFrame _timeOfLastCompletedLoad]):
563         (-[WebFrame _loadItem:withLoadType:]):
564         (-[WebFrame _reloadForPluginChanges]):
565         (-[WebFrame stopLoading]):
566
567 2006-11-07  Anders Carlsson  <acarlsson@apple.com>
568
569         Reviewed by Geoff.
570
571         Use the WebCore editing enums.
572         
573         * WebCoreSupport/WebFrameBridge.mm:
574         (-[WebFrameBridge undoNameForEditAction:]):
575         * WebView/WebHTMLView.m:
576         (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
577         (-[WebHTMLView _deleteSelection]):
578         (-[WebHTMLView moveBackward:]):
579         (-[WebHTMLView moveBackwardAndModifySelection:]):
580         (-[WebHTMLView moveDown:]):
581         (-[WebHTMLView moveDownAndModifySelection:]):
582         (-[WebHTMLView moveForward:]):
583         (-[WebHTMLView moveForwardAndModifySelection:]):
584         (-[WebHTMLView moveLeft:]):
585         (-[WebHTMLView moveLeftAndModifySelection:]):
586         (-[WebHTMLView moveRight:]):
587         (-[WebHTMLView moveRightAndModifySelection:]):
588         (-[WebHTMLView moveToBeginningOfDocument:]):
589         (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]):
590         (-[WebHTMLView moveToBeginningOfSentence:]):
591         (-[WebHTMLView moveToBeginningOfSentenceAndModifySelection:]):
592         (-[WebHTMLView moveToBeginningOfLine:]):
593         (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
594         (-[WebHTMLView moveToBeginningOfParagraph:]):
595         (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]):
596         (-[WebHTMLView moveToEndOfDocument:]):
597         (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]):
598         (-[WebHTMLView moveToEndOfSentence:]):
599         (-[WebHTMLView moveToEndOfSentenceAndModifySelection:]):
600         (-[WebHTMLView moveToEndOfLine:]):
601         (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
602         (-[WebHTMLView moveToEndOfParagraph:]):
603         (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]):
604         (-[WebHTMLView moveParagraphBackwardAndModifySelection:]):
605         (-[WebHTMLView moveParagraphForwardAndModifySelection:]):
606         (-[WebHTMLView moveUp:]):
607         (-[WebHTMLView moveUpAndModifySelection:]):
608         (-[WebHTMLView moveWordBackward:]):
609         (-[WebHTMLView moveWordBackwardAndModifySelection:]):
610         (-[WebHTMLView moveWordForward:]):
611         (-[WebHTMLView moveWordForwardAndModifySelection:]):
612         (-[WebHTMLView moveWordLeft:]):
613         (-[WebHTMLView moveWordLeftAndModifySelection:]):
614         (-[WebHTMLView moveWordRight:]):
615         (-[WebHTMLView moveWordRightAndModifySelection:]):
616         (-[WebHTMLView pageUp:]):
617         (-[WebHTMLView pageDown:]):
618         (-[WebHTMLView pageUpAndModifySelection:]):
619         (-[WebHTMLView pageDownAndModifySelection:]):
620         (-[WebHTMLView _expandSelectionToGranularity:]):
621         (-[WebHTMLView selectParagraph:]):
622         (-[WebHTMLView selectLine:]):
623         (-[WebHTMLView selectSentence:]):
624         (-[WebHTMLView selectWord:]):
625         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
626         (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]):
627         (-[WebHTMLView _toggleBold]):
628         (-[WebHTMLView _toggleItalic]):
629         (-[WebHTMLView pasteFont:]):
630         (-[WebHTMLView changeFont:]):
631         (-[WebHTMLView changeAttributes:]):
632         (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
633         (-[WebHTMLView changeColor:]):
634         (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
635         (-[WebHTMLView alignCenter:]):
636         (-[WebHTMLView alignJustified:]):
637         (-[WebHTMLView alignLeft:]):
638         (-[WebHTMLView alignRight:]):
639         (-[WebHTMLView _deleteWithDirection:SelectionController::granularity:killRing:isTypingAction:]):
640         (-[WebHTMLView deleteForward:]):
641         (-[WebHTMLView deleteBackward:]):
642         (-[WebHTMLView deleteWordForward:]):
643         (-[WebHTMLView deleteWordBackward:]):
644         (-[WebHTMLView deleteToBeginningOfLine:]):
645         (-[WebHTMLView deleteToEndOfLine:]):
646         (-[WebHTMLView deleteToBeginningOfParagraph:]):
647         (-[WebHTMLView deleteToEndOfParagraph:]):
648         (-[WebHTMLView subscript:]):
649         (-[WebHTMLView superscript:]):
650         (-[WebHTMLView unscript:]):
651         (-[WebHTMLView underline:]):
652         (-[WebHTMLView deleteToMark:]):
653         (-[WebHTMLView toggleBaseWritingDirection:]):
654         (-[WebHTMLView changeBaseWritingDirection:]):
655         (-[WebHTMLView _canSmartCopyOrDelete]):
656         (-[WebTextCompleteController doCompletion]):
657         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
658         * WebView/WebView.mm:
659         (-[WebView setTypingStyle:]):
660         (-[WebView applyStyle:]):
661
662 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
663
664         Reviewed by Tim Hatcher.
665
666         Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
667         
668         None of Screen's responsibilities require up-calls to WebKit or delegates, 
669         so WebCore can handle it all.
670
671         * WebCoreSupport/WebChromeClient.mm:
672         (WebChromeClient::setWindowRect):
673         (WebChromeClient::windowRect):
674         * WebCoreSupport/WebScreenClient.h: Removed.
675         * WebCoreSupport/WebScreenClient.mm: Removed.
676         * WebKit.xcodeproj/project.pbxproj:
677         * WebView/WebView.mm:
678         (-[WebView _commonInitializationWithFrameName:groupName:]):
679
680 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
681
682         Reviewed by Darin.
683         
684         Accidentally rolled out this change when removing the WebPageBridge. Now
685         putting it back.
686
687         * WebView/WebView.mm:
688         (-[WebView _commonInitializationWithFrameName:groupName:]):
689
690 2006-11-05  Geoffrey Garen  <ggaren@apple.com>
691
692         Reviewed by Maciej, Darin, Anders.
693
694         Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
695         
696         (WebChromeClient::pageRect): It may seem weird for the page to ask the Chrome/ChromeClient
697         about its own dimensions. The idea here is that we're asking the Chrome how
698         much space it has devoted to the page. We have API for this (-webViewContentRect), but 
699         it was documented incorrectly (even Safari used it wrong), so we don't use 
700         it anymore. Once we fix our API/documentation, we can return to making a
701         delegate callback to ask for the page's size.
702         (WebChromeClient::createWindow): Changed to take a FrameLoadRequest with
703         an appropriate referrer, instead of making up its own.
704         (WebChromeClient::createModalDialog): Changed to take a FrameLoadRequest with
705         an appropriate referrer, instead of broken out parcels.
706         * WebCoreSupport/WebPageBridge.h: Removed. Dead Code.
707         * WebCoreSupport/WebPageBridge.mm: Removed. Dead Code.
708         * WebCoreSupport/WebScreenClient.h: Added.
709         * WebCoreSupport/WebScreenClient.mm: Added.
710         * WebView/WebView.mm: Added NULL checks for new _private->page, since
711         it's not NULL-safe like the bridge was, and it gets cleared before
712         dealloc.
713
714 2006-11-06  Graham Dennis  <graham.dennis@gmail.com>
715
716         Reviewed by Tim Hatcher.
717
718         Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
719         Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
720
721         * DefaultDelegates/WebDefaultUIDelegate.m:
722         (-[NSApplication webView:dragSourceActionMaskForPoint:]): Logic moved to 
723         WebHTMLView's _mayStartDragAtEventLocation
724         * Misc/WebElementDictionary.m: added isLiveLink
725         (+[WebElementDictionary initializeLookupTable]):
726         (-[WebElementDictionary _isLiveLink]):
727         * WebView/WebHTMLView.m: 
728         (-[WebHTMLView _mayStartDragAtEventLocation:]): Editable links should
729         only be followed if isLiveLink is true
730         (-[WebHTMLView _isMoveDrag:]): A drag of a live editable link is not
731         a move
732         (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]):
733         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
734         * WebView/WebView.mm: added WebElementLinkIsLiveKey
735         * WebView/WebViewPrivate.h: ditto
736
737 2006-11-04  Maciej Stachowiak  <mjs@apple.com>
738
739         Reviewed by Oliver.
740         
741         - removed unneeded (and obsolete) header includes
742
743         * WebCoreSupport/WebFrameBridge.mm:
744         * WebView/WebFrame.mm:
745
746 2006-11-05  Darin Adler  <darin@apple.com>
747
748         - WebKit part of Frame.h check-in (forgot to land it)
749
750         * WebCoreSupport/WebFrameBridge.h:
751         * WebCoreSupport/WebFrameBridge.mm:
752         (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
753         (-[WebFrameBridge shouldInterruptJavaScript]):
754         (-[WebFrameBridge saveDocumentState:]):
755         (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
756         (-[WebFrameBridge valueForKey:keys:values:]):
757         (-[WebFrameBridge getObjectCacheSize]):
758         (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
759         (-[WebFrameBridge mayStartDragAtEventLocation:]):
760         (-[WebFrameBridge canGoBackOrForward:]):
761         (-[WebFrameBridge goBackOrForward:]):
762         (-[WebFrameBridge print]):
763         (-[WebFrameBridge getAppletInView:]):
764         (-[WebFrameBridge pollForAppletInView:]):
765         (-[WebFrameBridge respondToChangedContents]):
766         (-[WebFrameBridge respondToChangedSelection]):
767         (-[WebFrameBridge setIsSelected:forView:]):
768
769 2006-11-04  Darin Adler  <darin@apple.com>
770
771         Reviewed by Maciej.
772
773         - converted more of the loader machinery to work with cross-platform
774           data structures instead of Macintosh-specific ones
775
776           store the computed user agent string as a WebCore::String instead
777           of an NSString to avoid overhead converting it every time we get it
778
779         * COM/WebFrame.cpp:
780         (WebFrame::initWithName):
781         * ChangeLog:
782         * Misc/WebElementDictionary.m:
783         (-[WebElementDictionary _image]):
784         (-[WebElementDictionary _targetWebFrame]):
785         * WebCoreSupport/WebFrameLoaderClient.h:
786         * WebCoreSupport/WebFrameLoaderClient.mm:
787         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
788         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
789         (WebFrameLoaderClient::setTitle):
790         (WebFrameLoaderClient::userAgent):
791         (WebFrameLoaderClient::actionDictionary):
792         * WebCoreSupport/WebPageBridge.mm:
793         (WebCore::if):
794         * WebView/WebDataSource.mm:
795         (-[WebDataSource _URL]):
796         (-[WebDataSource _URLForHistory]):
797         (-[WebDataSource unreachableURL]):
798         * WebView/WebHTMLView.m:
799         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
800         * WebView/WebPDFView.mm:
801         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
802         (-[WebPDFView _path]):
803         * WebView/WebView.mm:
804         (-[WebViewPrivate init]):
805         (-[WebViewPrivate dealloc]):
806         (-[WebViewPrivate finalize]):
807         (-[WebView _preferencesChangedNotification:]):
808         (-[WebView _cachedResponseForURL:]):
809         (-[WebView setApplicationNameForUserAgent:]):
810         (-[WebView setCustomUserAgent:]):
811         (-[WebView customUserAgent]):
812         (-[WebView userAgentForURL:]):
813         (-[WebView _computeUserAgent]):
814         (-[WebView WebCore::]):
815         * WebView/WebViewInternal.h:
816
817 2006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
818
819         Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
820
821         http://bugs.webkit.org/show_bug.cgi?id=11433
822         Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
823
824         * COM/WebFrame.cpp:
825         (WebFrame::initWithName):
826         (WebFrame::loadDataSource):
827         (WebFrame::receivedRedirect):
828         (WebFrame::receivedResponse):
829         (WebFrame::didReceiveData):
830         (WebFrame::receivedAllData):
831         Use resource handles now. Do not start doc loader by hand anymore. 
832         Handle didReceiveData() callback instead of receivedData() which 
833         is deprecated in implementation of ResourceHandleClient        
834
835         * COM/WebFrame.h:
836         * COM/WebView.cpp:
837         Applied ResourceLoader --> ResourceHandle renaming
838
839         * WebKit.vcproj/WebKit.rc:
840         Got rid of MFC dependencies (build fix for VCExpress).
841
842         * WebKit.vcproj/WebKit.vcproj:
843         Added platform/graphics platform/network and platform/network/win 
844         to headers search paths
845
846 2006-11-03  Geoffrey Garen  <ggaren@apple.com>
847
848         Forgot to add these two files. Oops.
849
850         * WebCoreSupport/WebChromeClient.h: Added.
851         * WebCoreSupport/WebChromeClient.mm: Added.
852
853 2006-11-02  Geoffrey Garen  <ggaren@apple.com>
854
855         Reviewed by Darin, Beth.
856
857         First cut at factoring Page's UIDelegate-related functions into Chrome
858         and ChromeClient.
859
860         Layout tests pass.
861         
862         * WebCoreSupport/WebEditorClient.h:
863         * WebCoreSupport/WebPageBridge.mm:
864         * WebKit.xcodeproj/project.pbxproj:
865
866 2006-11-02  Timothy Hatcher  <timothy@apple.com>
867
868         Reviewed by Brady.
869
870         Adding outdent to the WebView responder forwarding list.
871         Also add outdent to WebHTMLView.h and WebViewPrivate.h.
872
873         * WebView/WebHTMLView.h:
874         * WebView/WebViewPrivate.h:
875         * WebView/WebView.mm:
876
877 2006-11-01  John Sullivan  <sullivan@apple.com>
878
879         Reviewed by Adam Roben
880         
881         - fixed <rdar://problem/4801351> Crash reloading PDF file in new Safari (or closing a window containing a PDF file)
882
883         * WebView/WebPDFView.mm:
884         (-[WebPDFView initWithFrame:]):
885         Retain the PDFSubview in the code path where we just obtain it by asking the PDFPreviewView for it. We were
886         unconditionally releasing it in dealloc, but only retaining it in one of the two code paths.
887
888 2006-10-31  Mark Rowe  <bdash@webkit.org>
889
890         Reviewed by Maciej.
891
892         Fix null pointer dereference while running editing/pasteboard/drag-drop-modifies-page.html
893
894         * Misc/WebElementDictionary.m:
895         (-[WebElementDictionary _image]): Add null check.
896
897 2006-10-31  Beth Dakin  <bdakin@apple.com>
898
899         Reviewed by Maciej.
900
901         This creates local functions for the remaining WebElementDictionary 
902         members that calls into HitTestResult instead of doing magical 
903         things with the Objective-C DOM classes.
904
905         * ChangeLog:
906         * Misc/WebElementDictionary.m:
907         (addLookupKey): The values of the dictionary are now just 
908         selectors. They used to be WebElementMethods which were 
909         WebElementTargetObjects associated with selectors, but none of that 
910         is needed any more.
911         (+[WebElementDictionary initializeLookupTable]): All selectors are 
912         now local functions, no more WebElementTargetObjects.
913         (-[WebElementDictionary objectForKey:]): No more target objects!
914         (-[WebElementDictionary _domNode]): Call into HitTestResult member 
915         variable.
916         (-[WebElementDictionary _altDisplayString]): Same.
917         (-[WebElementDictionary _image]): Same.
918         (-[WebElementDictionary _absoluteImageURL]): Same.
919         (-[WebElementDictionary _title]): Same.
920         (-[WebElementDictionary _absoluteLinkURL]): Same.
921         (-[WebElementDictionary _targetWebFrame]): Same.
922         (-[WebElementDictionary _titleDisplayString]): Same.
923         (-[WebElementDictionary _textContent]): Same.
924
925 2006-10-31  Geoffrey Garen  <ggaren@apple.com>
926
927         Reviewed by Alice.
928         
929         Moved some Editing code from WebKit, the bridge, and WebCore::Frame down 
930         to WebCore::Editor.
931
932         * WebCoreSupport/WebFrameBridge.mm:
933         * WebView/WebHTMLView.m:
934         (-[WebHTMLView _shouldDeleteRange:]):
935         (-[WebHTMLView _canCopy]):
936         (-[WebHTMLView _canCut]):
937         (-[WebHTMLView _canDelete]):
938         (-[WebHTMLView _canPaste]):
939         (-[WebHTMLView _canEdit]):
940         (-[WebHTMLView _canEditRichly]):
941         (-[WebHTMLView _isEditable]):
942         (-[WebHTMLView _isSelectionInPasswordField]):
943         (-[NSArray validateUserInterfaceItem:]):
944         (-[NSArray _expandSelectionToGranularity:]):
945
946 2006-10-31  John Sullivan  <sullivan@apple.com>
947
948         Reviewed by Beth and Adam
949         
950         Display a tooltip when hovering over marked bad grammar.
951
952         * Misc/WebElementDictionary.m:
953         (+[WebElementDictionary initializeLookupTable]):
954         support spelling tool tip
955         (-[WebElementDictionary _spellingToolTip]):
956         new method, calls through to HitTestResult
957         
958         * WebView/WebHTMLView.m:
959         (-[WebHTMLView _updateMouseoverWithEvent:]):
960         Check for a spelling tool tip; if found, prefer it over the other possible tool tips.
961         Check for empty strings instead of just nil strings being, since values from 
962         WebElementDictionary are empty strings.
963         
964         * WebView/WebViewPrivate.h:
965         declare new string constant WebElementSpellingToolTipKey
966         * WebView/WebView.mm:
967         define new string constant WebElementSpellingToolTipKey
968         
969 2006-10-31  Beth Dakin  <bdakin@apple.com>
970
971         Reviewed by Maciej.
972
973         Small tweaks to WebKit because of http://bugs.webkit.org/
974         show_bug.cgi?id=11461 HitTestResult should be split into 
975         HitTestRequest and HitTestResult
976
977         * WebKit.xcodeproj/project.pbxproj:
978         * WebView/WebHTMLView.m:
979         (-[WebHTMLView elementAtPoint:allowShadowContent:]): The 
980         HitTestResult initializer now just takes a point.
981
982 2006-10-31  Darin Adler  <darin@apple.com>
983
984         Reviewed by Brady.
985
986         - got "action dictionary" code out of FrameLoader,
987           replacing with a class called NavigationAction
988
989         * WebCoreSupport/WebFrameLoaderClient.h: Changed parameter types to NavigationAction.
990         Made elementForEvent non-virtual. Added actionDictionary function.
991         * WebCoreSupport/WebFrameLoaderClient.mm:
992         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Changed parameter type,
993         and used actionDictionary to make the action dictionary.
994         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
995         (WebFrameLoaderClient::actionDictionary): Added. Code that was originally in WebCore
996         that creates the action dictionary (from a NavigationAction).
997
998         * WebView/WebFrame.mm: (-[WebFrame _loadItem:withLoadType:]): Use NavigationAction
999         instead of a dictionary for the action parameters.
1000
1001 2006-10-31  Marvin Decker  <marv.decker@gmail.com>
1002
1003         Reviewed by Maciej.
1004         
1005         - fixed "Stop and reload don't work on the WebView"
1006         http://bugs.webkit.org/show_bug.cgi?id=11285
1007
1008         * COM/WebFrame.cpp:
1009         (WebFrame::stopLoading): Implement.
1010         * COM/WebView.cpp:
1011         (WebView::stopLoading): ditto
1012         (WebView::reload): ditto
1013
1014 2006-10-30  Darin Adler  <darin@apple.com>
1015
1016         * Plugins/WebBaseNetscapePluginView.mm:
1017         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
1018         Fix comment.
1019
1020 2006-10-30  John Sullivan  <sullivan@apple.com>
1021
1022         Reviewed by Geoff Garen
1023
1024         * WebView/WebHTMLView.m:
1025         (-[NSArray checkSpelling:]):
1026         removed code to update spelling panel; WebCore handles that now
1027         (-[NSArray showGuessPanel:]):
1028         ditto
1029
1030 2006-10-30  John Sullivan  <sullivan@apple.com>
1031
1032         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
1033         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
1034         Another wording change to match framework, post-Tiger:
1035         "Check Spelling" -> "Check Document Now"
1036
1037 2006-10-30  John Sullivan  <sullivan@apple.com>
1038
1039         Reviewed by Geoff Garen.
1040         
1041         Moved spelling-related methods from bridge to EditorClient. Added one not-yet-used
1042         grammar-related method.
1043
1044         * WebCoreSupport/WebEditorClient.h:
1045         declare overrides of isContinuousSpellCheckingEnabled(), spellCheckerDocumentTag(), and new
1046         isGrammarCheckingEnabled()
1047         * WebCoreSupport/WebEditorClient.mm:
1048         (WebEditorClient::isContinuousSpellCheckingEnabled):
1049         implement by calling through to WebView
1050         (WebEditorClient::isGrammarCheckingEnabled):
1051         ditto
1052         (WebEditorClient::spellCheckerDocumentTag):
1053         ditto
1054         
1055         * WebCoreSupport/WebFrameBridge.mm:
1056         removed bridge equivalents of these methods
1057
1058 2006-10-30  Geoffrey Garen  <ggaren@apple.com>
1059
1060         Reviewed by Beth.
1061         
1062         Fixed nil-deref crash that I saw while using TOT (not sure how to repro,
1063         but the debugger confirmed the cause).
1064
1065         * WebView/WebFrame.mm:
1066         (core): Added check for NULL bridge.
1067
1068 2006-10-30  Geoffrey Garen  <ggaren@apple.com>
1069
1070         Reviewed by Darin.
1071
1072         Removed a number of editing and selection methods from the bridge.
1073         
1074         I moved cross-platform editing and selection code into WebCore::Editor and 
1075         WebCore::SelectionController, respecitvely.
1076         
1077         All of the seemingly new code here is just code grabbed from WebCore or
1078         merged from WebCoreFrameBridge.
1079         
1080         I changed one piece of internal API: we now pass around Ranges in places
1081         where we used to pass around broken out components of Ranges.
1082         
1083         I also added WebCore XPATH_SUPPORT AND SVG_SUPPORT #defines to the project.
1084         Since we now include WebCore headers that depend on these #defines, we need
1085         to keep in sync with them, to avoid binary incompatibility.
1086
1087 2006-10-30  Darin Adler  <darin@apple.com>
1088
1089         Reviewed by John Sullivan.
1090
1091         - work toward removing Objective-C data types from FrameLoader.h:
1092           removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
1093           and WebCoreResourceHandle
1094         - moved bodyBackgroundColor function here from Frame
1095
1096         * History/WebHistoryItem.m: (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
1097         Updated for change in WebCorePageState.
1098
1099         * WebCoreSupport/WebFrameBridge.mm: Removed saveDocumentToPageCache method.
1100
1101         * WebCoreSupport/WebFrameLoaderClient.h: Changed NSDate to double.
1102         * WebCoreSupport/WebFrameLoaderClient.mm:
1103         (WebFrameLoaderClient::invalidateCurrentItemPageCache): Moved the code that was
1104         formerly in invalidatePageCache: on the bridge here.
1105         (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Added code to make the
1106         NSDate here.
1107         (WebFrameLoaderClient::createPageCache): Restructured code to create the
1108         WebCorePageState object directly instead of calling saveDocumentToPageCache on
1109         the bridge.
1110
1111         * WebView/WebFrame.mm: (-[WebFrame _bodyBackgroundColor]): Rewrote this to work
1112         directly with the DOM and renderers rather than using a function on Frame.
1113
1114 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
1115
1116         Reviewed by Anders.
1117
1118         - added ResourceResponse class and didReceiveResponse delegate call
1119
1120         * WebCoreSupport/WebFrameBridge.mm: Removed no longer needed
1121         expiresTimeForResponse: method.
1122
1123 2006-10-29  Darin Adler  <darin@apple.com>
1124
1125         - update for the WebCore rename
1126
1127         * WebCoreSupport/WebFrameLoaderClient.mm:
1128         * WebView/WebFrame.mm:
1129
1130 2006-10-29  Darin Adler  <darin@apple.com>
1131
1132         - update for the WebCore renames
1133
1134         * Plugins/WebNetscapePluginStream.mm:
1135         * Plugins/WebPluginController.mm:
1136         * WebCoreSupport/WebFrameBridge.mm:
1137         * WebCoreSupport/WebFrameLoaderClient.h:
1138         * WebCoreSupport/WebFrameLoaderClient.mm:
1139         (WebFrameLoaderClient::willUseArchive):
1140         (WebFrameLoaderClient::isArchiveLoadPending):
1141         (WebFrameLoaderClient::cancelPendingArchiveLoad):
1142         (WebFrameLoaderClient::deliverArchivedResources):
1143         * WebCoreSupport/WebPageBridge.mm:
1144         (-[WebPageBridge canRunModalNow]):
1145         * WebView/WebDocumentLoaderMac.h:
1146         * WebView/WebFrame.mm:
1147         * WebView/WebHTMLRepresentation.m:
1148         * WebView/WebView.mm:
1149
1150 2006-10-29  Darin Adler  <darin@apple.com>
1151
1152         Rubber stamped by Adam Roben.
1153
1154         - renamed WebCore's WebFrameLoaderClient to match the class name inside it
1155
1156         * WebCoreSupport/WebFrameBridge.mm: Update include.
1157         * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
1158
1159 2006-10-29  Darin Adler  <darin@apple.com>
1160
1161         Reviewed by Maciej.
1162
1163         - eliminate use of NSArray to carry form data around
1164           (the code in this framework was actually using the NSArray to hold a single
1165            NSData anyway, so I just went back to an NSData for now)
1166
1167         - also fixed http://bugs.webkit.org/show_bug.cgi?id=11444
1168           REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]:
1169           attempt to insert nil value) when submitting a form with an empty
1170           uninitialized field
1171
1172         * History/WebHistoryItem.m:
1173         (-[WebHistoryItem _setFormInfoFromRequest:]):
1174         (-[WebHistoryItem formData]):
1175         * History/WebHistoryItemPrivate.h:
1176         * WebCoreSupport/WebFrameLoaderClient.mm:
1177         (WebFrameLoaderClient::dispatchWillSubmitForm):
1178         * WebView/WebFrame.mm:
1179         (-[WebFrame _loadItem:withLoadType:]):
1180
1181 2006-10-28  Darin Adler  <darin@apple.com>
1182
1183         Reviewed by Maciej.
1184
1185         - eliminated the use of Objective-C for the policy decider
1186           machinery, obviating the need for WebPolicyDeciderMac
1187
1188         - moved the defersLoading flag from WebView to WebCore::Page
1189
1190         - removed unused copies of four methods that in the frame bridge;
1191           the actually-used copies are in the page bridge
1192
1193         - updated for rename of PassRefPtr::release to releaseRef
1194
1195         * WebView/WebPolicyDeciderMac.h: Removed.
1196         * WebView/WebPolicyDeciderMac.m: Removed.
1197         * WebKit.xcodeproj/project.pbxproj: Updated for removal.
1198
1199         * Plugins/WebBaseNetscapePluginView.mm:
1200         (-[WebBaseNetscapePluginView sendEvent:]):
1201         * Plugins/WebNetscapePluginStream.mm:
1202         * WebCoreSupport/WebFrameBridge.mm:
1203         * WebCoreSupport/WebFrameLoaderClient.h:
1204         * WebCoreSupport/WebFrameLoaderClient.mm:
1205         (getWebView):
1206         (WebFrameLoaderClient::WebFrameLoaderClient):
1207         (WebFrameLoaderClient::willCloseDocument):
1208         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
1209         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1210         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1211         (WebFrameLoaderClient::cancelPolicyCheck):
1212         (WebFrameLoaderClient::dispatchWillSubmitForm):
1213         (WebFrameLoaderClient::setDefersLoading):
1214         (WebFrameLoaderClient::setTitle):
1215         (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
1216         (WebFrameLoaderClient::deliverArchivedResources):
1217         (WebFrameLoaderClient::setUpPolicyListener):
1218         (WebFrameLoaderClient::receivedPolicyDecison):
1219         (WebFrameLoaderClient::userAgent):
1220         (-[WebFramePolicyListener initWithWebCoreFrame:]):
1221         (-[WebFramePolicyListener invalidate]):
1222         (-[WebFramePolicyListener dealloc]):
1223         (-[WebFramePolicyListener finalize]):
1224         (-[WebFramePolicyListener receivedPolicyDecision:]):
1225         (-[WebFramePolicyListener ignore]):
1226         (-[WebFramePolicyListener download]):
1227         (-[WebFramePolicyListener use]):
1228         (-[WebFramePolicyListener continue]):
1229         * WebCoreSupport/WebPageBridge.mm:
1230         (-[WebPageBridge runModal]):
1231         * WebView/WebArchiver.m:
1232         (+[WebArchiver archiveSelectionInFrame:]):
1233         * WebView/WebFormDelegate.h:
1234         * WebView/WebFormDelegate.m:
1235         (+[WebFormDelegate _sharedWebFormDelegate]):
1236         (-[WebFormDelegate textFieldDidBeginEditing:inFrame:]):
1237         (-[WebFormDelegate textFieldDidEndEditing:inFrame:]):
1238         (-[WebFormDelegate textDidChangeInTextField:inFrame:]):
1239         (-[WebFormDelegate textDidChangeInTextArea:inFrame:]):
1240         (-[WebFormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:]):
1241         * WebView/WebFrame.mm:
1242         (-[WebFrame _loadURL:referrer:intoChild:]):
1243         (-[WebFrame _isFrameSet]):
1244         * WebView/WebFrameInternal.h:
1245         * WebView/WebFrameView.mm:
1246         (-[WebFrameView _shouldDrawBorder]):
1247         * WebView/WebHTMLView.m:
1248         (-[NSArray knowsPageRange:]):
1249         * WebView/WebView.mm:
1250         (-[WebView _formDelegate]):
1251         * WebView/WebViewInternal.h:
1252         * WebView/WebViewPrivate.h:
1253
1254 2006-10-28  Adam Roben  <aroben@apple.com>
1255
1256         Reviewed by Maciej.
1257
1258         Fix layout tests that broke after r17399. Mitz discovered that the
1259         failures were caused by HitTestResult::m_point being uninitialized
1260         much of the time. HitTestResults are now always constructed with a
1261         point.
1262
1263         * WebView/WebHTMLView.m:
1264         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Pass point to
1265         HitTestResult constructor.
1266
1267 2006-10-28  Beth Dakin  <bdakin@apple.com>
1268
1269         Reviewed by Darin.
1270
1271         This is the WebKit half of pushing the guts of elementAtPoint and 
1272         WebElementDictionary into WebCore. Among other things, this patch 
1273         makes WebElementDictionary.m and WebHTMLView.m Objective-C++
1274
1275         * MigrateHeaders.make: Add DOMElementInternal.h to the list of 
1276         headers to migrate.
1277         * Misc/WebElementDictionary.h: Replaced DOMNode, DOMElement, and 
1278         NSPoint member variables with a HitTestResult member variable.
1279         * Misc/WebElementDictionary.m:
1280         (addLookupKey): Formatting.
1281         (-[WebElementDictionary initWithHitTestResult:]): Constructor just 
1282         takes a HitTestResult now and sets the member variable.
1283         (-[WebElementDictionary dealloc]): delete HitTestResult.
1284         (-[WebElementDictionary finalize]): Address HitTestResult.
1285         (-[WebElementDictionary _domNode]): Use HitTestResult and call into 
1286         WebCore.
1287         (-[WebElementDictionary objectForKey:]): Same.
1288         (-[WebElementDictionary _webFrame]): Same.
1289         (-[WebElementDictionary _targetWebFrame]): Same.
1290         (-[WebElementDictionary _title]): Same.
1291         (-[WebElementDictionary _imageRect]): Same.
1292         (-[WebElementDictionary _isSelected]): Same.
1293         * WebKit.xcodeproj/project.pbxproj:
1294         * WebView/WebFrame.mm:
1295         (core): Convert from DOMNode* to Node*
1296         (kit): Convert from Node* to DOMNode*
1297         * WebView/WebFrameInternal.h: Support for the above.
1298         * WebView/WebHTMLView.m:
1299         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Call directly 
1300         into Frame.cpp to get HitTestResult.
1301
1302 2006-10-27  Maciej Stachowiak  <mjs@apple.com>
1303
1304         Reviewed by John & Adam.
1305         
1306         - various performance improvements for resource delegate dispatch.
1307         
1308         - avoid any ObjC messaging when fetching the WebView
1309         - avoid ObjC calls to WebView to get resource load delegate and impl cache
1310         - cache actual method pointers, not just the fact that the method is present
1311         - added a new SPI resource load delegate method which allows clients to get
1312           just one message in case of synchronously loading from memory cache; if this
1313           is implemented you don't get the normal delegate calls in that case.
1314         - various other minor tweaks
1315
1316         * WebCoreSupport/WebFrameBridge.h:
1317         * WebCoreSupport/WebFrameLoaderClient.h:
1318         * WebCoreSupport/WebFrameLoaderClient.mm:
1319         (getWebView):
1320         (WebFrameLoaderClient::hasBackForwardList):
1321         (WebFrameLoaderClient::resetBackForwardList):
1322         (WebFrameLoaderClient::privateBrowsingEnabled):
1323         (WebFrameLoaderClient::updateHistoryForStandardLoad):
1324         (WebFrameLoaderClient::resetAfterLoadError):
1325         (WebFrameLoaderClient::download):
1326         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1327         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
1328         (WebFrameLoaderClient::dispatchWillSendRequest):
1329         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1330         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1331         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1332         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1333         (WebFrameLoaderClient::dispatchDidFinishLoading):
1334         (WebFrameLoaderClient::dispatchDidFailLoading):
1335         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
1336         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1337         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
1338         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1339         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1340         (WebFrameLoaderClient::dispatchWillClose):
1341         (WebFrameLoaderClient::dispatchDidReceiveIcon):
1342         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1343         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1344         (WebFrameLoaderClient::dispatchDidCommitLoad):
1345         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1346         (WebFrameLoaderClient::dispatchDidFailLoad):
1347         (WebFrameLoaderClient::dispatchDidFinishLoad):
1348         (WebFrameLoaderClient::dispatchDidFirstLayout):
1349         (WebFrameLoaderClient::dispatchCreatePage):
1350         (WebFrameLoaderClient::dispatchShow):
1351         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
1352         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1353         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1354         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
1355         (WebFrameLoaderClient::dispatchWillSubmitForm):
1356         (WebFrameLoaderClient::dispatchDidLoadMainResource):
1357         (WebFrameLoaderClient::progressStarted):
1358         (WebFrameLoaderClient::progressCompleted):
1359         (WebFrameLoaderClient::incrementProgress):
1360         (WebFrameLoaderClient::completeProgress):
1361         (WebFrameLoaderClient::setMainFrameDocumentReady):
1362         (WebFrameLoaderClient::startDownload):
1363         (WebFrameLoaderClient::willChangeTitle):
1364         (WebFrameLoaderClient::didChangeTitle):
1365         (WebFrameLoaderClient::mainFrameURL):
1366         (WebFrameLoaderClient::frameLoadCompleted):
1367         * WebCoreSupport/WebPageBridge.h:
1368         * WebKit.xcodeproj/project.pbxproj:
1369         * WebView/WebFrame.mm:
1370         (frame):
1371         (core):
1372         (kit):
1373         (getWebView):
1374         (-[WebFrame _addBackForwardItemClippedAtTarget:]):
1375         (-[WebFrame _canCachePage]):
1376         (-[WebFrame _purgePageCache]):
1377         (-[WebFrame _loadItem:withLoadType:]):
1378         (-[WebFrame _goToItem:withLoadType:]):
1379         (-[WebFrame _updateBackground]):
1380         (-[WebFrame _clearSelectionInOtherFrames]):
1381         (-[WebFrame _isMainFrame]):
1382         (-[WebFrame webView]):
1383         * WebView/WebResourceLoadDelegatePrivate.h: Added.
1384         * WebView/WebView.mm:
1385         (-[WebView _cacheResourceLoadDelegateImplementations]):
1386         (WebViewGetResourceLoadDelegate):
1387         (WebViewGetResourceLoadDelegateImplementations):
1388         * WebView/WebViewInternal.h:
1389         * WebView/WebViewPrivate.h:
1390
1391 2006-10-27  Geoffrey Garen  <ggaren@apple.com>
1392
1393         Reviewed by Maciej.
1394         
1395         Moved some WebCoreFrameBridge functions into FrameLoader.
1396
1397         * WebView/WebFrame.mm:
1398         (-[WebFrame _numPendingOrLoadingRequests:]):
1399
1400 2006-10-27  Timothy Hatcher  <timothy@apple.com>
1401
1402         Reviewed by Beth.
1403
1404         Make a DerivedSource/Webkit directory to store migrated
1405         internal headers from WebCore.
1406
1407         * MigrateHeaders.make:
1408         * WebKit.xcodeproj/project.pbxproj:
1409         * WebView/WebFrame.mm: import the new migrated DOM*Internal.h headers
1410
1411 2006-10-27  John Sullivan  <sullivan@apple.com>
1412
1413         Reviewed by Anders
1414         
1415         - fixed http://bugs.webkit.org/show_bug.cgi?id=11439 
1416           REGRESSION: Another page loading crash
1417
1418         * WebView/WebFrame.mm:
1419         (-[WebFrame _createItem:]):
1420         Handle nil documentLoader the way we did before ObjC->C++ changes
1421
1422 2006-10-27  John Sullivan  <sullivan@apple.com>
1423
1424         Reviewed by Anders
1425
1426         * WebView/WebHTMLView.m:
1427         (-[NSArray checkSpelling:]):
1428         call advanceToNextMisspelling directly on FrameMac, bypassing bridge
1429         (-[NSArray showGuessPanel:]):
1430         ditto
1431
1432 2006-10-27  Darin Adler  <darin@apple.com>
1433
1434         - build fix
1435
1436         * WebCoreSupport/WebFrameLoaderClient.mm: Corrected header file name.
1437
1438 2006-10-27  Darin Adler  <darin@apple.com>
1439
1440         Reviewed by Maciej.
1441
1442         - moved methods that are there just to be called by the frame loader client into the client
1443           in an attempt to get back some of the speed we lost yesterday
1444
1445         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
1446         (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveAuthenticationChallenge:fromDataSource:]):
1447         (-[WebDefaultResourceLoadDelegate webView:resource:didCancelAuthenticationChallenge:fromDataSource:]):
1448         * WebCoreSupport/WebFrameLoaderClient.h:
1449         * WebCoreSupport/WebFrameLoaderClient.mm:
1450         (dataSource):
1451         (decisionListener):
1452         (WebFrameLoaderClient::WebFrameLoaderClient):
1453         (WebFrameLoaderClient::hasWebView):
1454         (WebFrameLoaderClient::hasFrameView):
1455         (WebFrameLoaderClient::hasBackForwardList):
1456         (WebFrameLoaderClient::resetBackForwardList):
1457         (WebFrameLoaderClient::provisionalItemIsTarget):
1458         (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
1459         (WebFrameLoaderClient::invalidateCurrentItemPageCache):
1460         (WebFrameLoaderClient::privateBrowsingEnabled):
1461         (WebFrameLoaderClient::makeDocumentView):
1462         (WebFrameLoaderClient::makeRepresentation):
1463         (WebFrameLoaderClient::setDocumentViewFromPageCache):
1464         (WebFrameLoaderClient::forceLayout):
1465         (WebFrameLoaderClient::forceLayoutForNonHTML):
1466         (WebFrameLoaderClient::updateHistoryForCommit):
1467         (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
1468         (WebFrameLoaderClient::updateHistoryForReload):
1469         (WebFrameLoaderClient::updateHistoryForStandardLoad):
1470         (WebFrameLoaderClient::updateHistoryForInternalLoad):
1471         (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
1472         (WebFrameLoaderClient::setCopiesOnScroll):
1473         (WebFrameLoaderClient::tokenForLoadErrorReset):
1474         (WebFrameLoaderClient::resetAfterLoadError):
1475         (WebFrameLoaderClient::doNotResetAfterLoadError):
1476         (WebFrameLoaderClient::detachedFromParent1):
1477         (WebFrameLoaderClient::detachedFromParent2):
1478         (WebFrameLoaderClient::detachedFromParent3):
1479         (WebFrameLoaderClient::detachedFromParent4):
1480         (WebFrameLoaderClient::loadedFromPageCache):
1481         (WebFrameLoaderClient::download):
1482         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
1483         (WebFrameLoaderClient::dispatchWillSendRequest):
1484         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1485         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1486         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1487         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1488         (WebFrameLoaderClient::dispatchDidFinishLoading):
1489         (WebFrameLoaderClient::dispatchDidFailLoading):
1490         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
1491         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1492         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
1493         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1494         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1495         (WebFrameLoaderClient::dispatchWillClose):
1496         (WebFrameLoaderClient::dispatchDidReceiveIcon):
1497         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1498         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1499         (WebFrameLoaderClient::dispatchDidCommitLoad):
1500         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1501         (WebFrameLoaderClient::dispatchDidFailLoad):
1502         (WebFrameLoaderClient::dispatchDidFinishLoad):
1503         (WebFrameLoaderClient::dispatchDidFirstLayout):
1504         (WebFrameLoaderClient::dispatchCreatePage):
1505         (WebFrameLoaderClient::dispatchShow):
1506         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
1507         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1508         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1509         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
1510         (WebFrameLoaderClient::dispatchWillSubmitForm):
1511         (WebFrameLoaderClient::dispatchDidLoadMainResource):
1512         (WebFrameLoaderClient::clearLoadingFromPageCache):
1513         (WebFrameLoaderClient::isLoadingFromPageCache):
1514         (WebFrameLoaderClient::revertToProvisionalState):
1515         (WebFrameLoaderClient::setMainDocumentError):
1516         (WebFrameLoaderClient::clearUnarchivingState):
1517         (WebFrameLoaderClient::progressStarted):
1518         (WebFrameLoaderClient::progressCompleted):
1519         (WebFrameLoaderClient::incrementProgress):
1520         (WebFrameLoaderClient::completeProgress):
1521         (WebFrameLoaderClient::setMainFrameDocumentReady):
1522         (WebFrameLoaderClient::startDownload):
1523         (WebFrameLoaderClient::willChangeTitle):
1524         (WebFrameLoaderClient::didChangeTitle):
1525         (WebFrameLoaderClient::committedLoad):
1526         (WebFrameLoaderClient::finishedLoading):
1527         (WebFrameLoaderClient::finalSetupForReplace):
1528         (WebFrameLoaderClient::cancelledError):
1529         (WebFrameLoaderClient::cannotShowURLError):
1530         (WebFrameLoaderClient::interruptForPolicyChangeError):
1531         (WebFrameLoaderClient::cannotShowMIMETypeError):
1532         (WebFrameLoaderClient::fileDoesNotExistError):
1533         (WebFrameLoaderClient::shouldFallBack):
1534         (WebFrameLoaderClient::mainFrameURL):
1535         (WebFrameLoaderClient::setDefersCallbacks):
1536         (WebFrameLoaderClient::willUseArchive):
1537         (WebFrameLoaderClient::isArchiveLoadPending):
1538         (WebFrameLoaderClient::cancelPendingArchiveLoad):
1539         (WebFrameLoaderClient::clearArchivedResources):
1540         (WebFrameLoaderClient::canHandleRequest):
1541         (WebFrameLoaderClient::canShowMIMEType):
1542         (WebFrameLoaderClient::representationExistsForURLScheme):
1543         (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
1544         (WebFrameLoaderClient::elementForEvent):
1545         (WebFrameLoaderClient::createPolicyDecider):
1546         (WebFrameLoaderClient::frameLoadCompleted):
1547         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
1548         (WebFrameLoaderClient::provisionalLoadStarted):
1549         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
1550         (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
1551         (WebFrameLoaderClient::didFinishLoad):
1552         (WebFrameLoaderClient::prepareForDataSourceReplacement):
1553         (WebFrameLoaderClient::createDocumentLoader):
1554         (WebFrameLoaderClient::setTitle):
1555         (WebFrameLoaderClient::canUseArchivedResource):
1556         (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
1557         (WebFrameLoaderClient::deliverArchivedResources):
1558         (WebFrameLoaderClient::createPageCache):
1559         * WebView/WebFrame.mm:
1560         (-[NSView setWebFrame:]):
1561         (-[WebFrame _createItem:]):
1562         (-[WebFrame _loadItem:withLoadType:]):
1563         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
1564         (-[WebFrame _loadURL:referrer:intoChild:]):
1565         (-[WebFrame _saveScrollPositionAndViewStateToItem:]):
1566         (-[WebFrame _hasSelection]):
1567         (-[WebFrame _clearSelection]):
1568         (-[WebFrame _setProvisionalItem:]):
1569         (-[WebFrame _setPreviousItem:]):
1570         (-[WebFrame _setCurrentItem:]):
1571         (-[WebFrame loadArchive:]):
1572         * WebView/WebFrameInternal.h:
1573         * WebView/WebHTMLView.m:
1574         (-[WebHTMLView _topHTMLView]):
1575         * WebView/WebHTMLViewPrivate.h:
1576
1577 2006-10-26  Geoffrey Garen  <ggaren@apple.com>
1578
1579         Reviewed by Darin, Maciej.
1580
1581         Removed many uses of NSString * from WebCore.
1582         
1583         Changed a few files to ObjC++ for compatiblity with new WebCore methods
1584         taking WebCore::Strings as arguments.
1585         
1586         Added a static_cast to make the c++ compiler happy.
1587
1588 2006-10-26  John Sullivan  <sullivan@apple.com>
1589
1590         Reviewed by Anders
1591
1592         * WebView/WebFrame.mm:
1593         now includes <WebCore/Document.h> and <WebCore/DocumentMarker.h>
1594         (-[WebFrame _unmarkAllBadGrammar]):
1595         filled in guts
1596         (-[WebFrame _unmarkAllMisspellings]):
1597         rewrote to call Document directly, bypassing bridge
1598
1599 2006-10-26  John Sullivan  <sullivan@apple.com>
1600
1601         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
1602         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
1603         
1604         Changed "Spelling" to "Spelling and Grammar" in context menu for post-Tiger.
1605
1606 === Safari-521.29 ===
1607
1608 2006-10-26  John Sullivan  <sullivan@apple.com>
1609
1610         No review, just two localized string changes.
1611         
1612         * WebView/WebHTMLView.m:
1613         (-[NSArray validateUserInterfaceItem:]):
1614         changed "Show/Hide Spelling" to "Show/Hide Spelling and Grammar" post-Tiger to match framework change
1615
1616         * English.lproj/Localizable.strings:
1617         updated for these changes
1618
1619 2006-10-25  Darin Adler  <darin@apple.com>
1620
1621         Reviewed by Anders.
1622
1623         - removed 55 methods from WebCoreFrameBridge
1624         - changed callers to use Frame directly instead
1625         - put FrameLoaderTypes.h types into the WebCore namespace
1626         - first steps to get FrameLoader.h ready for cross-platform duty
1627
1628         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
1629         (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
1630         * Plugins/WebBaseNetscapePluginView.mm:
1631         (-[WebBaseNetscapePluginView requestWithURLCString:]):
1632         (-[WebBaseNetscapePluginView loadPluginRequest:]):
1633         (-[WebBaseNetscapePluginView getVariable:value:]):
1634         * Plugins/WebNetscapePluginEmbeddedView.m:
1635         (-[WebNetscapePluginEmbeddedView didStart]):
1636         * Plugins/WebNetscapePluginStream.mm:
1637         * Plugins/WebPluginContainerCheck.m:
1638         (-[WebPluginContainerCheck _continueWithPolicy:]):
1639         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
1640         * WebCoreSupport/WebEditorClient.mm:
1641         (WebEditorClient::shouldDeleteRange):
1642         (WebEditorClient::shouldShowDeleteInterface):
1643         * WebCoreSupport/WebFrameBridge.mm:
1644         (-[WebFrameBridge webView]):
1645         (-[WebFrameBridge finishInitializingWithFrameName:view:]):
1646         (-[WebFrameBridge createWindowWithURL:]):
1647         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
1648         (-[WebFrameBridge windowObjectCleared]):
1649         (-[WebFrameBridge createModalDialogWithURL:]):
1650         * WebCoreSupport/WebFrameLoaderClient.mm:
1651         (WebFrameLoaderClient::dispatchCreatePage):
1652         (WebFrameLoaderClient::dispatchWillSubmitForm):
1653         * WebKit.xcodeproj/project.pbxproj:
1654         * WebView/WebArchiver.m:
1655         (+[WebArchiver archiveSelectionInFrame:]):
1656         * WebView/WebDataSource.mm:
1657         (-[WebDataSource _documentFragmentWithImageResource:]):
1658         (-[WebDataSource _imageElementWithImageResource:]):
1659         * WebView/WebEditingDelegatePrivate.h:
1660         * WebView/WebFrame.mm:
1661         (core):
1662         (kit):
1663         (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
1664         (-[WebFrame _canCachePage]):
1665         (-[WebFrame _childFramesMatchItem:]):
1666         (-[WebFrame _URLsMatchItem:]):
1667         (-[WebFrame _loadItem:withLoadType:]):
1668         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
1669         (-[WebFrame _viewWillMoveToHostWindow:]):
1670         (-[WebFrame _viewDidMoveToHostWindow]):
1671         (-[WebFrame _addChild:]):
1672         (-[WebFrame _saveDocumentAndScrollState]):
1673         (-[WebFrame _numPendingOrLoadingRequests:]):
1674         (-[WebFrame _reloadForPluginChanges]):
1675         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
1676         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
1677         (-[WebFrame _initWithWebFrameView:webView:coreFrame:]):
1678         (-[WebFrame _documentViews]):
1679         (-[WebFrame _updateBackground]):
1680         (-[WebFrame _unmarkAllMisspellings]):
1681         (-[WebFrame _hasSelection]):
1682         (-[WebFrame _atMostOneFrameHasSelection]):
1683         (-[WebFrame _findFrameWithSelection]):
1684         (-[WebFrame _frameLoader]):
1685         (-[WebFrame _isDescendantOfFrame:]):
1686         (-[WebFrame _setShouldCreateRenderers:]):
1687         (-[WebFrame _bodyBackgroundColor]):
1688         (-[WebFrame init]):
1689         (-[WebFrame initWithName:webFrameView:webView:]):
1690         (-[WebFrame dealloc]):
1691         (-[WebFrame finalize]):
1692         (-[WebFrame name]):
1693         (-[WebFrame webView]):
1694         (-[WebFrame DOMDocument]):
1695         (-[WebFrame frameElement]):
1696         (-[WebFrame findFrameNamed:]):
1697         (-[WebFrame parentFrame]):
1698         (-[WebFrame childFrames]):
1699         (-[WebFrame _invalidateCurrentItemPageCache]):
1700         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
1701         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
1702         (-[WebFrame _prepareForDataSourceReplacement]):
1703         (-[WebFrame _provisionalLoadStarted]):
1704         * WebView/WebFrameInternal.h:
1705         * WebView/WebHTMLRepresentation.m:
1706         (-[WebHTMLRepresentation DOMDocument]):
1707         (-[WebHTMLRepresentation attributedText]):
1708         * WebView/WebHTMLView.m:
1709         (-[WebHTMLView _documentRange]):
1710         (-[WebHTMLView _documentFragmentWithPaths:]):
1711         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
1712         (-[WebHTMLView _selectedRange]):
1713         (-[WebHTMLView _updateMouseoverWithEvent:]):
1714         (-[WebHTMLView _canEditRichly]):
1715         (-[WebHTMLView _hasSelection]):
1716         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
1717         (-[WebHTMLView _hasInsertionPoint]):
1718         (-[WebHTMLView _isEditable]):
1719         (-[WebHTMLView _isSelectionInPasswordField]):
1720         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1721         (-[WebHTMLView _selectionDraggingImage]):
1722         (-[WebHTMLView _canIncreaseSelectionListLevel]):
1723         (-[WebHTMLView _canDecreaseSelectionListLevel]):
1724         (-[WebHTMLView _updateActiveState]):
1725         (-[NSArray readSelectionFromPasteboard:]):
1726         (-[NSArray validateUserInterfaceItem:]):
1727         (-[NSArray maintainsInactiveSelection]):
1728         (-[NSArray menuForEvent:]):
1729         (-[NSArray scrollWheel:]):
1730         (-[NSArray acceptsFirstMouse:]):
1731         (-[NSArray shouldDelayWindowOrderingForEvent:]):
1732         (-[NSArray mouseDown:]):
1733         (-[NSArray mouseDragged:]):
1734         (-[NSArray mouseUp:]):
1735         (-[NSArray keyDown:]):
1736         (-[NSArray keyUp:]):
1737         (-[NSArray centerSelectionInVisibleArea:]):
1738         (-[NSArray _selectionStartFontAttributesAsRTF]):
1739         (-[NSArray _emptyStyle]):
1740         (-[NSArray performKeyEquivalent:]):
1741         (-[NSArray indent:]):
1742         (-[NSArray outdent:]):
1743         (-[WebHTMLView cut:]):
1744         (-[WebHTMLView paste:]):
1745         (-[WebHTMLView _selectRangeInMarkedText:]):
1746         (-[WebTextCompleteController doCompletion]):
1747         (-[WebHTMLView selectionRect]):
1748         (-[WebHTMLView selectionImageForcingWhiteText:]):
1749         (-[WebHTMLView selectionImageRect]):
1750         (-[WebHTMLView attributedString]):
1751         (-[WebHTMLView _isMoveDrag]):
1752         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
1753         * WebView/WebPolicyDelegate.mm:
1754         (-[WebPolicyDecisionListener _usePolicy:]):
1755         (-[WebPolicyDecisionListener use]):
1756         (-[WebPolicyDecisionListener ignore]):
1757         (-[WebPolicyDecisionListener download]):
1758         (-[WebPolicyDecisionListener continue]):
1759         * WebView/WebScriptDebugDelegate.m:
1760         (-[WebScriptCallFrame _initWithFrame:initWithWebFrame:]):
1761         (-[WebScriptCallFrame globalObject]):
1762         * WebView/WebView.mm:
1763         (-[WebView _attachScriptDebuggerToAllFrames]):
1764         (-[WebView _detachScriptDebuggerFromAllFrames]):
1765         (-[WebView windowScriptObject]):
1766         (incrementFrame):
1767         (-[WebView searchFor:direction:caseSensitive:wrap:]):
1768         (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
1769         (-[WebView removeDragCaret]):
1770         (-[WebView setScriptDebugDelegate:]):
1771         (-[WebView scriptDebugDelegate]):
1772         (-[WebView shouldClose]):
1773         (-[WebView selectedDOMRange]):
1774         (-[WebView styleDeclarationWithText:]):
1775
1776 2006-10-25  Geoffrey Garen  <ggaren@apple.com>
1777
1778         Reviewed by Adam.
1779
1780         Renamed WebFrameLoader to FrameLoader, to match class name.
1781
1782         * Plugins/WebBaseNetscapePluginView.mm:
1783         * Plugins/WebNetscapePluginStream.mm:
1784         * Plugins/WebPluginController.mm:
1785         * WebCoreSupport/WebFrameBridge.mm:
1786         * WebView/WebDataSource.mm:
1787         * WebView/WebFrame.mm:
1788         * WebView/WebPDFView.mm:
1789         * WebView/WebPolicyDelegate.mm:
1790         * WebView/WebView.mm:
1791
1792 2006-10-25  Mark Rowe  <bdash@webkit.org>
1793
1794         Reviewed by Anders.
1795
1796         Build fix for the Buildbot.
1797
1798         * WebView/WebHTMLView.m:
1799         (-[NSArray _addToStyle:fontA:fontB:]): Explicit cast.
1800
1801 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
1802
1803         Reviewed by Anders.
1804         
1805         <rdar://problem/4785575> REGRESSION: form resubmission warning occurs twice, then Safari crashes in autorelease pool
1806         <rdar://problem/4799383> REGRESSION: Crash occurs when dismissing the "Would you like to save this password" sheet
1807
1808         * WebView/WebPolicyDeciderMac.m:
1809         (-[WebPolicyDeciderMac dealloc]): release the listener, don't dealloc it
1810
1811 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
1812
1813         Reviewed by Darin.
1814
1815         * WebKitPrefix.h:
1816         Include FastMalloc.h from C++ code.
1817
1818 2006-10-24  Darin Adler  <darin@apple.com>
1819
1820         Reviewed by Anders.
1821
1822         - converted WebFrameLoaderClient to C++
1823         - renamed frame->frameLoader() function to frame->loader()
1824         - renamed [bridge impl] to [bridge _frame]
1825         - removed some bridge methods
1826
1827         * Plugins/WebNetscapePluginStream.mm:
1828         * WebCoreSupport/WebEditorClient.mm:
1829         * WebCoreSupport/WebFrameLoaderClient.h: Added.
1830         (WebFrameLoaderClient::webFrame):
1831         * WebCoreSupport/WebFrameLoaderClient.mm: Added.
1832         (WebFrameLoaderClient::detachFrameLoader):
1833         (WebFrameLoaderClient::hasWebView):
1834         (WebFrameLoaderClient::hasFrameView):
1835         (WebFrameLoaderClient::hasBackForwardList):
1836         (WebFrameLoaderClient::resetBackForwardList):
1837         (WebFrameLoaderClient::provisionalItemIsTarget):
1838         (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
1839         (WebFrameLoaderClient::invalidateCurrentItemPageCache):
1840         (WebFrameLoaderClient::privateBrowsingEnabled):
1841         (WebFrameLoaderClient::makeDocumentView):
1842         (WebFrameLoaderClient::makeRepresentation):
1843         (WebFrameLoaderClient::setDocumentViewFromPageCache):
1844         (WebFrameLoaderClient::forceLayout):
1845         (WebFrameLoaderClient::forceLayoutForNonHTML):
1846         (WebFrameLoaderClient::updateHistoryForCommit):
1847         (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
1848         (WebFrameLoaderClient::updateHistoryForReload):
1849         (WebFrameLoaderClient::updateHistoryForStandardLoad):
1850         (WebFrameLoaderClient::updateHistoryForInternalLoad):
1851         (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
1852         (WebFrameLoaderClient::setCopiesOnScroll):
1853         (WebFrameLoaderClient::tokenForLoadErrorReset):
1854         (WebFrameLoaderClient::resetAfterLoadError):
1855         (WebFrameLoaderClient::doNotResetAfterLoadError):
1856         (WebFrameLoaderClient::detachedFromParent1):
1857         (WebFrameLoaderClient::detachedFromParent2):
1858         (WebFrameLoaderClient::detachedFromParent3):
1859         (WebFrameLoaderClient::detachedFromParent4):
1860         (WebFrameLoaderClient::loadedFromPageCache):
1861         (WebFrameLoaderClient::download):
1862         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
1863         (WebFrameLoaderClient::dispatchWillSendRequest):
1864         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1865         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1866         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1867         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1868         (WebFrameLoaderClient::dispatchDidFinishLoading):
1869         (WebFrameLoaderClient::dispatchDidFailLoading):
1870         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
1871         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1872         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
1873         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1874         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1875         (WebFrameLoaderClient::dispatchWillClose):
1876         (WebFrameLoaderClient::dispatchDidReceiveIcon):
1877         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1878         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1879         (WebFrameLoaderClient::dispatchDidCommitLoad):
1880         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1881         (WebFrameLoaderClient::dispatchDidFailLoad):
1882         (WebFrameLoaderClient::dispatchDidFinishLoad):
1883         (WebFrameLoaderClient::dispatchDidFirstLayout):
1884         (WebFrameLoaderClient::dispatchCreatePage):
1885         (WebFrameLoaderClient::dispatchShow):
1886         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
1887         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1888         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1889         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
1890         (WebFrameLoaderClient::dispatchWillSubmitForm):
1891         (WebFrameLoaderClient::dispatchDidLoadMainResource):
1892         (WebFrameLoaderClient::clearLoadingFromPageCache):
1893         (WebFrameLoaderClient::isLoadingFromPageCache):
1894         (WebFrameLoaderClient::revertToProvisionalState):
1895         (WebFrameLoaderClient::setMainDocumentError):
1896         (WebFrameLoaderClient::clearUnarchivingState):
1897         (WebFrameLoaderClient::progressStarted):
1898         (WebFrameLoaderClient::progressCompleted):
1899         (WebFrameLoaderClient::incrementProgress):
1900         (WebFrameLoaderClient::completeProgress):
1901         (WebFrameLoaderClient::setMainFrameDocumentReady):
1902         (WebFrameLoaderClient::startDownload):
1903         (WebFrameLoaderClient::willChangeTitle):
1904         (WebFrameLoaderClient::didChangeTitle):
1905         (WebFrameLoaderClient::committedLoad):
1906         (WebFrameLoaderClient::finishedLoading):
1907         (WebFrameLoaderClient::finalSetupForReplace):
1908         (WebFrameLoaderClient::cancelledError):
1909         (WebFrameLoaderClient::cannotShowURLError):
1910         (WebFrameLoaderClient::interruptForPolicyChangeError):
1911         (WebFrameLoaderClient::cannotShowMIMETypeError):
1912         (WebFrameLoaderClient::fileDoesNotExistError):
1913         (WebFrameLoaderClient::shouldFallBack):
1914         (WebFrameLoaderClient::mainFrameURL):
1915         (WebFrameLoaderClient::setDefersCallbacks):
1916         (WebFrameLoaderClient::willUseArchive):
1917         (WebFrameLoaderClient::isArchiveLoadPending):
1918         (WebFrameLoaderClient::cancelPendingArchiveLoad):
1919         (WebFrameLoaderClient::clearArchivedResources):
1920         (WebFrameLoaderClient::canHandleRequest):
1921         (WebFrameLoaderClient::canShowMIMEType):
1922         (WebFrameLoaderClient::representationExistsForURLScheme):
1923         (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
1924         (WebFrameLoaderClient::elementForEvent):
1925         (WebFrameLoaderClient::createPolicyDecider):
1926         (WebFrameLoaderClient::frameLoadCompleted):
1927         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
1928         (WebFrameLoaderClient::provisionalLoadStarted):
1929         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
1930         (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
1931         (WebFrameLoaderClient::didFinishLoad):
1932         (WebFrameLoaderClient::prepareForDataSourceReplacement):
1933         (WebFrameLoaderClient::createDocumentLoader):
1934         (WebFrameLoaderClient::setTitle):
1935         * WebKit.xcodeproj/project.pbxproj:
1936         * WebView/WebDataSource.mm:
1937         (-[WebDataSource webFrame]):
1938         * WebView/WebFrame.mm:
1939         (frame):
1940         (-[WebFrame _loadItem:withLoadType:]):
1941         (-[WebFrame _reloadForPluginChanges]):
1942         (-[WebFrame _initWithWebFrameView:webView:bridge:]):
1943         (-[WebFrame _frameLoader]):
1944         (-[WebFrame provisionalDataSource]):
1945         (-[WebFrame dataSource]):
1946         (-[WebFrame parentFrame]):
1947         (-[WebFrame _provisionalLoadStarted]):
1948         * WebView/WebFrameInternal.h:
1949         * WebView/WebHTMLRepresentation.m:
1950         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
1951         * WebView/WebHTMLView.m:
1952         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1953         (-[NSArray validateUserInterfaceItem:]):
1954         (-[NSArray scrollWheel:]):
1955         (-[NSArray acceptsFirstMouse:]):
1956         (-[NSArray shouldDelayWindowOrderingForEvent:]):
1957         (-[NSArray _selectionStartFontAttributesAsRTF]):
1958         (-[NSArray changeBaseWritingDirection:]):
1959         (-[NSArray indent:]):
1960         (-[NSArray outdent:]):
1961         (-[WebHTMLView copy:]):
1962         (-[WebHTMLView cut:]):
1963         (-[WebHTMLView paste:]):
1964         * WebView/WebView.mm:
1965         (-[WebView _dashboardRegions]):
1966         (-[WebView setProhibitsMainFrameScrolling:]):
1967         (-[WebView _setInViewSourceMode:]):
1968         (-[WebView _inViewSourceMode]):
1969         (-[WebView setEditable:]):
1970
1971 2006-10-24  John Sullivan  <sullivan@apple.com>
1972
1973         Reviewed by Kevin Decker
1974         
1975         - fixed <rdar://problem/4801331> "Spelling..." menu item should be "Show/Hide Spelling" post-Tiger, to match AppKit
1976
1977         * WebView/WebHTMLView.m:
1978         (-[NSArray validateUserInterfaceItem:]):
1979         post-Tiger, update the menu item text to "Show Spelling"/"Hide Spelling" based on whether
1980         the spelling panel is already showing. Also, removed else's after returns, and removed
1981         braces around one-line if clauses.
1982         (-[NSArray showGuessPanel:]):
1983         post-Tiger, make this item hide the spelling panel if it's already showing
1984
1985         * English.lproj/Localizable.strings:
1986         updated for this change
1987         
1988 2006-10-24  Timothy Hatcher  <timothy@apple.com>
1989
1990         Reviewed by Anders.
1991
1992         <rdar://problem/4588878> 'WebHTMLView' may not respond to '-_webView'
1993
1994         * Misc/WebNSViewExtras.h:
1995         * Misc/WebNSViewExtras.m:
1996         (-[NSView _webView]):
1997
1998 2006-10-24  Brady Eidson  <beidson@apple.com>
1999
2000         Reviewed by Anders
2001
2002         http://bugs.webkit.org/show_bug.cgi?id=11406 - Crash in [WebFrame dataSource]
2003         In the transition to ObjC++ we lost alot of our free nil checking that we must now do manually
2004         to prevent null dereferencing.
2005
2006         * WebView/WebFrame.mm:
2007         (-[WebFrame provisionalDataSource]):
2008         (-[WebFrame dataSource]):
2009
2010 2006-10-24  John Sullivan  <sullivan@apple.com>
2011
2012         Reviewed by Darin
2013         
2014         Initial plumbing for grammar checking. No actual grammar are checked at this time.
2015
2016         * English.lproj/WebViewEditingContextMenu.nib/classes.nib:
2017         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
2018         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
2019         Added grammar-checking item, reworded to match changes in framework. This will be used
2020         post-Tiger.
2021
2022         * English.lproj/WebViewEditingContextMenuOld.nib/classes.nib: Added.
2023         * English.lproj/WebViewEditingContextMenuOld.nib/info.nib: Added.
2024         * English.lproj/WebViewEditingContextMenuOld.nib/objects.nib: Added.
2025         Copy of WebViewEditingContextMenu.nib, unchanged. This will be used on Tiger.
2026
2027         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2028         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
2029         Choose the right context menu based on BUILDING_ON_TIGER.
2030         
2031         * WebView/WebPreferenceKeysPrivate.h:
2032         declare grammar-related NSUserDefault value
2033
2034         * WebView/WebViewPrivate.h:
2035         declare grammar-related methods
2036
2037         * WebView/WebView.mm:
2038         declare static BOOL grammarCheckingEnabled
2039         (-[WebViewPrivate init]):
2040         initialize grammarCheckingEnabled to NSUserDefaults value
2041         (-[WebView validateUserInterfaceItem:]):
2042         validate toggleGrammarChecking: menu item
2043         (-[WebView isGrammarCheckingEnabled]):
2044         return value of grammarCheckingEnabled
2045         (-[WebView setGrammarCheckingEnabled:]):
2046         set value of grammarCheckingEnabled, call frame to remove existing bad grammar markers
2047         (-[WebView toggleGrammarChecking:]):
2048         flip the value
2049         
2050         * WebView/WebFrameInternal.h:
2051         * WebView/WebFrame.mm:
2052         (-[WebFrame _unmarkAllBadGrammar]):
2053         new placeholder method, does nothing yet
2054         
2055         * WebView/WebHTMLViewInternal.h:
2056         declare grammar-related methods
2057
2058         * WebView/WebHTMLView.m:
2059         (-[NSArray validateUserInterfaceItem:]):
2060         validate toggleGrammarChecking: menu item
2061         (-[WebHTMLView isGrammarCheckingEnabled]):
2062         new method, calls through to WebView
2063         (-[WebHTMLView setGrammarCheckingEnabled:]):
2064         ditto
2065         (-[WebHTMLView toggleGrammarChecking:]):
2066         ditto
2067                 
2068         * English.lproj/StringsNotToBeLocalized.txt:
2069         Updated for these changes
2070         
2071         * WebKit.xcodeproj/project.pbxproj:
2072         updated for new files        
2073
2074 2006-10-23  Darin Adler  <darin@apple.com>
2075
2076         Reviewed by Geoff.
2077
2078         - converted WebDocumentLoader to C++
2079
2080         * Plugins/WebPluginController.mm:
2081         (-[WebPluginController pluginView:receivedResponse:]):
2082         * WebKit.xcodeproj/project.pbxproj:
2083         * WebView/WebDataSource.mm:
2084         (-[WebDataSourcePrivate dealloc]):
2085         (-[WebDataSource _mainDocumentError]):
2086         (-[WebDataSource _URL]):
2087         (-[WebDataSource _loadFromPageCache:]):
2088         (-[WebDataSource _bridge]):
2089         (-[WebDataSource _URLForHistory]):
2090         (-[WebDataSource _documentLoader]):
2091         (-[WebDataSource _initWithDocumentLoader:]):
2092         (-[WebDataSource initWithRequest:]):
2093         (-[WebDataSource data]):
2094         (-[WebDataSource webFrame]):
2095         (-[WebDataSource initialRequest]):
2096         (-[WebDataSource request]):
2097         (-[WebDataSource response]):
2098         (-[WebDataSource textEncodingName]):
2099         (-[WebDataSource isLoading]):
2100         (-[WebDataSource unreachableURL]):
2101         (-[WebDataSource webArchive]):
2102         * WebView/WebDataSourceInternal.h:
2103         * WebView/WebDocumentLoaderMac.h:
2104         * WebView/WebDocumentLoaderMac.mm:
2105         (WebDocumentLoaderMac::WebDocumentLoaderMac):
2106         (WebDocumentLoaderMac::setDataSource):
2107         (WebDocumentLoaderMac::dataSource):
2108         (WebDocumentLoaderMac::attachToFrame):
2109         (WebDocumentLoaderMac::detachFromFrame):
2110         * WebView/WebFrame.mm:
2111         (-[WebFrame _createItem:]):
2112         (-[WebFrame _loadItem:withLoadType:]):
2113         (-[WebFrame _addChild:]):
2114         (dataSource):
2115         (-[WebFrame _dataSourceForDocumentLoader:]):
2116         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
2117         (-[WebFrame loadArchive:]):
2118         (-[WebFrame _updateHistoryForReload]):
2119         (-[WebFrame _updateHistoryForStandardLoad]):
2120         (-[WebFrame _updateHistoryForInternalLoad]):
2121         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
2122         (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
2123         (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
2124         (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
2125         (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
2126         (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
2127         (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
2128         (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
2129         (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
2130         (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
2131         (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
2132         (-[WebFrame _makeRepresentationForDocumentLoader:]):
2133         (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
2134         (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
2135         (-[WebFrame _clearUnarchivingStateForLoader:]):
2136         (-[WebFrame _willChangeTitleForDocument:]):
2137         (-[WebFrame _didChangeTitleForDocument:]):
2138         (-[WebFrame _finishedLoadingDocument:]):
2139         (-[WebFrame _committedLoadWithDocumentLoader:data:]):
2140         (-[WebFrame _documentLoader:setMainDocumentError:]):
2141         (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
2142         (-[WebFrame _createDocumentLoaderWithRequest:]):
2143         (-[WebFrame _provisionalLoadStarted]):
2144         * WebView/WebFrameInternal.h:
2145         * WebView/WebHTMLRepresentation.m:
2146         (-[WebHTMLRepresentation title]):
2147         * WebView/WebView.mm:
2148         (-[WebView _mainFrameOverrideEncoding]):
2149
2150 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
2151
2152         RS by Maciej.
2153         
2154         Gave ObjC++ files .mm extension instead of .m.
2155
2156         * WebCoreSupport/WebPageBridge.m: Removed.
2157         * WebKit.xcodeproj/project.pbxproj:
2158         * WebView/WebDocumentLoaderMac.m: Removed.
2159
2160 2006-10-23  Darin Adler  <darin@apple.com>
2161
2162         Reviewed by Maciej.
2163
2164         - converted WebFrameLoader to C++
2165
2166         * History/WebHistoryItem.m:
2167         (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
2168         * Plugins/WebBaseNetscapePluginView.mm:
2169         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2170         * Plugins/WebNetscapePluginStream.mm:
2171         (-[WebNetscapePluginStream start]):
2172         (-[WebNetscapePluginStream stop]):
2173         * Plugins/WebPluginController.mm:
2174         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2175         (-[WebPluginController pluginView:receivedResponse:]):
2176         * WebCoreSupport/WebFrameBridge.h:
2177         * WebKit.xcodeproj/project.pbxproj:
2178         * WebView/WebDataSource.mm:
2179         (-[WebDataSource _loadFromPageCache:]):
2180         (-[WebDataSource _webView]):
2181         (-[WebDataSource webFrame]):
2182         * WebView/WebDocumentLoaderMac.h:
2183         * WebView/WebDocumentLoaderMac.m:
2184         (-[WebDocumentLoaderMac dealloc]):
2185         (-[WebDocumentLoaderMac attachToFrame]):
2186         (-[WebDocumentLoaderMac detachFromFrame]):
2187         * WebView/WebFrame.mm:
2188         (+[WebFrame _timeOfLastCompletedLoad]):
2189         (-[WebFrame _loadItem:withLoadType:]):
2190         (-[WebFrame _loadURL:referrer:intoChild:]):
2191         (-[WebFrame _currentBackForwardListItemToResetTo]):
2192         (-[WebFrame _itemForRestoringDocState]):
2193         (-[WebFrame _frameLoader]):
2194         (-[WebFrame _firstLayoutDone]):
2195         (-[WebFrame _loadType]):
2196         (-[WebFrame provisionalDataSource]):
2197         (-[WebFrame dataSource]):
2198         (-[WebFrame loadRequest:]):
2199         (-[WebFrame loadArchive:]):
2200         (-[WebFrame stopLoading]):
2201         (-[WebFrame reload]):
2202         (-[WebFrame _updateHistoryForCommit]):
2203         (-[WebFrame _updateHistoryForReload]):
2204         (-[WebFrame _updateHistoryForInternalLoad]):
2205         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
2206         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
2207         (-[WebFrame _deliverArchivedResources]):
2208         (-[WebFrame _prepareForDataSourceReplacement]):
2209         (-[WebFrame _provisionalLoadStarted]):
2210         * WebView/WebFrameInternal.h:
2211         * WebView/WebHTMLView.m:
2212         (-[WebHTMLView _clearLastHitViewIfSelf]):
2213         (-[WebHTMLView _updateMouseoverWithEvent:]):
2214         (-[NSArray removeMouseMovedObserverUnconditionally]):
2215         (-[NSArray removeMouseMovedObserver]):
2216         (-[NSArray viewWillMoveToWindow:]):
2217         (-[NSArray viewDidMoveToWindow]):
2218         (-[WebHTMLView _canMakeTextSmaller]):
2219         (-[WebHTMLView _canMakeTextLarger]):
2220         (-[WebHTMLView _canMakeTextStandardSize]):
2221         * WebView/WebPDFView.mm:
2222         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2223         * WebView/WebView.mm:
2224         (-[WebView _close]):
2225         (-[WebView setDefersCallbacks:]):
2226         (-[WebView setCustomTextEncodingName:]):
2227
2228 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
2229
2230         Reviewed by Bradee.
2231
2232         Moved some page-level operations from WebFrameBridge to WebPageBridge.
2233
2234         * WebCoreSupport/WebFrameBridge.m:
2235         * WebCoreSupport/WebPageBridge.m:
2236         (-[WebPageBridge createModalDialogWithURL:referrer:]):
2237         (-[WebPageBridge canRunModal]):
2238         (-[WebPageBridge canRunModalNow]):
2239         (-[WebPageBridge runModal]):
2240         * WebKit.xcodeproj/project.pbxproj: Made WebPageBridge.m ObjC++ to support
2241         WebCore #includes.
2242
2243 2006-10-23  John Sullivan  <sullivan@apple.com>
2244
2245         * WebKitPrefix.h:
2246         Removed redundant definition of BUILDING_ON_TIGER that I just added. It turns out this had
2247         already been added between the last time I updated in this tree and when I needed it locally.
2248
2249 2006-10-23  John Sullivan  <sullivan@apple.com>
2250
2251         Reviewed by Anders
2252
2253         * WebKit.xcodeproj/project.pbxproj:
2254         Move WebKitPrefix.h from Misc group to top level, to match WebCore
2255         
2256         * WebKitPrefix.h:
2257         defined BUILDING_ON_TIGER a la WebCore, in preparation for future use of post-Tiger API
2258
2259 2006-10-23  Timothy Hatcher  <timothy@apple.com>
2260
2261         Reviewed by Darin.
2262
2263         Rename the now ObjC++ files to be .mm and remove the explicit file types.
2264
2265         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2266         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
2267         * English.lproj/StringsNotToBeLocalized.txt:
2268         * Plugins/WebBaseNetscapePluginView.m: Removed.
2269         * Plugins/WebNetscapePluginStream.m: Removed.
2270         * Plugins/WebPluginController.m: Removed.
2271         * WebCoreSupport/WebFrameBridge.m: Removed.
2272         * WebKit.xcodeproj/project.pbxproj:
2273         * WebView/WebDataSource.m: Removed.
2274         * WebView/WebFrame.m: Removed.
2275         * WebView/WebFrameView.m: Removed.
2276         * WebView/WebPDFView.m: Removed.
2277         * WebView/WebPolicyDelegate.m: Removed.
2278         * WebView/WebView.m: Removed.
2279
2280 2006-10-23  Timothy Hatcher  <timothy@apple.com>
2281
2282         Reviewed by Darin.
2283
2284         Move the undef try/catch to WebKitPrefix.h and include algorithm so we get
2285         exception_defines.h and so the undef of try/catch works.
2286
2287         Break off the BGRA to ARGB code into WebGraphicsExtras.c, this lets
2288         WebBaseNetscapePluginView.m safely compile as ObjC++ and not cause the Accelerate
2289         framework to complain about C++ exceptions being disabled.
2290
2291         * Misc/WebGraphicsExtras.c: Added.
2292         (WebConvertBGRAToARGB):
2293         * Misc/WebGraphicsExtras.h: Added.
2294         * Plugins/WebBaseNetscapePluginView.m:
2295         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2296         * WebKit.xcodeproj/project.pbxproj:
2297         * WebKitPrefix.h:
2298         * WebView/WebView.m:
2299
2300 2006-10-22  Sam Weinig  <sam.weinig@gmail.com>
2301
2302         Reviewed by Tim H.
2303
2304         - Add DOMHTMLFormElementPrivate.h to the project.
2305
2306         * MigrateHeaders.make:
2307
2308 2006-10-21  Darin Adler  <darin@apple.com>
2309
2310         Reviewed by Adele.
2311
2312         - convert WebLoader and its 3 subclasses to C++
2313
2314         * Plugins/WebNetscapePluginStream.h:
2315         * Plugins/WebNetscapePluginStream.m:
2316         (-[WebNetscapePluginStream dealloc]):
2317         (-[WebNetscapePluginStream finalize]):
2318         (-[WebNetscapePluginStream start]):
2319         (-[WebNetscapePluginStream cancelLoadWithError:]):
2320         (-[WebNetscapePluginStream stop]):
2321         * WebCoreSupport/WebFrameBridge.m:
2322         (-[WebFrameBridge canRunModalNow]):
2323         * WebView/WebFrame.m:
2324         (-[WebFramePrivate dealloc]):
2325         (-[WebFramePrivate finalize]):
2326         (frame): Changed from uppercase to lowercase so that it won't conflict
2327         with the WebCore class named Frame.
2328         (-[WebFrame _firstChildFrame]):
2329         (-[WebFrame _lastChildFrame]):
2330         (-[WebFrame _previousSiblingFrame]):
2331         (-[WebFrame _nextSiblingFrame]):
2332         (-[WebFrame _traverseNextFrameStayWithin:]):
2333         (-[WebFrame _immediateChildFrameNamed:]):
2334         (-[WebFrame _nextFrameWithWrap:]):
2335         (-[WebFrame _previousFrameWithWrap:]):
2336         (-[WebFrame findFrameNamed:]):
2337         (-[WebFrame parentFrame]):
2338         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
2339         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
2340         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
2341         (-[WebFrame _archiveLoadPendingForLoader:]):
2342         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
2343         (-[WebFrame _clearArchivedResources]):
2344         (-[WebFrame _deliverArchivedResources]):
2345
2346 2006-10-21  Darin Adler  <darin@apple.com>
2347
2348         Reviewed by Anders.
2349
2350         - fix http://bugs.webkit.org/show_bug.cgi?id=10328
2351           REGRESSION: frame leak reported by buildbot
2352
2353         * WebCoreSupport/WebEditorClient.mm:
2354         (WebEditorClient::WebEditorClient): Don't retain the web view.
2355         (WebEditorClient::~WebEditorClient): Don't release the web view.
2356         (WebEditorClient::setWebView): Ditto.
2357
2358         * WebCoreSupport/WebFrameBridge.m:
2359         (-[WebFrameBridge finishInitializingWithFrameName:view:]): Added. Common code for use by both
2360         init methods below.
2361         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Changed to use new method.
2362         Also added comment pointing out design flaw -- we attach the client to the web view here,
2363         but we need to be sure to detach in case the web view is deallocated first.
2364         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
2365
2366 2006-10-21  Darin Adler  <darin@apple.com>
2367
2368         Reviewed by Adam.
2369
2370         - http://bugs.webkit.org/show_bug.cgi?id=11376
2371           build scripts should invoke make with "-j" option for multiple processors
2372
2373         * WebKit.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
2374
2375 2006-10-21  Timothy Hatcher  <timothy@apple.com>
2376
2377         Reviewed by Geoff.
2378
2379         <rdar://problem/4478625> HTML Editing: Basic table editing and culling
2380
2381         Initial implementaltion of table deletion user interface:
2382         * Adds a new editing delegate method, webView:shouldShowDeleteInterfaceForElement:.
2383         * The new delegate method is called from the new shouldShowDeleteInterface EditorClient function.
2384
2385         * DefaultDelegates/WebDefaultEditingDelegate.m:
2386         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]):
2387         * WebCoreSupport/WebEditorClient.h:
2388         * WebCoreSupport/WebEditorClient.mm:
2389         (WebEditorClient::WebEditorClient):
2390         (WebEditorClient::shouldDeleteRange):
2391         (WebEditorClient::shouldShowDeleteInterface):
2392         * WebKit.xcodeproj/project.pbxproj:
2393         * WebView/WebEditingDelegatePrivate.h: Added.
2394
2395 2006-10-21  Alice Liu  <alice.liu@apple.com>
2396
2397         Reviewed by Maciej.
2398
2399         fix leaks.
2400
2401         * WebCoreSupport/WebEditorClient.mm:
2402         (WebEditorClient::setWebView):
2403         only change webview if its different
2404
2405         * WebCoreSupport/WebFrameBridge.m:
2406         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
2407         actually use the client allocated in the line above instead of
2408         allocation again, duh. 
2409
2410 2006-10-21  Alice Liu  <alice.liu@apple.com>
2411
2412         Build fix.
2413
2414         * WebCoreSupport/WebEditorClient.h:
2415         * WebCoreSupport/WebEditorClient.mm:
2416         (WebEditorClient::setWebView):
2417
2418 2006-10-20  Alice Liu  <alice.liu@apple.com>
2419
2420         Reviewed by Tim Hatcher.
2421
2422         Fixed a problem where the webview passed to the EditorClient wasn't valid yet.  
2423
2424         * WebCoreSupport/WebEditorClient.h:
2425         (WebEditorClient::setWebView):
2426         added webview setter
2427
2428         * WebCoreSupport/WebEditorClient.mm:
2429         (WebEditorClient::WebEditorClient):
2430         add default constructor
2431
2432         * WebCoreSupport/WebFrameBridge.m:
2433         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
2434         use [page webView] since _webview isn't valid yet
2435         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
2436         use webview setter on editorclient
2437
2438 2006-10-20  David Hyatt  <hyatt@apple.com>
2439
2440         Tweak cache sizes so that they are back to the way they were,
2441         except for < 512, which will stay doubled.
2442
2443         Reviewed by Tim H.
2444
2445         * WebCoreSupport/WebFrameBridge.m:
2446         (-[WebFrameBridge getObjectCacheSize]):
2447
2448 2006-10-20  Alice Liu  <alice.liu@apple.com>
2449
2450         Reviewed by Maciej.
2451
2452         Adding knowledge of EditorClient to WebKit
2453
2454         * WebCoreSupport/WebEditorClient.h: Added.
2455
2456         * WebCoreSupport/WebEditorClient.mm: Added.
2457         (WebEditorClient::WebEditorClient):
2458         (WebEditorClient::~WebEditorClient):
2459         (WebEditorClient::shouldDeleteRange):
2460         Implementation of mac EditorClient
2461
2462         * WebCoreSupport/WebFrameBridge.m:
2463         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
2464         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
2465         create an editor client to pass down the chain of constructors
2466
2467         * WebKit.xcodeproj/project.pbxproj:
2468         Added related EditorClient files
2469
2470         * WebKitPrefix.h:
2471         Added tiger build flag in order to make certain private headers from webcore compile successfully
2472
2473 2006-10-20  Darin Adler  <darin@apple.com>
2474
2475         - rolled out my loader change; caused world leak and possibly a plug-in crash
2476
2477 2006-10-20  Darin Adler  <darin@apple.com>
2478
2479         Reviewed by Adele.
2480
2481         - convert WebLoader and its 3 subclasses to C++
2482
2483         * Plugins/WebNetscapePluginStream.h:
2484         * Plugins/WebNetscapePluginStream.m:
2485         (-[WebNetscapePluginStream dealloc]):
2486         (-[WebNetscapePluginStream finalize]):
2487         (-[WebNetscapePluginStream start]):
2488         (-[WebNetscapePluginStream cancelLoadWithError:]):
2489         (-[WebNetscapePluginStream stop]):
2490         * WebCoreSupport/WebFrameBridge.m:
2491         (-[WebFrameBridge canRunModalNow]):
2492         * WebView/WebFrame.m:
2493         (-[WebFramePrivate dealloc]):
2494         (-[WebFramePrivate finalize]):
2495         (frame): Changed from uppercase to lowercase so that it won't conflict
2496         with the WebCore class named Frame.
2497         (-[WebFrame _firstChildFrame]):
2498         (-[WebFrame _lastChildFrame]):
2499         (-[WebFrame _previousSiblingFrame]):
2500         (-[WebFrame _nextSiblingFrame]):
2501         (-[WebFrame _traverseNextFrameStayWithin:]):
2502         (-[WebFrame _immediateChildFrameNamed:]):
2503         (-[WebFrame _nextFrameWithWrap:]):
2504         (-[WebFrame _previousFrameWithWrap:]):
2505         (-[WebFrame findFrameNamed:]):
2506         (-[WebFrame parentFrame]):
2507         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
2508         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
2509         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
2510         (-[WebFrame _archiveLoadPendingForLoader:]):
2511         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
2512         (-[WebFrame _clearArchivedResources]):
2513         (-[WebFrame _deliverArchivedResources]):
2514
2515 2006-10-20  John Sullivan  <sullivan@apple.com>
2516
2517         Reviewed by Darin
2518         
2519         - fixed <rdar://problem/4794935> setAcceptsMouseMovedEvents: is called for every layout, 
2520           taking ~1% on the PLT test
2521
2522         * WebView/WebHTMLView.m:
2523         (-[NSArray layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
2524         Don't call setAcceptsMouseMovedEvents: and WKSetNSWindowShouldPostEventNotifications() here
2525         because this is called too often.
2526         
2527         * WebView/WebView.m:
2528         (-[WebView viewWillMoveToWindow:]):
2529         Do call them here, because this is guaranteed to be called at least once for each window
2530         containing a webview, but isn't called too often. Also restructured this method a little.
2531
2532 2006-10-19  Timothy Hatcher  <timothy@apple.com>
2533
2534         Reviewed by Anders.
2535
2536         Bug 11366: Web Inspector should show user agent style rules
2537         http://bugs.webkit.org/show_bug.cgi?id=11366
2538
2539         * WebInspector/WebInspector.m:
2540         (-[WebInspector init]):
2541         (-[WebInspector showOptionsMenu]):
2542         (-[WebInspector _toggleShowUserAgentStyles:]):
2543         * WebInspector/WebInspectorInternal.h:
2544         * WebInspector/webInspector/inspector.js:
2545
2546 2006-10-19  Brady Eidson <beidson@apple.com>
2547
2548         Build fix - 2gig is on that pesky signed/unsigned limit...
2549
2550         * WebCoreSupport/WebFrameBridge.m:
2551         (-[WebFrameBridge getObjectCacheSize]):
2552
2553 2006-10-19  Brady Eidson  <beidson@apple.com>
2554
2555         Reviewed by Hyatt.
2556
2557         Death to 16777216.  Long live 33554432.
2558         (Cache size changed needs to be reflected in localization file)
2559
2560         * English.lproj/StringsNotToBeLocalized.txt:
2561
2562 2006-10-19  Brady Eidson  <beidson@apple.com>
2563
2564         Reviewed by Hyatt
2565
2566         Added an larger in-memory level of cache for machines with 2+gb ram
2567
2568         * WebCoreSupport/WebFrameBridge.m:
2569         (-[WebFrameBridge getObjectCacheSize]):
2570
2571 2006-10-19  Brady Eidson  <beidson@apple.com>
2572
2573         Reviewed by Hyatt
2574
2575         Double the default memory cache size
2576
2577         * WebView/WebPreferences.m:
2578         (+[WebPreferences initialize]):
2579
2580 2006-10-19  John Sullivan  <sullivan@apple.com>
2581
2582         Reviewed by Kevin D and Geoff
2583
2584         * WebKit.xcodeproj/project.pbxproj:
2585         version wars
2586         
2587         Cleaned up this file, as follows:
2588         - renamed all file-internal methods to start with underscores
2589         - moved all file-internal methods into a FileInternal category block, and alphabetized them
2590         - grouped all other methods by where/how they were defined (delegate methods, protocol methods, overrides, etc.)
2591         - removed unstylish braces around one-line clauses
2592         
2593         * WebView/WebPDFView.m:
2594         (_applicationInfoForMIMEType):
2595         (_PDFSelectionsAreEqual):
2596         (+[WebPDFView supportedMIMETypes]):
2597         (-[WebPDFView setPDFDocument:]):
2598         (-[WebPDFView dealloc]):
2599         (-[WebPDFView centerSelectionInVisibleArea:]):
2600         (-[WebPDFView scrollPageDown:]):
2601         (-[WebPDFView scrollPageUp:]):
2602         (-[WebPDFView scrollLineDown:]):
2603         (-[WebPDFView scrollLineUp:]):
2604         (-[WebPDFView scrollToBeginningOfDocument:]):
2605         (-[WebPDFView scrollToEndOfDocument:]):
2606         (-[WebPDFView jumpToSelection:]):
2607         (-[WebPDFView acceptsFirstResponder]):
2608         (-[WebPDFView becomeFirstResponder]):
2609         (-[WebPDFView hitTest:]):
2610         (-[WebPDFView initWithFrame:]):
2611         (-[WebPDFView menuForEvent:]):
2612         (-[WebPDFView setNextKeyView:]):
2613         (-[WebPDFView viewDidMoveToWindow]):
2614         (-[WebPDFView viewWillMoveToWindow:]):
2615         (-[WebPDFView validateUserInterfaceItem:]):
2616         (-[WebPDFView copy:]):
2617         (-[WebPDFView takeFindStringFromSelection:]):
2618         (-[WebPDFView canPrintHeadersAndFooters]):
2619         (-[WebPDFView printOperationWithPrintInfo:]):
2620         (-[WebPDFView viewWillMoveToHostWindow:]):
2621         (-[WebPDFView viewDidMoveToHostWindow]):
2622         (-[WebPDFView elementAtPoint:]):
2623         (-[WebPDFView elementAtPoint:allowShadowContent:]):
2624         (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
2625         (-[WebPDFView viewState]):
2626         (-[WebPDFView setViewState:]):
2627         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
2628         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2629         (+[WebPDFView _PDFPreviewViewClass]):
2630         (+[WebPDFView _PDFViewClass]):
2631         (-[WebPDFView _anyPDFTagsFoundInMenu:]):
2632         (-[WebPDFView _applyPDFDefaults]):
2633         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
2634         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
2635         (-[WebPDFView _openWithFinder:]):
2636         (-[WebPDFView _path]):
2637         (-[WebPDFView _PDFSubview]):
2638         (-[WebPDFView _pointIsInSelection:]):
2639         (-[WebPDFView _receivedPDFKitLaunchNotification:]):
2640         (-[WebPDFView _scaledAttributedString:]):
2641         (-[WebPDFView _trackFirstResponder]):
2642         (-[PDFPrefUpdatingProxy forwardInvocation:]):
2643         (-[PDFPrefUpdatingProxy methodSignatureForSelector:]):
2644
2645 2006-10-19  John Sullivan  <sullivan@apple.com>
2646
2647         Reviewed by Kevin Decker
2648         
2649         - fixed <rdar://problem/4792761> Safari should use fancier embedded PDFKit stuff when it's available
2650
2651         * WebKit.xcodeproj/project.pbxproj:
2652         version wars
2653         
2654         * WebView/WebFrameView.m:
2655         (-[WebFrameView _makeDocumentViewForDataSource:]):
2656         initialize document view with frame view's rect instead of empty rect. This avoids some problems when 
2657         constructing view hierarchies from nibs
2658         
2659         * WebView/WebPreferencesPrivate.h:
2660         declare new _usePDFPreviewView and _setUsePDFPreviewView:, used for debugging
2661         * WebView/WebPreferenceKeysPrivate.h:
2662         declare new preference key string
2663         * WebView/WebPreferences.m:
2664         (+[WebPreferences initialize]):
2665         initialize new preference to true (we will by default use the new view if it's available)
2666         (-[WebPreferences _usePDFPreviewView]):
2667         new accessor for new pref
2668         (-[WebPreferences _setUsePDFPreviewView:]):
2669         ditto
2670
2671         * WebView/WebPDFView.h:
2672         new previewView ivar
2673         
2674         * WebView/WebPDFView.m:
2675         (+[WebPDFView PDFPreviewViewClass]):
2676         new method, returns class to use for fancier embedded PDFKit stuff, or nil if fancy stuff isn't available
2677         (-[WebPDFView initWithFrame:]):
2678         now tries to use fancier embedded PDFKit stuff if it's available and the pref is set to use it; falls back
2679         to old behavior otherwise
2680         (-[WebPDFView dealloc]):
2681         release new previewView ivar (retained in initWithFrame:)
2682         (-[WebPDFView viewWillMoveToWindow:]):
2683         stop observing PDFKit notification when we're removed from window
2684         (-[WebPDFView viewDidMoveToWindow]):
2685         start observing PDFKit notification when we're added to window
2686         (-[WebPDFView _receivedPDFKitLaunchNotification:]):
2687         respond to this new PDFKit notification by opening the document via NSWorkspace
2688         
2689         * English.lproj/StringsNotToBeLocalized.txt:
2690         updated for lots of recent changes
2691         
2692 2006-10-19  Sam Weinig  <sam.weinig@gmail.com>
2693
2694         Reviewed by ap.
2695
2696         Win32 build fix.
2697
2698         * COM/WebFrame.cpp:
2699         (WebFrame::initWithName):
2700         (WebFrame::createNewWindow):
2701
2702 2006-10-19  Mitz Pettel  <mitz@webkit.org>
2703
2704         Reviewed and landed by ap.
2705
2706         - fixed the inspector's tree popup
2707
2708         * WebInspector/webInspector/inspector.html:
2709
2710 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
2711
2712         Reviewed by Maciej.
2713
2714         Win32 build fix.
2715
2716         * COM/WebFrame.cpp:
2717         (WebFrame::createNewWindow):
2718         * COM/WebFrame.h:
2719
2720 2006-10-18  Anders Carlsson  <acarlsson@apple.com>
2721
2722         Reviewed by Adam.
2723
2724         http://bugs.webkit.org/show_bug.cgi?id=11000
2725         REGRESSION (r16101): css2.1/t0801-c412-hz-box-00-b-a is failing because the QuickTime plugin is taking over but not rendering the png
2726         
2727         * WebCoreSupport/WebFrameBridge.m:
2728         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
2729         Return ObjectElementFrame if the MIME type is one of the image ones we support.
2730
2731 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
2732
2733         Reviewed by harrison
2734         
2735         <rdar://problem/4765600>
2736         REGRESSION: Mail.app: smart deletion of words does not work
2737         
2738         Regressed when we pushed selecion expansion down into WebCore.  It's OK
2739         to try a smart delete from _deleteWithDirection:, which is called by
2740         deleteFoward: and deleteBackward: if the current selection is a 
2741         range.
2742     
2743         * WebView/WebHTMLView.m:
2744         (-[NSArray _deleteWithDirection:granularity:killRing:isTypingAction:]):
2745
2746 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
2747
2748         Reviewed by harrison
2749         
2750         <rdar://problem/3655385>
2751         Editing: -indent: method unimplemented
2752
2753         * WebView/WebHTMLView.m:
2754         (-[NSArray validateUserInterfaceItem:]): Only allow indent:/outdent: in
2755         richly editable areas.
2756         (-[NSArray indent:]):
2757         (-[NSArray outdent:]):
2758
2759 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
2760
2761         Not reviewed, build fix.
2762         
2763         * icu/unicode/putil.h: Added - needed for build if you don't have apple internal headers.
2764
2765 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
2766
2767         Not reviewed, build fix.
2768         
2769         * icu/unicode/ustring.h: Added - needed for build if you don't have apple internal headers.
2770
2771 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
2772
2773         Reviewed by Anders.
2774         
2775         - add a bunch of casts to get this compiling with older Xcode versions
2776         
2777         (I used static_cast so it will be easier to find and remove these once we have completely moved
2778         on to a new enough compiler version.)
2779
2780         * Plugins/WebBaseNetscapePluginView.m:
2781         (+[WebBaseNetscapePluginView getCarbonEvent:]):
2782         (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
2783         (-[WebBaseNetscapePluginView fixWindowPort]):
2784         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2785         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
2786         (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
2787         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2788         * WebKit.xcodeproj/project.pbxproj:
2789
2790 2006-10-13  Kevin McCullough  <KMcCullough@apple.com>
2791
2792         Changed by Darin, reviewed by me.
2793
2794         * Plugins/WebNetscapePluginStream.m: Fixed case of import so we can compile on
2795         case-sensitive file system.
2796
2797 2006-10-13  Darin Adler  <darin@apple.com>
2798
2799         Reviewed by Adele.
2800
2801         - converted WebFormState from Objective-C to C++
2802
2803         * ForwardingHeaders: Added an entire copy of WebCore's forwarding headers here.
2804         We should eventually come up with a more-elegant solution.
2805
2806         * WebKit.xcodeproj/project.pbxproj: Added ForwardingHeaders to the include paths.
2807         Converted many files from Objective-C to Objective-C++. In a later check-in, I'll
2808         rename them to .mm instead of .m. Removed C-only warning options for now. In a
2809         later check-in I will add these back in a way that omits them for C++.
2810
2811         * Plugins/WebPluginContainerCheck.m: Updated for header changes.
2812
2813         * WebView/WebFrameInternal.h: Updated for header changes. Removed WebFrameLoaderClient category
2814         so this file can still be used by Objective-C code (not just Objective-C++).
2815
2816         * WebView/WebFrame.m: Put WebFrameLoaderClient category in here.
2817         (-[WebFrame _loadItem:withLoadType:]): Changed to use 0 instead of nil for FormState and fixed
2818         enum code for C++ compatibility.
2819         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Added call to setFrameLoaderClient: here.
2820         (-[WebFrame _updateHistoryForCommit]): Fixed enum code for C++ compatibility.
2821         (-[WebFrame _updateHistoryForReload]): Ditto.
2822
2823         * WebCoreSupport/WebFrameBridge.m:
2824         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Removed call to setFrameLoaderClient:.
2825         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
2826         (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Fixed enum code for C++ compatibility.
2827         (-[WebFrameBridge runModal]): Changed code to not use "namespace" as a local variable name.
2828
2829         * WebView/WebPDFView.m: Added extern "C" so this can compile as Objective-C++.
2830
2831 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
2832
2833         Reviewed by Oliver.
2834         
2835         - liberate more WebKit code down to WebCore
2836
2837         * WebCoreSupport/WebFrameBridge.h:
2838         * WebCoreSupport/WebFrameBridge.m:
2839
2840 2006-10-12  Adele Peterson  <adele@apple.com>
2841
2842         Reviewed by Maciej.
2843
2844         WebKit part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
2845
2846         Added private delegate method for clients that want access to a PopupMenu's NSMenu.
2847
2848         * DefaultDelegates/WebDefaultUIDelegate.m: (-[NSApplication webView:willPopupMenu:]):
2849         * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge willPopupMenu:]):
2850         * WebView/WebUIDelegatePrivate.h:
2851
2852 2006-10-12  MorganL  <morganl.webkit@yahoo.com>
2853
2854         Reviewed/landed by Adam.
2855
2856         Fixes http://bugs.webkit.org/show_bug.cgi?id=11264
2857         Windows build busted
2858
2859         * COM/WebFrame.cpp:
2860         (WebFrame::receivedResponse):
2861
2862 2006-10-11  Darin Adler  <darin@apple.com>
2863
2864         Reviewed by Adele.
2865
2866         - preparations for making more code C++
2867
2868         * WebKitPrefix.h: Fixed ifdef so that C++ files get all the precompiled stuff
2869         that non-C++ files get.
2870
2871         * Misc/WebKitLogging.h:
2872         * Misc/WebKitSystemBits.h:
2873         * Misc/WebLocalizableStrings.h:
2874         * WebCoreSupport/WebSystemInterface.h:
2875         Added extern "C".
2876
2877         * Misc/WebNSViewExtras.h:
2878         * WebView/WebDataSource.m: (addTypesFromClass):
2879         * WebView/WebFrameView.m: (addTypesFromClass):
2880         Eliminated use of the identifier "class".
2881
2882         * WebView/WebView.m: (-[WebView _goToItem:withLoadType:]): Added a type cast.
2883
2884         * Plugins/WebBaseNetscapePluginView.m: Added lots of type casts.
2885
2886 2006-10-10  Brady Eidson  <beidson@apple.com>
2887
2888         Reviewed by Maciej.
2889
2890         Moved WebFrameLoader into WebCoreFrameBridge
2891
2892         * WebCoreSupport/WebFrameBridge.h:
2893         * WebCoreSupport/WebFrameBridge.m:
2894         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
2895         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
2896         (-[WebFrameBridge dealloc]):
2897         (-[WebFrameBridge setTitle:]):
2898         (-[WebFrameBridge receivedData:textEncodingName:]):
2899         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2900         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2901         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
2902         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2903         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
2904         (-[WebFrameBridge reportClientRedirectCancelled:]):
2905         (-[WebFrameBridge close]):
2906         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
2907         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2908         (-[WebFrameBridge tokenizerProcessedData]):
2909         (-[WebFrameBridge frameDetached]):
2910         (-[WebFrameBridge didFirstLayout]):
2911         (-[WebFrameBridge notifyIconChanged:]):
2912         (-[WebFrameBridge originalRequestURL]):
2913         (-[WebFrameBridge isLoadTypeReload]):
2914
2915 2006-10-10  Adele Peterson  <adele@apple.com>
2916
2917         Reviewed by Beth.
2918
2919         Removed handleAutoscrollForMouseDragged.  Except for autoscroll caused by drag and drop, all other
2920         autoscrolling should be done in WebCore instead of in AppKit.
2921
2922         * WebCoreSupport/WebFrameBridge.m:
2923         * WebView/WebHTMLView.m:
2924         * WebView/WebHTMLViewPrivate.h:
2925
2926 2006-10-10  Darin Adler  <darin@apple.com>
2927
2928         - corrected an archive regression caused by loader refactoring
2929           (pointed out by Graham Dennis)
2930
2931         * WebView/WebFrame.m: (-[WebFrame _deliverArchivedResourcesAfterDelay]):
2932         Fix selector name.
2933
2934 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2935
2936         Rubber stamped by Eric.
2937         
2938         - moved a whole bunch of stuff over to WebCore - updated includes appropriately
2939
2940         * Loader/LoaderNSURLExtras.h: Removed.
2941         * Loader/LoaderNSURLExtras.m: Removed.
2942         * Loader/WebDataProtocol.h: Removed.
2943         * Loader/WebDataProtocol.m: Removed.
2944         * Loader/WebDocumentLoader.h: Removed.
2945         * Loader/WebDocumentLoader.m: Removed.
2946         * Loader/WebFormDataStream.h: Removed.
2947         * Loader/WebFormDataStream.m: Removed.
2948         * Loader/WebFormState.h: Removed.
2949         * Loader/WebFormState.m: Removed.
2950         * Loader/WebFrameLoader.h: Removed.
2951         * Loader/WebFrameLoader.m: Removed.
2952         * Loader/WebFrameLoaderClient.h: Removed.
2953         * Loader/WebLoader.h: Removed.
2954         * Loader/WebLoader.m: Removed.
2955         * Loader/WebMainResourceLoader.h: Removed.
2956         * Loader/WebMainResourceLoader.m: Removed.
2957         * Loader/WebNetscapePlugInStreamLoader.h: Removed.
2958         * Loader/WebNetscapePlugInStreamLoader.m: Removed.
2959         * Loader/WebPlugInStreamLoaderDelegate.h: Removed.
2960         * Loader/WebPolicyDecider.h: Removed.
2961         * Loader/WebPolicyDecider.m: Removed.
2962         * Loader/WebSubresourceLoader.h: Removed.
2963         * Loader/WebSubresourceLoader.m: Removed.
2964         * Misc/WebNSURLExtras.m:
2965         * Plugins/WebBaseNetscapePluginStream.h:
2966         * Plugins/WebBaseNetscapePluginView.m:
2967         * Plugins/WebNetscapePluginStream.m:
2968         * Plugins/WebPluginContainerCheck.m:
2969         * Plugins/WebPluginController.m:
2970         * WebCoreSupport/WebFrameBridge.m:
2971         * WebKit.xcodeproj/project.pbxproj:
2972         * WebView/WebDataSource.m:
2973         * WebView/WebDocumentLoaderMac.h:
2974         * WebView/WebFrame.m:
2975         * WebView/WebFrameInternal.h:
2976         * WebView/WebHTMLView.m:
2977         * WebView/WebPolicyDeciderMac.h:
2978         * WebView/WebPolicyDelegate.m:
2979         * WebView/WebView.m:
2980
2981 2006-10-10  Mark Rowe  <bdash@webkit.org>
2982
2983         Reviewed by Maciej.
2984
2985         Fix crash on launch in nightly builds after r16965.
2986
2987         Safari will sometimes call through to -[NSURL _webkit_canonicalize] before creating a WebView.  If this happens,
2988         InitWebCoreSystemInterface has not yet been called so the call to wkNSURLProtocolClassForReqest is via a garbage
2989         pointer.
2990
2991         * Misc/WebNSURLExtras.m:
2992         (-[NSURL _webkit_canonicalize]): Ensure InitWebCoreSystemInterface is called prior to canonicalURL.
2993
2994 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2995
2996         Reviewed by Oliver.
2997         
2998         - split out some NSURL extras to be moved to WebCore
2999
3000         * Loader/LoaderNSURLExtras.h: Added.
3001         * Loader/LoaderNSURLExtras.m: Added.
3002         (urlByRemovingComponent):
3003         (urlByRemovingFragment):
3004         (urlOriginalDataAsString):
3005         (urlOriginalData):
3006         (urlWithData):
3007         (WebCFAutorelease):
3008         (urlWithDataRelativeToURL):
3009         (urlByRemovingResourceSpecifier):
3010         (urlIsFileURL):
3011         (stringIsFileURL):
3012         (urlIsEmpty):
3013         (canonicalURL):
3014         * Loader/WebFrameLoader.m:
3015         (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
3016         (setHTTPReferrer):
3017         (-[WebFrameLoader commitProvisionalLoad:]):
3018         (-[WebFrameLoader _notifyIconChanged:]):
3019         (-[WebFrameLoader didChangeTitleForDocument:]):
3020         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
3021         (-[WebFrameLoader safeLoadURL:]):
3022         * Misc/WebNSURLExtras.m:
3023         (+[NSURL _web_URLWithData:]):
3024         (+[NSURL _web_URLWithData:relativeToURL:]):
3025         (-[NSURL _web_originalData]):
3026         (-[NSURL _web_originalDataAsString]):
3027         (-[NSURL _web_isEmpty]):
3028         (-[NSURL _webkit_canonicalize]):
3029         (-[NSURL _webkit_URLByRemovingComponent:]):
3030         (-[NSURL _webkit_URLByRemovingFragment]):
3031         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
3032         (-[NSURL _webkit_isFileURL]):
3033         (-[NSString _webkit_isFileURL]):
3034         * WebCoreSupport/WebSystemInterface.m:
3035         (InitWebCoreSystemInterface):
3036         * WebKit.xcodeproj/project.pbxproj:
3037
3038 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3039
3040         Reviewed by Anders.
3041         
3042         - sever final WebFrame dependencies
3043
3044         * Loader/WebFrameLoader.h:
3045         * Loader/WebFrameLoader.m:
3046         (-[WebFrameLoader initWithFrame:client:]):
3047         (-[WebFrameLoader defersCallbacksChanged]):
3048         (-[WebFrameLoader subframeIsLoading]):
3049         (-[WebFrameLoader transitionToCommitted:]):
3050         (-[WebFrameLoader detachChildren]):
3051         (-[WebFrameLoader checkLoadComplete]):
3052
3053 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3054
3055         Reviewed by Brady.
3056         
3057         - convert more WebFrameLoader stuff to be independent of WebFrame
3058
3059         * Loader/WebFrameLoader.h:
3060         * Loader/WebFrameLoader.m:
3061         (-[WebFrameLoader stopLoadingSubframes]):
3062         (-[WebFrameLoader _receivedMainResourceError:complete:]):
3063         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3064         (-[WebFrameLoader closeOldDataSources]):
3065         (-[WebFrameLoader isHostedByObjectElement]):
3066         (-[WebFrameLoader isLoadingMainFrame]):
3067         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
3068         (-[WebFrameLoader transitionToCommitted:]):
3069         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3070         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3071         (-[WebFrameLoader loadRequest:inFrameNamed:]):
3072         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3073         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
3074         (-[WebFrameLoader client]):
3075         * Loader/WebFrameLoaderClient.h:
3076         * WebView/WebDataSource.m:
3077         (-[WebDataSource _webView]):
3078         (-[WebDataSource webFrame]):
3079         * WebView/WebFrame.m:
3080         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
3081
3082 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3083
3084         Reviewed by Anders and Oliver.
3085         
3086         - move a bunch of WebFrame methods from the Internal category to the WebFrameLoader protocol
3087
3088         * Loader/WebFrameLoader.h:
3089         * Loader/WebFrameLoader.m:
3090         (-[WebFrameLoader loadRequest:]):
3091         (-[WebFrameLoader loadRequest:inFrameNamed:]):
3092         * Loader/WebFrameLoaderClient.h:
3093         * WebView/WebFrame.m:
3094         (-[WebFrame loadRequest:]):
3095         (-[WebFrame _dispatchDidCommitLoadForFrame]):
3096         (-[WebFrame _hasFrameView]):
3097         (-[WebFrame _frameLoadCompleted]):
3098         (-[WebFrame _restoreScrollPositionAndViewState]):
3099         (-[WebFrame _setTitle:forURL:]):
3100         (-[WebFrame _createDocumentLoaderWithRequest:]):
3101         (-[WebFrame _prepareForDataSourceReplacement]):
3102         (-[WebFrame _didFinishLoad]):
3103         (-[WebFrame _addHistoryItemForFragmentScroll]):
3104         (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
3105         (-[WebFrame _provisionalLoadStarted]):
3106         * WebView/WebFrameInternal.h:
3107
3108 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3109
3110         Not reviewed, build fix.
3111         
3112         - added forgotten files
3113
3114         * Loader/WebPolicyDecider.h: Added.
3115         * Loader/WebPolicyDecider.m: Added.
3116         (-[WebPolicyDecider invalidate]):
3117
3118 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3119
3120         Reviewed by Brady.
3121         
3122         - add wrapper for WebPolicyDecisionListener so we can remove the dependency from WebFrameLoader.
3123
3124         * Loader/WebFrameLoader.h:
3125         * Loader/WebFrameLoader.m:
3126         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
3127         (-[WebFrameLoader cancelContentPolicy]):
3128         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
3129         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
3130         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
3131         (-[WebFrameLoader continueAfterWillSubmitForm:]):
3132         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3133         * Loader/WebFrameLoaderClient.h:
3134         * WebKit.xcodeproj/project.pbxproj:
3135         * WebView/WebFrame.m:
3136         (-[WebFrame _createPolicyDeciderWithTarget:action:]):
3137         (decisionListener):
3138         (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decider:]):
3139         (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decider:]):
3140         (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decider:]):
3141         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
3142         * WebView/WebPolicyDeciderMac.h: Added.
3143         * WebView/WebPolicyDeciderMac.m: Added.
3144         (-[WebPolicyDeciderMac initWithTarget:action:]):
3145         (-[WebPolicyDeciderMac dealloc]):
3146         (-[WebPolicyDeciderMac decisionListener]):
3147         (-[WebPolicyDeciderMac invalidate]):
3148
3149 2006-10-09  Brady Eidson  <beidson@apple.com>
3150
3151         Reviewed by John
3152
3153         http://bugs.webkit.org/show_bug.cgi?id=11195
3154         Added the WebIconDatabaseDelegate.  This allows the ability to allow customization of 
3155         IconDatabase behavior in the future, starting now with the ability to override the 
3156         default icon fairly flexibly
3157
3158         * Misc/WebIconDatabase.h: Added setIconDatabaseDelegate:
3159         * Misc/WebIconDatabase.m:
3160         (-[WebIconDatabase iconForURL:withSize:cache:]): Call the delegate for the default icon if delegate is set
3161         (-[WebIconDatabase defaultIconForURL:withSize:]): Get the default icon through the delegate if available, built-in if not
3162         (-[WebIconDatabase setDelegate:]):
3163         (-[WebIconDatabase delegate]):
3164         * Misc/WebIconDatabaseDelegate.h: Added.
3165         * Misc/WebIconDatabasePrivate.h: Added the delegate, nuked an unused class definition
3166         * WebKit.xcodeproj/project.pbxproj:
3167
3168 2006-10-09  Darin Adler  <darin@apple.com>
3169
3170         Reviewed by Maciej.
3171
3172         - eliminated uses of WebResource and WebView from WebFrameLoader
3173
3174         * Loader/WebFrameLoader.h:
3175         * Loader/WebFrameLoader.m:
3176         (-[WebFrameLoader setDefersCallbacks:]):
3177         (-[WebFrameLoader stopLoading]):
3178         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3179         (-[WebFrameLoader archiveLoadPendingForLoader:]):
3180         (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
3181         (-[WebFrameLoader _canShowMIMEType:]):
3182         (-[WebFrameLoader _representationExistsForURLScheme:]):
3183         (-[WebFrameLoader _generatedMIMETypeForURLScheme:]):
3184         (-[WebFrameLoader loadDocumentLoader:]):
3185         (-[WebFrameLoader continueAfterNavigationPolicy:]):
3186         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
3187         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
3188         * Loader/WebFrameLoaderClient.h:
3189         * Loader/WebMainResourceLoader.m:
3190         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3191         (-[WebMainResourceLoader loadWithRequestNow:]):
3192         * WebView/WebFrame.m:
3193         (-[WebFramePrivate dealloc]):
3194         (-[WebFrame loadRequest:]):
3195         (-[WebFrame loadArchive:]):
3196         (-[WebFrame _canUseResourceForRequest:]):
3197         (-[WebFrame _canUseResourceWithResponse:]):
3198         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
3199         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
3200         (-[WebFrame _archiveLoadPendingForLoader:]):
3201         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
3202         (-[WebFrame _clearArchivedResources]):
3203         (-[WebFrame _deliverArchivedResources]):
3204         (-[WebFrame _setDefersCallbacks:]):
3205         (-[WebFrame _canHandleRequest:]):
3206         (-[WebFrame _canShowMIMEType:]):
3207         (-[WebFrame _representationExistsForURLScheme:]):
3208         (-[WebFrame _generatedMIMETypeForURLScheme:]):
3209         (-[WebFrame _elementForEvent:]):
3210
3211 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3212
3213         Reviewed by Darin.
3214         
3215         - do all the stuff that setting the referrer should
3216
3217         * Loader/WebFrameLoader.m:
3218         (setHTTPReferrer):
3219         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3220         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3221         * WebKit.xcodeproj/project.pbxproj:
3222
3223 2006-10-09  Brady Eidson  <beidson@apple.com>
3224
3225         Reviewed by Maciej
3226
3227         Fix to elminate WebIconDatabaseBridge.h from WebFrameLoader
3228
3229         * Loader/WebFrameLoader.m:
3230         (-[WebFrameLoader _notifyIconChanged:]):
3231         * WebCoreSupport/WebIconDatabaseBridge.m:
3232         (+[WebIconDatabaseBridge createInstance]):
3233
3234 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3235
3236         Reviewed by Darin.
3237         
3238         (Was reviewed as part of a larger patch but it looks like Darin already did the rest of it)
3239         
3240         - avoid a needless use of WebFrame
3241
3242         * Loader/WebFrameLoader.m:
3243         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
3244
3245 2006-10-09  Brady Eidson  <beidson@apple.com>
3246
3247         A *real* fake fix for the layouttest problem until the real fix
3248
3249         * Loader/WebFrameLoader.m:
3250         (-[WebFrameLoader _notifyIconChanged:]):
3251
3252 2006-10-09  Brady Eidson  <beidson@apple.com>
3253
3254         Quick layouttest fix until I make the real fix
3255
3256         * Loader/WebFrameLoader.m:
3257
3258 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3259
3260         Reviewed by Darin.
3261         
3262         - wean WebFrameLoader from WebDataSource private stuff
3263         
3264         (actually just tweaks tot he above to make merging my future
3265         patches easier since Darin did a lot of the same stuff)
3266
3267         * Loader/WebDocumentLoader.h:
3268         * Loader/WebDocumentLoader.m:
3269         (-[WebDocumentLoader URLForHistory]):
3270         * Loader/WebFrameLoader.m:
3271         (-[WebFrameLoader _loadRequest:archive:]):
3272         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
3273         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
3274         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
3275         (-[WebFrameLoader didChangeTitleForDocument:]):
3276         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
3277         * Loader/WebFrameLoaderClient.h:
3278         * WebView/WebDataSource.m:
3279         (-[WebDataSource _URLForHistory]):
3280         * WebView/WebFrame.m:
3281         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
3282         (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
3283         (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
3284         (-[WebFrame _clearUnarchivingStateForLoader:]):
3285
3286 2006-10-09  Darin Adler  <darin@apple.com>
3287
3288         Reviewed by Brady.
3289
3290         - eliminated WebFrameLoader dependency on WebDataSourceInternal.h,
3291           WebIconDatabasePrivate.h, and WebKitErrorsPrivate.h, along with
3292           most but not all references to WebView
3293
3294         * Loader/WebFrameLoader.h:
3295         * Loader/WebFrameLoader.m:
3296         (-[WebFrameLoader removePlugInStreamLoader:]):
3297         (-[WebFrameLoader _receivedMainResourceError:complete:]):
3298         (-[WebFrameLoader _notifyIconChanged:]):
3299         (-[WebFrameLoader cancelledErrorWithRequest:]):
3300         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
3301         (-[WebFrameLoader handleUnimplementablePolicyWithError:]):
3302         (-[WebFrameLoader cannotShowMIMETypeWithResponse:]):
3303         (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
3304         (-[WebFrameLoader _loadRequest:archive:]):
3305         (-[WebFrameLoader finishedLoadingDocument:]):
3306         (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
3307         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
3308         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
3309         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
3310         (-[WebFrameLoader didChangeTitleForDocument:]):
3311         (-[WebFrameLoader continueAfterNavigationPolicy:]):
3312         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3313         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
3314         (-[WebFrameLoader transitionToCommitted:]):
3315         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3316         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
3317         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3318         (-[WebFrameLoader checkLoadComplete]):
3319         * Loader/WebFrameLoaderClient.h:
3320         * Loader/WebMainResourceLoader.m:
3321         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3322         * WebView/WebFrame.m:
3323         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
3324         (-[WebFrame _formDelegate]):
3325         (-[WebFrame _finishedLoadingDocument:]):
3326         (-[WebFrame _committedLoadWithDocumentLoader:data:]):
3327         (-[WebFrame _revertToProvisionalWithDocumentLoader:]):
3328         (-[WebFrame _documentLoader:setMainDocumentError:]):
3329         (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
3330         (-[WebFrame _URLForHistoryForDocumentLoader:]):
3331         (-[WebFrame _cancelledErrorWithRequest:]):
3332         (-[WebFrame _cannotShowURLErrorWithRequest:]):
3333         (-[WebFrame _interruptForPolicyChangeErrorWithRequest:]):
3334         (-[WebFrame _cannotShowMIMETypeErrorWithResponse:]):
3335         (-[WebFrame _fileDoesNotExistErrorWithResponse:]):
3336         (-[WebFrame _shouldFallBackForError:]):
3337         (-[WebFrame _hasWebView]):
3338         (-[WebFrame _mainFrameURL]):
3339         * WebView/WebFrameInternal.h:
3340
3341 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3342
3343         Reviewed, landed, tweaked a bit by Darin.
3344
3345         - removed most uses of WebFrameBridge from WebFrameLoader
3346           (WebCoreFrameBridge use is OK)
3347
3348         * Loader/WebDocumentLoader.m:
3349         (-[WebDocumentLoader bridge]):
3350         * Loader/WebFrameLoader.h:
3351         * Loader/WebFrameLoader.m:
3352         (-[WebFrameLoader initWithFrame:client:]):
3353         (-[WebFrameLoader defersCallbacksChanged]):
3354         (-[WebFrameLoader defersCallbacks]):
3355         (-[WebFrameLoader provisionalLoadStarted]):
3356         (-[WebFrameLoader stopLoadingSubframes]):
3357         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3358         (-[WebFrameLoader _receivedMainResourceError:complete:]):
3359         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3360         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
3361         (-[WebFrameLoader closeOldDataSources]):
3362         (-[WebFrameLoader commitProvisionalLoad:]):
3363         (-[WebFrameLoader bridge]):
3364         (-[WebFrameLoader _handleFallbackContent]):
3365         (-[WebFrameLoader _finishedLoading]):
3366         (-[WebFrameLoader reload]):
3367         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
3368         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3369         (-[WebFrameLoader transitionToCommitted:]):
3370         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3371         (-[WebFrameLoader loadRequest:inFrameNamed:]):
3372         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3373         (-[WebFrameLoader detachFromParent]):
3374         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3375         (-[WebFrameLoader safeLoadURL:]):
3376         (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
3377         * WebCoreSupport/WebFrameBridge.m:
3378         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
3379         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
3380         * WebView/WebFrame.m:
3381         (-[WebFrame _atMostOneFrameHasSelection]):
3382         * WebView/WebFrameInternal.h:
3383
3384 2006-10-09  Darin Adler  <darin@apple.com>
3385
3386         Reviewed by Brady.
3387
3388         - removed almost all direct use of WebView from WebFrameLoader
3389
3390         * Loader/WebFrameLoader.m:
3391         (-[WebFrameLoader defersCallbacksChanged]):
3392         (-[WebFrameLoader defersCallbacks]):
3393         (-[WebFrameLoader clearProvisionalLoad]):
3394         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3395         (-[WebFrameLoader _didReceiveResponse:forResource:]):
3396         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3397         (-[WebFrameLoader _didFinishLoadingForResource:]):
3398         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3399         (-[WebFrameLoader closeOldDataSources]):
3400         (-[WebFrameLoader _notifyIconChanged:]):
3401         (-[WebFrameLoader prepareForLoadStart]):
3402         (-[WebFrameLoader willChangeTitleForDocument:]):
3403         (-[WebFrameLoader didChangeTitleForDocument:]):
3404         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
3405         (-[WebFrameLoader continueAfterNavigationPolicy:]):
3406         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3407         (-[WebFrameLoader didFirstLayout]):
3408         (-[WebFrameLoader transitionToCommitted:]):
3409         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3410         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3411         * Loader/WebFrameLoaderClient.h:
3412         * WebKit.xcodeproj/project.pbxproj:
3413         * WebView/WebFrame.m:
3414         (-[WebFrame _currentBackForwardListItemToResetTo]):
3415         (-[WebFrame _hasBackForwardList]):
3416         (-[WebFrame _resetBackForwardList]):
3417         (-[WebFrame _dispatchDidReceiveIcon:]):
3418         (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
3419         (-[WebFrame _dispatchDidCommitLoadForFrame]):
3420         (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
3421         (-[WebFrame _dispatchDidFailLoadWithError:]):
3422         (-[WebFrame _dispatchDidFinishLoadForFrame]):
3423         (-[WebFrame _progressStarted]):
3424         (-[WebFrame _progressCompleted]):
3425         (-[WebFrame _incrementProgressForIdentifier:response:]):
3426         (-[WebFrame _incrementProgressForIdentifier:data:]):
3427         (-[WebFrame _completeProgressForIdentifier:]):
3428         (-[WebFrame _setMainFrameDocumentReady:]):
3429         (-[WebFrame _willChangeTitleForDocument:]):
3430         (-[WebFrame _didChangeTitleForDocument:]):
3431         (-[WebFrame _startDownloadWithRequest:]):
3432
3433 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3434
3435         Reviewed by Alice.
3436
3437         - moved WebFormState into Loader directory and tweaked to avoid WebKit dependencies
3438         
3439         * Loader/WebDocumentLoader.h:
3440         * Loader/WebFormState.h: Added.
3441         * Loader/WebFormState.m: Added.
3442         (-[WebFormState initWithForm:values:sourceFrame:]):
3443         (-[WebFormState dealloc]):
3444         (-[WebFormState form]):
3445         (-[WebFormState values]):
3446         (-[WebFormState sourceFrame]):
3447         * Loader/WebFrameLoader.h:
3448         * Loader/WebFrameLoader.m:
3449         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3450         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3451         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3452         * WebKit.xcodeproj/project.pbxproj:
3453         * WebView/WebFrame.m:
3454         * WebView/WebFrameInternal.h:
3455
3456 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3457
3458         Reviewed by Oliver.
3459
3460         - remove dependency on WebNSURLRequestExtras.h
3461         
3462         * Loader/WebFrameLoader.h:
3463         * Loader/WebFrameLoader.m:
3464         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3465         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3466         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3467
3468 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3469
3470         Reviewed by Oliver.
3471         
3472         - removed unneeded logging code so I can take WebKitLogging.h out and remove a WebKit dependency
3473
3474         * Loader/WebFrameLoader.m:
3475         (-[WebFrameLoader setState:]):
3476         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
3477         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
3478         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3479         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
3480         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3481         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3482
3483 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3484
3485         Reviewed by Oliver.
3486         
3487         - remove WebDataSource from the WebFrameLoader interface (and thereby from a lot of internal use)
3488
3489         * Loader/WebDocumentLoader.h:
3490         * Loader/WebDocumentLoader.m:
3491         (-[WebDocumentLoader dealloc]):
3492         (-[WebDocumentLoader initialRequest]):
3493         (-[WebDocumentLoader URL]):
3494         (-[WebDocumentLoader unreachableURL]):
3495         * Loader/WebFrameLoader.h:
3496         * Loader/WebFrameLoader.m:
3497         (-[WebFrameLoader setState:]):
3498         (-[WebFrameLoader startLoading]):
3499         (-[WebFrameLoader startProvisionalLoad:]):
3500         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
3501         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3502         (-[WebFrameLoader opened]):
3503         (-[WebFrameLoader commitProvisionalLoad:]):
3504         (-[WebFrameLoader initialRequest]):
3505         (-[WebFrameLoader _finishedLoading]):
3506         (-[WebFrameLoader _notifyIconChanged:]):
3507         (-[WebFrameLoader _URL]):
3508         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3509         (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
3510         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
3511         (-[WebFrameLoader _loadRequest:archive:]):
3512         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
3513         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
3514         (-[WebFrameLoader reload]):
3515         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
3516         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3517         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
3518         (-[WebFrameLoader frameLoadCompleted]):
3519         (-[WebFrameLoader transitionToCommitted:]):
3520         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3521         (-[WebFrameLoader safeLoadURL:]):
3522         * Loader/WebFrameLoaderClient.h:
3523         * Plugins/WebBaseNetscapePluginView.m:
3524         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
3525         * WebCoreSupport/WebFrameBridge.m:
3526         (-[WebFrameBridge originalRequestURL]):
3527         * WebView/WebDataSource.m:
3528         (-[WebDataSource _URL]):
3529         (-[WebDataSource dealloc]):
3530         (-[WebDataSource initialRequest]):
3531         (-[WebDataSource unreachableURL]):
3532         * WebView/WebFrame.m:
3533         (-[WebFrame _loadItem:withLoadType:]):
3534         (-[WebFrame _prepareForDataSourceReplacement]):
3535         (-[WebFrame provisionalDataSource]):
3536         (-[WebFrame dataSource]):
3537         (-[WebFrame _makeDocumentView]):
3538         (-[WebFrame _updateHistoryForReload]):
3539         (-[WebFrame _updateHistoryForStandardLoad]):
3540         (-[WebFrame _updateHistoryForInternalLoad]):
3541         (-[WebFrame _forceLayoutForNonHTML]):
3542         (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
3543         (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
3544         (-[WebFrame _archivedSubresourceForURL:fromDocumentLoader:]):
3545         (-[WebFrame _makeRepresentationForDocumentLoader:]):
3546
3547 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
3548
3549         Reviewed by Darin.
3550
3551         - removed need for WebFrameLoader to now about WebDocumentLoaderMac 
3552
3553         * Loader/WebFrameLoader.m:
3554         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
3555         * WebView/WebDocumentLoaderMac.h:
3556         * WebView/WebDocumentLoaderMac.m:
3557         (-[WebDocumentLoaderMac setFrameLoader:]):
3558         (-[WebDocumentLoaderMac detachFromFrameLoader]):
3559
3560 2006-10-09  Darin Adler  <darin@apple.com>
3561
3562         Reviewed by Maciej.
3563
3564         - passed calls that require WebScriptDebugServer across the client interface
3565
3566         * Loader/WebFrameLoader.m:
3567         (-[WebFrameLoader _finishedLoading]):
3568         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
3569         * Loader/WebFrameLoaderClient.h:
3570         * WebView/WebFrame.m:
3571         (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
3572
3573 2006-10-08  Darin Adler  <darin@apple.com>
3574
3575         Reviewed by Maciej.
3576
3577         - passed calls that require WebHTMLView or WebFrameView calls across
3578           the client interface
3579
3580         * Loader/WebFrameLoader.h:
3581         * Loader/WebFrameLoader.m:
3582         (isCaseInsensitiveEqual):
3583         (isBackForwardLoadType):
3584         (-[WebFrameLoader opened]):
3585         (-[WebFrameLoader cancelledErrorWithRequest:]):
3586         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
3587         (-[WebFrameLoader reload]):
3588         (-[WebFrameLoader transitionToCommitted:]):
3589         * Loader/WebFrameLoaderClient.h:
3590         * WebView/WebFrame.m:
3591         (-[WebFrame _forceLayout]):
3592         (-[WebFrame _setDocumentViewFromPageCache:]):
3593         (-[WebFrame _setCopiesOnScroll]):
3594
3595 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3596
3597         Reviewed by Darin.
3598         
3599         - pass remaining delegate methods across client interface
3600
3601         * Loader/WebFrameLoader.m:
3602         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
3603         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
3604         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
3605         (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
3606         (-[WebFrameLoader didFirstLayout]):
3607         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3608         * Loader/WebFrameLoaderClient.h:
3609         * WebView/WebFrame.m:
3610         (-[WebFrame _dispatchDidFirstLayoutInFrame]):
3611         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
3612         (-[WebFrame _dispatchShow]):
3613         (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
3614         (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
3615         (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
3616         (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
3617
3618 2006-10-08  Darin Adler  <darin@apple.com>
3619
3620         Reviewed by Maciej.
3621
3622         - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
3623
3624         * Loader/WebFrameLoader.m: Update includes.
3625         (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
3626         (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
3627
3628         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
3629         Added the three new symbols, and resorted the list.
3630
3631         * Loader/WebDataProtocol.m:
3632         * Loader/WebLoader.m:
3633         * Loader/WebMainResourceLoader.h:
3634         * Loader/WebMainResourceLoader.m:
3635         * Loader/WebNetscapePlugInStreamLoader.h:
3636         * Loader/WebNetscapePlugInStreamLoader.m:
3637         * Loader/WebSubresourceLoader.h:
3638         * Loader/WebSubresourceLoader.m:
3639         Changed import statements to consistently use the "" format.
3640
3641 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3642
3643         Not reviewed.
3644         
3645         - fix accidental build break due to editing while committing
3646
3647         * Loader/WebFrameLoader.m:
3648
3649 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3650
3651         Reviewed by Darin.
3652         
3653         - move all WebFrameLoadDelegate methods across client interface
3654
3655         * Loader/WebFrameLoader.m:
3656         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
3657         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
3658         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
3659         (-[WebFrameLoader closeOldDataSources]):
3660         (-[WebFrameLoader _notifyIconChanged:]):
3661         (-[WebFrameLoader prepareForLoadStart]):
3662         (-[WebFrameLoader didChangeTitleForDocument:]):
3663         (-[WebFrameLoader transitionToCommitted:]):
3664         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3665         * Loader/WebFrameLoaderClient.h:
3666         * WebView/WebFrame.m:
3667         (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
3668         (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
3669         (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
3670         (-[WebFrame _dispatchWillCloseFrame]):
3671         (-[WebFrame _dispatchDidReceiveIcon:]):
3672         (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
3673         (-[WebFrame _dispatchDidReceiveTitle:]):
3674         (-[WebFrame _dispatchDidCommitLoadForFrame]):
3675         (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
3676         (-[WebFrame _dispatchDidFailLoadWithError:]):
3677         (-[WebFrame _dispatchDidFinishLoadForFrame]):
3678
3679 2006-10-08  Darin Adler  <darin@apple.com>
3680
3681         Reviewed by Maciej.
3682
3683         - removed some of the WebKit dependencies in WebFrameLoader
3684
3685         * Loader/WebFrameLoader.m:
3686         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3687         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3688         (-[WebFrameLoader reload]):
3689         (-[WebFrameLoader didChangeTitleForDocument:]):
3690         * Loader/WebFrameLoaderClient.h:
3691         * WebView/WebFrame.m:
3692         (-[WebFrame _loadItem:withLoadType:]):
3693         (-[WebFrame _loadURL:referrer:intoChild:]):
3694         (-[WebFrame _setTitle:forURL:]):
3695         (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
3696         * WebView/WebFrameInternal.h:
3697
3698         - some other tweaks
3699
3700         * Misc/WebNSURLRequestExtras.m:
3701         (-[NSMutableURLRequest _web_setHTTPReferrer:]):
3702         (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
3703
3704 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3705
3706         Reviewed by Darin.
3707         
3708         - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
3709
3710         * Loader/WebFrameLoader.m:
3711         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3712         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3713         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3714         (-[WebFrameLoader _didReceiveResponse:forResource:]):
3715         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3716         (-[WebFrameLoader _didFinishLoadingForResource:]):
3717         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3718         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
3719         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
3720         * Loader/WebFrameLoaderClient.h:
3721         * WebView/WebFrame.m:
3722         (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
3723         (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
3724         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
3725         (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
3726         (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
3727         (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
3728         (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
3729         (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
3730         (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
3731         (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
3732
3733 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3734
3735         Reviewed by Darin.
3736         
3737         - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
3738
3739         * Loader/WebFrameLoader.m:
3740         (-[WebFrameLoader startLoading]):
3741         (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
3742         * Loader/WebFrameLoaderClient.h:
3743         * WebCoreSupport/WebFrameBridge.m:
3744         (-[WebFrameBridge handledOnloadEvents]):
3745         * WebView/WebFrame.m:
3746         (dataSource):
3747         (-[WebFrame _dataSourceForDocumentLoader:]):
3748         (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
3749         (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
3750         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
3751         * WebView/WebFrameInternal.h:
3752
3753 2006-10-08  Darin Adler  <darin@apple.com>
3754
3755         Reviewed by Maciej.
3756
3757         - moved more methods to WebFrameLoader from WebFrame
3758
3759         * Loader/WebFrameLoader.h:
3760         * Loader/WebFrameLoader.m:
3761         (-[WebFrameLoader defersCallbacksChanged]):
3762         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
3763         (-[WebFrameLoader setState:]):
3764         (-[WebFrameLoader clearProvisionalLoad]):
3765         (-[WebFrameLoader markLoadComplete]):
3766         (-[WebFrameLoader commitProvisionalLoad]):
3767         (-[WebFrameLoader stopLoading]):
3768         (-[WebFrameLoader startProvisionalLoad:]):
3769         (-[WebFrameLoader setupForReplace]):
3770         (-[WebFrameLoader _identifierForInitialRequest:]):
3771         (-[WebFrameLoader _finishedLoadingResource]):
3772         (-[WebFrameLoader _receivedError:]):
3773         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3774         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
3775         (-[WebFrameLoader opened]):
3776         (-[WebFrameLoader commitProvisionalLoad:]):
3777         (-[WebFrameLoader _finishedLoading]):
3778         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3779         (-[WebFrameLoader _loadRequest:archive:]):
3780         (-[WebFrameLoader reload]):
3781         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
3782         (-[WebFrameLoader subframeIsLoading]):
3783         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
3784         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
3785         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
3786         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
3787         (-[WebFrameLoader loadRequest:inFrameNamed:]):
3788         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3789         (-[WebFrameLoader detachChildren]):
3790         (-[WebFrameLoader detachFromParent]):
3791         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3792         (-[WebFrameLoader safeLoadURL:]):
3793         (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
3794         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
3795         (-[WebFrameLoader checkLoadComplete]):
3796         * Loader/WebFrameLoaderClient.h:
3797         * Loader/WebSubresourceLoader.m:
3798         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3799         * WebCoreSupport/WebFrameBridge.m:
3800         (-[WebFrameBridge close]):
3801         (-[WebFrameBridge tokenizerProcessedData]):
3802         (-[WebFrameBridge frameDetached]):
3803         * WebView/WebDataSourceInternal.h:
3804         * WebView/WebFrame.m:
3805         (-[WebFrame _loadItem:withLoadType:]):
3806         (-[WebFrame _prepareForDataSourceReplacement]):
3807         (-[WebFrame _detachedFromParent1]):
3808         (-[WebFrame _detachedFromParent2]):
3809         (-[WebFrame _detachedFromParent3]):
3810         (-[WebFrame _detachedFromParent4]):
3811         (-[WebFrame _updateHistoryAfterClientRedirect]):
3812         (-[WebFrame _loadedFromPageCache]):
3813         * WebView/WebFrameInternal.h:
3814         * WebView/WebPDFView.m:
3815         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3816         * WebView/WebView.m:
3817         (-[WebView _close]):
3818         (-[WebView setDefersCallbacks:]):
3819
3820 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3821
3822         Reviewed by Darin.
3823         
3824         - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
3825
3826         * Loader/WebDocumentLoader.m:
3827         (-[WebDocumentLoader initWithRequest:]):
3828         * Loader/WebMainResourceLoader.m:
3829         * Loader/WebSubresourceLoader.m:
3830         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3831         * WebCoreSupport/WebSystemInterface.m:
3832         (InitWebCoreSystemInterface):
3833         * WebView/WebDataSource.m:
3834         (-[WebDataSource _initWithDocumentLoader:]):
3835
3836 2006-10-08  Darin Adler  <darin@apple.com>
3837
3838         - build fix (also a fix for a crasher I forgot to commit before)
3839
3840         * Loader/WebFrameLoader.m: Added some missing includes.
3841         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3842         Added a needed retain/release.
3843
3844 2006-10-08  Darin Adler  <darin@apple.com>
3845
3846         Reviewed by Anders.
3847         
3848         - quick fix to loader problem causing layout test failures
3849
3850         * Loader/WebFrameLoader.m:
3851         (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
3852         that we retain/release.
3853         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3854         Same here.
3855
3856 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3857
3858         Reviewed by Adam.
3859         
3860         - removed a few includes from WebFrameLoader, fixed up as appropriate
3861         - segregated header includes into ones that need to go away to move the code and ones that don't
3862
3863         * Loader/WebFrameLoader.m:
3864         (-[WebFrameLoader _privateBrowsingEnabled]):
3865         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3866         * Loader/WebFrameLoaderClient.h:
3867         * WebView/WebFrame.m:
3868         (-[WebFrame _privateBrowsingEnabled]):
3869
3870 2006-10-08  Darin Adler  <darin@apple.com>
3871
3872         Reviewed by Maciej.
3873
3874         - moved a few methods from WebFrame to WebFrameLoader
3875
3876         * Loader/WebFrameLoader.h:
3877         * Loader/WebFrameLoader.m:
3878         (-[WebFrameLoader _setState:]):
3879         (-[WebFrameLoader stopLoadingSubframes]):
3880         (-[WebFrameLoader _receivedMainResourceError:complete:]):
3881         (-[WebFrameLoader closeOldDataSources]):
3882         (-[WebFrameLoader commitProvisionalLoad:]):
3883         (-[WebFrameLoader _finishedLoading]):
3884         (isBackForwardLoadType):
3885         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3886         (-[WebFrameLoader didFirstLayout]):
3887         (-[WebFrameLoader frameLoadCompleted]):
3888         (-[WebFrameLoader transitionToCommitted:]):
3889         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
3890         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3891         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
3892         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
3893         (-[WebFrameLoader loadRequest:inFrameNamed:]):
3894         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3895         * Loader/WebFrameLoaderClient.h:
3896         * Plugins/WebPluginController.m:
3897         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
3898         * WebCoreSupport/WebFrameBridge.h:
3899         * WebCoreSupport/WebFrameBridge.m:
3900         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
3901         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
3902         (-[WebFrameBridge dealloc]):
3903         (-[WebFrameBridge frameLoader]):
3904         (-[WebFrameBridge setTitle:]):
3905         (-[WebFrameBridge receivedData:textEncodingName:]):
3906         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
3907         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
3908         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
3909         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
3910         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
3911         (-[WebFrameBridge reportClientRedirectCancelled:]):
3912         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
3913         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3914         (-[WebFrameBridge didFirstLayout]):
3915         (-[WebFrameBridge notifyIconChanged:]):
3916         (-[WebFrameBridge originalRequestURL]):
3917         (-[WebFrameBridge isLoadTypeReload]):
3918         * WebView/WebFrame.m:
3919         (-[WebFrame _opened]):
3920         (-[WebFrame _checkLoadComplete]):
3921         (-[WebFrame _loadItem:withLoadType:]):
3922         (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
3923         (-[WebFrame _loadURL:referrer:intoChild:]):
3924         (-[WebFrame _currentBackForwardListItemToResetTo]):
3925         (-[WebFrame _updateBackground]):
3926         (-[WebFrame _frameLoader]):
3927         (-[WebFrame _frameLoadCompleted]):
3928         (-[WebFrame _makeDocumentView]):
3929         (-[WebFrame _updateHistoryForCommit]):
3930         (-[WebFrame _updateHistoryForReload]):
3931         (-[WebFrame _updateHistoryForStandardLoad]):
3932         (-[WebFrame _updateHistoryForBackForwardNavigation]):
3933         (-[WebFrame _updateHistoryForInternalLoad]):
3934         (-[WebFrame _tokenForLoadErrorReset]):
3935         (-[WebFrame _resetAfterLoadError:]):
3936         (-[WebFrame _doNotResetAfterLoadError:]):
3937         * WebView/WebFrameInternal.h:
3938
3939 2006-10-09  Mark Rowe  <bdash@webkit.org>
3940
3941         Rubber-stamped by Darin.
3942
3943         * WebCoreSupport/WebFrameBridge.m:
3944         (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
3945         is triggering an assertion failure.
3946
3947 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3948
3949         Reviewed by Darin.
3950         
3951         - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
3952         two coincidentally matching enums)
3953
3954         * Loader/WebFrameLoader.h:
3955         * Loader/WebFrameLoader.m:
3956         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
3957         (-[WebFrameLoader commitProvisionalLoad:]):
3958         (isBackForwardLoadType):
3959         (-[WebFrameLoader _loadRequest:archive:]):
3960         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
3961         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
3962         (-[WebFrameLoader reload]):
3963         (-[WebFrameLoader isReplacing]):
3964         (-[WebFrameLoader setReplacing]):
3965         (-[WebFrameLoader loadType]):
3966         (-[WebFrameLoader setLoadType:]):
3967         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
3968         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
3969         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
3970         (-[WebFrameLoader didFirstLayout]):
3971         * WebCoreSupport/WebFrameBridge.m:
3972         * WebView/WebFrame.m:
3973         (-[WebFrame _transitionToCommitted:]):
3974         (-[WebFrame _provisionalLoadStarted]):
3975         (-[WebFrame _opened]):
3976         (-[WebFrame _checkLoadCompleteForThisFrame]):
3977         (-[WebFrame _loadItem:withLoadType:]):
3978         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
3979         (-[WebFrame _goToItem:withLoadType:]):
3980         (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
3981         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3982         (-[WebFrame _loadURL:referrer:intoChild:]):
3983         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3984         (-[WebFrame _currentBackForwardListItemToResetTo]):
3985         (-[WebFrame _itemForRestoringDocState]):
3986         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3987         (-[WebFrame _loadType]):
3988         (-[WebFrame loadRequest:]):
3989         * WebView/WebFrameInternal.h:
3990         * WebView/WebView.m:
3991
3992 2006-10-08  Darin Adler  <darin@apple.com>
3993
3994         Reviewed by Maciej.
3995
3996         - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
3997
3998         * Loader/WebFrameLoader.m:
3999         (-[WebFrameLoader stopLoadingSubframes]):
4000         (-[WebFrameLoader closeOldDataSources]):
4001         * WebCoreSupport/WebFrameBridge.h:
4002         * WebCoreSupport/WebFrameBridge.m:
4003         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
4004         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
4005         (-[WebFrameBridge dealloc]):
4006         (-[WebFrameBridge loader]):
4007         (-[WebFrameBridge setTitle:]):
4008         (-[WebFrameBridge receivedData:textEncodingName:]):
4009         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
4010         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
4011         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
4012         (-[WebFrameBridge reportClientRedirectCancelled:]):
4013         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
4014         (-[WebFrameBridge didFirstLayout]):
4015         (-[WebFrameBridge imageTitleForFilename:size:]):
4016         (-[WebFrameBridge notifyIconChanged:]):
4017         (-[WebFrameBridge originalRequestURL]):
4018         (-[WebFrameBridge isLoadTypeReload]):
4019         * WebView/WebFrame.m:
4020         (-[NSView setWebFrame::]):
4021         (-[WebFramePrivate dealloc]):
4022         (-[WebFramePrivate setWebFrameView:]):
4023         (-[WebFramePrivate setProvisionalItem:]):
4024         (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
4025         (-[WebFrame _createItem:]):
4026         (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
4027         (-[WebFrame _detachFromParent]):
4028         (-[WebFrame _makeDocumentView]):
4029         (-[WebFrame _transitionToCommitted:]):
4030         (-[WebFrame _provisionalLoadStarted]):
4031         (-[WebFrame _opened]):
4032         (-[WebFrame _checkLoadCompleteForThisFrame]):
4033         (-[WebFrame _loadItem:withLoadType:]):
4034         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
4035         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
4036         (-[WebFrame _loadURL:referrer:intoChild:]):
4037         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
4038         (-[WebFrame _setTitle:]):
4039         (-[WebFrame _defersCallbacksChanged]):
4040         (-[WebFrame _currentBackForwardListItemToResetTo]):
4041         (-[WebFrame _itemForSavingDocState]):
4042         (-[WebFrame _itemForRestoringDocState]):
4043         (-[WebFrame _saveDocumentAndScrollState]):
4044         (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
4045         (-[WebFrame _loadRequest:inFrameNamed:]):
4046         (-[WebFrame _initWithWebFrameView:webView:bridge:]):
4047         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
4048         (-[WebFrame _frameLoader]):
4049         (-[WebFrame _prepareForDataSourceReplacement]):
4050         (-[WebFrame _restoreScrollPositionAndViewState]):
4051         (-[WebFrame _firstLayoutDone]):
4052         (-[WebFrame _loadType]):
4053         (-[WebFrame frameView]):
4054         (-[WebFrame provisionalDataSource]):
4055         (-[WebFrame dataSource]):
4056         (-[WebFrame loadRequest:]):
4057         (-[WebFrame loadArchive:]):
4058         (-[WebFrame stopLoading]):
4059         (-[WebFrame reload]):
4060         (-[WebFrame _resetBackForwardList]):
4061         (-[WebFrame _invalidateCurrentItemPageCache]):
4062         (-[WebFrame _provisionalItemIsTarget]):
4063         (-[WebFrame _loadProvisionalItemFromPageCache]):
4064         * WebView/WebFrameInternal.h:
4065
4066 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
4067
4068         Reviewed by Darin.
4069         
4070         - move remaining movable data fields from WebFrameLoader to WebFrame
4071
4072         * Loader/WebDocumentLoadState.m:
4073         (-[WebDocumentLoadState commitIfReady]):
4074         * Loader/WebFrameLoader.h:
4075         * Loader/WebFrameLoader.m:
4076         (-[WebFrameLoader provisionalLoadStarted]):
4077         (-[WebFrameLoader _setState:]):
4078         (-[WebFrameLoader stopLoadingSubframes]):
4079         (-[WebFrameLoader stopLoading]):
4080         (-[WebFrameLoader startLoading]):
4081         (-[WebFrameLoader _receivedMainResourceError:complete:]):
4082         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
4083         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
4084         (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
4085         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
4086         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
4087         (-[WebFrameLoader closeOldDataSources]):
4088         (-[WebFrameLoader commitProvisionalLoad:]):
4089         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
4090         (-[WebFrameLoader isQuickRedirectComing]):
4091         * Loader/WebFrameLoaderClient.h:
4092         * WebCoreSupport/WebFrameBridge.h:
4093         * WebCoreSupport/WebFrameBridge.m:
4094         (-[WebFrameBridge frameLoader]):
4095         (-[WebFrameBridge setTitle:]):
4096         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
4097         (-[WebFrameBridge reportClientRedirectCancelled:]):
4098         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
4099         * WebView/WebDataSource.m:
4100         (-[WebDataSource _loadFromPageCache:]):
4101         * WebView/WebFrame.m:
4102         (-[NSView setWebFrame::]):
4103         (-[WebFrame _addHistoryItemForFragmentScroll]):
4104         (-[WebFrame _didFinishLoad]):
4105         (-[WebFrame _provisionalLoadStarted]):
4106         (-[WebFrame _checkLoadCompleteForThisFrame]):
4107         (-[WebFrame _loadItem:withLoadType:]):
4108         (-[WebFrame _loadURL:referrer:intoChild:]):
4109         (-[WebFrame _frameLoadCompleted]):
4110         (-[WebFrame stopLoading]):
4111         (-[WebFrame _invalidateCurrentItemPageCache]):
4112         * WebView/WebFrameInternal.h:
4113
4114 2006-10-08  Darin Adler  <darin@apple.com>
4115
4116         Rubber stamped by Maciej.
4117
4118         - changed "document load state" to "document loader"
4119
4120         * Loader/WebDocumentLoadState.h: Removed.
4121         * Loader/WebDocumentLoadState.m: Removed.
4122         * Loader/WebDocumentLoader.h: Added.
4123         * Loader/WebDocumentLoader.m: Added.
4124         (-[WebDocumentLoader setMainDocumentError:]):
4125         (-[WebDocumentLoader mainReceivedError:complete:]):
4126         (-[WebDocumentLoader finishedLoading]):
4127         (-[WebDocumentLoader commitLoadWithData:]):
4128         (-[WebDocumentLoader setupForReplaceByMIMEType:]):
4129         (-[WebDocumentLoader updateLoading]):
4130         (-[WebDocumentLoader setTitle:]):
4131         * Loader/WebFrameLoader.h:
4132         * Loader/WebFrameLoader.m:
4133         (-[WebFrameLoader dealloc]):
4134         (-[WebFrameLoader activeDocumentLoader]):
4135         (-[WebFrameLoader activeDataSource]):
4136         (-[WebFrameLoader addPlugInStreamLoader:]):
4137         (-[WebFrameLoader removePlugInStreamLoader:]):
4138         (-[WebFrameLoader addSubresourceLoader:]):
4139         (-[WebFrameLoader removeSubresourceLoader:]):
4140         (-[WebFrameLoader dataSource]):
4141         (-[WebFrameLoader setDocumentLoader:]):
4142         (-[WebFrameLoader documentLoader]):
4143         (-[WebFrameLoader policyDataSource]):
4144         (-[WebFrameLoader setPolicyDocumentLoader:]):
4145         (-[WebFrameLoader clearDataSource]):
4146         (-[WebFrameLoader provisionalDataSource]):
4147         (-[WebFrameLoader provisionalDocumentLoader]):
4148         (-[WebFrameLoader setProvisionalDocumentLoader:]):
4149         (-[WebFrameLoader _clearProvisionalDataSource]):
4150         (-[WebFrameLoader _setState:]):
4151         (-[WebFrameLoader clearProvisionalLoad]):
4152         (-[WebFrameLoader commitProvisionalLoad]):
4153         (-[WebFrameLoader stopLoading]):
4154         (-[WebFrameLoader startLoading]):
4155         (-[WebFrameLoader startProvisionalLoad:]):
4156         (-[WebFrameLoader setupForReplace]):
4157         (-[WebFrameLoader _didReceiveResponse:forResource:]):
4158         (-[WebFrameLoader _originalRequest]):
4159         (-[WebFrameLoader _receivedMainResourceError:complete:]):
4160         (-[WebFrameLoader _receivedData:]):
4161         (-[WebFrameLoader _setRequest:]):
4162         (-[WebFrameLoader _isStopping]):
4163         (-[WebFrameLoader _setupForReplaceByMIMEType:]):
4164         (-[WebFrameLoader _setResponse:]):
4165         (-[WebFrameLoader _mainReceivedError:complete:]):
4166         (-[WebFrameLoader _finishedLoading]):
4167         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
4168         (-[WebFrameLoader _loadRequest:archive:]):
4169         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
4170         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
4171         (-[WebFrameLoader reload]):
4172         (-[WebFrameLoader finishedLoadingDocument:]):
4173         (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
4174         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
4175         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
4176         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
4177         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
4178         (-[WebFrameLoader willChangeTitleForDocument:]):
4179         (-[WebFrameLoader didChangeTitleForDocument:]):
4180         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
4181         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
4182         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
4183         * Plugins/WebPluginController.m:
4184         (-[WebPluginController pluginView:receivedResponse:]):
4185         * WebCoreSupport/WebFrameBridge.m:
4186         (-[WebFrameBridge setTitle:]):
4187         (-[WebFrameBridge receivedData:textEncodingName:]):
4188         * WebKit.xcodeproj/project.pbxproj:
4189         * WebView/WebDataSource.m:
4190         (-[WebDataSourcePrivate dealloc]):
4191         (-[WebDataSource _mainDocumentError]):
4192         (-[WebDataSource _loadFromPageCache:]):
4193         (-[WebDataSource _bridge]):
4194         (-[WebDataSource _webView]):
4195         (-[WebDataSource _URLForHistory]):
4196         (-[WebDataSource _documentLoader]):
4197         (-[WebDataSource _initWithDocumentLoader:]):
4198         (-[WebDataSource initWithRequest:]):
4199         (-[WebDataSource dealloc]):
4200         (-[WebDataSource data]):
4201         (-[WebDataSource webFrame]):
4202         (-[WebDataSource initialRequest]):
4203         (-[WebDataSource request]):
4204         (-[WebDataSource response]):
4205         (-[WebDataSource textEncodingName]):
4206         (-[WebDataSource isLoading]):
4207         (-[WebDataSource unreachableURL]):
4208         (-[WebDataSource webArchive]):
4209         * WebView/WebDataSourceInternal.h:
4210         * WebView/WebDocumentLoadStateMac.h: Removed.
4211         * WebView/WebDocumentLoadStateMac.m: Removed.
4212         * WebView/WebDocumentLoaderMac.h: Added.
4213         * WebView/WebDocumentLoaderMac.m: Added.
4214         * WebView/WebFrame.m:
4215         (-[WebFrame _createItem:]):
4216         (-[WebFrame _receivedMainResourceError:]):
4217         (-[WebFrame _transitionToCommitted:]):
4218         (-[WebFrame _opened]):
4219         (-[WebFrame _checkLoadCompleteForThisFrame]):
4220         (-[WebFrame _loadItem:withLoadType:]):