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