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