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