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