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