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