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