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