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