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