Reviewed by Darin
[WebKit-https.git] / WebKit / ChangeLog
1 2006-10-24  John Sullivan  <sullivan@apple.com>
2
3         Reviewed by Darin
4         
5         Initial plumbing for grammar checking. No actual grammar are checked at this time.
6
7         * English.lproj/WebViewEditingContextMenu.nib/classes.nib:
8         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
9         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
10         Added grammar-checking item, reworded to match changes in framework. This will be used
11         post-Tiger.
12
13         * English.lproj/WebViewEditingContextMenuOld.nib/classes.nib: Added.
14         * English.lproj/WebViewEditingContextMenuOld.nib/info.nib: Added.
15         * English.lproj/WebViewEditingContextMenuOld.nib/objects.nib: Added.
16         Copy of WebViewEditingContextMenu.nib, unchanged. This will be used on Tiger.
17
18         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
19         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
20         Choose the right context menu based on BUILDING_ON_TIGER.
21         
22         * WebView/WebPreferenceKeysPrivate.h:
23         declare grammar-related NSUserDefault value
24
25         * WebView/WebViewPrivate.h:
26         declare grammar-related methods
27
28         * WebView/WebView.mm:
29         declare static BOOL grammarCheckingEnabled
30         (-[WebViewPrivate init]):
31         initialize grammarCheckingEnabled to NSUserDefaults value
32         (-[WebView validateUserInterfaceItem:]):
33         validate toggleGrammarChecking: menu item
34         (-[WebView isGrammarCheckingEnabled]):
35         return value of grammarCheckingEnabled
36         (-[WebView setGrammarCheckingEnabled:]):
37         set value of grammarCheckingEnabled, call frame to remove existing bad grammar markers
38         (-[WebView toggleGrammarChecking:]):
39         flip the value
40         
41         * WebView/WebFrameInternal.h:
42         * WebView/WebFrame.mm:
43         (-[WebFrame _unmarkAllBadGrammar]):
44         new placeholder method, does nothing yet
45         
46         * WebView/WebHTMLViewInternal.h:
47         declare grammar-related methods
48
49         * WebView/WebHTMLView.m:
50         (-[NSArray validateUserInterfaceItem:]):
51         validate toggleGrammarChecking: menu item
52         (-[WebHTMLView isGrammarCheckingEnabled]):
53         new method, calls through to WebView
54         (-[WebHTMLView setGrammarCheckingEnabled:]):
55         ditto
56         (-[WebHTMLView toggleGrammarChecking:]):
57         ditto
58                 
59         * English.lproj/StringsNotToBeLocalized.txt:
60         Updated for these changes
61         
62         * WebKit.xcodeproj/project.pbxproj:
63         updated for new files        
64
65 2006-10-23  Darin Adler  <darin@apple.com>
66
67         Reviewed by Geoff.
68
69         - converted WebDocumentLoader to C++
70
71         * Plugins/WebPluginController.mm:
72         (-[WebPluginController pluginView:receivedResponse:]):
73         * WebKit.xcodeproj/project.pbxproj:
74         * WebView/WebDataSource.mm:
75         (-[WebDataSourcePrivate dealloc]):
76         (-[WebDataSource _mainDocumentError]):
77         (-[WebDataSource _URL]):
78         (-[WebDataSource _loadFromPageCache:]):
79         (-[WebDataSource _bridge]):
80         (-[WebDataSource _URLForHistory]):
81         (-[WebDataSource _documentLoader]):
82         (-[WebDataSource _initWithDocumentLoader:]):
83         (-[WebDataSource initWithRequest:]):
84         (-[WebDataSource data]):
85         (-[WebDataSource webFrame]):
86         (-[WebDataSource initialRequest]):
87         (-[WebDataSource request]):
88         (-[WebDataSource response]):
89         (-[WebDataSource textEncodingName]):
90         (-[WebDataSource isLoading]):
91         (-[WebDataSource unreachableURL]):
92         (-[WebDataSource webArchive]):
93         * WebView/WebDataSourceInternal.h:
94         * WebView/WebDocumentLoaderMac.h:
95         * WebView/WebDocumentLoaderMac.mm:
96         (WebDocumentLoaderMac::WebDocumentLoaderMac):
97         (WebDocumentLoaderMac::setDataSource):
98         (WebDocumentLoaderMac::dataSource):
99         (WebDocumentLoaderMac::attachToFrame):
100         (WebDocumentLoaderMac::detachFromFrame):
101         * WebView/WebFrame.mm:
102         (-[WebFrame _createItem:]):
103         (-[WebFrame _loadItem:withLoadType:]):
104         (-[WebFrame _addChild:]):
105         (dataSource):
106         (-[WebFrame _dataSourceForDocumentLoader:]):
107         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
108         (-[WebFrame loadArchive:]):
109         (-[WebFrame _updateHistoryForReload]):
110         (-[WebFrame _updateHistoryForStandardLoad]):
111         (-[WebFrame _updateHistoryForInternalLoad]):
112         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
113         (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
114         (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
115         (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
116         (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
117         (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
118         (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
119         (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
120         (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
121         (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
122         (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
123         (-[WebFrame _makeRepresentationForDocumentLoader:]):
124         (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
125         (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
126         (-[WebFrame _clearUnarchivingStateForLoader:]):
127         (-[WebFrame _willChangeTitleForDocument:]):
128         (-[WebFrame _didChangeTitleForDocument:]):
129         (-[WebFrame _finishedLoadingDocument:]):
130         (-[WebFrame _committedLoadWithDocumentLoader:data:]):
131         (-[WebFrame _documentLoader:setMainDocumentError:]):
132         (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
133         (-[WebFrame _createDocumentLoaderWithRequest:]):
134         (-[WebFrame _provisionalLoadStarted]):
135         * WebView/WebFrameInternal.h:
136         * WebView/WebHTMLRepresentation.m:
137         (-[WebHTMLRepresentation title]):
138         * WebView/WebView.mm:
139         (-[WebView _mainFrameOverrideEncoding]):
140
141 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
142
143         RS by Maciej.
144         
145         Gave ObjC++ files .mm extension instead of .m.
146
147         * WebCoreSupport/WebPageBridge.m: Removed.
148         * WebKit.xcodeproj/project.pbxproj:
149         * WebView/WebDocumentLoaderMac.m: Removed.
150
151 2006-10-23  Darin Adler  <darin@apple.com>
152
153         Reviewed by Maciej.
154
155         - converted WebFrameLoader to C++
156
157         * History/WebHistoryItem.m:
158         (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
159         * Plugins/WebBaseNetscapePluginView.mm:
160         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
161         * Plugins/WebNetscapePluginStream.mm:
162         (-[WebNetscapePluginStream start]):
163         (-[WebNetscapePluginStream stop]):
164         * Plugins/WebPluginController.mm:
165         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
166         (-[WebPluginController pluginView:receivedResponse:]):
167         * WebCoreSupport/WebFrameBridge.h:
168         * WebKit.xcodeproj/project.pbxproj:
169         * WebView/WebDataSource.mm:
170         (-[WebDataSource _loadFromPageCache:]):
171         (-[WebDataSource _webView]):
172         (-[WebDataSource webFrame]):
173         * WebView/WebDocumentLoaderMac.h:
174         * WebView/WebDocumentLoaderMac.m:
175         (-[WebDocumentLoaderMac dealloc]):
176         (-[WebDocumentLoaderMac attachToFrame]):
177         (-[WebDocumentLoaderMac detachFromFrame]):
178         * WebView/WebFrame.mm:
179         (+[WebFrame _timeOfLastCompletedLoad]):
180         (-[WebFrame _loadItem:withLoadType:]):
181         (-[WebFrame _loadURL:referrer:intoChild:]):
182         (-[WebFrame _currentBackForwardListItemToResetTo]):
183         (-[WebFrame _itemForRestoringDocState]):
184         (-[WebFrame _frameLoader]):
185         (-[WebFrame _firstLayoutDone]):
186         (-[WebFrame _loadType]):
187         (-[WebFrame provisionalDataSource]):
188         (-[WebFrame dataSource]):
189         (-[WebFrame loadRequest:]):
190         (-[WebFrame loadArchive:]):
191         (-[WebFrame stopLoading]):
192         (-[WebFrame reload]):
193         (-[WebFrame _updateHistoryForCommit]):
194         (-[WebFrame _updateHistoryForReload]):
195         (-[WebFrame _updateHistoryForInternalLoad]):
196         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
197         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
198         (-[WebFrame _deliverArchivedResources]):
199         (-[WebFrame _prepareForDataSourceReplacement]):
200         (-[WebFrame _provisionalLoadStarted]):
201         * WebView/WebFrameInternal.h:
202         * WebView/WebHTMLView.m:
203         (-[WebHTMLView _clearLastHitViewIfSelf]):
204         (-[WebHTMLView _updateMouseoverWithEvent:]):
205         (-[NSArray removeMouseMovedObserverUnconditionally]):
206         (-[NSArray removeMouseMovedObserver]):
207         (-[NSArray viewWillMoveToWindow:]):
208         (-[NSArray viewDidMoveToWindow]):
209         (-[WebHTMLView _canMakeTextSmaller]):
210         (-[WebHTMLView _canMakeTextLarger]):
211         (-[WebHTMLView _canMakeTextStandardSize]):
212         * WebView/WebPDFView.mm:
213         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
214         * WebView/WebView.mm:
215         (-[WebView _close]):
216         (-[WebView setDefersCallbacks:]):
217         (-[WebView setCustomTextEncodingName:]):
218
219 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
220
221         Reviewed by Bradee.
222
223         Moved some page-level operations from WebFrameBridge to WebPageBridge.
224
225         * WebCoreSupport/WebFrameBridge.m:
226         * WebCoreSupport/WebPageBridge.m:
227         (-[WebPageBridge createModalDialogWithURL:referrer:]):
228         (-[WebPageBridge canRunModal]):
229         (-[WebPageBridge canRunModalNow]):
230         (-[WebPageBridge runModal]):
231         * WebKit.xcodeproj/project.pbxproj: Made WebPageBridge.m ObjC++ to support
232         WebCore #includes.
233
234 2006-10-23  John Sullivan  <sullivan@apple.com>
235
236         * WebKitPrefix.h:
237         Removed redundant definition of BUILDING_ON_TIGER that I just added. It turns out this had
238         already been added between the last time I updated in this tree and when I needed it locally.
239
240 2006-10-23  John Sullivan  <sullivan@apple.com>
241
242         Reviewed by Anders
243
244         * WebKit.xcodeproj/project.pbxproj:
245         Move WebKitPrefix.h from Misc group to top level, to match WebCore
246         
247         * WebKitPrefix.h:
248         defined BUILDING_ON_TIGER a la WebCore, in preparation for future use of post-Tiger API
249
250 2006-10-23  Timothy Hatcher  <timothy@apple.com>
251
252         Reviewed by Darin.
253
254         Rename the now ObjC++ files to be .mm and remove the explicit file types.
255
256         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
257         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
258         * English.lproj/StringsNotToBeLocalized.txt:
259         * Plugins/WebBaseNetscapePluginView.m: Removed.
260         * Plugins/WebNetscapePluginStream.m: Removed.
261         * Plugins/WebPluginController.m: Removed.
262         * WebCoreSupport/WebFrameBridge.m: Removed.
263         * WebKit.xcodeproj/project.pbxproj:
264         * WebView/WebDataSource.m: Removed.
265         * WebView/WebFrame.m: Removed.
266         * WebView/WebFrameView.m: Removed.
267         * WebView/WebPDFView.m: Removed.
268         * WebView/WebPolicyDelegate.m: Removed.
269         * WebView/WebView.m: Removed.
270
271 2006-10-23  Timothy Hatcher  <timothy@apple.com>
272
273         Reviewed by Darin.
274
275         Move the undef try/catch to WebKitPrefix.h and include algorithm so we get
276         exception_defines.h and so the undef of try/catch works.
277
278         Break off the BGRA to ARGB code into WebGraphicsExtras.c, this lets
279         WebBaseNetscapePluginView.m safely compile as ObjC++ and not cause the Accelerate
280         framework to complain about C++ exceptions being disabled.
281
282         * Misc/WebGraphicsExtras.c: Added.
283         (WebConvertBGRAToARGB):
284         * Misc/WebGraphicsExtras.h: Added.
285         * Plugins/WebBaseNetscapePluginView.m:
286         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
287         * WebKit.xcodeproj/project.pbxproj:
288         * WebKitPrefix.h:
289         * WebView/WebView.m:
290
291 2006-10-22  Sam Weinig  <sam.weinig@gmail.com>
292
293         Reviewed by Tim H.
294
295         - Add DOMHTMLFormElementPrivate.h to the project.
296
297         * MigrateHeaders.make:
298
299 2006-10-21  Darin Adler  <darin@apple.com>
300
301         Reviewed by Adele.
302
303         - convert WebLoader and its 3 subclasses to C++
304
305         * Plugins/WebNetscapePluginStream.h:
306         * Plugins/WebNetscapePluginStream.m:
307         (-[WebNetscapePluginStream dealloc]):
308         (-[WebNetscapePluginStream finalize]):
309         (-[WebNetscapePluginStream start]):
310         (-[WebNetscapePluginStream cancelLoadWithError:]):
311         (-[WebNetscapePluginStream stop]):
312         * WebCoreSupport/WebFrameBridge.m:
313         (-[WebFrameBridge canRunModalNow]):
314         * WebView/WebFrame.m:
315         (-[WebFramePrivate dealloc]):
316         (-[WebFramePrivate finalize]):
317         (frame): Changed from uppercase to lowercase so that it won't conflict
318         with the WebCore class named Frame.
319         (-[WebFrame _firstChildFrame]):
320         (-[WebFrame _lastChildFrame]):
321         (-[WebFrame _previousSiblingFrame]):
322         (-[WebFrame _nextSiblingFrame]):
323         (-[WebFrame _traverseNextFrameStayWithin:]):
324         (-[WebFrame _immediateChildFrameNamed:]):
325         (-[WebFrame _nextFrameWithWrap:]):
326         (-[WebFrame _previousFrameWithWrap:]):
327         (-[WebFrame findFrameNamed:]):
328         (-[WebFrame parentFrame]):
329         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
330         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
331         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
332         (-[WebFrame _archiveLoadPendingForLoader:]):
333         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
334         (-[WebFrame _clearArchivedResources]):
335         (-[WebFrame _deliverArchivedResources]):
336
337 2006-10-21  Darin Adler  <darin@apple.com>
338
339         Reviewed by Anders.
340
341         - fix http://bugs.webkit.org/show_bug.cgi?id=10328
342           REGRESSION: frame leak reported by buildbot
343
344         * WebCoreSupport/WebEditorClient.mm:
345         (WebEditorClient::WebEditorClient): Don't retain the web view.
346         (WebEditorClient::~WebEditorClient): Don't release the web view.
347         (WebEditorClient::setWebView): Ditto.
348
349         * WebCoreSupport/WebFrameBridge.m:
350         (-[WebFrameBridge finishInitializingWithFrameName:view:]): Added. Common code for use by both
351         init methods below.
352         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Changed to use new method.
353         Also added comment pointing out design flaw -- we attach the client to the web view here,
354         but we need to be sure to detach in case the web view is deallocated first.
355         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
356
357 2006-10-21  Darin Adler  <darin@apple.com>
358
359         Reviewed by Adam.
360
361         - http://bugs.webkit.org/show_bug.cgi?id=11376
362           build scripts should invoke make with "-j" option for multiple processors
363
364         * WebKit.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
365
366 2006-10-21  Timothy Hatcher  <timothy@apple.com>
367
368         Reviewed by Geoff.
369
370         <rdar://problem/4478625> HTML Editing: Basic table editing and culling
371
372         Initial implementaltion of table deletion user interface:
373         * Adds a new editing delegate method, webView:shouldShowDeleteInterfaceForElement:.
374         * The new delegate method is called from the new shouldShowDeleteInterface EditorClient function.
375
376         * DefaultDelegates/WebDefaultEditingDelegate.m:
377         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]):
378         * WebCoreSupport/WebEditorClient.h:
379         * WebCoreSupport/WebEditorClient.mm:
380         (WebEditorClient::WebEditorClient):
381         (WebEditorClient::shouldDeleteRange):
382         (WebEditorClient::shouldShowDeleteInterface):
383         * WebKit.xcodeproj/project.pbxproj:
384         * WebView/WebEditingDelegatePrivate.h: Added.
385
386 2006-10-21  Alice Liu  <alice.liu@apple.com>
387
388         Reviewed by Maciej.
389
390         fix leaks.
391
392         * WebCoreSupport/WebEditorClient.mm:
393         (WebEditorClient::setWebView):
394         only change webview if its different
395
396         * WebCoreSupport/WebFrameBridge.m:
397         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
398         actually use the client allocated in the line above instead of
399         allocation again, duh. 
400
401 2006-10-21  Alice Liu  <alice.liu@apple.com>
402
403         Build fix.
404
405         * WebCoreSupport/WebEditorClient.h:
406         * WebCoreSupport/WebEditorClient.mm:
407         (WebEditorClient::setWebView):
408
409 2006-10-20  Alice Liu  <alice.liu@apple.com>
410
411         Reviewed by Tim Hatcher.
412
413         Fixed a problem where the webview passed to the EditorClient wasn't valid yet.  
414
415         * WebCoreSupport/WebEditorClient.h:
416         (WebEditorClient::setWebView):
417         added webview setter
418
419         * WebCoreSupport/WebEditorClient.mm:
420         (WebEditorClient::WebEditorClient):
421         add default constructor
422
423         * WebCoreSupport/WebFrameBridge.m:
424         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
425         use [page webView] since _webview isn't valid yet
426         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
427         use webview setter on editorclient
428
429 2006-10-20  David Hyatt  <hyatt@apple.com>
430
431         Tweak cache sizes so that they are back to the way they were,
432         except for < 512, which will stay doubled.
433
434         Reviewed by Tim H.
435
436         * WebCoreSupport/WebFrameBridge.m:
437         (-[WebFrameBridge getObjectCacheSize]):
438
439 2006-10-20  Alice Liu  <alice.liu@apple.com>
440
441         Reviewed by Maciej.
442
443         Adding knowledge of EditorClient to WebKit
444
445         * WebCoreSupport/WebEditorClient.h: Added.
446
447         * WebCoreSupport/WebEditorClient.mm: Added.
448         (WebEditorClient::WebEditorClient):
449         (WebEditorClient::~WebEditorClient):
450         (WebEditorClient::shouldDeleteRange):
451         Implementation of mac EditorClient
452
453         * WebCoreSupport/WebFrameBridge.m:
454         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
455         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
456         create an editor client to pass down the chain of constructors
457
458         * WebKit.xcodeproj/project.pbxproj:
459         Added related EditorClient files
460
461         * WebKitPrefix.h:
462         Added tiger build flag in order to make certain private headers from webcore compile successfully
463
464 2006-10-20  Darin Adler  <darin@apple.com>
465
466         - rolled out my loader change; caused world leak and possibly a plug-in crash
467
468 2006-10-20  Darin Adler  <darin@apple.com>
469
470         Reviewed by Adele.
471
472         - convert WebLoader and its 3 subclasses to C++
473
474         * Plugins/WebNetscapePluginStream.h:
475         * Plugins/WebNetscapePluginStream.m:
476         (-[WebNetscapePluginStream dealloc]):
477         (-[WebNetscapePluginStream finalize]):
478         (-[WebNetscapePluginStream start]):
479         (-[WebNetscapePluginStream cancelLoadWithError:]):
480         (-[WebNetscapePluginStream stop]):
481         * WebCoreSupport/WebFrameBridge.m:
482         (-[WebFrameBridge canRunModalNow]):
483         * WebView/WebFrame.m:
484         (-[WebFramePrivate dealloc]):
485         (-[WebFramePrivate finalize]):
486         (frame): Changed from uppercase to lowercase so that it won't conflict
487         with the WebCore class named Frame.
488         (-[WebFrame _firstChildFrame]):
489         (-[WebFrame _lastChildFrame]):
490         (-[WebFrame _previousSiblingFrame]):
491         (-[WebFrame _nextSiblingFrame]):
492         (-[WebFrame _traverseNextFrameStayWithin:]):
493         (-[WebFrame _immediateChildFrameNamed:]):
494         (-[WebFrame _nextFrameWithWrap:]):
495         (-[WebFrame _previousFrameWithWrap:]):
496         (-[WebFrame findFrameNamed:]):
497         (-[WebFrame parentFrame]):
498         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
499         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
500         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
501         (-[WebFrame _archiveLoadPendingForLoader:]):
502         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
503         (-[WebFrame _clearArchivedResources]):
504         (-[WebFrame _deliverArchivedResources]):
505
506 2006-10-20  John Sullivan  <sullivan@apple.com>
507
508         Reviewed by Darin
509         
510         - fixed <rdar://problem/4794935> setAcceptsMouseMovedEvents: is called for every layout, 
511           taking ~1% on the PLT test
512
513         * WebView/WebHTMLView.m:
514         (-[NSArray layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
515         Don't call setAcceptsMouseMovedEvents: and WKSetNSWindowShouldPostEventNotifications() here
516         because this is called too often.
517         
518         * WebView/WebView.m:
519         (-[WebView viewWillMoveToWindow:]):
520         Do call them here, because this is guaranteed to be called at least once for each window
521         containing a webview, but isn't called too often. Also restructured this method a little.
522
523 2006-10-19  Timothy Hatcher  <timothy@apple.com>
524
525         Reviewed by Anders.
526
527         Bug 11366: Web Inspector should show user agent style rules
528         http://bugs.webkit.org/show_bug.cgi?id=11366
529
530         * WebInspector/WebInspector.m:
531         (-[WebInspector init]):
532         (-[WebInspector showOptionsMenu]):
533         (-[WebInspector _toggleShowUserAgentStyles:]):
534         * WebInspector/WebInspectorInternal.h:
535         * WebInspector/webInspector/inspector.js:
536
537 2006-10-19  Brady Eidson <beidson@apple.com>
538
539         Build fix - 2gig is on that pesky signed/unsigned limit...
540
541         * WebCoreSupport/WebFrameBridge.m:
542         (-[WebFrameBridge getObjectCacheSize]):
543
544 2006-10-19  Brady Eidson  <beidson@apple.com>
545
546         Reviewed by Hyatt.
547
548         Death to 16777216.  Long live 33554432.
549         (Cache size changed needs to be reflected in localization file)
550
551         * English.lproj/StringsNotToBeLocalized.txt:
552
553 2006-10-19  Brady Eidson  <beidson@apple.com>
554
555         Reviewed by Hyatt
556
557         Added an larger in-memory level of cache for machines with 2+gb ram
558
559         * WebCoreSupport/WebFrameBridge.m:
560         (-[WebFrameBridge getObjectCacheSize]):
561
562 2006-10-19  Brady Eidson  <beidson@apple.com>
563
564         Reviewed by Hyatt
565
566         Double the default memory cache size
567
568         * WebView/WebPreferences.m:
569         (+[WebPreferences initialize]):
570
571 2006-10-19  John Sullivan  <sullivan@apple.com>
572
573         Reviewed by Kevin D and Geoff
574
575         * WebKit.xcodeproj/project.pbxproj:
576         version wars
577         
578         Cleaned up this file, as follows:
579         - renamed all file-internal methods to start with underscores
580         - moved all file-internal methods into a FileInternal category block, and alphabetized them
581         - grouped all other methods by where/how they were defined (delegate methods, protocol methods, overrides, etc.)
582         - removed unstylish braces around one-line clauses
583         
584         * WebView/WebPDFView.m:
585         (_applicationInfoForMIMEType):
586         (_PDFSelectionsAreEqual):
587         (+[WebPDFView supportedMIMETypes]):
588         (-[WebPDFView setPDFDocument:]):
589         (-[WebPDFView dealloc]):
590         (-[WebPDFView centerSelectionInVisibleArea:]):
591         (-[WebPDFView scrollPageDown:]):
592         (-[WebPDFView scrollPageUp:]):
593         (-[WebPDFView scrollLineDown:]):
594         (-[WebPDFView scrollLineUp:]):
595         (-[WebPDFView scrollToBeginningOfDocument:]):
596         (-[WebPDFView scrollToEndOfDocument:]):
597         (-[WebPDFView jumpToSelection:]):
598         (-[WebPDFView acceptsFirstResponder]):
599         (-[WebPDFView becomeFirstResponder]):
600         (-[WebPDFView hitTest:]):
601         (-[WebPDFView initWithFrame:]):
602         (-[WebPDFView menuForEvent:]):
603         (-[WebPDFView setNextKeyView:]):
604         (-[WebPDFView viewDidMoveToWindow]):
605         (-[WebPDFView viewWillMoveToWindow:]):
606         (-[WebPDFView validateUserInterfaceItem:]):
607         (-[WebPDFView copy:]):
608         (-[WebPDFView takeFindStringFromSelection:]):
609         (-[WebPDFView canPrintHeadersAndFooters]):
610         (-[WebPDFView printOperationWithPrintInfo:]):
611         (-[WebPDFView viewWillMoveToHostWindow:]):
612         (-[WebPDFView viewDidMoveToHostWindow]):
613         (-[WebPDFView elementAtPoint:]):
614         (-[WebPDFView elementAtPoint:allowShadowContent:]):
615         (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
616         (-[WebPDFView viewState]):
617         (-[WebPDFView setViewState:]):
618         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
619         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
620         (+[WebPDFView _PDFPreviewViewClass]):
621         (+[WebPDFView _PDFViewClass]):
622         (-[WebPDFView _anyPDFTagsFoundInMenu:]):
623         (-[WebPDFView _applyPDFDefaults]):
624         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
625         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
626         (-[WebPDFView _openWithFinder:]):
627         (-[WebPDFView _path]):
628         (-[WebPDFView _PDFSubview]):
629         (-[WebPDFView _pointIsInSelection:]):
630         (-[WebPDFView _receivedPDFKitLaunchNotification:]):
631         (-[WebPDFView _scaledAttributedString:]):
632         (-[WebPDFView _trackFirstResponder]):
633         (-[PDFPrefUpdatingProxy forwardInvocation:]):
634         (-[PDFPrefUpdatingProxy methodSignatureForSelector:]):
635
636 2006-10-19  John Sullivan  <sullivan@apple.com>
637
638         Reviewed by Kevin Decker
639         
640         - fixed <rdar://problem/4792761> Safari should use fancier embedded PDFKit stuff when it's available
641
642         * WebKit.xcodeproj/project.pbxproj:
643         version wars
644         
645         * WebView/WebFrameView.m:
646         (-[WebFrameView _makeDocumentViewForDataSource:]):
647         initialize document view with frame view's rect instead of empty rect. This avoids some problems when 
648         constructing view hierarchies from nibs
649         
650         * WebView/WebPreferencesPrivate.h:
651         declare new _usePDFPreviewView and _setUsePDFPreviewView:, used for debugging
652         * WebView/WebPreferenceKeysPrivate.h:
653         declare new preference key string
654         * WebView/WebPreferences.m:
655         (+[WebPreferences initialize]):
656         initialize new preference to true (we will by default use the new view if it's available)
657         (-[WebPreferences _usePDFPreviewView]):
658         new accessor for new pref
659         (-[WebPreferences _setUsePDFPreviewView:]):
660         ditto
661
662         * WebView/WebPDFView.h:
663         new previewView ivar
664         
665         * WebView/WebPDFView.m:
666         (+[WebPDFView PDFPreviewViewClass]):
667         new method, returns class to use for fancier embedded PDFKit stuff, or nil if fancy stuff isn't available
668         (-[WebPDFView initWithFrame:]):
669         now tries to use fancier embedded PDFKit stuff if it's available and the pref is set to use it; falls back
670         to old behavior otherwise
671         (-[WebPDFView dealloc]):
672         release new previewView ivar (retained in initWithFrame:)
673         (-[WebPDFView viewWillMoveToWindow:]):
674         stop observing PDFKit notification when we're removed from window
675         (-[WebPDFView viewDidMoveToWindow]):
676         start observing PDFKit notification when we're added to window
677         (-[WebPDFView _receivedPDFKitLaunchNotification:]):
678         respond to this new PDFKit notification by opening the document via NSWorkspace
679         
680         * English.lproj/StringsNotToBeLocalized.txt:
681         updated for lots of recent changes
682         
683 2006-10-19  Sam Weinig  <sam.weinig@gmail.com>
684
685         Reviewed by ap.
686
687         Win32 build fix.
688
689         * COM/WebFrame.cpp:
690         (WebFrame::initWithName):
691         (WebFrame::createNewWindow):
692
693 2006-10-19  Mitz Pettel  <mitz@webkit.org>
694
695         Reviewed and landed by ap.
696
697         - fixed the inspector's tree popup
698
699         * WebInspector/webInspector/inspector.html:
700
701 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
702
703         Reviewed by Maciej.
704
705         Win32 build fix.
706
707         * COM/WebFrame.cpp:
708         (WebFrame::createNewWindow):
709         * COM/WebFrame.h:
710
711 2006-10-18  Anders Carlsson  <acarlsson@apple.com>
712
713         Reviewed by Adam.
714
715         http://bugs.webkit.org/show_bug.cgi?id=11000
716         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
717         
718         * WebCoreSupport/WebFrameBridge.m:
719         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
720         Return ObjectElementFrame if the MIME type is one of the image ones we support.
721
722 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
723
724         Reviewed by harrison
725         
726         <rdar://problem/4765600>
727         REGRESSION: Mail.app: smart deletion of words does not work
728         
729         Regressed when we pushed selecion expansion down into WebCore.  It's OK
730         to try a smart delete from _deleteWithDirection:, which is called by
731         deleteFoward: and deleteBackward: if the current selection is a 
732         range.
733     
734         * WebView/WebHTMLView.m:
735         (-[NSArray _deleteWithDirection:granularity:killRing:isTypingAction:]):
736
737 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
738
739         Reviewed by harrison
740         
741         <rdar://problem/3655385>
742         Editing: -indent: method unimplemented
743
744         * WebView/WebHTMLView.m:
745         (-[NSArray validateUserInterfaceItem:]): Only allow indent:/outdent: in
746         richly editable areas.
747         (-[NSArray indent:]):
748         (-[NSArray outdent:]):
749
750 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
751
752         Not reviewed, build fix.
753         
754         * icu/unicode/putil.h: Added - needed for build if you don't have apple internal headers.
755
756 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
757
758         Not reviewed, build fix.
759         
760         * icu/unicode/ustring.h: Added - needed for build if you don't have apple internal headers.
761
762 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
763
764         Reviewed by Anders.
765         
766         - add a bunch of casts to get this compiling with older Xcode versions
767         
768         (I used static_cast so it will be easier to find and remove these once we have completely moved
769         on to a new enough compiler version.)
770
771         * Plugins/WebBaseNetscapePluginView.m:
772         (+[WebBaseNetscapePluginView getCarbonEvent:]):
773         (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
774         (-[WebBaseNetscapePluginView fixWindowPort]):
775         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
776         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
777         (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
778         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
779         * WebKit.xcodeproj/project.pbxproj:
780
781 2006-10-13  Kevin McCullough  <KMcCullough@apple.com>
782
783         Changed by Darin, reviewed by me.
784
785         * Plugins/WebNetscapePluginStream.m: Fixed case of import so we can compile on
786         case-sensitive file system.
787
788 2006-10-13  Darin Adler  <darin@apple.com>
789
790         Reviewed by Adele.
791
792         - converted WebFormState from Objective-C to C++
793
794         * ForwardingHeaders: Added an entire copy of WebCore's forwarding headers here.
795         We should eventually come up with a more-elegant solution.
796
797         * WebKit.xcodeproj/project.pbxproj: Added ForwardingHeaders to the include paths.
798         Converted many files from Objective-C to Objective-C++. In a later check-in, I'll
799         rename them to .mm instead of .m. Removed C-only warning options for now. In a
800         later check-in I will add these back in a way that omits them for C++.
801
802         * Plugins/WebPluginContainerCheck.m: Updated for header changes.
803
804         * WebView/WebFrameInternal.h: Updated for header changes. Removed WebFrameLoaderClient category
805         so this file can still be used by Objective-C code (not just Objective-C++).
806
807         * WebView/WebFrame.m: Put WebFrameLoaderClient category in here.
808         (-[WebFrame _loadItem:withLoadType:]): Changed to use 0 instead of nil for FormState and fixed
809         enum code for C++ compatibility.
810         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Added call to setFrameLoaderClient: here.
811         (-[WebFrame _updateHistoryForCommit]): Fixed enum code for C++ compatibility.
812         (-[WebFrame _updateHistoryForReload]): Ditto.
813
814         * WebCoreSupport/WebFrameBridge.m:
815         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Removed call to setFrameLoaderClient:.
816         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
817         (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Fixed enum code for C++ compatibility.
818         (-[WebFrameBridge runModal]): Changed code to not use "namespace" as a local variable name.
819
820         * WebView/WebPDFView.m: Added extern "C" so this can compile as Objective-C++.
821
822 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
823
824         Reviewed by Oliver.
825         
826         - liberate more WebKit code down to WebCore
827
828         * WebCoreSupport/WebFrameBridge.h:
829         * WebCoreSupport/WebFrameBridge.m:
830
831 2006-10-12  Adele Peterson  <adele@apple.com>
832
833         Reviewed by Maciej.
834
835         WebKit part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
836
837         Added private delegate method for clients that want access to a PopupMenu's NSMenu.
838
839         * DefaultDelegates/WebDefaultUIDelegate.m: (-[NSApplication webView:willPopupMenu:]):
840         * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge willPopupMenu:]):
841         * WebView/WebUIDelegatePrivate.h:
842
843 2006-10-12  MorganL  <morganl.webkit@yahoo.com>
844
845         Reviewed/landed by Adam.
846
847         Fixes http://bugs.webkit.org/show_bug.cgi?id=11264
848         Windows build busted
849
850         * COM/WebFrame.cpp:
851         (WebFrame::receivedResponse):
852
853 2006-10-11  Darin Adler  <darin@apple.com>
854
855         Reviewed by Adele.
856
857         - preparations for making more code C++
858
859         * WebKitPrefix.h: Fixed ifdef so that C++ files get all the precompiled stuff
860         that non-C++ files get.
861
862         * Misc/WebKitLogging.h:
863         * Misc/WebKitSystemBits.h:
864         * Misc/WebLocalizableStrings.h:
865         * WebCoreSupport/WebSystemInterface.h:
866         Added extern "C".
867
868         * Misc/WebNSViewExtras.h:
869         * WebView/WebDataSource.m: (addTypesFromClass):
870         * WebView/WebFrameView.m: (addTypesFromClass):
871         Eliminated use of the identifier "class".
872
873         * WebView/WebView.m: (-[WebView _goToItem:withLoadType:]): Added a type cast.
874
875         * Plugins/WebBaseNetscapePluginView.m: Added lots of type casts.
876
877 2006-10-10  Brady Eidson  <beidson@apple.com>
878
879         Reviewed by Maciej.
880
881         Moved WebFrameLoader into WebCoreFrameBridge
882
883         * WebCoreSupport/WebFrameBridge.h:
884         * WebCoreSupport/WebFrameBridge.m:
885         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
886         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
887         (-[WebFrameBridge dealloc]):
888         (-[WebFrameBridge setTitle:]):
889         (-[WebFrameBridge receivedData:textEncodingName:]):
890         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
891         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
892         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
893         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
894         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
895         (-[WebFrameBridge reportClientRedirectCancelled:]):
896         (-[WebFrameBridge close]):
897         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
898         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
899         (-[WebFrameBridge tokenizerProcessedData]):
900         (-[WebFrameBridge frameDetached]):
901         (-[WebFrameBridge didFirstLayout]):
902         (-[WebFrameBridge notifyIconChanged:]):
903         (-[WebFrameBridge originalRequestURL]):
904         (-[WebFrameBridge isLoadTypeReload]):
905
906 2006-10-10  Adele Peterson  <adele@apple.com>
907
908         Reviewed by Beth.
909
910         Removed handleAutoscrollForMouseDragged.  Except for autoscroll caused by drag and drop, all other
911         autoscrolling should be done in WebCore instead of in AppKit.
912
913         * WebCoreSupport/WebFrameBridge.m:
914         * WebView/WebHTMLView.m:
915         * WebView/WebHTMLViewPrivate.h:
916
917 2006-10-10  Darin Adler  <darin@apple.com>
918
919         - corrected an archive regression caused by loader refactoring
920           (pointed out by Graham Dennis)
921
922         * WebView/WebFrame.m: (-[WebFrame _deliverArchivedResourcesAfterDelay]):
923         Fix selector name.
924
925 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
926
927         Rubber stamped by Eric.
928         
929         - moved a whole bunch of stuff over to WebCore - updated includes appropriately
930
931         * Loader/LoaderNSURLExtras.h: Removed.
932         * Loader/LoaderNSURLExtras.m: Removed.
933         * Loader/WebDataProtocol.h: Removed.
934         * Loader/WebDataProtocol.m: Removed.
935         * Loader/WebDocumentLoader.h: Removed.
936         * Loader/WebDocumentLoader.m: Removed.
937         * Loader/WebFormDataStream.h: Removed.
938         * Loader/WebFormDataStream.m: Removed.
939         * Loader/WebFormState.h: Removed.
940         * Loader/WebFormState.m: Removed.
941         * Loader/WebFrameLoader.h: Removed.
942         * Loader/WebFrameLoader.m: Removed.
943         * Loader/WebFrameLoaderClient.h: Removed.
944         * Loader/WebLoader.h: Removed.
945         * Loader/WebLoader.m: Removed.
946         * Loader/WebMainResourceLoader.h: Removed.
947         * Loader/WebMainResourceLoader.m: Removed.
948         * Loader/WebNetscapePlugInStreamLoader.h: Removed.
949         * Loader/WebNetscapePlugInStreamLoader.m: Removed.
950         * Loader/WebPlugInStreamLoaderDelegate.h: Removed.
951         * Loader/WebPolicyDecider.h: Removed.
952         * Loader/WebPolicyDecider.m: Removed.
953         * Loader/WebSubresourceLoader.h: Removed.
954         * Loader/WebSubresourceLoader.m: Removed.
955         * Misc/WebNSURLExtras.m:
956         * Plugins/WebBaseNetscapePluginStream.h:
957         * Plugins/WebBaseNetscapePluginView.m:
958         * Plugins/WebNetscapePluginStream.m:
959         * Plugins/WebPluginContainerCheck.m:
960         * Plugins/WebPluginController.m:
961         * WebCoreSupport/WebFrameBridge.m:
962         * WebKit.xcodeproj/project.pbxproj:
963         * WebView/WebDataSource.m:
964         * WebView/WebDocumentLoaderMac.h:
965         * WebView/WebFrame.m:
966         * WebView/WebFrameInternal.h:
967         * WebView/WebHTMLView.m:
968         * WebView/WebPolicyDeciderMac.h:
969         * WebView/WebPolicyDelegate.m:
970         * WebView/WebView.m:
971
972 2006-10-10  Mark Rowe  <bdash@webkit.org>
973
974         Reviewed by Maciej.
975
976         Fix crash on launch in nightly builds after r16965.
977
978         Safari will sometimes call through to -[NSURL _webkit_canonicalize] before creating a WebView.  If this happens,
979         InitWebCoreSystemInterface has not yet been called so the call to wkNSURLProtocolClassForReqest is via a garbage
980         pointer.
981
982         * Misc/WebNSURLExtras.m:
983         (-[NSURL _webkit_canonicalize]): Ensure InitWebCoreSystemInterface is called prior to canonicalURL.
984
985 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
986
987         Reviewed by Oliver.
988         
989         - split out some NSURL extras to be moved to WebCore
990
991         * Loader/LoaderNSURLExtras.h: Added.
992         * Loader/LoaderNSURLExtras.m: Added.
993         (urlByRemovingComponent):
994         (urlByRemovingFragment):
995         (urlOriginalDataAsString):
996         (urlOriginalData):
997         (urlWithData):
998         (WebCFAutorelease):
999         (urlWithDataRelativeToURL):
1000         (urlByRemovingResourceSpecifier):
1001         (urlIsFileURL):
1002         (stringIsFileURL):
1003         (urlIsEmpty):
1004         (canonicalURL):
1005         * Loader/WebFrameLoader.m:
1006         (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
1007         (setHTTPReferrer):
1008         (-[WebFrameLoader commitProvisionalLoad:]):
1009         (-[WebFrameLoader _notifyIconChanged:]):
1010         (-[WebFrameLoader didChangeTitleForDocument:]):
1011         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
1012         (-[WebFrameLoader safeLoadURL:]):
1013         * Misc/WebNSURLExtras.m:
1014         (+[NSURL _web_URLWithData:]):
1015         (+[NSURL _web_URLWithData:relativeToURL:]):
1016         (-[NSURL _web_originalData]):
1017         (-[NSURL _web_originalDataAsString]):
1018         (-[NSURL _web_isEmpty]):
1019         (-[NSURL _webkit_canonicalize]):
1020         (-[NSURL _webkit_URLByRemovingComponent:]):
1021         (-[NSURL _webkit_URLByRemovingFragment]):
1022         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
1023         (-[NSURL _webkit_isFileURL]):
1024         (-[NSString _webkit_isFileURL]):
1025         * WebCoreSupport/WebSystemInterface.m:
1026         (InitWebCoreSystemInterface):
1027         * WebKit.xcodeproj/project.pbxproj:
1028
1029 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1030
1031         Reviewed by Anders.
1032         
1033         - sever final WebFrame dependencies
1034
1035         * Loader/WebFrameLoader.h:
1036         * Loader/WebFrameLoader.m:
1037         (-[WebFrameLoader initWithFrame:client:]):
1038         (-[WebFrameLoader defersCallbacksChanged]):
1039         (-[WebFrameLoader subframeIsLoading]):
1040         (-[WebFrameLoader transitionToCommitted:]):
1041         (-[WebFrameLoader detachChildren]):
1042         (-[WebFrameLoader checkLoadComplete]):
1043
1044 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1045
1046         Reviewed by Brady.
1047         
1048         - convert more WebFrameLoader stuff to be independent of WebFrame
1049
1050         * Loader/WebFrameLoader.h:
1051         * Loader/WebFrameLoader.m:
1052         (-[WebFrameLoader stopLoadingSubframes]):
1053         (-[WebFrameLoader _receivedMainResourceError:complete:]):
1054         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1055         (-[WebFrameLoader closeOldDataSources]):
1056         (-[WebFrameLoader isHostedByObjectElement]):
1057         (-[WebFrameLoader isLoadingMainFrame]):
1058         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1059         (-[WebFrameLoader transitionToCommitted:]):
1060         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1061         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1062         (-[WebFrameLoader loadRequest:inFrameNamed:]):
1063         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1064         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
1065         (-[WebFrameLoader client]):
1066         * Loader/WebFrameLoaderClient.h:
1067         * WebView/WebDataSource.m:
1068         (-[WebDataSource _webView]):
1069         (-[WebDataSource webFrame]):
1070         * WebView/WebFrame.m:
1071         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
1072
1073 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1074
1075         Reviewed by Anders and Oliver.
1076         
1077         - move a bunch of WebFrame methods from the Internal category to the WebFrameLoader protocol
1078
1079         * Loader/WebFrameLoader.h:
1080         * Loader/WebFrameLoader.m:
1081         (-[WebFrameLoader loadRequest:]):
1082         (-[WebFrameLoader loadRequest:inFrameNamed:]):
1083         * Loader/WebFrameLoaderClient.h:
1084         * WebView/WebFrame.m:
1085         (-[WebFrame loadRequest:]):
1086         (-[WebFrame _dispatchDidCommitLoadForFrame]):
1087         (-[WebFrame _hasFrameView]):
1088         (-[WebFrame _frameLoadCompleted]):
1089         (-[WebFrame _restoreScrollPositionAndViewState]):
1090         (-[WebFrame _setTitle:forURL:]):
1091         (-[WebFrame _createDocumentLoaderWithRequest:]):
1092         (-[WebFrame _prepareForDataSourceReplacement]):
1093         (-[WebFrame _didFinishLoad]):
1094         (-[WebFrame _addHistoryItemForFragmentScroll]):
1095         (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
1096         (-[WebFrame _provisionalLoadStarted]):
1097         * WebView/WebFrameInternal.h:
1098
1099 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1100
1101         Not reviewed, build fix.
1102         
1103         - added forgotten files
1104
1105         * Loader/WebPolicyDecider.h: Added.
1106         * Loader/WebPolicyDecider.m: Added.
1107         (-[WebPolicyDecider invalidate]):
1108
1109 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1110
1111         Reviewed by Brady.
1112         
1113         - add wrapper for WebPolicyDecisionListener so we can remove the dependency from WebFrameLoader.
1114
1115         * Loader/WebFrameLoader.h:
1116         * Loader/WebFrameLoader.m:
1117         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1118         (-[WebFrameLoader cancelContentPolicy]):
1119         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
1120         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1121         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
1122         (-[WebFrameLoader continueAfterWillSubmitForm:]):
1123         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1124         * Loader/WebFrameLoaderClient.h:
1125         * WebKit.xcodeproj/project.pbxproj:
1126         * WebView/WebFrame.m:
1127         (-[WebFrame _createPolicyDeciderWithTarget:action:]):
1128         (decisionListener):
1129         (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decider:]):
1130         (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decider:]):
1131         (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decider:]):
1132         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
1133         * WebView/WebPolicyDeciderMac.h: Added.
1134         * WebView/WebPolicyDeciderMac.m: Added.
1135         (-[WebPolicyDeciderMac initWithTarget:action:]):
1136         (-[WebPolicyDeciderMac dealloc]):
1137         (-[WebPolicyDeciderMac decisionListener]):
1138         (-[WebPolicyDeciderMac invalidate]):
1139
1140 2006-10-09  Brady Eidson  <beidson@apple.com>
1141
1142         Reviewed by John
1143
1144         http://bugs.webkit.org/show_bug.cgi?id=11195
1145         Added the WebIconDatabaseDelegate.  This allows the ability to allow customization of 
1146         IconDatabase behavior in the future, starting now with the ability to override the 
1147         default icon fairly flexibly
1148
1149         * Misc/WebIconDatabase.h: Added setIconDatabaseDelegate:
1150         * Misc/WebIconDatabase.m:
1151         (-[WebIconDatabase iconForURL:withSize:cache:]): Call the delegate for the default icon if delegate is set
1152         (-[WebIconDatabase defaultIconForURL:withSize:]): Get the default icon through the delegate if available, built-in if not
1153         (-[WebIconDatabase setDelegate:]):
1154         (-[WebIconDatabase delegate]):
1155         * Misc/WebIconDatabaseDelegate.h: Added.
1156         * Misc/WebIconDatabasePrivate.h: Added the delegate, nuked an unused class definition
1157         * WebKit.xcodeproj/project.pbxproj:
1158
1159 2006-10-09  Darin Adler  <darin@apple.com>
1160
1161         Reviewed by Maciej.
1162
1163         - eliminated uses of WebResource and WebView from WebFrameLoader
1164
1165         * Loader/WebFrameLoader.h:
1166         * Loader/WebFrameLoader.m:
1167         (-[WebFrameLoader setDefersCallbacks:]):
1168         (-[WebFrameLoader stopLoading]):
1169         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1170         (-[WebFrameLoader archiveLoadPendingForLoader:]):
1171         (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
1172         (-[WebFrameLoader _canShowMIMEType:]):
1173         (-[WebFrameLoader _representationExistsForURLScheme:]):
1174         (-[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1175         (-[WebFrameLoader loadDocumentLoader:]):
1176         (-[WebFrameLoader continueAfterNavigationPolicy:]):
1177         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
1178         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
1179         * Loader/WebFrameLoaderClient.h:
1180         * Loader/WebMainResourceLoader.m:
1181         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1182         (-[WebMainResourceLoader loadWithRequestNow:]):
1183         * WebView/WebFrame.m:
1184         (-[WebFramePrivate dealloc]):
1185         (-[WebFrame loadRequest:]):
1186         (-[WebFrame loadArchive:]):
1187         (-[WebFrame _canUseResourceForRequest:]):
1188         (-[WebFrame _canUseResourceWithResponse:]):
1189         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
1190         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
1191         (-[WebFrame _archiveLoadPendingForLoader:]):
1192         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
1193         (-[WebFrame _clearArchivedResources]):
1194         (-[WebFrame _deliverArchivedResources]):
1195         (-[WebFrame _setDefersCallbacks:]):
1196         (-[WebFrame _canHandleRequest:]):
1197         (-[WebFrame _canShowMIMEType:]):
1198         (-[WebFrame _representationExistsForURLScheme:]):
1199         (-[WebFrame _generatedMIMETypeForURLScheme:]):
1200         (-[WebFrame _elementForEvent:]):
1201
1202 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1203
1204         Reviewed by Darin.
1205         
1206         - do all the stuff that setting the referrer should
1207
1208         * Loader/WebFrameLoader.m:
1209         (setHTTPReferrer):
1210         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1211         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1212         * WebKit.xcodeproj/project.pbxproj:
1213
1214 2006-10-09  Brady Eidson  <beidson@apple.com>
1215
1216         Reviewed by Maciej
1217
1218         Fix to elminate WebIconDatabaseBridge.h from WebFrameLoader
1219
1220         * Loader/WebFrameLoader.m:
1221         (-[WebFrameLoader _notifyIconChanged:]):
1222         * WebCoreSupport/WebIconDatabaseBridge.m:
1223         (+[WebIconDatabaseBridge createInstance]):
1224
1225 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1226
1227         Reviewed by Darin.
1228         
1229         (Was reviewed as part of a larger patch but it looks like Darin already did the rest of it)
1230         
1231         - avoid a needless use of WebFrame
1232
1233         * Loader/WebFrameLoader.m:
1234         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1235
1236 2006-10-09  Brady Eidson  <beidson@apple.com>
1237
1238         A *real* fake fix for the layouttest problem until the real fix
1239
1240         * Loader/WebFrameLoader.m:
1241         (-[WebFrameLoader _notifyIconChanged:]):
1242
1243 2006-10-09  Brady Eidson  <beidson@apple.com>
1244
1245         Quick layouttest fix until I make the real fix
1246
1247         * Loader/WebFrameLoader.m:
1248
1249 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1250
1251         Reviewed by Darin.
1252         
1253         - wean WebFrameLoader from WebDataSource private stuff
1254         
1255         (actually just tweaks tot he above to make merging my future
1256         patches easier since Darin did a lot of the same stuff)
1257
1258         * Loader/WebDocumentLoader.h:
1259         * Loader/WebDocumentLoader.m:
1260         (-[WebDocumentLoader URLForHistory]):
1261         * Loader/WebFrameLoader.m:
1262         (-[WebFrameLoader _loadRequest:archive:]):
1263         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
1264         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
1265         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
1266         (-[WebFrameLoader didChangeTitleForDocument:]):
1267         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1268         * Loader/WebFrameLoaderClient.h:
1269         * WebView/WebDataSource.m:
1270         (-[WebDataSource _URLForHistory]):
1271         * WebView/WebFrame.m:
1272         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
1273         (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
1274         (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
1275         (-[WebFrame _clearUnarchivingStateForLoader:]):
1276
1277 2006-10-09  Darin Adler  <darin@apple.com>
1278
1279         Reviewed by Brady.
1280
1281         - eliminated WebFrameLoader dependency on WebDataSourceInternal.h,
1282           WebIconDatabasePrivate.h, and WebKitErrorsPrivate.h, along with
1283           most but not all references to WebView
1284
1285         * Loader/WebFrameLoader.h:
1286         * Loader/WebFrameLoader.m:
1287         (-[WebFrameLoader removePlugInStreamLoader:]):
1288         (-[WebFrameLoader _receivedMainResourceError:complete:]):
1289         (-[WebFrameLoader _notifyIconChanged:]):
1290         (-[WebFrameLoader cancelledErrorWithRequest:]):
1291         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
1292         (-[WebFrameLoader handleUnimplementablePolicyWithError:]):
1293         (-[WebFrameLoader cannotShowMIMETypeWithResponse:]):
1294         (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
1295         (-[WebFrameLoader _loadRequest:archive:]):
1296         (-[WebFrameLoader finishedLoadingDocument:]):
1297         (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
1298         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
1299         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
1300         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
1301         (-[WebFrameLoader didChangeTitleForDocument:]):
1302         (-[WebFrameLoader continueAfterNavigationPolicy:]):
1303         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1304         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1305         (-[WebFrameLoader transitionToCommitted:]):
1306         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1307         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
1308         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1309         (-[WebFrameLoader checkLoadComplete]):
1310         * Loader/WebFrameLoaderClient.h:
1311         * Loader/WebMainResourceLoader.m:
1312         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1313         * WebView/WebFrame.m:
1314         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
1315         (-[WebFrame _formDelegate]):
1316         (-[WebFrame _finishedLoadingDocument:]):
1317         (-[WebFrame _committedLoadWithDocumentLoader:data:]):
1318         (-[WebFrame _revertToProvisionalWithDocumentLoader:]):
1319         (-[WebFrame _documentLoader:setMainDocumentError:]):
1320         (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
1321         (-[WebFrame _URLForHistoryForDocumentLoader:]):
1322         (-[WebFrame _cancelledErrorWithRequest:]):
1323         (-[WebFrame _cannotShowURLErrorWithRequest:]):
1324         (-[WebFrame _interruptForPolicyChangeErrorWithRequest:]):
1325         (-[WebFrame _cannotShowMIMETypeErrorWithResponse:]):
1326         (-[WebFrame _fileDoesNotExistErrorWithResponse:]):
1327         (-[WebFrame _shouldFallBackForError:]):
1328         (-[WebFrame _hasWebView]):
1329         (-[WebFrame _mainFrameURL]):
1330         * WebView/WebFrameInternal.h:
1331
1332 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1333
1334         Reviewed, landed, tweaked a bit by Darin.
1335
1336         - removed most uses of WebFrameBridge from WebFrameLoader
1337           (WebCoreFrameBridge use is OK)
1338
1339         * Loader/WebDocumentLoader.m:
1340         (-[WebDocumentLoader bridge]):
1341         * Loader/WebFrameLoader.h:
1342         * Loader/WebFrameLoader.m:
1343         (-[WebFrameLoader initWithFrame:client:]):
1344         (-[WebFrameLoader defersCallbacksChanged]):
1345         (-[WebFrameLoader defersCallbacks]):
1346         (-[WebFrameLoader provisionalLoadStarted]):
1347         (-[WebFrameLoader stopLoadingSubframes]):
1348         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
1349         (-[WebFrameLoader _receivedMainResourceError:complete:]):
1350         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1351         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
1352         (-[WebFrameLoader closeOldDataSources]):
1353         (-[WebFrameLoader commitProvisionalLoad:]):
1354         (-[WebFrameLoader bridge]):
1355         (-[WebFrameLoader _handleFallbackContent]):
1356         (-[WebFrameLoader _finishedLoading]):
1357         (-[WebFrameLoader reload]):
1358         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
1359         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1360         (-[WebFrameLoader transitionToCommitted:]):
1361         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1362         (-[WebFrameLoader loadRequest:inFrameNamed:]):
1363         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1364         (-[WebFrameLoader detachFromParent]):
1365         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1366         (-[WebFrameLoader safeLoadURL:]):
1367         (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
1368         * WebCoreSupport/WebFrameBridge.m:
1369         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
1370         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
1371         * WebView/WebFrame.m:
1372         (-[WebFrame _atMostOneFrameHasSelection]):
1373         * WebView/WebFrameInternal.h:
1374
1375 2006-10-09  Darin Adler  <darin@apple.com>
1376
1377         Reviewed by Brady.
1378
1379         - removed almost all direct use of WebView from WebFrameLoader
1380
1381         * Loader/WebFrameLoader.m:
1382         (-[WebFrameLoader defersCallbacksChanged]):
1383         (-[WebFrameLoader defersCallbacks]):
1384         (-[WebFrameLoader clearProvisionalLoad]):
1385         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
1386         (-[WebFrameLoader _didReceiveResponse:forResource:]):
1387         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1388         (-[WebFrameLoader _didFinishLoadingForResource:]):
1389         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1390         (-[WebFrameLoader closeOldDataSources]):
1391         (-[WebFrameLoader _notifyIconChanged:]):
1392         (-[WebFrameLoader prepareForLoadStart]):
1393         (-[WebFrameLoader willChangeTitleForDocument:]):
1394         (-[WebFrameLoader didChangeTitleForDocument:]):
1395         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
1396         (-[WebFrameLoader continueAfterNavigationPolicy:]):
1397         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1398         (-[WebFrameLoader didFirstLayout]):
1399         (-[WebFrameLoader transitionToCommitted:]):
1400         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1401         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1402         * Loader/WebFrameLoaderClient.h:
1403         * WebKit.xcodeproj/project.pbxproj:
1404         * WebView/WebFrame.m:
1405         (-[WebFrame _currentBackForwardListItemToResetTo]):
1406         (-[WebFrame _hasBackForwardList]):
1407         (-[WebFrame _resetBackForwardList]):
1408         (-[WebFrame _dispatchDidReceiveIcon:]):
1409         (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
1410         (-[WebFrame _dispatchDidCommitLoadForFrame]):
1411         (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
1412         (-[WebFrame _dispatchDidFailLoadWithError:]):
1413         (-[WebFrame _dispatchDidFinishLoadForFrame]):
1414         (-[WebFrame _progressStarted]):
1415         (-[WebFrame _progressCompleted]):
1416         (-[WebFrame _incrementProgressForIdentifier:response:]):
1417         (-[WebFrame _incrementProgressForIdentifier:data:]):
1418         (-[WebFrame _completeProgressForIdentifier:]):
1419         (-[WebFrame _setMainFrameDocumentReady:]):
1420         (-[WebFrame _willChangeTitleForDocument:]):
1421         (-[WebFrame _didChangeTitleForDocument:]):
1422         (-[WebFrame _startDownloadWithRequest:]):
1423
1424 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1425
1426 >>>>>>> .r16935
1427         Reviewed by Alice.
1428
1429         - moved WebFormState into Loader directory and tweaked to avoid WebKit dependencies
1430         
1431         * Loader/WebDocumentLoader.h:
1432         * Loader/WebFormState.h: Added.
1433         * Loader/WebFormState.m: Added.
1434         (-[WebFormState initWithForm:values:sourceFrame:]):
1435         (-[WebFormState dealloc]):
1436         (-[WebFormState form]):
1437         (-[WebFormState values]):
1438         (-[WebFormState sourceFrame]):
1439         * Loader/WebFrameLoader.h:
1440         * Loader/WebFrameLoader.m:
1441         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1442         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1443         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1444         * WebKit.xcodeproj/project.pbxproj:
1445         * WebView/WebFrame.m:
1446         * WebView/WebFrameInternal.h:
1447
1448 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1449
1450         Reviewed by Oliver.
1451
1452         - remove dependency on WebNSURLRequestExtras.h
1453         
1454         * Loader/WebFrameLoader.h:
1455         * Loader/WebFrameLoader.m:
1456         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1457         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1458         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1459
1460 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1461
1462         Reviewed by Oliver.
1463         
1464         - removed unneeded logging code so I can take WebKitLogging.h out and remove a WebKit dependency
1465
1466         * Loader/WebFrameLoader.m:
1467         (-[WebFrameLoader setState:]):
1468         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
1469         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1470         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1471         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
1472         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1473         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1474
1475 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1476
1477         Reviewed by Oliver.
1478         
1479         - remove WebDataSource from the WebFrameLoader interface (and thereby from a lot of internal use)
1480
1481         * Loader/WebDocumentLoader.h:
1482         * Loader/WebDocumentLoader.m:
1483         (-[WebDocumentLoader dealloc]):
1484         (-[WebDocumentLoader initialRequest]):
1485         (-[WebDocumentLoader URL]):
1486         (-[WebDocumentLoader unreachableURL]):
1487         * Loader/WebFrameLoader.h:
1488         * Loader/WebFrameLoader.m:
1489         (-[WebFrameLoader setState:]):
1490         (-[WebFrameLoader startLoading]):
1491         (-[WebFrameLoader startProvisionalLoad:]):
1492         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1493         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1494         (-[WebFrameLoader opened]):
1495         (-[WebFrameLoader commitProvisionalLoad:]):
1496         (-[WebFrameLoader initialRequest]):
1497         (-[WebFrameLoader _finishedLoading]):
1498         (-[WebFrameLoader _notifyIconChanged:]):
1499         (-[WebFrameLoader _URL]):
1500         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1501         (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1502         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
1503         (-[WebFrameLoader _loadRequest:archive:]):
1504         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1505         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1506         (-[WebFrameLoader reload]):
1507         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
1508         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1509         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1510         (-[WebFrameLoader frameLoadCompleted]):
1511         (-[WebFrameLoader transitionToCommitted:]):
1512         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1513         (-[WebFrameLoader safeLoadURL:]):
1514         * Loader/WebFrameLoaderClient.h:
1515         * Plugins/WebBaseNetscapePluginView.m:
1516         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1517         * WebCoreSupport/WebFrameBridge.m:
1518         (-[WebFrameBridge originalRequestURL]):
1519         * WebView/WebDataSource.m:
1520         (-[WebDataSource _URL]):
1521         (-[WebDataSource dealloc]):
1522         (-[WebDataSource initialRequest]):
1523         (-[WebDataSource unreachableURL]):
1524         * WebView/WebFrame.m:
1525         (-[WebFrame _loadItem:withLoadType:]):
1526         (-[WebFrame _prepareForDataSourceReplacement]):
1527         (-[WebFrame provisionalDataSource]):
1528         (-[WebFrame dataSource]):
1529         (-[WebFrame _makeDocumentView]):
1530         (-[WebFrame _updateHistoryForReload]):
1531         (-[WebFrame _updateHistoryForStandardLoad]):
1532         (-[WebFrame _updateHistoryForInternalLoad]):
1533         (-[WebFrame _forceLayoutForNonHTML]):
1534         (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
1535         (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
1536         (-[WebFrame _archivedSubresourceForURL:fromDocumentLoader:]):
1537         (-[WebFrame _makeRepresentationForDocumentLoader:]):
1538
1539 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1540
1541         Reviewed by Darin.
1542
1543         - removed need for WebFrameLoader to now about WebDocumentLoaderMac 
1544
1545         * Loader/WebFrameLoader.m:
1546         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
1547         * WebView/WebDocumentLoaderMac.h:
1548         * WebView/WebDocumentLoaderMac.m:
1549         (-[WebDocumentLoaderMac setFrameLoader:]):
1550         (-[WebDocumentLoaderMac detachFromFrameLoader]):
1551
1552 2006-10-09  Darin Adler  <darin@apple.com>
1553
1554         Reviewed by Maciej.
1555
1556         - passed calls that require WebScriptDebugServer across the client interface
1557
1558         * Loader/WebFrameLoader.m:
1559         (-[WebFrameLoader _finishedLoading]):
1560         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
1561         * Loader/WebFrameLoaderClient.h:
1562         * WebView/WebFrame.m:
1563         (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
1564
1565 2006-10-08  Darin Adler  <darin@apple.com>
1566
1567         Reviewed by Maciej.
1568
1569         - passed calls that require WebHTMLView or WebFrameView calls across
1570           the client interface
1571
1572         * Loader/WebFrameLoader.h:
1573         * Loader/WebFrameLoader.m:
1574         (isCaseInsensitiveEqual):
1575         (isBackForwardLoadType):
1576         (-[WebFrameLoader opened]):
1577         (-[WebFrameLoader cancelledErrorWithRequest:]):
1578         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
1579         (-[WebFrameLoader reload]):
1580         (-[WebFrameLoader transitionToCommitted:]):
1581         * Loader/WebFrameLoaderClient.h:
1582         * WebView/WebFrame.m:
1583         (-[WebFrame _forceLayout]):
1584         (-[WebFrame _setDocumentViewFromPageCache:]):
1585         (-[WebFrame _setCopiesOnScroll]):
1586
1587 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1588
1589         Reviewed by Darin.
1590         
1591         - pass remaining delegate methods across client interface
1592
1593         * Loader/WebFrameLoader.m:
1594         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1595         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1596         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1597         (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
1598         (-[WebFrameLoader didFirstLayout]):
1599         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1600         * Loader/WebFrameLoaderClient.h:
1601         * WebView/WebFrame.m:
1602         (-[WebFrame _dispatchDidFirstLayoutInFrame]):
1603         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
1604         (-[WebFrame _dispatchShow]):
1605         (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
1606         (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
1607         (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
1608         (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
1609
1610 2006-10-08  Darin Adler  <darin@apple.com>
1611
1612         Reviewed by Maciej.
1613
1614         - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
1615
1616         * Loader/WebFrameLoader.m: Update includes.
1617         (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
1618         (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
1619
1620         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1621         Added the three new symbols, and resorted the list.
1622
1623         * Loader/WebDataProtocol.m:
1624         * Loader/WebLoader.m:
1625         * Loader/WebMainResourceLoader.h:
1626         * Loader/WebMainResourceLoader.m:
1627         * Loader/WebNetscapePlugInStreamLoader.h:
1628         * Loader/WebNetscapePlugInStreamLoader.m:
1629         * Loader/WebSubresourceLoader.h:
1630         * Loader/WebSubresourceLoader.m:
1631         Changed import statements to consistently use the "" format.
1632
1633 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1634
1635         Not reviewed.
1636         
1637         - fix accidental build break due to editing while committing
1638
1639         * Loader/WebFrameLoader.m:
1640
1641 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1642
1643         Reviewed by Darin.
1644         
1645         - move all WebFrameLoadDelegate methods across client interface
1646
1647         * Loader/WebFrameLoader.m:
1648         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
1649         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1650         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
1651         (-[WebFrameLoader closeOldDataSources]):
1652         (-[WebFrameLoader _notifyIconChanged:]):
1653         (-[WebFrameLoader prepareForLoadStart]):
1654         (-[WebFrameLoader didChangeTitleForDocument:]):
1655         (-[WebFrameLoader transitionToCommitted:]):
1656         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1657         * Loader/WebFrameLoaderClient.h:
1658         * WebView/WebFrame.m:
1659         (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
1660         (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
1661         (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
1662         (-[WebFrame _dispatchWillCloseFrame]):
1663         (-[WebFrame _dispatchDidReceiveIcon:]):
1664         (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
1665         (-[WebFrame _dispatchDidReceiveTitle:]):
1666         (-[WebFrame _dispatchDidCommitLoadForFrame]):
1667         (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
1668         (-[WebFrame _dispatchDidFailLoadWithError:]):
1669         (-[WebFrame _dispatchDidFinishLoadForFrame]):
1670
1671 2006-10-08  Darin Adler  <darin@apple.com>
1672
1673         Reviewed by Maciej.
1674
1675         - removed some of the WebKit dependencies in WebFrameLoader
1676
1677         * Loader/WebFrameLoader.m:
1678         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1679         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1680         (-[WebFrameLoader reload]):
1681         (-[WebFrameLoader didChangeTitleForDocument:]):
1682         * Loader/WebFrameLoaderClient.h:
1683         * WebView/WebFrame.m:
1684         (-[WebFrame _loadItem:withLoadType:]):
1685         (-[WebFrame _loadURL:referrer:intoChild:]):
1686         (-[WebFrame _setTitle:forURL:]):
1687         (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
1688         * WebView/WebFrameInternal.h:
1689
1690         - some other tweaks
1691
1692         * Misc/WebNSURLRequestExtras.m:
1693         (-[NSMutableURLRequest _web_setHTTPReferrer:]):
1694         (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
1695
1696 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1697
1698         Reviewed by Darin.
1699         
1700         - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
1701
1702         * Loader/WebFrameLoader.m:
1703         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
1704         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1705         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1706         (-[WebFrameLoader _didReceiveResponse:forResource:]):
1707         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1708         (-[WebFrameLoader _didFinishLoadingForResource:]):
1709         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1710         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
1711         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
1712         * Loader/WebFrameLoaderClient.h:
1713         * WebView/WebFrame.m:
1714         (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
1715         (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
1716         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
1717         (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
1718         (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
1719         (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
1720         (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
1721         (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
1722         (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
1723         (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
1724
1725 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1726
1727         Reviewed by Darin.
1728         
1729         - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
1730
1731         * Loader/WebFrameLoader.m:
1732         (-[WebFrameLoader startLoading]):
1733         (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
1734         * Loader/WebFrameLoaderClient.h:
1735         * WebCoreSupport/WebFrameBridge.m:
1736         (-[WebFrameBridge handledOnloadEvents]):
1737         * WebView/WebFrame.m:
1738         (dataSource):
1739         (-[WebFrame _dataSourceForDocumentLoader:]):
1740         (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
1741         (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
1742         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
1743         * WebView/WebFrameInternal.h:
1744
1745 2006-10-08  Darin Adler  <darin@apple.com>
1746
1747         Reviewed by Maciej.
1748
1749         - moved more methods to WebFrameLoader from WebFrame
1750
1751         * Loader/WebFrameLoader.h:
1752         * Loader/WebFrameLoader.m:
1753         (-[WebFrameLoader defersCallbacksChanged]):
1754         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1755         (-[WebFrameLoader setState:]):
1756         (-[WebFrameLoader clearProvisionalLoad]):
1757         (-[WebFrameLoader markLoadComplete]):
1758         (-[WebFrameLoader commitProvisionalLoad]):
1759         (-[WebFrameLoader stopLoading]):
1760         (-[WebFrameLoader startProvisionalLoad:]):
1761         (-[WebFrameLoader setupForReplace]):
1762         (-[WebFrameLoader _identifierForInitialRequest:]):
1763         (-[WebFrameLoader _finishedLoadingResource]):
1764         (-[WebFrameLoader _receivedError:]):
1765         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1766         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
1767         (-[WebFrameLoader opened]):
1768         (-[WebFrameLoader commitProvisionalLoad:]):
1769         (-[WebFrameLoader _finishedLoading]):
1770         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1771         (-[WebFrameLoader _loadRequest:archive:]):
1772         (-[WebFrameLoader reload]):
1773         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
1774         (-[WebFrameLoader subframeIsLoading]):
1775         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1776         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
1777         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1778         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
1779         (-[WebFrameLoader loadRequest:inFrameNamed:]):
1780         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1781         (-[WebFrameLoader detachChildren]):
1782         (-[WebFrameLoader detachFromParent]):
1783         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1784         (-[WebFrameLoader safeLoadURL:]):
1785         (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
1786         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
1787         (-[WebFrameLoader checkLoadComplete]):
1788         * Loader/WebFrameLoaderClient.h:
1789         * Loader/WebSubresourceLoader.m:
1790         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1791         * WebCoreSupport/WebFrameBridge.m:
1792         (-[WebFrameBridge close]):
1793         (-[WebFrameBridge tokenizerProcessedData]):
1794         (-[WebFrameBridge frameDetached]):
1795         * WebView/WebDataSourceInternal.h:
1796         * WebView/WebFrame.m:
1797         (-[WebFrame _loadItem:withLoadType:]):
1798         (-[WebFrame _prepareForDataSourceReplacement]):
1799         (-[WebFrame _detachedFromParent1]):
1800         (-[WebFrame _detachedFromParent2]):
1801         (-[WebFrame _detachedFromParent3]):
1802         (-[WebFrame _detachedFromParent4]):
1803         (-[WebFrame _updateHistoryAfterClientRedirect]):
1804         (-[WebFrame _loadedFromPageCache]):
1805         * WebView/WebFrameInternal.h:
1806         * WebView/WebPDFView.m:
1807         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1808         * WebView/WebView.m:
1809         (-[WebView _close]):
1810         (-[WebView setDefersCallbacks:]):
1811
1812 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1813
1814         Reviewed by Darin.
1815         
1816         - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
1817
1818         * Loader/WebDocumentLoader.m:
1819         (-[WebDocumentLoader initWithRequest:]):
1820         * Loader/WebMainResourceLoader.m:
1821         * Loader/WebSubresourceLoader.m:
1822         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1823         * WebCoreSupport/WebSystemInterface.m:
1824         (InitWebCoreSystemInterface):
1825         * WebView/WebDataSource.m:
1826         (-[WebDataSource _initWithDocumentLoader:]):
1827
1828 2006-10-08  Darin Adler  <darin@apple.com>
1829
1830         - build fix (also a fix for a crasher I forgot to commit before)
1831
1832         * Loader/WebFrameLoader.m: Added some missing includes.
1833         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1834         Added a needed retain/release.
1835
1836 2006-10-08  Darin Adler  <darin@apple.com>
1837
1838         Reviewed by Anders.
1839         
1840         - quick fix to loader problem causing layout test failures
1841
1842         * Loader/WebFrameLoader.m:
1843         (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
1844         that we retain/release.
1845         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1846         Same here.
1847
1848 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1849
1850         Reviewed by Adam.
1851         
1852         - removed a few includes from WebFrameLoader, fixed up as appropriate
1853         - segregated header includes into ones that need to go away to move the code and ones that don't
1854
1855         * Loader/WebFrameLoader.m:
1856         (-[WebFrameLoader _privateBrowsingEnabled]):
1857         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1858         * Loader/WebFrameLoaderClient.h:
1859         * WebView/WebFrame.m:
1860         (-[WebFrame _privateBrowsingEnabled]):
1861
1862 2006-10-08  Darin Adler  <darin@apple.com>
1863
1864         Reviewed by Maciej.
1865
1866         - moved a few methods from WebFrame to WebFrameLoader
1867
1868         * Loader/WebFrameLoader.h:
1869         * Loader/WebFrameLoader.m:
1870         (-[WebFrameLoader _setState:]):
1871         (-[WebFrameLoader stopLoadingSubframes]):
1872         (-[WebFrameLoader _receivedMainResourceError:complete:]):
1873         (-[WebFrameLoader closeOldDataSources]):
1874         (-[WebFrameLoader commitProvisionalLoad:]):
1875         (-[WebFrameLoader _finishedLoading]):
1876         (isBackForwardLoadType):
1877         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1878         (-[WebFrameLoader didFirstLayout]):
1879         (-[WebFrameLoader frameLoadCompleted]):
1880         (-[WebFrameLoader transitionToCommitted:]):
1881         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
1882         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1883         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
1884         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
1885         (-[WebFrameLoader loadRequest:inFrameNamed:]):
1886         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1887         * Loader/WebFrameLoaderClient.h:
1888         * Plugins/WebPluginController.m:
1889         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1890         * WebCoreSupport/WebFrameBridge.h:
1891         * WebCoreSupport/WebFrameBridge.m:
1892         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
1893         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
1894         (-[WebFrameBridge dealloc]):
1895         (-[WebFrameBridge frameLoader]):
1896         (-[WebFrameBridge setTitle:]):
1897         (-[WebFrameBridge receivedData:textEncodingName:]):
1898         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
1899         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
1900         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
1901         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1902         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1903         (-[WebFrameBridge reportClientRedirectCancelled:]):
1904         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1905         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1906         (-[WebFrameBridge didFirstLayout]):
1907         (-[WebFrameBridge notifyIconChanged:]):
1908         (-[WebFrameBridge originalRequestURL]):
1909         (-[WebFrameBridge isLoadTypeReload]):
1910         * WebView/WebFrame.m:
1911         (-[WebFrame _opened]):
1912         (-[WebFrame _checkLoadComplete]):
1913         (-[WebFrame _loadItem:withLoadType:]):
1914         (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
1915         (-[WebFrame _loadURL:referrer:intoChild:]):
1916         (-[WebFrame _currentBackForwardListItemToResetTo]):
1917         (-[WebFrame _updateBackground]):
1918         (-[WebFrame _frameLoader]):
1919         (-[WebFrame _frameLoadCompleted]):
1920         (-[WebFrame _makeDocumentView]):
1921         (-[WebFrame _updateHistoryForCommit]):
1922         (-[WebFrame _updateHistoryForReload]):
1923         (-[WebFrame _updateHistoryForStandardLoad]):
1924         (-[WebFrame _updateHistoryForBackForwardNavigation]):
1925         (-[WebFrame _updateHistoryForInternalLoad]):
1926         (-[WebFrame _tokenForLoadErrorReset]):
1927         (-[WebFrame _resetAfterLoadError:]):
1928         (-[WebFrame _doNotResetAfterLoadError:]):
1929         * WebView/WebFrameInternal.h:
1930
1931 2006-10-09  Mark Rowe  <bdash@webkit.org>
1932
1933         Rubber-stamped by Darin.
1934
1935         * WebCoreSupport/WebFrameBridge.m:
1936         (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
1937         is triggering an assertion failure.
1938
1939 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1940
1941         Reviewed by Darin.
1942         
1943         - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
1944         two coincidentally matching enums)
1945
1946         * Loader/WebFrameLoader.h:
1947         * Loader/WebFrameLoader.m:
1948         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1949         (-[WebFrameLoader commitProvisionalLoad:]):
1950         (isBackForwardLoadType):
1951         (-[WebFrameLoader _loadRequest:archive:]):
1952         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1953         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1954         (-[WebFrameLoader reload]):
1955         (-[WebFrameLoader isReplacing]):
1956         (-[WebFrameLoader setReplacing]):
1957         (-[WebFrameLoader loadType]):
1958         (-[WebFrameLoader setLoadType:]):
1959         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1960         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1961         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
1962         (-[WebFrameLoader didFirstLayout]):
1963         * WebCoreSupport/WebFrameBridge.m:
1964         * WebView/WebFrame.m:
1965         (-[WebFrame _transitionToCommitted:]):
1966         (-[WebFrame _provisionalLoadStarted]):
1967         (-[WebFrame _opened]):
1968         (-[WebFrame _checkLoadCompleteForThisFrame]):
1969         (-[WebFrame _loadItem:withLoadType:]):
1970         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
1971         (-[WebFrame _goToItem:withLoadType:]):
1972         (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
1973         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1974         (-[WebFrame _loadURL:referrer:intoChild:]):
1975         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1976         (-[WebFrame _currentBackForwardListItemToResetTo]):
1977         (-[WebFrame _itemForRestoringDocState]):
1978         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1979         (-[WebFrame _loadType]):
1980         (-[WebFrame loadRequest:]):
1981         * WebView/WebFrameInternal.h:
1982         * WebView/WebView.m:
1983
1984 2006-10-08  Darin Adler  <darin@apple.com>
1985
1986         Reviewed by Maciej.
1987
1988         - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
1989
1990         * Loader/WebFrameLoader.m:
1991         (-[WebFrameLoader stopLoadingSubframes]):
1992         (-[WebFrameLoader closeOldDataSources]):
1993         * WebCoreSupport/WebFrameBridge.h:
1994         * WebCoreSupport/WebFrameBridge.m:
1995         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
1996         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
1997         (-[WebFrameBridge dealloc]):
1998         (-[WebFrameBridge loader]):
1999         (-[WebFrameBridge setTitle:]):
2000         (-[WebFrameBridge receivedData:textEncodingName:]):
2001         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2002         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2003         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
2004         (-[WebFrameBridge reportClientRedirectCancelled:]):
2005         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
2006         (-[WebFrameBridge didFirstLayout]):
2007         (-[WebFrameBridge imageTitleForFilename:size:]):
2008         (-[WebFrameBridge notifyIconChanged:]):
2009         (-[WebFrameBridge originalRequestURL]):
2010         (-[WebFrameBridge isLoadTypeReload]):
2011         * WebView/WebFrame.m:
2012         (-[NSView setWebFrame::]):
2013         (-[WebFramePrivate dealloc]):
2014         (-[WebFramePrivate setWebFrameView:]):
2015         (-[WebFramePrivate setProvisionalItem:]):
2016         (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2017         (-[WebFrame _createItem:]):
2018         (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
2019         (-[WebFrame _detachFromParent]):
2020         (-[WebFrame _makeDocumentView]):
2021         (-[WebFrame _transitionToCommitted:]):
2022         (-[WebFrame _provisionalLoadStarted]):
2023         (-[WebFrame _opened]):
2024         (-[WebFrame _checkLoadCompleteForThisFrame]):
2025         (-[WebFrame _loadItem:withLoadType:]):
2026         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
2027         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2028         (-[WebFrame _loadURL:referrer:intoChild:]):
2029         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2030         (-[WebFrame _setTitle:]):
2031         (-[WebFrame _defersCallbacksChanged]):
2032         (-[WebFrame _currentBackForwardListItemToResetTo]):
2033         (-[WebFrame _itemForSavingDocState]):
2034         (-[WebFrame _itemForRestoringDocState]):
2035         (-[WebFrame _saveDocumentAndScrollState]):
2036         (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
2037         (-[WebFrame _loadRequest:inFrameNamed:]):
2038         (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2039         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2040         (-[WebFrame _frameLoader]):
2041         (-[WebFrame _prepareForDataSourceReplacement]):
2042         (-[WebFrame _restoreScrollPositionAndViewState]):
2043         (-[WebFrame _firstLayoutDone]):
2044         (-[WebFrame _loadType]):
2045         (-[WebFrame frameView]):
2046         (-[WebFrame provisionalDataSource]):
2047         (-[WebFrame dataSource]):
2048         (-[WebFrame loadRequest:]):
2049         (-[WebFrame loadArchive:]):
2050         (-[WebFrame stopLoading]):
2051         (-[WebFrame reload]):
2052         (-[WebFrame _resetBackForwardList]):
2053         (-[WebFrame _invalidateCurrentItemPageCache]):
2054         (-[WebFrame _provisionalItemIsTarget]):
2055         (-[WebFrame _loadProvisionalItemFromPageCache]):
2056         * WebView/WebFrameInternal.h:
2057
2058 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
2059
2060         Reviewed by Darin.
2061         
2062         - move remaining movable data fields from WebFrameLoader to WebFrame
2063
2064         * Loader/WebDocumentLoadState.m:
2065         (-[WebDocumentLoadState commitIfReady]):
2066         * Loader/WebFrameLoader.h:
2067         * Loader/WebFrameLoader.m:
2068         (-[WebFrameLoader provisionalLoadStarted]):
2069         (-[WebFrameLoader _setState:]):
2070         (-[WebFrameLoader stopLoadingSubframes]):
2071         (-[WebFrameLoader stopLoading]):
2072         (-[WebFrameLoader startLoading]):
2073         (-[WebFrameLoader _receivedMainResourceError:complete:]):
2074         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
2075         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
2076         (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
2077         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2078         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
2079         (-[WebFrameLoader closeOldDataSources]):
2080         (-[WebFrameLoader commitProvisionalLoad:]):
2081         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
2082         (-[WebFrameLoader isQuickRedirectComing]):
2083         * Loader/WebFrameLoaderClient.h:
2084         * WebCoreSupport/WebFrameBridge.h:
2085         * WebCoreSupport/WebFrameBridge.m:
2086         (-[WebFrameBridge frameLoader]):
2087         (-[WebFrameBridge setTitle:]):
2088         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
2089         (-[WebFrameBridge reportClientRedirectCancelled:]):
2090         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
2091         * WebView/WebDataSource.m:
2092         (-[WebDataSource _loadFromPageCache:]):
2093         * WebView/WebFrame.m:
2094         (-[NSView setWebFrame::]):
2095         (-[WebFrame _addHistoryItemForFragmentScroll]):
2096         (-[WebFrame _didFinishLoad]):
2097         (-[WebFrame _provisionalLoadStarted]):
2098         (-[WebFrame _checkLoadCompleteForThisFrame]):
2099         (-[WebFrame _loadItem:withLoadType:]):
2100         (-[WebFrame _loadURL:referrer:intoChild:]):
2101         (-[WebFrame _frameLoadCompleted]):
2102         (-[WebFrame stopLoading]):
2103         (-[WebFrame _invalidateCurrentItemPageCache]):
2104         * WebView/WebFrameInternal.h:
2105
2106 2006-10-08  Darin Adler  <darin@apple.com>
2107
2108         Rubber stamped by Maciej.
2109
2110         - changed "document load state" to "document loader"
2111
2112         * Loader/WebDocumentLoadState.h: Removed.
2113         * Loader/WebDocumentLoadState.m: Removed.
2114         * Loader/WebDocumentLoader.h: Added.
2115         * Loader/WebDocumentLoader.m: Added.
2116         (-[WebDocumentLoader setMainDocumentError:]):
2117         (-[WebDocumentLoader mainReceivedError:complete:]):
2118         (-[WebDocumentLoader finishedLoading]):
2119         (-[WebDocumentLoader commitLoadWithData:]):
2120         (-[WebDocumentLoader setupForReplaceByMIMEType:]):
2121         (-[WebDocumentLoader updateLoading]):
2122         (-[WebDocumentLoader setTitle:]):
2123         * Loader/WebFrameLoader.h:
2124         * Loader/WebFrameLoader.m:
2125         (-[WebFrameLoader dealloc]):
2126         (-[WebFrameLoader activeDocumentLoader]):
2127         (-[WebFrameLoader activeDataSource]):
2128         (-[WebFrameLoader addPlugInStreamLoader:]):
2129         (-[WebFrameLoader removePlugInStreamLoader:]):
2130         (-[WebFrameLoader addSubresourceLoader:]):
2131         (-[WebFrameLoader removeSubresourceLoader:]):
2132         (-[WebFrameLoader dataSource]):
2133         (-[WebFrameLoader setDocumentLoader:]):
2134         (-[WebFrameLoader documentLoader]):
2135         (-[WebFrameLoader policyDataSource]):
2136         (-[WebFrameLoader setPolicyDocumentLoader:]):
2137         (-[WebFrameLoader clearDataSource]):
2138         (-[WebFrameLoader provisionalDataSource]):
2139         (-[WebFrameLoader provisionalDocumentLoader]):
2140         (-[WebFrameLoader setProvisionalDocumentLoader:]):
2141         (-[WebFrameLoader _clearProvisionalDataSource]):
2142         (-[WebFrameLoader _setState:]):
2143         (-[WebFrameLoader clearProvisionalLoad]):
2144         (-[WebFrameLoader commitProvisionalLoad]):
2145         (-[WebFrameLoader stopLoading]):
2146         (-[WebFrameLoader startLoading]):
2147         (-[WebFrameLoader startProvisionalLoad:]):
2148         (-[WebFrameLoader setupForReplace]):
2149         (-[WebFrameLoader _didReceiveResponse:forResource:]):
2150         (-[WebFrameLoader _originalRequest]):
2151         (-[WebFrameLoader _receivedMainResourceError:complete:]):
2152         (-[WebFrameLoader _receivedData:]):
2153         (-[WebFrameLoader _setRequest:]):
2154         (-[WebFrameLoader _isStopping]):
2155         (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2156         (-[WebFrameLoader _setResponse:]):
2157         (-[WebFrameLoader _mainReceivedError:complete:]):
2158         (-[WebFrameLoader _finishedLoading]):
2159         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
2160         (-[WebFrameLoader _loadRequest:archive:]):
2161         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2162         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2163         (-[WebFrameLoader reload]):
2164         (-[WebFrameLoader finishedLoadingDocument:]):
2165         (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
2166         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
2167         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
2168         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
2169         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
2170         (-[WebFrameLoader willChangeTitleForDocument:]):
2171         (-[WebFrameLoader didChangeTitleForDocument:]):
2172         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
2173         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
2174         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
2175         * Plugins/WebPluginController.m:
2176         (-[WebPluginController pluginView:receivedResponse:]):
2177         * WebCoreSupport/WebFrameBridge.m:
2178         (-[WebFrameBridge setTitle:]):
2179         (-[WebFrameBridge receivedData:textEncodingName:]):
2180         * WebKit.xcodeproj/project.pbxproj:
2181         * WebView/WebDataSource.m:
2182         (-[WebDataSourcePrivate dealloc]):
2183         (-[WebDataSource _mainDocumentError]):
2184         (-[WebDataSource _loadFromPageCache:]):
2185         (-[WebDataSource _bridge]):
2186         (-[WebDataSource _webView]):
2187         (-[WebDataSource _URLForHistory]):
2188         (-[WebDataSource _documentLoader]):
2189         (-[WebDataSource _initWithDocumentLoader:]):
2190         (-[WebDataSource initWithRequest:]):
2191         (-[WebDataSource dealloc]):
2192         (-[WebDataSource data]):
2193         (-[WebDataSource webFrame]):
2194         (-[WebDataSource initialRequest]):
2195         (-[WebDataSource request]):
2196         (-[WebDataSource response]):
2197         (-[WebDataSource textEncodingName]):
2198         (-[WebDataSource isLoading]):
2199         (-[WebDataSource unreachableURL]):
2200         (-[WebDataSource webArchive]):
2201         * WebView/WebDataSourceInternal.h:
2202         * WebView/WebDocumentLoadStateMac.h: Removed.
2203         * WebView/WebDocumentLoadStateMac.m: Removed.
2204         * WebView/WebDocumentLoaderMac.h: Added.
2205         * WebView/WebDocumentLoaderMac.m: Added.
2206         * WebView/WebFrame.m:
2207         (-[WebFrame _createItem:]):
2208         (-[WebFrame _receivedMainResourceError:]):
2209         (-[WebFrame _transitionToCommitted:]):
2210         (-[WebFrame _opened]):
2211         (-[WebFrame _checkLoadCompleteForThisFrame]):
2212         (-[WebFrame _loadItem:withLoadType:]):
2213         (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
2214         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2215         (-[WebFrame _addChild:]):
2216         (-[WebFrame _provisionalLoadStarted]):
2217         (-[WebFrame _dataSourceForDocumentLoader:]):
2218         (-[WebFrame _createDocumentLoaderWithRequest:]):
2219         * WebView/WebFrameInternal.h:
2220         * WebView/WebHTMLRepresentation.m:
2221         (-[WebHTMLRepresentation title]):
2222         * WebView/WebView.m:
2223         (-[WebView _mainFrameOverrideEncoding]):
2224
2225 2006-10-08  Darin Adler  <darin@apple.com>
2226
2227         Reviewed by Mitz.
2228
2229         - fix http://bugs.webkit.org/show_bug.cgi?id=11218
2230           REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
2231
2232         Also added a helper function in WebFrameLoader so that checks for back/forward load types
2233         are easier to read.
2234
2235         * Loader/WebFrameLoader.m:
2236         (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
2237         state to nil instead of the passed-in object.
2238         (isBackForwardLoadType): Added.
2239         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
2240         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
2241         Ditto.
2242         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
2243
2244 2006-10-08  Darin Adler  <darin@apple.com>
2245
2246         Reviewed by Maciej.
2247
2248         - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
2249
2250         * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
2251         Rearranged code to avoid storage leak in case of identical title.
2252
2253         * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
2254         from the header.
2255         * Loader/WebFrameLoader.m:
2256         (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
2257         as needed if this load state is going away rather than moving on to become the provisional
2258         load state.
2259         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
2260         (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
2261         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
2262         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
2263         (-[WebFrameLoader reload]): Added an assertion.
2264         (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
2265         calling _documentLoadState over and over again.
2266
2267 2006-10-07  Don Gibson  <dgibson77@gmail.com>
2268
2269         Reviewed/landed by Adam.
2270
2271         http://bugs.webkit.org/show_bug.cgi?id=11199
2272         Update Session History when a load is committed rather than completed.
2273
2274         * COM/WebFrame.cpp:
2275         (WebFrame::receivedResponse):
2276         (WebFrame::receivedAllData):
2277
2278 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
2279
2280         Reviewed by Tim H.
2281
2282         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
2283         Auto-generate a few more Objective-C DOM interfaces
2284
2285         * MigrateHeaders.make:
2286
2287 2006-10-07  Mark Rowe  <bdash@webkit.org>
2288
2289         Reviewed by Mitz.
2290
2291         Fix memory leak from -[WebDocumentLoadState setTitle:].
2292
2293         * Loader/WebDocumentLoadState.m:
2294         (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
2295         zero, and untangle the confusing logic around this case.
2296
2297 2006-10-06  Brady Eidson  <beidson@apple.com>
2298
2299         Reviewed by Darin
2300
2301         Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
2302
2303         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2304         * History/WebHistoryItem.m:
2305         * Loader/WebFrameLoader.h:
2306         * Misc/WebCoreStatistics.m:
2307         * Misc/WebElementDictionary.m:
2308         * Plugins/WebNetscapePluginEmbeddedView.m:
2309         * Plugins/WebPluginController.m:
2310         * WebCoreSupport/WebViewFactory.m:
2311         * WebView/WebArchiver.m:
2312         * WebView/WebDataSource.m:
2313         * WebView/WebFrame.m:
2314         (-[WebFrame _isDescendantOfFrame:]):
2315         (-[WebFrame _setShouldCreateRenderers:]):
2316         (-[WebFrame _bodyBackgroundColor]):
2317         (-[WebFrame _isFrameSet]):
2318         (-[WebFrame _firstLayoutDone]):
2319         (-[WebFrame _loadType]):
2320         * WebView/WebFrameInternal.h:
2321         * WebView/WebFramePrivate.h:
2322         * WebView/WebHTMLRepresentation.m:
2323         * WebView/WebScriptDebugDelegate.m:
2324
2325 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2326
2327         Reviewed by Darin.
2328         
2329         - Move all delegate dispatching code out of WebDataSource.
2330
2331         * Loader/WebFrameLoader.m:
2332         (-[WebFrameLoader startLoading]):
2333         (-[WebFrameLoader _identifierForInitialRequest:]):
2334         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2335         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2336         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2337         (-[WebFrameLoader _didReceiveResponse:forResource:]):
2338         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2339         (-[WebFrameLoader _didFinishLoadingForResource:]):
2340         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2341         (-[WebFrameLoader _receivedMainResourceError:complete:]):
2342         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2343         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
2344         * WebView/WebDataSource.m:
2345         (-[WebDataSource _setLoadingFromPageCache:]):
2346         (-[WebDataSource _stopLoadingWithError:]):
2347         * WebView/WebDataSourceInternal.h:
2348
2349 2006-10-06  Darin Adler  <darin@apple.com>
2350
2351         Reviewed by Maciej.
2352
2353         - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
2354
2355         * Loader/WebFrameLoader.h:
2356         * Loader/WebFrameLoader.m:
2357         (-[WebFrameLoader didFirstLayout]):
2358         (-[WebFrameLoader provisionalLoadStarted]):
2359         (-[WebFrameLoader frameLoadCompleted]):
2360         (-[WebFrameLoader firstLayoutDone]):
2361         * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
2362         * WebView/WebFrame.m:
2363         (-[WebFrame _firstLayoutDone]):
2364         (-[WebFrame _provisionalLoadStarted]):
2365         (-[WebFrame _frameLoadCompleted]):
2366         (-[WebFrame _restoreScrollPositionAndViewState]):
2367         * WebView/WebFrameInternal.h:
2368
2369 2006-10-06  Darin Adler  <darin@apple.com>
2370
2371         Reviewed by Maciej.
2372
2373         - moved more data and the corresponding code from WebFrame to WebFrameLoader
2374
2375         * Loader/WebFrameLoader.h:
2376         * Loader/WebFrameLoader.m:
2377         (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2378         (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
2379         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
2380         (-[WebFrameLoader _loadRequest:archive:]):
2381         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2382         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2383         (-[WebFrameLoader reload]):
2384         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
2385         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
2386         (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
2387         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
2388         (-[WebFrameLoader continueAfterNavigationPolicy:]):
2389         (-[WebFrameLoader continueAfterWillSubmitForm:]):
2390         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
2391         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
2392         (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
2393         (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
2394         (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
2395         * Loader/WebFrameLoaderClient.h:
2396         * WebView/WebFrame.m:
2397         (-[NSView setWebFrame::]):
2398         (-[WebFramePrivate dealloc]):
2399         (-[WebFrame _checkLoadCompleteForThisFrame]):
2400         (-[WebFrame _loadItem:withLoadType:]):
2401         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2402         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2403         (-[WebFrame _loadRequest:inFrameNamed:]):
2404         (-[WebFrame stopLoading]):
2405         (-[WebFrame _resetBackForwardList]):
2406         (-[WebFrame _quickRedirectComing]):
2407         (-[WebFrame _provisionalItemIsTarget]):
2408         (-[WebFrame _loadProvisionalItemFromPageCache]):
2409         * WebView/WebFrameInternal.h:
2410         * WebView/WebFramePrivate.h:
2411
2412         * WebKit.xcodeproj/project.pbxproj:
2413
2414 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2415
2416         Rubber stamped by Darin.
2417         
2418         - removed includes of unused headers.
2419
2420         * WebView/WebDataSource.m:
2421
2422 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2423
2424         Not reviewed.
2425         
2426         - fix build breakage
2427
2428         * Loader/WebFrameLoader.m:
2429         (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
2430         (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
2431
2432 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2433
2434         Reviewed by Darin.
2435         
2436         - move remaining movable WebDataSource fields to WebDocumentLoadState
2437
2438         * Loader/WebDocumentLoadState.h:
2439         * Loader/WebDocumentLoadState.m:
2440         (-[WebDocumentLoadState dealloc]):
2441         (-[WebDocumentLoadState isLoadingInAPISense]):
2442         (-[WebDocumentLoadState addResponse:]):
2443         (-[WebDocumentLoadState stopRecordingResponses]):
2444         (-[WebDocumentLoadState title]):
2445         (-[WebDocumentLoadState setLastCheckedRequest:]):
2446         (-[WebDocumentLoadState lastCheckedRequest]):
2447         (-[WebDocumentLoadState triggeringAction]):
2448         (-[WebDocumentLoadState setTriggeringAction:]):
2449         (-[WebDocumentLoadState responses]):
2450         (-[WebDocumentLoadState setOverrideEncoding:]):
2451         (-[WebDocumentLoadState overrideEncoding]):
2452         (-[WebDocumentLoadState setTitle:]):
2453         * Loader/WebFrameLoader.h:
2454         * Loader/WebFrameLoader.m:
2455         (-[WebFrameLoader _setState:]):
2456         (-[WebFrameLoader _loadRequest:archive:]):
2457         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2458         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2459         (-[WebFrameLoader reload]):
2460         (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
2461         (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
2462         * WebCoreSupport/WebFrameBridge.m:
2463         (-[WebFrameBridge setTitle:]):
2464         (-[WebFrameBridge receivedData:textEncodingName:]):
2465         * WebView/WebDataSource.m:
2466         (-[WebDataSourcePrivate dealloc]):
2467         (-[WebDataSource _didReceiveResponse:forResource:]):
2468         (-[WebDataSource textEncodingName]):
2469         * WebView/WebDataSourceInternal.h:
2470         * WebView/WebFrame.m:
2471         (-[WebFrame _opened]):
2472         (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
2473         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2474         (-[WebFrame _addChild:]):
2475         (-[WebFrame _loadDataSource:withLoadType:formState:]):
2476         * WebView/WebHTMLRepresentation.m:
2477         (-[WebHTMLRepresentation title]):
2478         * WebView/WebView.m:
2479         (-[WebView _mainFrameOverrideEncoding]):
2480
2481 2006-10-06  Darin Adler  <darin@apple.com>
2482
2483         Reviewed by Maciej.
2484
2485         - moved loadType into WebFrameLoader
2486
2487         * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
2488         currently used by Safari.
2489
2490         * Loader/WebFrameLoader.h:
2491         * Loader/WebFrameLoader.m:
2492         (-[WebFrameLoader _loadRequest:archive:]):
2493         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2494         (-[WebFrameLoader isReplacing]):
2495         (-[WebFrameLoader setReplacing]):
2496         (-[WebFrameLoader loadType]):
2497         (-[WebFrameLoader setLoadType:]):
2498         * WebCoreSupport/WebFrameBridge.m:
2499         (-[WebFrameBridge isLoadTypeReload]):
2500         * WebView/WebFrame.m:
2501         (-[WebFrame _loadType]):
2502         (-[WebFrame _transitionToCommitted:]):
2503         (-[WebFrame _commitProvisionalLoad:]):
2504         (-[WebFrame _opened]):
2505         (-[WebFrame _checkLoadCompleteForThisFrame]):
2506         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2507         (-[WebFrame _loadURL:referrer:intoChild:]):
2508         (-[WebFrame _currentBackForwardListItemToResetTo]):
2509         (-[WebFrame _itemForRestoringDocState]):
2510         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2511         (-[WebFrame _didFirstLayout]):
2512         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2513         (-[WebFrame _provisionalLoadStarted]):
2514         (-[WebFrame loadRequest:]):
2515
2516 2006-10-06  Darin Adler  <darin@apple.com>
2517
2518         Reviewed by Maciej.
2519
2520         - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
2521
2522         * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
2523         * Loader/WebFrameLoader.h:
2524         * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
2525         Eventually we'll be removing the dependency on WebFrame entirely.
2526         * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
2527         by its new name.
2528
2529         * Loader/WebFrameLoaderClient.h: Added.
2530         * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
2531
2532 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2533
2534         Reviewed by Darin.
2535         
2536         - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
2537         
2538         Also removed useless WebFrameLoader part
2539
2540         * WebView/WebFrame.m:
2541         (-[WebFramePrivate dealloc]): 
2542
2543 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2544
2545         Reviewed by Anders.
2546         
2547         - moved more data from WebDataSource to WebDocumentLoadState
2548
2549         * Loader/WebDocumentLoadState.h:
2550         * Loader/WebDocumentLoadState.m:
2551         (-[WebDocumentLoadState commitLoadWithData:]):
2552         (-[WebDocumentLoadState prepareForLoadStart]):
2553         (-[WebDocumentLoadState loadingStartedTime]):
2554         (-[WebDocumentLoadState setIsClientRedirect:]):
2555         (-[WebDocumentLoadState isClientRedirect]):
2556         (-[WebDocumentLoadState setPrimaryLoadComplete:]):
2557         (-[WebDocumentLoadState isLoadingInAPISense]):
2558         * Loader/WebFrameLoader.h:
2559         * Loader/WebFrameLoader.m:
2560         (-[WebFrameLoader _setState:]):
2561         (-[WebFrameLoader _finishedLoading]):
2562         (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
2563         (-[WebFrameLoader prepareForLoadStart]):
2564         (-[WebFrameLoader subframeIsLoading]):
2565         * WebView/WebDataSource.m:
2566         (-[WebDataSource _fileWrapperForURL:]):
2567         (-[WebDataSource _startLoading]):
2568         (-[WebDataSource _loadFromPageCache:]):
2569         (-[WebDataSource isLoading]):
2570         * WebView/WebDataSourceInternal.h:
2571         * WebView/WebFrame.m:
2572         (-[WebFrame _transitionToCommitted:]):
2573         (-[WebFrame _opened]):
2574         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2575
2576 2006-10-06  Alexey Proskuryakov  <ap@nypop.com>
2577
2578         Reviewed by Darin.
2579
2580         http://bugs.webkit.org/show_bug.cgi?id=11183
2581         REGRESSION: Safari loads error pages unstyled
2582
2583         * WebView/WebFrame.m:
2584         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
2585         Use utf-8 encoding instead of the string's "fastest" encoding.
2586
2587 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
2588
2589         Reviewed by Adam.
2590         
2591         - fixed the following bugs:
2592         
2593         http://bugs.webkit.org/show_bug.cgi?id=11136
2594         "REGRESSION: Safari snippet editor doesn't work"
2595         http://bugs.webkit.org/show_bug.cgi?id=11140
2596         "REGRESSION: view source window blank"
2597         http://bugs.webkit.org/show_bug.cgi?id=11146
2598         "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
2599         
2600         Possibly more.
2601
2602         * Loader/WebDocumentLoadState.h:
2603         * Loader/WebDocumentLoadState.m:
2604         (-[WebDocumentLoadState actualRequest]): New method.
2605         * WebView/WebDataSource.m:
2606         (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
2607         resource with the fake external request for an applewebdata: request.
2608
2609 2006-10-05  Adele Peterson  <adele@apple.com>
2610
2611         Reviewed by the letter 'B'.
2612
2613         More build fixes.
2614
2615         * WebKit.xcodeproj/project.pbxproj:
2616         * WebView/WebDynamicScrollBarsView.h:
2617         * WebView/WebDynamicScrollBarsView.m:
2618         (-[WebDynamicScrollBarsView updateScrollers]):
2619         (-[WebDynamicScrollBarsView setAllowsScrolling:]):
2620         (-[WebDynamicScrollBarsView allowsScrolling]):
2621         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
2622         (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
2623         (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
2624         (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
2625         (-[WebDynamicScrollBarsView horizontalScrollingMode]):
2626         (-[WebDynamicScrollBarsView verticalScrollingMode]):
2627         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
2628         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
2629         (-[WebDynamicScrollBarsView setScrollingMode:]):
2630         * WebView/WebView.m:
2631         (-[WebView setAlwaysShowVerticalScroller:]):
2632         (-[WebView alwaysShowVerticalScroller]):
2633         (-[WebView setAlwaysShowHorizontalScroller:]):
2634         (-[WebView alwaysShowHorizontalScroller]):
2635
2636 2006-10-05  Vladimir Olexa  <vladimir.olexa@gmail.com>
2637
2638         Reviewed by Timothy.
2639
2640         Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
2641         Continuous spell checking now remembers user's setting. The change is applied globally,
2642         meaning, both TextArea and TextField are affected when either of them enables/disables
2643         spell checking. 
2644
2645         * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
2646         * WebView/WebView.m:
2647         (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
2648         (-[WebView setContinuousSpellCheckingEnabled:]):
2649         (-[WebView isContinuousSpellCheckingEnabled]):
2650
2651 2006-10-05  MorganL  <morganl.webkit@yahoo.com>
2652
2653         Reviewed by Darin.
2654
2655         Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
2656
2657         * COM/WebFrame.cpp:
2658         (WebFrame::loadDataSource):
2659         (WebFrame::receivedResponse):
2660
2661 2006-10-05  Don Gibson  <dgibson77@gmail.com>
2662
2663         Reviewed by Darin, landed by Adam.
2664
2665         http://bugs.webkit.org/show_bug.cgi?id=11176
2666         Fix win32 build, adapt to Maciej's ResourceLoader changes.
2667
2668         * COM/WebFrame.cpp:
2669         (WebFrame::loadDataSource):
2670
2671 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
2672
2673         Reviewed by Darin.
2674
2675         http://bugs.webkit.org/show_bug.cgi?id=10989
2676         Provide a way for embedders to implement BrowserExtensionWin
2677
2678         * COM/Interfaces/IWebUIDelegate.idl:
2679         * COM/WebFrame.cpp:
2680         (WebFrame::createNewWindow):
2681         * COM/WebFrame.h:
2682
2683 2006-10-04  Mark Rowe  <bdash@webkit.org>
2684
2685         Reviewed by NOBODY (build fix).
2686
2687         * WebView/WebView.m:
2688         (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
2689
2690 2006-09-26  David Smith  <catfish.man@gmail.com>
2691
2692         Reviewed by Timothy.
2693
2694         http://bugs.webkit.org/show_bug.cgi?id=3723
2695         Add -scrollDOMRangeToVisible:
2696
2697         * WebView/WebView.m:
2698         (-[WebView scrollDOMRangeToVisible:]):
2699         * WebView/WebViewPrivate.h:
2700
2701 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
2702
2703         Reviewed by Timothy.
2704
2705         <http://bugs.webkit.org/show_bug.cgi?id=10338>
2706         When contentEditable, cursor doesn't change to hand
2707         
2708         Allow the behaviour of editable links to be specified by a WebPreference
2709         The preference WebKitEditableLinkBehavior has four options:
2710          - AlwaysLive: Safari 2.0 behaviour
2711          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
2712          - LiveWhenNotFocused: Editable links are live only when their editable block is not
2713              focused, or when the shift key is pressed
2714          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
2715          
2716         No layout tests, just a modification of a manual-test as it isn't possible to test
2717         this automatically.
2718
2719         * WebView/WebPreferenceKeysPrivate.h:
2720         * WebView/WebPreferences.m:
2721         (+[WebPreferences initialize]):
2722         (-[WebPreferences editableLinkBehavior]):
2723         (-[WebPreferences setEditableLinkBehavior:]):
2724         * WebView/WebPreferencesPrivate.h:
2725         * WebView/WebView.m:
2726         (-[WebView _updateWebCoreSettingsFromPreferences:]):
2727
2728 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
2729
2730         Reviewed by harrison
2731         
2732         execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
2733
2734         * WebCoreSupport/WebFrameBridge.m:
2735         (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
2736         (-[WebFrameBridge issueCopyCommand]): Ditto.
2737         (-[WebFrameBridge issuePasteCommand]): Ditto.
2738         (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
2739         (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
2740         (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
2741         * WebView/WebHTMLView.m:
2742         (-[WebHTMLView copy:]): Moved to WebInternal
2743         (-[WebHTMLView cut:]): Ditto.
2744         (-[WebHTMLView paste:]): Ditto.
2745         (-[WebHTMLView pasteAsPlainText:]): Ditto.
2746         * WebView/WebHTMLViewInternal.h:
2747         * WebView/WebView.m: Removed the now unused _canPaste.
2748         * WebView/WebViewInternal.h: Ditto.
2749
2750 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
2751
2752         Reviewed by geoff
2753         
2754         <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
2755
2756         * Loader/WebSubresourceLoader.m:
2757         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): 
2758         Enable multipart/x-mixed-replace support on the request.  This line was accidently removed during 
2759         some loader refactoring.
2760
2761 2006-10-02  Adam Roben  <aroben@apple.com>
2762
2763         Reviewed by Maciej.
2764
2765         Add message paramter to WebView::mouse* methods to pass down to
2766         PlatformMouseEvent.
2767
2768         * COM/WebView.cpp:
2769         (WebView::mouseMoved):
2770         (WebView::mouseDown):
2771         (WebView::mouseUp):
2772         (WebView::mouseDoubleClick):
2773         (WebViewWndProc):
2774         * COM/WebView.h:
2775
2776 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
2777
2778         Reviewed by Alice.
2779         
2780         - take away direct knowledge of WebFrame from WebDataSource
2781
2782         * Loader/WebDocumentLoadState.h:
2783         * Loader/WebDocumentLoadState.m:
2784         (-[WebDocumentLoadState setFrameLoader:]):
2785         (-[WebDocumentLoadState detachFromFrameLoader]):
2786         * Loader/WebFrameLoader.m:
2787         (-[WebFrameLoader _setDocumentLoadState:]):
2788         (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
2789         * WebView/WebDataSource.m:
2790         * WebView/WebDataSourceInternal.h:
2791         * WebView/WebDocumentLoadStateMac.m:
2792         (-[WebDocumentLoadStateMac detachFromFrameLoader]):
2793         * WebView/WebFrame.m:
2794         (-[WebFrame _loadDataSource:withLoadType:formState:]):
2795
2796 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
2797
2798         Reviewed by Darin.
2799         
2800         - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
2801         
2802         * Loader/WebDocumentLoadState.h:
2803         * Loader/WebDocumentLoadState.m:
2804         (-[WebDocumentLoadState initWithRequest:]):
2805         (-[WebDocumentLoadState dealloc]):
2806         (-[WebDocumentLoadState originalRequestCopy]):
2807         (-[WebDocumentLoadState request]):
2808         (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
2809         (-[WebDocumentLoadState setRequest:]):
2810         (-[WebDocumentLoadState setResponse:]):
2811         (-[WebDocumentLoadState isStopping]):
2812         (-[WebDocumentLoadState bridge]):
2813         (-[WebDocumentLoadState setMainDocumentError:]):
2814         (-[WebDocumentLoadState mainDocumentError]):
2815         (-[WebDocumentLoadState clearErrors]):
2816         (-[WebDocumentLoadState mainReceivedError:complete:]):
2817         (-[WebDocumentLoadState stopLoading]):
2818         (-[WebDocumentLoadState setupForReplace]):
2819         (-[WebDocumentLoadState commitIfReady]):
2820         (-[WebDocumentLoadState finishedLoading]):
2821         (-[WebDocumentLoadState setCommitted:]):
2822         (-[WebDocumentLoadState isCommitted]):
2823         (-[WebDocumentLoadState setLoading:]):
2824         (-[WebDocumentLoadState isLoading]):
2825         (-[WebDocumentLoadState commitLoadWithData:]):
2826         (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
2827         (-[WebDocumentLoadState receivedData:]):
2828         (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
2829         (-[WebDocumentLoadState updateLoading]):
2830         (-[WebDocumentLoadState response]):
2831         * Loader/WebFrameLoader.h:
2832         * Loader/WebFrameLoader.m:
2833         (-[WebFrameLoader activeDocumentLoadState]):
2834         (-[WebFrameLoader activeDataSource]):
2835         (-[WebFrameLoader _archivedSubresourceForURL:]):
2836         (-[WebFrameLoader addPlugInStreamLoader:]):
2837         (-[WebFrameLoader removePlugInStreamLoader:]):
2838         (-[WebFrameLoader addSubresourceLoader:]):
2839         (-[WebFrameLoader removeSubresourceLoader:]):
2840         (-[WebFrameLoader documentLoadState]):
2841         (-[WebFrameLoader provisionalDocumentLoadState]):
2842         (-[WebFrameLoader stopLoading]):
2843         (-[WebFrameLoader _originalRequest]):
2844         (-[WebFrameLoader _receivedData:]):
2845         (-[WebFrameLoader _setRequest:]):
2846         (-[WebFrameLoader bridge]):
2847         (-[WebFrameLoader _handleFallbackContent]):
2848         (-[WebFrameLoader _isStopping]):
2849         (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2850         (-[WebFrameLoader _setResponse:]):
2851         (-[WebFrameLoader _mainReceivedError:complete:]):
2852         (-[WebFrameLoader _finishedLoading]):
2853         (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
2854         (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
2855         (-[WebFrameLoader commitProvisitionalLoad]):
2856         (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
2857         (-[WebFrameLoader isReplacing]):
2858         (-[WebFrameLoader setReplacing]):
2859         (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
2860         (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
2861         (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
2862         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
2863         * WebView/WebDataSource.m:
2864         (-[WebDataSourcePrivate dealloc]):
2865         (-[WebDataSource _prepareForLoadStart]):
2866         (-[WebDataSource _mainDocumentError]):
2867         (-[WebDataSource _finishedLoading]):
2868         (-[WebDataSource _receivedData:]):
2869         (-[WebDataSource _setMainDocumentError:]):
2870         (-[WebDataSource _clearUnarchivingState]):
2871         (-[WebDataSource _revertToProvisionalState]):
2872         (-[WebDataSource _receivedMainResourceError:complete:]):
2873         (-[WebDataSource _startLoading]):
2874         (-[WebDataSource _loadFromPageCache:]):
2875         (-[WebDataSource _bridge]):
2876         (-[WebDataSource _setPrimaryLoadComplete:]):
2877         (-[WebDataSource _URLForHistory]):
2878         (-[WebDataSource _setTitle:]):
2879         (-[WebDataSource _initWithDocumentLoadState:]):
2880         (-[WebDataSource request]):
2881         (-[WebDataSource response]):
2882         (-[WebDataSource isLoading]):
2883         (-[WebDataSource webArchive]):
2884         * WebView/WebDataSourceInternal.h:
2885         * WebView/WebDocumentLoadStateMac.m:
2886         (-[WebDocumentLoadStateMac initWithRequest:]):
2887         * WebView/WebFrame.m:
2888         (-[WebFrame _createItem:]):
2889         (-[WebFrame _receivedMainResourceError:]):
2890         (-[WebFrame _transitionToCommitted:]):
2891         (-[WebFrame _commitProvisionalLoad:]):
2892         (-[WebFrame _checkLoadCompleteForThisFrame]):
2893         (-[WebFrame _loadItem:withLoadType:]):
2894         (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
2895         (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
2896         (-[WebFrame _provisionalLoadStarted]):
2897         * WebView/WebFrameInternal.h:
2898
2899 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
2900
2901         Reviewed by john
2902         
2903         <rdar://problem/4757583>
2904         REGRESSION: tabbing into page focuses wrong control on 2nd pass
2905         <rdar://problem/4757594>
2906         REGRESSION: Form field is left with secondary selection after tabbing out of WebView
2907
2908         * WebView/WebHTMLView.m:
2909         (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
2910         for 9642.  Only leave inactive editable selections in the WebHTMLView if the nextResponder 
2911         is in the same WebView.
2912
2913 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
2914
2915         Reviewed by Anders.
2916         
2917         - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
2918
2919         * Loader/WebDocumentLoadState.h:
2920         * Loader/WebDocumentLoadState.m:
2921         (-[WebDocumentLoadState frameLoader]):
2922         * WebView/WebDataSource.m:
2923         (-[WebDataSourcePrivate dealloc]):
2924         (-[WebDataSource _revertToProvisionalState]):
2925         (-[WebDataSource _setupForReplaceByMIMEType:]):
2926         (-[WebDataSource _updateLoading]):
2927         (-[WebDataSource _startLoading]):
2928         (-[WebDataSource _setWebFrame:]):
2929         (-[WebDataSource _defersCallbacksChanged]):
2930         (-[WebDataSource _stopLoading]):
2931         (-[WebDataSource _webView]):
2932         (-[WebDataSource _stopLoadingWithError:]):
2933         (-[WebDataSource _setPrimaryLoadComplete:]):
2934         (-[WebDataSource dealloc]):
2935         (-[WebDataSource webFrame]):
2936         (-[WebDataSource isLoading]):
2937
2938 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
2939
2940         Reviewed by Anders.
2941         
2942         - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
2943
2944         * WebView/WebDataSource.m:
2945         (-[WebDataSource _setWebFrame:]):
2946         (-[WebDataSource _initWithDocumentLoadState:]):
2947         * WebView/WebDataSourceInternal.h:
2948
2949 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
2950
2951         Build fix, not reviewed.
2952         
2953         - Added missing files to fix build.
2954
2955         * WebView/WebDocumentLoadStateMac.h: Added.
2956         * WebView/WebDocumentLoadStateMac.m: Added.
2957         (-[WebDocumentLoadStateMac initWithRequest:]):
2958         (-[WebDocumentLoadStateMac dealloc]):
2959         (-[WebDocumentLoadStateMac setDataSource:]):
2960         (-[WebDocumentLoadStateMac dataSource]):
2961         (-[WebDocumentLoadStateMac setFrameLoader:]):
2962
2963 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
2964
2965         Reviewed by Brady and Oliver.
2966         
2967         - move things around so that WebDataSource and WebDocumentLoadState know about each other in
2968         the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
2969
2970         * Loader/WebDocumentLoadState.h:
2971         * Loader/WebDocumentLoadState.m:
2972         (-[WebDocumentLoadState initWithRequest:]):
2973         (-[WebDocumentLoadState dealloc]):
2974         (-[WebDocumentLoadState originalRequest]):
2975         * Loader/WebFrameLoader.h:
2976         * Loader/WebFrameLoader.m:
2977         (-[WebFrameLoader dealloc]):
2978         (-[WebFrameLoader addSubresourceLoader:]):
2979         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2980         (-[WebFrameLoader dataSource]):
2981         (-[WebFrameLoader _setDocumentLoadState:]):
2982         (-[WebFrameLoader policyDataSource]):
2983         (-[WebFrameLoader _setPolicyDocumentLoadState:]):
2984         (-[WebFrameLoader clearDataSource]):
2985         (-[WebFrameLoader provisionalDataSource]):
2986         (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
2987         (-[WebFrameLoader _clearProvisionalDataSource]):
2988         (-[WebFrameLoader _setState:]):
2989         (-[WebFrameLoader clearProvisionalLoad]):
2990         (-[WebFrameLoader commitProvisionalLoad]):
2991         (-[WebFrameLoader stopLoading]):
2992         (-[WebFrameLoader startLoading]):
2993         (-[WebFrameLoader startProvisionalLoad:]):
2994         (-[WebFrameLoader setupForReplace]):
2995         (-[WebFrameLoader activeDocumentLoadState]):
2996         (-[WebFrameLoader activeDataSource]):
2997         (-[WebFrameLoader _loadRequest:archive:]):
2998         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2999         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
3000         (-[WebFrameLoader reload]):
3001         * WebKit.xcodeproj/project.pbxproj:
3002         * WebView/WebDataSource.m:
3003         (-[WebDataSourcePrivate dealloc]):
3004         (-[WebDataSource _startLoading]):
3005         (-[WebDataSource _setWebFrame:]):
3006         (-[WebDataSource _documentLoadState]):
3007         (-[WebDataSource _initWithDocumentLoadState:]):
3008         (-[WebDataSource initWithRequest:]):
3009         (-[WebDataSource initialRequest]):
3010         (-[WebDataSource unreachableURL]):
3011         * WebView/WebDataSourceInternal.h:
3012         * WebView/WebFrame.m:
3013         (-[WebFramePrivate dealloc]):
3014         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3015         (-[WebFrame _loadDataSource:withLoadType:formState:]):
3016         (-[WebFrame _policyDataSource]):
3017         (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
3018         (-[WebFrame _dataSourceForDocumentLoadState:]):
3019         (-[WebFrame _createDocumentLoadStateWithRequest:]):
3020         * WebView/WebFrameInternal.h:
3021
3022 2006-09-29  David Hyatt  <hyatt@apple.com>
3023
3024         Change the default minimum font size pref to 0 in order to allow
3025         font-size:0 to work.
3026
3027         * WebView/WebPreferences.m:
3028         (+[WebPreferences initialize]):
3029
3030 2006-09-28  Timothy Hatcher  <timothy@apple.com>
3031
3032         Reviewed by Maciej.
3033
3034         Switch the inspector over to use border-image with styled buttons and selects.
3035
3036         * WebInspector/WebInspector.m:
3037         (-[NSWindow window]):
3038         (-[NSWindow setWebFrame:]):
3039         (-[WebInspector _updateRoot]):
3040         * WebInspector/webInspector/Images/button.png: Added.
3041         * WebInspector/webInspector/Images/buttonDivider.png: Added.
3042         * WebInspector/webInspector/Images/buttonPressed.png: Added.
3043         * WebInspector/webInspector/Images/popup.png: Added.
3044         * WebInspector/webInspector/Images/popupFill.png: Removed.
3045         * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
3046         * WebInspector/webInspector/Images/popupLeft.png: Removed.
3047         * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
3048         * WebInspector/webInspector/Images/popupPressed.png: Added.
3049         * WebInspector/webInspector/Images/popupRight.png: Removed.
3050         * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
3051         * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
3052         * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
3053         * WebInspector/webInspector/inspector.css:
3054         * WebInspector/webInspector/inspector.html:
3055         * WebInspector/webInspector/inspector.js:
3056
3057 2006-09-28  Alice Liu  <alice.liu@apple.com>
3058
3059         fixing the windows build
3060
3061         * COM/WebView.cpp:
3062         (WebView::mouseMoved):
3063         (WebView::mouseDown):
3064         (WebView::mouseUp):
3065         (WebView::mouseDoubleClick):
3066
3067 2006-09-27  Justin Garcia  <justin.garcia@apple.com>
3068
3069         Reviewed by thatcher
3070         
3071         <rdar://problem/4044271>
3072         Writing Direction menu doesn't reflect the current writing direction (9773)
3073
3074         * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
3075         * WebView/WebHTMLView.m:
3076         (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
3077         toggleBaseWritingDirection and changeBaseWritingDirection.  
3078         Disable the menu item that changes the writing direction to NSWritingDirectionNautral
3079         because NSWritingDirectionNatural's behavior can't be implemented with CSS.
3080         Take control of the title of the menu item that performs toggleBaseWritingDirection:
3081         instead of checking/unchecking it, otherwise we wouldn't know what a check means.
3082         (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
3083         direction is not NSWritingDirectionNatural, since we've disabled the
3084         menu item that performs it.
3085
3086 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
3087
3088         Reviewed by Maciej, landed by Brady
3089
3090         Update URL request associated with provisional data source on redirect.
3091         Notify IWebFrameLoadDelegate of redirects for the provisional load.
3092         Notify IWebFrameLoadDelegate of a provisional load being commited.
3093
3094         * COM/WebDataSource.cpp:
3095         (WebDataSource::replaceRequest):
3096         * COM/WebDataSource.h:
3097         * COM/WebFrame.cpp:
3098         (WebFrame::receivedRedirect):
3099         (WebFrame::receivedResponse):
3100         (WebFrame::receivedData):
3101
3102 2006-09-26  John Sullivan  <sullivan@apple.com>
3103
3104         Reviewed by Darin
3105
3106         * WebView/WebHTMLViewPrivate.h:
3107         * WebView/WebHTMLView.m:
3108         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
3109         Added limit parameter, passed over the bridge. Stop the search if it hits limit.
3110
3111         * WebView/WebViewPrivate.h:
3112         * WebView/WebView.m:
3113         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
3114         Added limit parameter, passed to WebHTMLView.
3115
3116 2006-09-26  David Harrison  <harrison@apple.com>
3117
3118         Reviewed by John and TimH.
3119
3120         <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
3121
3122         Use deleteBackward: when the killring string is empty. Was always using insertText:,
3123         but that ends up early-returning if the string to insert is empty.
3124         
3125         * WebView/WebHTMLView.m:
3126         (-[NSArray yank:]):
3127         (-[NSArray yankAndSelect:]):
3128
3129 2006-09-25  Timothy Hatcher  <timothy@apple.com>
3130
3131         Reviewed by Brady.
3132
3133         Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
3134
3135         * WebInspector/WebInspector.m:
3136         (-[WebInspector _highlightNode:]):
3137         * WebView/WebHTMLView.m:
3138         (unionDOMRanges):
3139         (-[WebHTMLView _selectRangeInMarkedText:]):
3140         (-[WebTextCompleteController doCompletion]):
3141         * WebView/WebView.m:
3142         (-[WebView computedStyleForElement:pseudoElement:]):
3143
3144 2006-09-22  Timothy Hatcher  <timothy@apple.com>
3145
3146         Reviewed by Darin.
3147
3148         Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
3149         if MACOSX_DEPLOYMENT_TARGET is 10.4.
3150
3151         * MigrateHeaders.make:
3152
3153 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
3154
3155         Reviewed by john
3156         
3157         <http://bugs.webkit.org/show_bug.cgi?id=7165>
3158         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
3159         
3160         The top level WebHTMLView is responsible for performing dragging operations, but
3161         the inner view, the view that holds the drag caret, should be consulted to determine
3162         if the drag is a move drag.
3163
3164         * WebCoreSupport/WebFrameBridge.m:
3165         (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3166         * WebKit.xcodeproj/project.pbxproj:
3167         * WebView/WebHTMLView.m:
3168         (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
3169         it's only the top level WebHTMLView that performs this operation.
3170         (-[WebHTMLView _setInitiatedDrag:]): Added.
3171         (-[WebHTMLView _initiatedDrag]): Ditto.
3172         (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
3173         not the top level view.
3174         (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
3175         a move drag, so don't ASSERT _isTopHTMLView.
3176         (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
3177         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3178         * WebView/WebHTMLViewInternal.h: Added two private SPI so that
3179         the top level WebHTMLView can set and get the initiatedDrag BOOL.
3180
3181 === Safari-521.27 ===
3182
3183 2006-09-20  Brady Eidson  <beidson@apple.com>
3184
3185         Reviewed by Tim Omernick
3186
3187         Fixing part of a crash Tim O showed me.  [WebIconDatabase init] should finish
3188         gracefully even if we can't open the database
3189
3190         * Misc/WebIconDatabase.m:
3191         (-[WebIconDatabase init]):
3192
3193 2006-09-20  Timothy Hatcher  <timothy@apple.com>
3194
3195         Reviewed by Tim O.
3196
3197         <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
3198
3199         * Misc/WebKitVersionChecks.h: Added.
3200         * Misc/WebKitVersionChecks.m: Added.
3201         (WebKitLinkedOnOrAfter): Added.
3202         (WebKitLinkTimeVersion): Added.
3203         (WebKitRunTimeVersion): Added.
3204         * WebKit.xcodeproj/project.pbxproj:
3205
3206 2006-09-20  Tim Omernick  <timo@apple.com>
3207
3208         Reviewed by Darin.
3209
3210         * Misc/WebIconDatabase.m:
3211         (-[WebIconDatabase init]):
3212         Fixed a typo.
3213
3214 2006-09-20  Brady Eidson  <beidson@apple.com>
3215
3216         Reviewed by Darin
3217
3218         Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
3219
3220         * Misc/WebIconDatabase.m:
3221         (-[WebIconDatabase init]):
3222
3223 2006-09-19  Brady Eidson <beidson@apple.com>
3224
3225         Reviewed by Sarge Decker
3226
3227         <rdar://problem/4739892> and <rdar://problem/4729797>
3228         - WebCore::IconDatabase needs to have and respect an enabled() flag
3229         - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
3230
3231         * Misc/WebIconDatabase.m:
3232         (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
3233         (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
3234
3235 2006-09-19  Alexey Proskuryakov  <ap@nypop.com>
3236
3237         Reviewed by Tim O.
3238
3239         http://bugs.webkit.org/show_bug.cgi?id=10661
3240         REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
3241
3242         * Plugins/WebBasePluginPackage.m:
3243         (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if 
3244         the bundle is nil - it can be a CFM plugin.
3245
3246 2006-09-18  Brady Eidson  <beidson@apple.com>
3247
3248         Reviewed by Anders
3249
3250         Implement a bridge method so WebCore can find the reload type of a frame load
3251
3252         * WebCoreSupport/WebFrameBridge.m:
3253         (-[WebFrameBridge isLoadTypeReload]):
3254
3255 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
3256
3257         Reviewed by Tim H.
3258
3259         Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
3260         Yet Another Objective-C Bindings Patch
3261
3262         * MigrateHeaders.make:
3263
3264 2006-09-17  David Harrison  <harrison@apple.com>
3265
3266         Reviewed by John Sullivan.
3267
3268         <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
3269
3270         Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
3271         
3272         * WebView/WebDocumentInternal.h:
3273         Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
3274         
3275         * WebView/WebHTMLView.m:
3276         (-[WebHTMLView _textSizeMultiplierChanged]):
3277         Send [self _updateTextSizeMultiplier].
3278         
3279         * WebView/WebPDFView.m:
3280         (-[WebPDFView _textSizeMultiplierChanged]):
3281         ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
3282         
3283         * WebView/WebView.m:
3284         (-[WebView setTextSizeMultiplier:]):
3285         Send [self _notifyTextSizeMultiplierChanged];
3286         
3287         (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
3288         Alter the _textSizeMultiplier directly so that notification is not sent.
3289         Minor formatting.
3290         
3291         (-[WebView _notifyTextSizeMultiplierChanged]):
3292         New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
3293
3294 2006-09-16  Brady Eidson <beidson@apple.com>
3295
3296         Reviewed by Hyatt
3297
3298         WebIconLoader is dead, long live WebCore::IconLoader
3299         (code prune)
3300
3301         * Loader/WebFrameLoader.h:
3302         * Loader/WebFrameLoader.m:
3303         (-[WebFrameLoader dealloc]):
3304         (-[WebFrameLoader commitProvisionalLoad]):
3305         * Loader/WebIconLoader.h: Removed.
3306         * Loader/WebIconLoader.m: Removed.
3307         * Misc/WebIconDatabase.h:
3308         * Misc/WebIconDatabase.m:
3309         * Misc/WebIconDatabasePrivate.h:
3310         * WebCoreSupport/WebFrameBridge.m:
3311         (-[WebFrameBridge notifyIconChanged:]):
3312         * WebCoreSupport/WebIconDatabaseBridge.h:
3313         * WebCoreSupport/WebIconDatabaseBridge.m:
3314         (-[WebIconDatabaseBridge _init]):
3315         (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
3316         (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
3317         * WebKit.exp:
3318         * WebKit.xcodeproj/project.pbxproj:
3319         * WebView/WebDataSource.m:
3320         (-[WebDataSourcePrivate dealloc]):
3321         (-[WebDataSource _stopLoading]):
3322         (-[WebDataSource _setPrimaryLoadComplete:]):
3323         * WebView/WebDataSourceInternal.h:
3324
3325 2006-09-16  Mark Rowe  <opendarwin.org@bdash.net.nz>
3326
3327         Reviewed by Anders.
3328
3329         http://bugs.webkit.org/show_bug.cgi?id=10887
3330         Fix build error
3331
3332         * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
3333
3334 2006-09-15  Timothy Hatcher  <timothy@apple.com>
3335
3336         Reviewed by Brady.
3337
3338         Make new style ObjC methods public API.
3339
3340         * MigrateHeaders.make:
3341
3342 2006-09-15  Sam Weinig  <sam.weinig@gmail.com>
3343
3344         Reviewed by Tim H.
3345
3346         Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
3347         Auto-generate DOMNode for the Objective-C bindings
3348
3349         * MigrateHeaders.make:
3350
3351 2006-09-15  Timothy Hatcher  <timothy@apple.com>
3352
3353         Reviewed by Justin.
3354
3355         Call the bridge directly for alter selection calls. All of this logic is now
3356         in WebCore's SelectionController.
3357
3358         * WebView/WebHTMLView.m:
3359         (-[NSArray moveBackward:]):
3360         (-[NSArray moveBackwardAndModifySelection:]):
3361         (-[NSArray moveDown:]):
3362         (-[NSArray moveDownAndModifySelection:]):
3363         (-[NSArray moveForward:]):
3364         (-[NSArray moveForwardAndModifySelection:]):
3365         (-[NSArray moveLeft:]):
3366         (-[NSArray moveLeftAndModifySelection:]):
3367         (-[NSArray moveRight:]):
3368         (-[NSArray moveRightAndModifySelection:]):
3369         (-[NSArray moveToBeginningOfDocument:]):
3370         (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
3371         (-[NSArray moveToBeginningOfSentence:]):
3372         (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
3373         (-[NSArray moveToBeginningOfLine:]):
3374         (-[NSArray moveToBeginningOfLineAndModifySelection:]):
3375         (-[NSArray moveToBeginningOfParagraph:]):
3376         (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
3377         (-[NSArray moveToEndOfDocument:]):
3378         (-[NSArray moveToEndOfDocumentAndModifySelection:]):
3379         (-[NSArray moveToEndOfSentence:]):
3380         (-[NSArray moveToEndOfSentenceAndModifySelection:]):
3381         (-[NSArray moveToEndOfLine:]):
3382         (-[NSArray moveToEndOfLineAndModifySelection:]):
3383         (-[NSArray moveToEndOfParagraph:]):
3384         (-[NSArray moveToEndOfParagraphAndModifySelection:]):
3385         (-[NSArray moveParagraphBackwardAndModifySelection:]):
3386         (-[NSArray moveParagraphForwardAndModifySelection:]):
3387         (-[NSArray moveUp:]):
3388         (-[NSArray moveUpAndModifySelection:]):
3389         (-[NSArray moveWordBackward:]):
3390         (-[NSArray moveWordBackwardAndModifySelection:]):
3391         (-[NSArray moveWordForward:]):
3392         (-[NSArray moveWordForwardAndModifySelection:]):
3393         (-[NSArray moveWordLeft:]):
3394         (-[NSArray moveWordLeftAndModifySelection:]):
3395         (-[NSArray moveWordRight:]):
3396         (-[NSArray moveWordRightAndModifySelection:]):
3397         (-[NSArray pageUp:]):
3398         (-[NSArray pageDown:]):
3399         (-[NSArray pageUpAndModifySelection:]):
3400         (-[NSArray pageDownAndModifySelection:]):
3401
3402 2006-09-15  Adam Roben  <aroben@apple.com>
3403
3404         Reviewed by eseidel.
3405
3406         Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
3407         containsItemForURLUnicode uses matchLetter instead of
3408         matchUnicodeLetter
3409
3410         Small fixes for _WebCoreHistoryProvider.
3411
3412         * History/WebHistory.m: Consistently use BUFFER_SIZE #define
3413         (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
3414         (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
3415         Replace incorrect call to matchLetter to matchUnicodeLetter
3416
3417 2006-09-13  Brady Eidson <beidson@apple.com>
3418
3419         Reviewed by Maciej
3420
3421         Add infrastructure to support icon loads taking place in WebCore
3422         Will remove WebKit icon loaders in a later patch
3423
3424         * WebCoreSupport/WebFrameBridge.m:
3425         (-[WebFrameBridge notifyIconChanged:]):
3426         (-[WebFrameBridge originalRequestURL]):
3427         - Nuked two old, obsolete methods
3428         - Added bridge for notifying of an icon change
3429         - Added bridge for getting the "original request URL" which is still needed
3430           until that info is available in the WebCore loaders
3431
3432         * WebView/WebDataSource.m:
3433         (-[WebDataSource _loadIcon]):
3434         - Empty body just for now, as it still gets called - next patch will prune all the old impl out
3435
3436 2006-09-13  Timothy Hatcher  <timothy@apple.com>
3437
3438         Reviewed by Tim O.
3439
3440         <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
3441
3442         Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
3443
3444         * History/WebHistory.h:
3445
3446 === Safari-521.26 ===
3447
3448 2006-09-11  MorganL  <morlmor@yahoo.com>
3449
3450         Reviewed/landed by aroben.
3451
3452         Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
3453         Windows build busted due to std::copy usage in Vector.h
3454
3455         * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
3456         rid of deprecation warnings on std::copy
3457
3458 2006-09-11  Brady Eidson  <beidson@apple.com>
3459
3460         Despite the fact that some people built okay without this change, it sure was biting me, 
3461         probably because I just wiped my build directory for a fresh build - 
3462         Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
3463
3464         * MigrateHeaders.make: removed DOMList.h
3465
3466 2006-09-10  Darin Adler  <darin@apple.com>
3467
3468         Reviewed by Brady.
3469
3470         - fix http://bugs.webkit.org/show_bug.cgi?id=10547
3471           REGRESSION: Links that should open in a new window open in the same window,
3472           while opening another blank window
3473
3474         * WebView/WebFrame.m:
3475         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3476         Changed a mistaken "self" to "frame", which was the cause of the bug. Also
3477         fixed the method so that it won't crash if createWebViewWithRequest does
3478         something that has a side effect of releasing this WebView or this frame
3479         by retaining "self" and "frame" as needed. Also fixed a problem where the
3480         code to set "opener" was backwards, and would set the opener of the old
3481         frame to point to the new frame instead of vice versa.
3482
3483 2006-09-09  Sam Weinig  <sam.weinig@gmail.com>
3484
3485         Reviewed by Eric.
3486
3487         Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
3488         Auto-generate the Objective-C DOM XPath bindings
3489
3490         * MigrateHeaders.make:
3491
3492 2006-09-09  Sam Weinig  <sam.weinig@gmail.com>
3493
3494         Reviewed by Eric.
3495
3496         Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
3497         Even More Objective-C DOM auto-generation cleanup
3498
3499         * MigrateHeaders.make:
3500
3501 2006-09-08  Tim Omernick  <timo@apple.com>
3502
3503         Reviewed by Brady Eidson.
3504
3505         Rolled out Maciej's code cleanup from 8/22.  It turns out that keeping the "loading" flag
3506         is a useful optimization, as it avoids many Objective-C method calls while polling resources
3507         for their load state.
3508
3509         This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
3510
3511         * Loader/WebFrameLoader.m:
3512         (-[WebFrameLoader addPlugInStreamLoader:]):
3513         (-[WebFrameLoader removePlugInStreamLoader:]):
3514         (-[WebFrameLoader addSubresourceLoader:]):
3515         (-[WebFrameLoader removeSubresourceLoader:]):
3516         * WebView/WebDataSource.m:
3517         (-[WebDataSourcePrivate dealloc]):
3518         (-[WebDataSource _prepareForLoadStart]):
3519         (-[WebDataSource _setLoading:]):
3520         (-[WebDataSource _updateLoading]):
3521         (-[WebDataSource _startLoading]):
3522         (-[WebDataSource _stopLoading]):
3523         (-[WebDataSource _setPrimaryLoadComplete:]):
3524         (-[WebDataSource isLoading]):
3525         * WebView/WebDataSourceInternal.h:
3526
3527 2006-09-07  Sam Weinig  <sam.weinig@gmail.com>
3528
3529         Reviewed by Darin and Tim H.
3530
3531         Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
3532         Auto-generate the Objective-C DOM Traversal bindings
3533
3534         * MigrateHeaders.make:
3535
3536 2006-09-07  Sam Weinig  <sam.weinig@gmail.com>
3537
3538         Reviewed by Darin.
3539
3540         Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
3541         Auto-generate the Objective-C DOM Events bindings
3542
3543         * MigrateHeaders.make:
3544         * WebKit.xcodeproj/project.pbxproj:
3545
3546 2006-09-06  Alexey Proskuryakov  <ap@nypop.com>
3547
3548         * MigrateHeaders.make: Fixed a double slash in 
3549         "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
3550         to cause a build failure under certain circumstances).
3551
3552 2006-09-05  MorganL  <morlmor@yahoocom>
3553
3554         Reviewed/landed by aroben.
3555
3556         Fixes bug 10743: Windows build is busted.
3557
3558         * COM/WebView.cpp:
3559         (WebView::keyPress):
3560
3561 2006-09-05  Timothy Hatcher  <timothy@apple.com>
3562
3563         Reviewed by Darin.
3564
3565         Drastically simplified the makefile for migrating headers from
3566         WebCore and JavaScriptCore. The old version was always copying the files.
3567
3568         * MigrateHeaders.make:
3569
3570 2006-09-05  Darin Adler  <darin@apple.com>
3571
3572         Reviewed by Alexey.
3573
3574         - WebKit side of changes to encoding
3575
3576         * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
3577         Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
3578         the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
3579         and +[WebCoreFrameBridge stringWithData:textEncoding:].
3580
3581         * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
3582         nil encoding name. The bridge itself now has the rule that "nil encoding name
3583         means Latin-1", so we don't need to check for nil.
3584
3585         * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
3586         we get the parent frame while walking up parent frames, because it's possible
3587         for _checkLoadCompleteForThisFrame to release the last reference to the frame.
3588         (Not reviewed; needed to run performance tests successfully.)
3589
3590 2006-09-05  Timothy Hatcher  <timothy@apple.com>