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