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