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