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