JavaScriptCore:
[WebKit-https.git] / WebKit / ChangeLog
1 2006-06-15  Timothy Hatcher  <timothy@apple.com>
2
3         Reviewed by Geoff and Darin.
4         
5         Prefer the DWARF debugging symbols format for use in Xcode 2.3.
6
7         * WebKit.xcodeproj/project.pbxproj:
8
9 2006-06-15  John Sullivan  <sullivan@apple.com>
10
11         Reviewed by Tim O.
12         
13         Fixed bug in WebKit support for computing but not highlighting rects for text matches.
14
15         * WebView/WebView.m:
16         (-[WebView rectsForTextMatches]):
17         leave out empty rects, and convert rects to WebView coordinates. Since this makes a batch
18         of autoreleased NSValue objects, use a local autorelease pool
19
20 2006-02-11  David Kilzer  <ddkilzer@kilzer.net>
21
22         Reviewed by John Sullivan.
23
24         * Plugins/WebPluginController.m:
25         (-[WebPluginController _cancelOutstandingChecks]):
26         add nil check before calling CFSetApplyFunction
27
28 2006-06-14  Levi Weintraub  <lweintraub@apple.com>
29
30         Reviewed by justin
31         
32         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7580>
33         TinyMCE: Implement execCommand(formatBlock, ...)
34         
35         * English.lproj/Localizable.strings:
36         * WebCoreSupport/WebFrameBridge.m:
37         (-[WebFrameBridge nameForUndoAction:]):
38
39 2006-06-14  Tim Omernick  <timo@apple.com>
40
41         Reviewed by John Sullivan.
42
43         <rdar://problem/4577988> GC: WebPluginController uses inefficient resurrecting enumeration
44
45         * Plugins/WebPluginController.m:
46         (cancelOutstandingCheck):
47         (-[WebPluginController _cancelOutstandingChecks]):
48         Use CFSetApplyFunction() instead of an enumerator to guard against modifications to the set while enumerating.
49
50 2006-06-13  John Sullivan  <sullivan@apple.com>
51
52         Reviewed by Tim O.
53         
54         - fixed <rdar://problem/4498606> REGRESSION (417.8-420+): 3 missing items (but extra separators) in context 
55         menu in Mail message body
56
57         * WebView/WebView.m:
58         (-[WebView _menuForElement:defaultItems:]):
59         Add special-case hackery to recover from this SPI -> API mismatch.
60
61 2006-06-13  Tim Omernick  <timo@apple.com>
62
63         Reviewed by Anders.
64
65         Fixed a recently-introduced assertion failure when handling 404 errors.
66
67         * WebView/WebDataSource.m:
68         (-[WebDataSource _handleFallbackContent]):
69         Use the -[WebFrame _bridge] instead of -[WebDataSource _bridge].  The former is not valid until the data
70         source has been committed, which is not the case when the resource fails to load.  The latter is safe to call
71         at any time.  This broke last night with Maciej's change to WebFrameResourceLoader.  The old code used to
72         call -[WebFrame _bridge].
73
74 2006-06-13  Anders Carlsson  <acarlsson@apple.com>
75
76         Reviewed by Geoff.
77
78         http://bugzilla.opendarwin.org/show_bug.cgi?id=9406
79         REGRESSION: fix for bug 9390 broke two layout tests
80
81         * Plugins/WebPluginDatabase.h:
82         (-[WebPluginDatabase isMIMETypeRegistered:]):
83         Add new function isMIMETypeRegistered which returns whether a given MIME type has a 
84         plugin registered. 
85
86         * Plugins/WebPluginDatabase.m:
87         (-[WebPluginDatabase init]):        
88         Init set of registered MIME types.
89         
90         (-[WebPluginDatabase refresh]):
91         Add and remove MIME types from the set of registered MIME types when registering and unregistering
92         plugin MIME types.
93         
94         (-[WebPluginDatabase dealloc]):
95         Release set of registered MIME types.
96         
97         * WebCoreSupport/WebFrameBridge.m:
98         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
99         Use isMIMETypeRegistered here.
100
101 2006-06-12  Maciej Stachowiak  <mjs@apple.com>
102
103         - fix for cocoa exception (whoops)
104
105         * WebView/WebView.m:
106         (+[WebView _generatedMIMETypeForURLScheme:]): put this back
107         * WebView/WebDataSource.m:
108         (+[WebDataSource _generatedMIMETypeForURLScheme:]): call WebView
109
110 2006-06-12  Maciej Stachowiak  <mjs@apple.com>
111
112         Reviewed by Darin.
113         
114         - remove use of WebView and related from WebMainResourceLoader
115
116         * WebKit.xcodeproj/project.pbxproj:
117         * WebView/WebDataSource.m:
118         (+[WebDataSource _generatedMIMETypeForURLScheme:]):
119         (+[WebDataSource _representationExistsForURLScheme:]):
120         (+[WebDataSource _canShowMIMEType:]):
121         (-[WebDataSource _handleFallbackContent]):
122         (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
123         * WebView/WebDataSourceInternal.h:
124         * WebView/WebFrame.m:
125         (-[WebFrame _isMainFrame]):
126         * WebView/WebFrameInternal.h:
127         * WebView/WebMainResourceLoader.m:
128         (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
129         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
130         (-[WebMainResourceLoader checkContentPolicyForResponse:]):
131         (-[WebMainResourceLoader loadWithRequestNow:]):
132         * WebView/WebView.m:
133
134 2006-06-12  Tim Omernick  <timo@apple.com>
135
136         Reviewed by Maciej.
137
138         <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests
139
140         * Plugins/WebNetscapePluginPackage.m:
141         (-[WebNetscapePluginPackage _initWithPath:]):
142         Renamed from -initWithPath:.  Instead of releasing/deallocating self on error, return NO.
143         (-[WebNetscapePluginPackage initWithPath:]):
144         Call the new -_initWithPath:.  If it returns NO, unload the plugin package before deallocating it.
145         
146 >>>>>>> .r14837
147 2006-06-11  Darin Adler  <darin@apple.com>
148
149         - try to fix Windows build
150
151         * COM/WebKitDLL.cpp: (loadResourceIntoArray): Use Vector<char> instead of
152         DeprecatedByteArray.
153
154 2006-06-11  Mitz Pettel  <opendarwin.org@mitzpettel.com>
155
156         Reviewed by Tim H.
157
158         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8672
159           Red outline from web inspector reappears after inspector is closed
160
161         * WebInspector/WebInspector.m:
162         (-[NSWindow windowWillClose:]): Added a call to setWebFrame to avoid further
163         load progress notifications.
164         (-[NSWindow setWebFrame:]): Changed to resign the WebView's hostWindow rather
165         than its window for close notifications, to avoid resigning from all windows' close
166         notifications (including the inspector window's) when the WebView is in a hidden tab.
167         Also changed to prevent highlighting the initial focused node.
168
169 2006-06-11  Anders Carlsson  <acarlsson@apple.com>
170
171         Reviewed by Tim.
172
173         http://bugzilla.opendarwin.org/show_bug.cgi?id=9390
174         Move full-frame plugins to WebCore
175
176         * Plugins/WebBaseNetscapePluginStream.h:
177         * Plugins/WebBaseNetscapePluginStream.m:
178         (-[WebBaseNetscapePluginStream instance]):
179         Add instance method which returns the plugin instance.
180         
181         * Plugins/WebBasePluginPackage.h:
182         Add WebPluginManualLoader protocol
183         
184         * Plugins/WebNetscapePluginDocumentView.h: Removed.
185         * Plugins/WebNetscapePluginDocumentView.m: Removed.
186
187         * Plugins/WebNetscapePluginEmbeddedView.h:
188         * Plugins/WebNetscapePluginEmbeddedView.m:
189         (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:]):
190         (-[WebNetscapePluginEmbeddedView dealloc]):
191         (-[WebNetscapePluginEmbeddedView didStart]):
192         (-[WebNetscapePluginEmbeddedView pluginView:receivedResponse:]):
193         (-[WebNetscapePluginEmbeddedView pluginView:receivedData:]):
194         (-[WebNetscapePluginEmbeddedView pluginView:receivedError:]):
195         (-[WebNetscapePluginEmbeddedView pluginViewFinishedLoading:]):
196         (-[WebNetscapePluginEmbeddedView redeliverStream]):
197         Make WebNetscapePluginEmbeddedView support the WebPluginManualLoader protocol. It creates a plugin stream and feeds the
198         data manually. Much of this code has been copied from WebNetscapePluginRepresentation.
199
200         * Plugins/WebNetscapePluginRepresentation.h: Removed.
201         * Plugins/WebNetscapePluginRepresentation.m: Removed.
202
203         * Plugins/WebPluginController.h:
204         * Plugins/WebPluginController.m:
205         (-[WebPluginController pluginView:receivedResponse:]):
206         (-[WebPluginController pluginView:receivedData:]):
207         (-[WebPluginController pluginView:receivedError:]):
208         (-[WebPluginController pluginViewFinishedLoading:]):
209         Make WebPluginController support the WebPluginManualLoader protocol so it can feed data manually to WebKit plugins.
210
211         * Plugins/WebPluginDatabase.m:        
212         (-[WebPluginDatabase refresh]):
213         Use WebHTMLView and WebHTMLRepresentation when registering/unregistering plug-in MIME types.
214         
215         * Plugins/WebPluginDocumentView.h: Removed.
216         * Plugins/WebPluginDocumentView.m: Removed.
217
218         * WebCoreSupport/WebFrameBridge.m:
219         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
220         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
221         Add loadManually argument.
222         
223         (-[WebFrameBridge redirectDataToPlugin:]):
224         Call down to the HTML representation.
225         
226         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
227         Pass NO to loadManually.
228         
229         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
230         Explicitly check if the MIME type is supported by a plug-in instead of checking the view class.
231         
232         * WebCoreSupport/WebViewFactory.m:
233         (-[WebViewFactory pluginSupportsMIMEType:]):
234         New function which returns whether any plugins support a given MIME type.
235         
236         * WebKit.xcodeproj/project.pbxproj:
237         Update for removed files.
238         
239         * WebView/WebFrame.m:
240         (-[WebFrame _reloadForPluginChanges]):
241         Remove view type checks.
242         
243         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
244         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
245         Remove FIXME comments.
246         
247         * WebView/WebHTMLRepresentation.m:
248         (-[WebHTMLRepresentation _redirectDataToManualLoader:forPluginView:]):        
249         New function which redirects incoming data to a manual loader.
250         
251         (-[WebHTMLRepresentation receivedData:withDataSource:]):
252         (-[WebHTMLRepresentation receivedError:withDataSource:]):
253         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
254         Optionally redirect incoming data.
255         
256         * WebView/WebHTMLRepresentationPrivate.h:
257
258 2006-06-09  John Sullivan  <sullivan@apple.com>
259
260         Reviewed by Tim Omernick and Dave Hyatt.
261
262         WebKit support for computing but not highlighting rects for text matches.
263
264         * WebView/WebHTMLViewPrivate.h:
265         added markedTextMatchesAreHighlighted/setMarkedTextMatchesAreHighlighted and
266         rectsForTextMatches, and renamed related methods for clarity/consistency
267         * WebView/WebHTMLView.m:
268         (-[WebHTMLView markAllMatchesForText:caseSensitive:]):
269         renamed, calls similarly-renamed method
270         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
271         new method, calls through to bridge
272         (-[WebHTMLView markedTextMatchesAreHighlighted]):
273         ditto
274         (-[WebHTMLView unmarkAllTextMatches]):
275         renamed
276         (-[WebHTMLView rectsForTextMatches]):
277         new method, calls through to bridge
278
279         * WebView/WebViewPrivate.h:
280         added rectsForTextMatches, renamed other methods (and added highlight: parameter)
281         * WebView/WebView.m:
282         (-[WebView markAllMatchesForText:caseSensitive:highlight:]):
283         renamed for clarity/consistency, and now has highlight: parameter, which is passed down
284         (-[WebView unmarkAllTextMatches]):
285         renamed for clarity/consistency, and calls similarly-renamed method lower down. diff got
286         confused with the end of this and the end of the next method.
287         (-[WebView rectsForTextMatches]):
288         new method, calls through to WebHTMLView as related methods currently do
289
290 2006-06-10  Graham Dennis  <Graham.Dennis@gmail.com>
291
292         <http://bugzilla.opendarwin.org/show_bug.cgi?id=9384>
293         WebView's initWithCoder: method does not set useBackForwardList
294         correctly
295         
296         Reviewed by John Sullivan.
297
298         * WebView/WebView.m:
299         (-[WebView initWithCoder:]):
300         Make sure that the function variable useBackForwardList is correctly
301         set, so that the copy in the _private ivar is set.
302
303 2006-06-09  David Hyatt  <hyatt@apple.com>
304
305         Rename updateFocusState to updateActiveState.
306
307         * WebView/WebHTMLView.m:
308         (-[WebHTMLView _updateActiveState]):
309         (-[NSArray viewDidMoveToWindow]):
310         (-[NSArray windowDidBecomeKey:]):
311         (-[NSArray windowDidResignKey:]):
312         (-[NSArray becomeFirstResponder]):
313         (-[NSArray resignFirstResponder]):
314         (-[WebHTMLView _formControlIsBecomingFirstResponder:]):
315         (-[WebHTMLView _formControlIsResigningFirstResponder:]):
316         * WebView/WebHTMLViewPrivate.h:
317
318 2006-06-09  David Hyatt  <hyatt@apple.com>
319
320         Rename displaysWithFocusAttributes to isActive.
321
322         Reviewed by sfalken
323
324         * WebKit.xcodeproj/project.pbxproj:
325         * WebView/WebHTMLView.m:
326         (-[WebHTMLView _updateFocusState]):
327
328 2006-06-08  Justin Garcia  <justin.garcia@apple.com>
329
330         Reviewed by levi
331         
332         <http://bugzilla.opendarwin.org/show_bug.cgi?id=4468>
333         Implement execCommand(Insert{Un}OrderedList)
334
335         * WebView/WebFrame.m:
336         (-[WebFrame _findFrameWithSelection]): Removed an assertion
337         that we only have one frame with a selection.  
338         * WebView/WebView.m:
339         (-[WebView selectedFrame]): Ditto.
340
341 2006-06-08  Timothy Hatcher  <timothy@apple.com>
342
343         Reviewed by Darin and John.
344
345         <rdar://problem/3600734> API: please add a way to turn vertical scrollbar
346         always on (for Mail, to avoid reflow when typing)
347
348         Adds new methods to lock the scrolling mode on WebDynamicScrollBarsView.
349         Locking the scroll mode prevents WebCore from changing it as needed.
350         Also adds an SPI on WebView that will lock the "always on" mode
351         for each scroller.
352
353         * WebKit.xcodeproj/project.pbxproj:
354         * WebView/WebDynamicScrollBarsView.h:
355         * WebView/WebDynamicScrollBarsView.m:
356         (-[WebDynamicScrollBarsView setAllowsScrolling:]):
357         (-[WebDynamicScrollBarsView allowsScrolling]):
358         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
359         (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
360         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
361         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
362         (-[WebDynamicScrollBarsView setScrollingMode:]):
363         (-[WebDynamicScrollBarsView setHorizontalScrollingModeLocked:]):
364         (-[WebDynamicScrollBarsView setVerticalScrollingModeLocked:]):
365         (-[WebDynamicScrollBarsView setScrollingModesLocked:]):
366         (-[WebDynamicScrollBarsView horizontalScrollingModeLocked]):
367         (-[WebDynamicScrollBarsView verticalScrollingModeLocked]):
368         * WebView/WebView.m:
369         (-[WebView setAlwaysShowVerticalScroller:]):
370         (-[WebView alwaysShowVerticalScroller]):
371         (-[WebView setAlwaysShowHorizontalScroller:]):
372         (-[WebView alwaysShowHorizontalScroller]):
373         * WebView/WebViewPrivate.h:
374
375 2006-06-08  Darin Adler  <darin@apple.com>
376
377         Reviewed by Justin.
378
379         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8616
380           REGRESSION: TinyMCE: Crash on Undo
381
382         * WebView/WebHTMLView.m:
383         (-[WebHTMLView _topHTMLView]): Added.
384         (-[WebHTMLView _isTopHTMLView]): Added.
385         (-[WebHTMLView _insideAnotherHTMLView]): Changed to use _topHTMLView.
386         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
387         Forward to the top HTML view, so that only the top view ever starts a dragging operation.
388         Change dragging code to not assume that the dragged node is in the current view's document.
389         Added checks that the node is an element in a couple places and coordinate conversions.
390         (-[WebHTMLView _mayStartDragAtEventLocation:]): Forward to the top HTML view.
391         (-[NSArray addMouseMovedObserver]): Change to do nothing when the dataSource field is 0,
392         since we now use the dataSource field to get to the WebView.
393         (-[NSArray removeMouseMovedObserver]): Added a comment.
394         (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]):
395         Forward to the top HTML view.
396         (-[NSArray draggingSourceOperationMaskForLocal:]): Assert that it's the top HTML view.
397         (-[NSArray draggedImage:movedTo:]): Ditto.
398         (-[NSArray draggedImage:endedAt:operation:]): Ditto.
399         (-[NSArray namesOfPromisedFilesDroppedAtDestination:]): Ditto.
400         (-[NSArray _canProcessDragWithDraggingInfo:]): Ditto.
401         (-[NSArray _isMoveDrag]): Ditto.
402         (-[NSArray draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
403         (-[NSArray draggingCancelledWithDraggingInfo:]): Ditto.
404         (-[NSArray concludeDragForDraggingInfo:actionMask:]): Ditto. Also added code to work
405         with the appropriate bridge when receiving a drag. This fixes the problem where the
406         top level frame got a selection intended for the inner frame; the source of the bug.
407         (-[NSArray elementAtPoint:allowShadowContent:]): Added code to convert the coordinates
408         so this works properly when returning an element from an inner frame.
409         (-[NSArray setDataSource:]): Added a call to addMouseMovedObserver, needed now that
410         addMouseMovedObserver won't do anything if called when dataSource is nil.
411         (-[WebHTMLView _delegateDragSourceActionMask]): Forward to the top HTML view.
412
413         * WebView/WebView.m:
414         (-[WebViewPrivate dealloc]): Removed code to release dragCaretBridge since that field
415         is now gone.
416         (-[WebView moveDragCaretToPoint:]): Always call the main frame's bridge, since the
417         drag caret is now a page-level item. Later we'll move it to the page bridge.
418         (-[WebView removeDragCaret]): Ditto.
419
420 2006-06-07  David Hyatt  <hyatt@apple.com>
421
422         Add support for custom highlighting to WebKit.
423
424         Reviewed by justin
425
426         * WebCoreSupport/WebFrameBridge.m:
427         (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:]):
428         * WebView/WebHTMLView.m:
429         (-[WebHTMLView _highlighterForType:]):
430         * WebView/WebHTMLViewInternal.h:
431         * WebView/WebHTMLViewPrivate.h:
432
433 2006-06-07  Adele Peterson  <adele@apple.com>
434
435         Reviewed by Hyatt. 
436
437         Added resources for missingImage and textAreaResizeCorner.
438
439         * COM/WebKitDLL.cpp:
440         (loadResourceIntoArray): Added. Returns a DeprecatedByteArray with the resource's data.
441         * WebKit.vcproj/WebKit.rc: Added missing image and resize pngs as resources. 
442         * WebKit.vcproj/WebKit.vcproj: Added pngs.
443         * WebKit.vcproj/missingImage.png: Added.
444         * WebKit.vcproj/resource.h: Added entries for pngs.
445         * WebKit.vcproj/textAreaResizeCorner.png: Added.
446
447 2006-06-07  David Hyatt  <hyatt@apple.com>
448
449         Add SPI for setting and removing custom highlighters.
450
451         Reviewed by Tim H
452
453         * WebView/WebHTMLView.m:
454         (-[WebTextCompleteController dealloc]):
455         (-[WebHTMLView _setHighlighter:ofType:]):
456         (-[WebHTMLView _removeHighlighterOfType:]):
457         * WebView/WebHTMLViewInternal.h:
458         * WebView/WebHTMLViewPrivate.h:
459
460 2006-06-06  Adele Peterson  <adele@apple.com>
461
462         Reviewed by Justin. 
463
464         * COM/WebView.cpp:
465         (WebView::keyPress): Added case for VK_RETURN. 
466
467 2006-06-06  Anders Carlsson  <acarlsson@apple.com>
468
469         Reviewed by John.
470
471         * WebView/WebFrame.m:
472         (-[WebFrame _reloadForPluginChanges]):
473         Don't traverse the view hierarchy looking for plugin views. Instead, just
474         ask the frame whether it contains any plugins.
475
476 2006-06-03  Steve Falkenburg  <sfalken@apple.com>
477
478         Reviewed by hyatt.
479         
480         Add implementation of loadHTMLString for Spinneret
481
482         * COM/WebFrame.cpp:
483         (WebFrame::loadHTMLString):
484
485 2006-06-02  Steve Falkenburg  <sfalken@apple.com>
486
487         Reviewed by darin.
488
489         New hosting for Spinneret to avoid static linking
490
491         * COM: Added.
492         * COM/Interfaces: Added.
493         * COM/Interfaces/DOMCSS.idl: Added.
494         * COM/Interfaces/DOMCore.idl: Added.
495         * COM/Interfaces/DOMHTML.idl: Added.
496         * COM/Interfaces/DOMRange.idl: Added.
497         * COM/Interfaces/IWebArchive.idl: Added.
498         * COM/Interfaces/IWebAttributedString.idl: Added.
499         * COM/Interfaces/IWebBackForwardList.idl: Added.
500         * COM/Interfaces/IWebDataSource.idl: Added.
501         * COM/Interfaces/IWebDocument.idl: Added.
502         * COM/Interfaces/IWebDownload.idl: Added.
503         * COM/Interfaces/IWebEditingDelegate.idl: Added.
504         * COM/Interfaces/IWebError.idl: Added.
505         * COM/Interfaces/IWebFrame.idl: Added.
506         * COM/Interfaces/IWebFrameLoadDelegate.idl: Added.
507         * COM/Interfaces/IWebFrameView.idl: Added.
508         * COM/Interfaces/IWebHistoryItem.idl: Added.
509         * COM/Interfaces/IWebIconDatabase.idl: Added.
510         * COM/Interfaces/IWebImage.idl: Added.
511         * COM/Interfaces/IWebMutableURLRequest.idl: Added.
512         * COM/Interfaces/IWebNotification.idl: Added.
513         * COM/Interfaces/IWebPolicyDelegate.idl: Added.
514         * COM/Interfaces/IWebPreferences.idl: Added.
515         * COM/Interfaces/IWebResource.idl: Added.
516         * COM/Interfaces/IWebResourceLoadDelegate.idl: Added.
517         * COM/Interfaces/IWebScriptObject.idl: Added.
518         * COM/Interfaces/IWebUIDelegate.idl: Added.
519         * COM/Interfaces/IWebURLAuthenticationChallenge.idl: Added.
520         * COM/Interfaces/IWebURLRequest.idl: Added.
521         * COM/Interfaces/IWebURLResponse.idl: Added.
522         * COM/Interfaces/IWebUndoManager.idl: Added.
523         * COM/Interfaces/IWebView.idl: Added.
524         * COM/Interfaces/WebKit.idl: Added.
525         * COM/WebBackForwardList.cpp: Added.
526         (WebBackForwardList::WebBackForwardList):
527         (WebBackForwardList::~WebBackForwardList):
528         (WebBackForwardList::createInstance):
529         (WebBackForwardList::QueryInterface):
530         (WebBackForwardList::AddRef):
531         (WebBackForwardList::Release):
532         (WebBackForwardList::addItem):
533         (WebBackForwardList::goBack):
534         (WebBackForwardList::goForward):
535         (WebBackForwardList::goToItem):
536         (WebBackForwardList::backItem):
537         (WebBackForwardList::currentItem):
538         (WebBackForwardList::forwardItem):
539         (WebBackForwardList::backListWithLimit):
540         (WebBackForwardList::forwardListWithLimit):
541         (WebBackForwardList::capacity):
542         (WebBackForwardList::setCapacity):
543         (WebBackForwardList::backListCount):
544         (WebBackForwardList::forwardListCount):
545         (WebBackForwardList::containsItem):
546         (WebBackForwardList::itemAtIndex):
547         (WebBackForwardList::setPageCacheSize):
548         (WebBackForwardList::pageCacheSize):
549         * COM/WebBackForwardList.h: Added.
550         * COM/WebDataSource.cpp: Added.
551         (WebDataSource::WebDataSource):
552         (WebDataSource::~WebDataSource):
553         (WebDataSource::createInstance):
554         (WebDataSource::QueryInterface):
555         (WebDataSource::AddRef):
556         (WebDataSource::Release):
557         (WebDataSource::initWithRequest):
558         (WebDataSource::data):
559         (WebDataSource::representation):
560         (WebDataSource::webFrame):
561         (WebDataSource::initialRequest):
562         (WebDataSource::request):
563         (WebDataSource::response):
564         (WebDataSource::textEncodingName):
565         (WebDataSource::isLoading):
566         (WebDataSource::pageTitle):
567         (WebDataSource::unreachableURL):
568         (WebDataSource::webArchive):
569         (WebDataSource::mainResource):
570         (WebDataSource::subresources):
571         (WebDataSource::subresourceForURL):
572         (WebDataSource::addSubresource):
573         * COM/WebDataSource.h: Added.
574         * COM/WebFrame.cpp: Added.
575         (WebFrame::WebFramePrivate::WebFramePrivate):
576         (WebFrame::WebFramePrivate::~WebFramePrivate):
577         (WebFrame::WebFrame):
578         (WebFrame::~WebFrame):
579         (WebFrame::createInstance):
580         (WebFrame::QueryInterface):
581         (WebFrame::AddRef):
582         (WebFrame::Release):
583         (WebFrame::initWithName):
584         (WebFrame::name):
585         (WebFrame::webView):
586         (WebFrame::frameView):
587         (WebFrame::DOMDocument):
588         (WebFrame::frameElement):
589         (WebFrame::loadRequest):
590         (WebFrame::loadData):
591         (WebFrame::loadHTMLString):
592         (WebFrame::loadAlternateHTMLString):
593         (WebFrame::loadArchive):
594         (WebFrame::dataSource):
595         (WebFrame::provisionalDataSource):
596         (WebFrame::stopLoading):
597         (WebFrame::reload):
598         (WebFrame::findFrameNamed):
599         (WebFrame::parentFrame):
600         (WebFrame::childFrames):
601         (WebFrame::paint):
602         (WebFrame::impl):
603         (WebFrame::loadDataSource):
604         (WebFrame::loading):
605         (WebFrame::goToItem):
606         (WebFrame::loadItem):
607         (WebSystemMainMemory):
608         (WebFrame::getObjectCacheSize):
609         (WebFrame::receivedRedirect):
610         (WebFrame::receivedResponse):
611         (WebFrame::receivedData):
612         (WebFrame::receivedAllData):
613         (WebFrame::openURL):
614         (WebFrame::submitForm):
615         (WebFrame::setTitle):
616         (WebFrame::setStatusText):
617         * COM/WebFrame.h: Added.
618         * COM/WebHistoryItem.cpp: Added.
619         (WebHistoryItem::WebHistoryItem):
620         (WebHistoryItem::~WebHistoryItem):
621         (WebHistoryItem::createInstance):
622         (WebHistoryItem::QueryInterface):
623         (WebHistoryItem::AddRef):
624         (WebHistoryItem::Release):
625         (WebHistoryItem::initWithURLString):
626         (WebHistoryItem::originalURLString):
627         (WebHistoryItem::URLString):
628         (WebHistoryItem::title):
629         (WebHistoryItem::lastVisitedTimeInterval):
630         (WebHistoryItem::setAlternateTitle):
631         (WebHistoryItem::alternateTitle):
632         (WebHistoryItem::icon):
633         * COM/WebHistoryItem.h: Added.
634         * COM/WebIconDatabase.cpp: Added.
635         (WebIconDatabase::WebIconDatabase):
636         (WebIconDatabase::~WebIconDatabase):
637         (WebIconDatabase::createInstance):
638         (WebIconDatabase::QueryInterface):
639         (WebIconDatabase::AddRef):
640         (WebIconDatabase::Release):
641         (WebIconDatabase::sharedIconDatabase):
642         (WebIconDatabase::iconForURL):
643         (WebIconDatabase::defaultIconWithSize):
644         (WebIconDatabase::retainIconForURL):
645         (WebIconDatabase::releaseIconForURL):
646         (WebIconDatabase::delayDatabaseCleanup):
647         (WebIconDatabase::allowDatabaseCleanup):
648         * COM/WebIconDatabase.h: Added.
649         * COM/WebKitClassFactory.cpp: Added.
650         (WebKitClassFactory::WebKitClassFactory):
651         (WebKitClassFactory::~WebKitClassFactory):
652         (WebKitClassFactory::QueryInterface):
653         (WebKitClassFactory::AddRef):
654         (WebKitClassFactory::Release):
655         (WebKitClassFactory::CreateInstance):
656         (WebKitClassFactory::LockServer):
657         * COM/WebKitClassFactory.h: Added.
658         * COM/WebKitDLL.cpp: Added.
659         (DllMain):
660         (DllGetClassObject):
661         (DllCanUnloadNow):
662         (DllUnregisterServer):
663         (DllRegisterServer):
664         * COM/WebKitDLL.h: Added.
665         * COM/WebMutableURLRequest.cpp: Added.
666         (WebMutableURLRequest::WebMutableURLRequest):
667         (WebMutableURLRequest::~WebMutableURLRequest):
668         (WebMutableURLRequest::createInstance):
669         (WebMutableURLRequest::QueryInterface):
670         (WebMutableURLRequest::AddRef):
671         (WebMutableURLRequest::Release):
672         (WebMutableURLRequest::requestWithURL):
673         (WebMutableURLRequest::allHTTPHeaderFields):
674         (WebMutableURLRequest::cachePolicy):
675         (WebMutableURLRequest::HTTPBody):
676         (WebMutableURLRequest::HTTPBodyStream):
677         (WebMutableURLRequest::HTTPMethod):
678         (WebMutableURLRequest::HTTPShouldHandleCookies):
679         (WebMutableURLRequest::initWithURL):
680         (WebMutableURLRequest::mainDocumentURL):
681         (WebMutableURLRequest::timeoutInterval):
682         (WebMutableURLRequest::URL):
683         (WebMutableURLRequest::valueForHTTPHeaderField):
684         (WebMutableURLRequest::addValue):
685         (WebMutableURLRequest::setAllHTTPHeaderFields):
686         (WebMutableURLRequest::setCachePolicy):
687         (WebMutableURLRequest::setHTTPBody):
688         (WebMutableURLRequest::setHTTPBodyStream):
689         (WebMutableURLRequest::setHTTPMethod):
690         (WebMutableURLRequest::setHTTPShouldHandleCookies):
691         (WebMutableURLRequest::setMainDocumentURL):
692         (WebMutableURLRequest::setTimeoutInterval):
693         (WebMutableURLRequest::setURL):
694         (WebMutableURLRequest::setValue):
695         (WebMutableURLRequest::setFormData):
696         (WebMutableURLRequest::formData):
697         * COM/WebMutableURLRequest.h: Added.
698         * COM/WebView.cpp: Added.
699         (WebView::WebView):
700         (WebView::~WebView):
701         (WebView::createInstance):
702         (WebView::mouseMoved):
703         (WebView::mouseDown):
704         (WebView::mouseUp):
705         (WebView::mouseDoubleClick):
706         (WebView::keyPress):
707         (registerWebView):
708         (WebViewWndProc):
709         (calculateScrollDelta):
710         (scrollMessageForKey):
711         (WebView::goToItem):
712         (WebView::QueryInterface):
713         (WebView::AddRef):
714         (WebView::Release):
715         (WebView::canShowMIMEType):
716         (WebView::canShowMIMETypeAsHTML):
717         (WebView::MIMETypesShownAsHTML):
718         (WebView::setMIMETypesShownAsHTML):
719         (WebView::URLFromPasteboard):
720         (WebView::URLTitleFromPasteboard):
721         (WebView::initWithFrame):
722         (WebView::setUIDelegate):
723         (WebView::uiDelegate):
724         (WebView::setResourceLoadDelegate):
725         (WebView::resourceLoadDelegate):
726         (WebView::setDownloadDelegate):
727         (WebView::downloadDelegate):
728         (WebView::setFrameLoadDelegate):
729         (WebView::frameLoadDelegate):
730         (WebView::setPolicyDelegate):
731         (WebView::policyDelegate):
732         (WebView::mainFrame):
733         (WebView::backForwardList):
734         (WebView::setMaintainsBackForwardList):
735         (WebView::goBack):
736         (WebView::goForward):
737         (WebView::goToBackForwardItem):
738         (WebView::setTextSizeMultiplier):
739         (WebView::textSizeMultiplier):
740         (WebView::setApplicationNameForUserAgent):
741         (WebView::applicationNameForUserAgent):
742         (WebView::setCustomUserAgent):
743         (WebView::customUserAgent):
744         (WebView::userAgentForURL):
745         (WebView::supportsTextEncoding):
746         (WebView::setCustomTextEncodingName):
747         (WebView::customTextEncodingName):
748         (WebView::setMediaStyle):
749         (WebView::mediaStyle):
750         (WebView::stringByEvaluatingJavaScriptFromString):
751         (WebView::windowScriptObject):
752         (WebView::setPreferences):
753         (WebView::preferences):
754         (WebView::setPreferencesIdentifier):
755         (WebView::preferencesIdentifier):
756         (WebView::setHostWindow):
757         (WebView::hostWindow):
758         (WebView::searchFor):
759         (WebView::registerViewClass):
760         (WebView::takeStringURLFrom):
761         (WebView::stopLoading):
762         (WebView::reload):
763         (WebView::canGoBack):
764         (WebView::canGoForward):
765         (WebView::canMakeTextLarger):
766         (WebView::makeTextLarger):
767         (WebView::canMakeTextSmaller):
768         (WebView::makeTextSmaller):
769         (WebView::computedStyleForElement):
770         (WebView::editableDOMRangeForPoint):
771         (WebView::setSelectedDOMRange):
772         (WebView::selectedDOMRange):
773         (WebView::selectionAffinity):
774         (WebView::setEditable):
775         (WebView::isEditable):
776         (WebView::setTypingStyle):
777         (WebView::typingStyle):
778         (WebView::setSmartInsertDeleteEnabled):
779         (WebView::smartInsertDeleteEnabled):
780         (WebView::setContinuousSpellCheckingEnabled):
781         (WebView::isContinuousSpellCheckingEnabled):
782         (WebView::spellCheckerDocumentTag):
783         (WebView::undoManager):
784         (WebView::setEditingDelegate):
785         (WebView::editingDelegate):
786         (WebView::styleDeclarationWithText):
787         (WebView::replaceSelectionWithNode):
788         (WebView::replaceSelectionWithText):
789         (WebView::replaceSelectionWithMarkupString):
790         (WebView::replaceSelectionWithArchive):
791         (WebView::deleteSelection):
792         (WebView::applyStyle):
793         (WebView::copy):
794         (WebView::cut):
795         (WebView::paste):
796         (WebView::copyFont):
797         (WebView::pasteFont):
798         (WebView::delete_):
799         (WebView::pasteAsPlainText):
800         (WebView::pasteAsRichText):
801         (WebView::changeFont):
802         (WebView::changeAttributes):
803         (WebView::changeDocumentBackgroundColor):
804         (WebView::changeColor):
805         (WebView::alignCenter):
806         (WebView::alignJustified):
807         (WebView::alignLeft):
808         (WebView::alignRight):
809         (WebView::checkSpelling):
810         (WebView::showGuessPanel):
811         (WebView::performFindPanelAction):
812         (WebView::startSpeaking):
813         (WebView::stopSpeaking):
814         (WebView::viewWindow):
815         * COM/WebView.h: Added.
816         * WebKit.vcproj: Added.
817         * WebKit.vcproj/Interfaces.vcproj: Added.
818         * WebKit.vcproj/WebKit.def: Added.
819         * WebKit.vcproj/WebKit.rc: Added.
820         * WebKit.vcproj/WebKit.sln: Added.
821         * WebKit.vcproj/WebKit.vcproj: Added.
822         * WebKit.vcproj/WebKitGUID.vcproj: Added.
823         * WebKit.vcproj/autoversion.h: Added.
824         * WebKit.vcproj/resource.h: Added.
825
826 2006-06-02  Darin Adler  <darin@apple.com>
827
828         * WebCoreSupport/WebImageRendererFactory.m: Fix crash on Safari startup
829         by include NSObject as a superclass (oops!).
830
831 2006-06-01  Darin Adler  <darin@apple.com>
832
833         Reviewed by Maciej.
834
835         - WebCore doesn't need to load WebKit images any more; removed code for that
836
837         * Resources/missing_image.tiff: Removed.
838         * WebCoreSupport/WebImageRendererFactory.h: Removed.
839
840         * WebCoreSupport/WebImageRendererFactory.m: Moved @interface in here.
841         Removed all but the "threaded decoding" calls that older Safari calls.
842         This file can go altogether when compatibility with that older Safari
843         is no longer needed.
844
845         * WebKit.xcodeproj/project.pbxproj: Removed WebImageRendererFactory.h
846         and missing_image.tiff.
847
848         * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Removed call
849         to [WebImageRendererFactory createSharedFactory].
850
851 2006-06-01  Brady Eidson  <beidson@apple.com>
852
853         Reviewed by Maciej.
854
855         Simple changes to hook up the new WebCore based Icon Database
856         for testing.
857
858         * ChangeLog:
859         * Misc/WebIconDatabase.m:
860         (-[WebIconDatabase _applicationWillTerminate:]):
861         * Misc/WebIconDatabasePrivate.h:
862         * WebKit.xcodeproj/project.pbxproj:
863
864 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
865
866         Reviewed by Darin.
867
868         http://bugzilla.opendarwin.org/show_bug.cgi?id=6309
869         multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
870
871         * Misc/WebNSURLExtras.m:
872         (-[NSString _webkit_URLFragment]):
873         Don't include the "#" character in the fragment.
874         
875         * WebCoreSupport/WebFrameBridge.m:
876         (-[WebFrameBridge historyURL:]):
877         New function, returns the history URL for a given position in the back/forward list
878         
879         * WebView/WebFrame.m:
880         (-[WebFrame _loadItem:withLoadType:]):
881         Always call scrollToAnchorWithURL, even if there is no fragment. This way we keep the WebCore frame's
882         URL up-to-date.
883
884 2006-06-01  Maciej Stachowiak  <mjs@apple.com>
885
886         Reviewed by Anders.
887         
888         - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
889         http://bugzilla.opendarwin.org/show_bug.cgi?id=9103
890
891         * WebView/WebDataSource.m:
892         (-[WebDataSource _willSendRequest:forResource:redirectResponse:]): Set up the
893         User-Agent header.
894         * WebView/WebDataSourceInternal.h:
895         * WebView/WebLoader.m:
896         (-[NSURLProtocol willSendRequest:redirectResponse:]): Pass a mutable URL request
897         so the above can work.
898
899 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
900
901         Reviewed by Darin.
902
903         * WebView/WebFrameView.m:
904         (+[WebFrameView _canShowMIMETypeAsHTML:]):
905         Use _webkit_objectForMIMEType here so we'll get an object back for "text/".
906
907 2006-05-31  David Hyatt  <hyatt@apple.com>
908
909         Make programmatic focus/blur actually work on sub-frames.  Make the
910         top-level UI delegate get called for deactivation of windows.
911
912         Reviewed by darin
913
914         * WebCoreSupport/WebFrameBridge.m:
915         (-[WebFrameBridge activateWindow]):
916         (-[WebFrameBridge deactivateWindow]):
917         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
918         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
919         * WebKit.xcodeproj/project.pbxproj:
920
921 === WebKit-521.12 ===
922
923 2006-05-26  David Harrison  <harrison@apple.com>
924
925         Reviewed by John Sullivan.
926
927         <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
928
929         * WebView/WebHTMLView.m:
930         (-[WebHTMLView _increaseSelectionListLevel]):
931         - Now returns DOMNode*
932
933         (-[WebHTMLView _increaseSelectionListLevelOrdered]):
934         (-[WebHTMLView _increaseSelectionListLevelUnordered]):
935         - Added.  These also return DOMNode*
936
937         * WebView/WebHTMLViewPrivate.h:
938         - Updated as above
939
940 2006-05-25  Tim Omernick  <timo@apple.com>
941
942         Reviewed by Anders.
943
944         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8347>
945         REGRESSION: Flash movie audible but not visible until window is resized
946
947         * Plugins/WebNetscapePluginDocumentView.m:
948         (-[WebNetscapePluginDocumentView dataSourceUpdated:]):
949         Layout if needed here.  Maciej recently removed the "LayoutAcceptable" frame state, which used to
950         cause plugin document views to lay out immediately upon receiving data.  This call to -layout has
951         the same effect.
952
953 === WebKit-521.11.1 ===
954
955 2006-05-25  Timothy Hatcher  <timothy@apple.com>
956
957         Reviewed by Tim O.
958
959         <rdar://problem/4559808> WebKit fails to compile for ppc64
960         <rdar://problem/4522085> 64-bit: WebKit uses FSSpec which is not available in 64-bit
961         Gets WebKit building under 64-bit. Rename WebNSInt and WebNSUInt to WebNSInteger and WebNSUInteger.
962         Start using WebNSInteger where we need to match AppKit API usage of NSInteger.
963
964         HIWebView and a couple of helper functions are disabled until they can be moved off of QuickDraw.
965         <rdar://problem/4561772> HIWebView needs to be reworked to not use QuickDraw, needed for 64-bit
966
967         * Carbon/CarbonUtils.m: disabled this file in 64-bit <rdar://problem/4561772>
968         * Carbon/CarbonWindowAdapter.m:
969         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
970         * Carbon/CarbonWindowFrame.m:
971         (+[CarbonWindowFrame frameRectForContentRect:styleMask:]):
972         (+[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
973         (+[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
974         (-[CarbonWindowFrame frameRectForContentRect:styleMask:]):
975         (-[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
976         (-[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
977         * Carbon/HIViewAdapter.m: disabled this file in 64-bit <rdar://problem/4561772>
978         * Carbon/HIWebView.m: disabled this file in 64-bit <rdar://problem/4561772>
979         (HIWebViewEventHandler):
980         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
981         (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveContentLength:fromDataSource:]):
982         * History/WebBackForwardList.m:
983         (-[WebBackForwardList removeItem:]):
984         (-[WebBackForwardList goToItem:]):
985         * Misc/WebDownload.m:
986         (-[WebDownloadInternal download:didReceiveDataOfLength:]):
987         * Misc/WebFileDatabase.m:
988         (UniqueFilePathForKey):
989         * Misc/WebIconDatabase.m:
990         (-[NSMutableDictionary retainIconForURL:]):
991         (-[NSMutableDictionary releaseIconForURL:]):
992         (-[WebIconDatabase _totalRetainCountForIconURLString:]):
993         (-[WebIconDatabase _retainIconForIconURLString:]):
994         (-[WebIconDatabase _releaseIconForIconURLString:]):
995         * Misc/WebSearchableTextView.m:
996         (-[NSString selectionRect]):
997         * Misc/WebTypesInternal.h: Added.
998         * Plugins/WebBaseNetscapePluginStream.m:
999         (-[WebBaseNetscapePluginStream _destroyStream]):
1000         (CarbonPathFromPOSIXPath):
1001         * Plugins/WebBaseNetscapePluginView.m:
1002         (-[WebBaseNetscapePluginView sendActivateEvent:]):
1003         (-[WebBaseNetscapePluginView sendUpdateEvent]):
1004         (TSMEventHandler):
1005         (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
1006         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
1007         (-[NSData _web_locationAfterFirstBlankLine]):
1008         * Plugins/WebBasePluginPackage.m:
1009         (-[WebBasePluginPackage hash]):
1010         * Plugins/WebNetscapePluginPackage.m:
1011         (-[WebNetscapePluginPackage load]):
1012         (functionPointerForTVector):
1013         * WebInspector/WebInspector.m:
1014         (-[WebInspector _updateSystemColors]):
1015         * WebKit.xcodeproj/project.pbxproj:
1016         * WebView/WebDataSource.m:
1017         (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1018         * WebView/WebFrame.m:
1019         (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
1020         * WebView/WebHTMLView.m:
1021         (-[NSArray drawRect:]):
1022         (-[WebHTMLView characterIndexForPoint:]):
1023         (-[WebHTMLView conversationIdentifier]):
1024         * WebView/WebResourceLoadDelegate.h:
1025         * WebView/WebUIDelegate.h:
1026         * WebView/WebView.h:
1027         * WebView/WebView.m:
1028         (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
1029         (-[WebView spellCheckerDocumentTag]):
1030         * WebView/WebViewInternal.h:
1031         * WebView/WebViewPrivate.h:
1032
1033 === WebKit-521.11 ===
1034
1035 2006-05-23  Maciej Stachowiak  <mjs@apple.com>
1036
1037         Reviewed by Tim.
1038         
1039         - more loader refactoring to simplify things and remove knowledge of WebView from WebSubresourceLoader
1040
1041         * WebCoreSupport/WebSubresourceLoader.m:
1042         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
1043         (-[WebSubresourceLoader didReceiveResponse:]):
1044         * WebView/WebDataSource.m:
1045         (-[WebDataSource _loadIcon]):
1046         (-[WebDataSource _startLoading]):
1047         * WebView/WebFrame.m:
1048         (-[WebFrame _loadRequest:archive:]):
1049         (-[WebFrame _loadItem:withLoadType:]):
1050         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1051         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1052         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1053         * WebView/WebFrameInternal.h:
1054         * WebView/WebFramePrivate.h:
1055         * WebView/WebLoader.h:
1056         * WebView/WebLoader.m:
1057         * WebView/WebMainResourceLoader.m:
1058         (-[WebMainResourceLoader initWithDataSource:]):
1059         (-[WebMainResourceLoader didReceiveResponse:]):
1060
1061 2006-05-23  Tim Omernick  <timo@apple.com>
1062
1063         Reviewed by John Sullivan.
1064
1065         <rdar://problem/4558301> REGRESSION (420+): After clearing history and closing bookmark view window,
1066         attempting to select Safari's menu bar results in a crash
1067
1068         * Misc/WebNSWindowExtras.m:
1069         (replacementPostWindowNeedsDisplay):
1070         My fix yesterday for 4557117 was not quite good enough.  Now that we cancel the display timer for a
1071         window *before* it deallocates, we need to make sure that while a window deallocates, no new display
1072         timers are scheduled for that window.  This is actually possible, as 4558301 demonstrates.
1073         Luckily, NSWindow sets a handy "windowDying" flag when it deallocates, so we can just check that flag
1074         and bail out of the throttle hack if it is set.  This should fix the last of the crashes involving
1075         display timers scheduled for deallocated or deallocating windows.
1076
1077 2006-05-23  Maciej Stachowiak  <mjs@apple.com>
1078
1079         Reviewed by Eric.
1080         
1081         - remove knowledge of WebView from WebLoader in preparation for moving the code down
1082
1083         * WebView/WebDataSource.m:
1084         (-[WebDataSource _defersCallbacks]):
1085         (-[WebDataSource _identifierForInitialRequest:]):
1086         (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1087         (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1088         (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1089         (-[WebDataSource _didReceiveResponse:forResource:]):
1090         (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1091         (-[WebDataSource _didFinishLoadingForResource:]):
1092         (-[WebDataSource _didFailLoadingWithError:forResource:]):
1093         (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1094         (-[WebDataSource _privateBrowsingEnabled]):
1095         * WebView/WebDataSourceInternal.h:
1096         * WebView/WebLoader.h:
1097         * WebView/WebLoader.m:
1098         (-[WebLoader releaseResources]):
1099         (-[WebLoader setDataSource:]):
1100         (-[WebLoader willSendRequest:redirectResponse:]):
1101         (-[WebLoader didReceiveAuthenticationChallenge:]):
1102         (-[WebLoader didCancelAuthenticationChallenge:]):
1103         (-[WebLoader didReceiveResponse:]):
1104         (-[WebLoader didReceiveData:lengthReceived:]):
1105         (-[WebLoader signalFinish]):
1106         (-[WebLoader didFinishLoading]):
1107         (-[WebLoader didFailWithError:]):
1108         (-[WebLoader willCacheResponse:]):
1109         (-[WebLoader cancelWithError:]):
1110         * WebView/WebMainResourceLoader.m:
1111         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1112         * WebView/WebView.m:
1113         (-[WebView _incrementProgressForIdentifier:response:]):
1114         (-[WebView _incrementProgressForIdentifier:data:]):
1115         (-[WebView _completeProgressForIdentifier:]):
1116         * WebView/WebViewInternal.h:
1117
1118 === WebKit-521.10 ===
1119
1120 2006-05-22  Tim Omernick  <timo@apple.com>
1121
1122         Reviewed by Geoff.
1123
1124         <rdar://problem/4557117> TOT REGRESSION: Repro crash in cancelPendingWindowDisplay --> _timerRelease when
1125         opening file from file open dialog
1126
1127         Note that I could not reproduce this situation at all on any of my machines; I had to debug this on Geoff's
1128         machine.
1129
1130         * Misc/WebNSWindowExtras.m:
1131         (replacementDealloc):
1132         Cancel display timer before dealloc, not after.  Cancelling the timer can cause a message to be sent to the
1133         window; best to do that before the window deallocates.
1134         (replacementFinalize):
1135         ditto
1136
1137 2006-05-20  Maciej Stachowiak  <mjs@apple.com>
1138
1139         Reviewed by Beth.
1140         
1141         - fix assertion failure on layout tests
1142
1143         * WebView/WebDataSource.m:
1144         (-[WebDataSource _mainReceivedError:complete:]): Don't do anything
1145         if this data source is no longer connected to a frame. Used to be
1146         this couldn't happen because the WebView would have been nil, but
1147         we no longer go through the WebView.
1148
1149 2006-05-20  Timothy Hatcher  <timothy@apple.com>
1150
1151         Reviewed by Anders.
1152
1153         Bug 9018: REGRESSION: resizing the top area of the inspector does not grow as expected
1154         http://bugzilla.opendarwin.org/show_bug.cgi?id=9018
1155         
1156         Use clientHeight now that offsetHeight includes the border and padding.
1157         clientHeight should have been used initially.
1158
1159         * WebInspector/WebInspector.m:
1160         (-[WebInspector resizeTopArea]):
1161
1162 2006-05-18  Maciej Stachowiak  <mjs@apple.com>
1163
1164         Reviewed by Eric.
1165         
1166         - remove loading-related code from WebView
1167         http://bugzilla.opendarwin.org/show_bug.cgi?id=8981
1168
1169         * Plugins/WebNetscapePluginStream.m:
1170         (-[WebNetscapePlugInStreamLoader didFinishLoading]):
1171         (-[WebNetscapePlugInStreamLoader didFailWithError:]):
1172         * WebCoreSupport/WebSubresourceLoader.m:
1173         (-[WebSubresourceLoader receivedError:]):
1174         (-[WebSubresourceLoader signalFinish]):
1175         * WebView/WebDataSource.m:
1176         (-[WebDataSource _stopLoading]):
1177         (-[WebDataSource _receivedMainResourceError:complete:]):
1178         (-[WebDataSource _finishedLoadingResource]):
1179         (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
1180         (-[WebDataSource _receivedError:]):
1181         (-[WebDataSource _mainReceivedError:complete:]):
1182         * WebView/WebDataSourceInternal.h:
1183         * WebView/WebFrame.m:
1184         (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
1185         * WebView/WebMainResourceLoader.m:
1186         (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
1187         (-[WebMainResourceLoader didFinishLoading]):
1188         * WebView/WebView.m:
1189         * WebView/WebViewInternal.h:
1190
1191 2006-05-18  Tim Omernick  <timo@apple.com>
1192
1193         Reviewed by John Sullivan.
1194
1195         <rdar://problem/4551938> More options needed for window display throttle
1196
1197         We decided to play it safe and leave our window flushing behavior unchanged from the previous
1198         public release.  By default, CoreGraphics deferred updates are once again OFF, and the window
1199         display throttle is OFF.
1200
1201         Individual applications should set the WebKitThrottleWindowDisplayPreferenceKey and 
1202         WebKitEnableDeferredUpdatesPreferenceKey defaults to suit their needs.
1203
1204         Old behavior (like 10.4.6): WebKitThrottleWindowDisplayPreferenceKey=0 (or unset), 
1205         WebKitEnableDeferredUpdatesPreferenceKey (or unset).
1206
1207         Tear-free scrolling/animations: WebKitThrottleWindowDisplayPreferenceKey=0 (or unset),
1208         WebKitEnableDeferredUpdatesPreferenceKey=1.  While this configuration fixes the tearing issues
1209         caused by over-flushing, some applications will experience performance problems as over-flushing
1210         with CG deferred updates enabled will cause the app to block.
1211
1212         Tear-free scrolling/animations, high performance: WebKitThrottleWindowDisplayPreferenceKey=1, 
1213         WebKitEnableDeferredUpdatesPreferenceKey=1.  This is the riskiest configuration in that it
1214         enables the window display throttle "feature", potentially breaking applications' assumptions
1215         about when displays occur.  However, it provides the "best of both worlds", in that updates
1216         are tear-free, and performance impact should me minimal.
1217
1218         * WebView/WebPreferenceKeysPrivate.h:
1219         Declared WebKitThrottleWindowDisplayPreferenceKey and WebKitEnableDeferredUpdatesPreferenceKey.
1220
1221         * WebView/WebFrameView.m:
1222         (-[WebFrameView initWithFrame:]):
1223         Turn off CG deferred updates if WebKitEnableDeferredUpdatesPreferenceKey is NO or has no value.
1224         Added some comments.
1225
1226 2006-05-18  John Sullivan  <sullivan@apple.com>
1227
1228         Reviewed by Darin Adler.
1229         
1230         - fixed <rdar://problem/4552713> REGRESSION: WebFrameView no longer responds to responder methods sent by Safari code
1231
1232         * WebView/WebView.m:
1233         (-[WebView _responderForResponderOperations]):
1234         Treat sibling views of the main frameView the same as views outside of the webview for the purposes of this mechanism.
1235
1236 2006-05-18  Tim Omernick  <timo@apple.com>
1237
1238         Reviewed by John Sullivan.
1239
1240         <rdar://problem/4553450> Make disabling window throttle safer
1241
1242         * Misc/WebNSWindowExtras.m:
1243         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
1244         Don't assume that +_webkit_disableWindowDisplayThrottle restored the NSWindow method implementations; 
1245         now we'll only swizzle them once, and our replacement IMPs will call the old IMPs when the window
1246         throttle is disabled.  This is a safer approach when other components/"haxies" override the same methods
1247         that we are overriding, as it allows the overrides to "chain" properly.
1248         Moved the dictionary initialization code down a bit.  The order doesn't matter here.
1249         (disableWindowDisplayThrottleApplierFunction):
1250         Noticed that this could have been written safer with respect to the timer having the last reference to
1251         the window.  I never experienced a crash here, but this code is definitely safer.
1252         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
1253         Don't restore NSWindow method implementations; just clear the flag, flush pending displays, and destroy
1254         the dictionary.
1255         (replacementPostWindowNeedsDisplay):
1256         If throttling is disabled, just call the original IMP.
1257         (clearWindowDisplayInfo):
1258         Added an assert.
1259         (replacementDealloc):
1260         Don't call clearWindowDisplayInfo() when throttling is disabled.
1261         (replacementFinalize):
1262         ditto
1263         (cancelPendingWindowDisplay):
1264         Removed an unnecessary assertion.
1265
1266 2006-05-17  Tim Omernick  <timo@apple.com>
1267
1268         Reviewed by Kevin Decker and John Sullivan.
1269
1270         <rdar://problem/4550801> REGRESSION: Window throttle code can sometimes leak NSWindows
1271
1272         The window display throttle depended on windows being closed before they were deallocated; this is
1273         not guaranteed by AppKit.  Windows that were being released without being closed were getting stuck
1274         in our NSWindow -> WindowDisplayInfo dictionary.
1275         
1276         * Misc/WebNSWindowExtras.m:
1277         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
1278         Don't retain the NSWindow keys in the window display info dictionary.
1279         Instead of overriding -close, override -dealloc and -finalize so that we can remove the NSWindow ->
1280         WindowDisplayInfo mapping when a window deallocates.
1281         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
1282         Restore -dealloc and -finalize.
1283         (clearWindowDisplayInfo):
1284         Factored the WindowDisplayInfo cleanup code out of the now-defunct replacementClose().
1285         (replacementClose):
1286         Removed; no longer needed.
1287         (replacementDealloc):
1288         Clear the WindowDisplayInfo for the window after deallocation.
1289         (replacementFinalize):
1290         ditto
1291         (-[NSWindow _webkit_doPendingPostWindowNeedsDisplay:]):
1292         Rewrote this method to be safe in the case where the firing display timer has the last reference to the
1293         window.
1294         Added comments.
1295         
1296 2006-05-17  bradeeoh  <beidson@apple.com>
1297
1298         Reviewed by Tim Hatcher
1299
1300         Consolidated WebDatabase base class into WebFileDatabase as the inheritance relationship became 
1301         obsolete.  This improves readability and sets the stage for a further in-depth rewrite of the 
1302         WebIcon* code.
1303
1304         * Misc/WebDatabase.h: Removed.
1305         * Misc/WebDatabase.m: Removed.
1306         * Misc/WebFileDatabase.h:
1307         * Misc/WebFileDatabase.m:
1308         (-[WebFileDatabaseOp dealloc]): 
1309         (-[WebFileDatabase dealloc]):  
1310         (-[WebFileDatabase path]):
1311         (-[WebFileDatabase isOpen]):
1312         (-[WebFileDatabase sizeLimit]):
1313         * WebKit.xcodeproj/project.pbxproj:
1314
1315 2006-05-17  Adele Peterson  <adele@apple.com>
1316
1317         Reviewed by Hyatt.
1318
1319         WebKit part of initial checkin to prepare for http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
1320         Switch to use new text field implementation for <textarea>
1321
1322         * WebView/WebHTMLView.m:
1323         (-[NSArray insertNewline:]): If we're in plain text mode, insert a line break instead of a paragraph separator.
1324         (-[NSArray insertParagraphSeparator:]): ditto.
1325         * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
1326         Checks for textareas as well as textfields before allowing the delegate to control
1327         the context menu.  This won't affect the old textareas because AppKit handles those context menus.
1328
1329 2006-05-17  John Sullivan  <sullivan@apple.com>
1330
1331         Reviewed by Maciej.
1332
1333         First step towards making text-matching mechanism more flexible; updated for changes
1334         to WebCoreFrameBridge calls.
1335
1336         * WebView/WebHTMLView.m:
1337         (-[WebHTMLView highlightAllMatchesForString:caseSensitive:]):
1338         updated for name change in WebCoreFrameBridge, also now calls setMarkedTextMatchesAreHighlighted:
1339         (-[WebHTMLView clearHighlightedMatches]):
1340         updated for name change in WebCoreFrameBridge
1341
1342 2006-05-16  Matt Gough  <matt@softchaos.com>
1343
1344         Reviewed by Geoff.
1345         
1346         Ensured all the public headers have a newline at their end.
1347
1348         Client code can now have 'Missing Newline at end of File' warnings enabled without emitting
1349         such warnings against any WebKit includes.
1350
1351         * Misc/WebDownload.h:
1352         * Plugins/npfunctions.h:
1353         * WebView/WebResourceLoadDelegate.h:
1354         * WebView/WebUIDelegate.h:
1355         * WebView/WebView.h:
1356
1357 2006-05-16  Tim Omernick  <timo@apple.com>
1358
1359         Reviewed by Tim Hatcher.
1360
1361         http://bugzilla.opendarwin.org/show_bug.cgi?id=8945 (REGRESSION: Scrolling is very slow when dragging
1362         the thumb)
1363
1364         Rolled out one of my tweaks to the window display throttle hack (remember the last flush time instead
1365         of the last display time).  While that was technically a better approach, we discovered a problem
1366         with how it interacts with NSView scroll tracking.  Rather than further complicate this already
1367         crazy hack, I'm reverting back to the simple version.  This should yield similar numbers on iBench,
1368         but not exhibit the nasty scrolling problem.
1369         
1370         * Misc/WebNSWindowExtras.m:
1371         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
1372         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
1373         (getWindowDisplayInfo):
1374         (requestWindowDisplay):
1375
1376 2006-05-16  bradeeoh  <beidson@apple.com>
1377
1378         Reviewed by Maciej Stachowiak
1379
1380         - Fixed an old deprecated method in Misc/WebFileDatabase.m
1381
1382         * Misc/WebFileDatabase.m:
1383         (UniqueFilePathForKey):  changed `lossyCString` to `UTF8String`
1384
1385 2006-05-16  Darin Adler  <darin@apple.com>
1386
1387         Reviewed by Anders.
1388
1389         - did the name change from "ImageElement" to "ImageForElement" that I said I would
1390           (oops!)
1391
1392         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
1393         (-[WebDefaultUIDelegate copyImageToClipboard:]):
1394         * Misc/WebNSPasteboardExtras.h:
1395         * Misc/WebNSPasteboardExtras.m:
1396         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
1397         * Misc/WebNSViewExtras.h:
1398         * Misc/WebNSViewExtras.m:
1399         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
1400         * WebView/WebHTMLView.m:
1401         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1402         * WebView/WebView.m:
1403         (-[WebView _writeImageForElement:withPasteboardTypes:toPasteboard:]):
1404         (-[WebView writeElement:withPasteboardTypes:toPasteboard:]):
1405         * WebView/WebViewInternal.h:
1406
1407 2006-05-16  Darin Adler  <darin@apple.com>
1408
1409         Reviewed by Anders.
1410
1411         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8940
1412           remove extra copy of image code
1413
1414         * English.lproj/StringsNotToBeLocalized.txt: Updated for many recent changes.
1415
1416         * WebKit.xcodeproj/project.pbxproj: Removed files.
1417         * WebCoreSupport/WebImageData.h: Removed.
1418         * WebCoreSupport/WebImageData.m: Removed.
1419         * WebCoreSupport/WebImageDecodeItem.h: Removed.
1420         * WebCoreSupport/WebImageDecodeItem.m: Removed.
1421         * WebCoreSupport/WebImageDecoder.h: Removed.
1422         * WebCoreSupport/WebImageDecoder.m: Removed.
1423         * WebCoreSupport/WebImageRenderer.h: Removed.
1424         * WebCoreSupport/WebImageRenderer.m: Removed.
1425
1426         * WebCoreSupport/WebImageRendererFactory.h:
1427         * WebCoreSupport/WebImageRendererFactory.m: Removed everything except for
1428         shouldUseThreadedDecoding, setShouldUseThreadedDecoding, and imageDataForName:.
1429
1430         * Misc/WebNSPasteboardExtras.h: Removed WebImageRenderer parameter from
1431         _web_declareAndWriteDragImage and renamed _web_declareAndWriteDragImageElement.
1432         * Misc/WebNSPasteboardExtras.m:
1433         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Changed to
1434         call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
1435         -[WebImageRendererFactory supportedMIMETypes].
1436         (-[NSPasteboard _web_declareAndWriteDragImageElement:URL:title:archive:source:]):
1437         Removed WebImageRenderer parameter, and updated code since it was always nil.
1438
1439         * Misc/WebNSViewExtras.h: Removed WebImageRenderer parameter from
1440         _web_dragImage and renamed _web_dragImageElement.
1441         * Misc/WebNSViewExtras.m:
1442         (-[NSView _web_dragImageElement:rect:event:pasteboard:source:offset:]):
1443         Removed WebImageRenderer parameter, and updated code since it was always nil.
1444
1445         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Added some new
1446         functions now used by WebCore.
1447
1448         * WebView/WebDataSource.m: (-[WebDataSource _documentFragmentWithArchive:]):
1449         Call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
1450         -[WebImageRendererFactory supportedMIMETypes].
1451
1452         * WebView/WebFrameView.m: Removed include of WebImageRenderer.h.
1453
1454         * WebView/WebHTMLRepresentation.m: (+[WebHTMLRepresentation supportedImageMIMETypes]):
1455         Removed call to +[WebImageRendererFactory createSharedFactory].
1456
1457         * WebView/WebHTMLView.m:
1458         (-[WebHTMLView _imageExistsAtPaths:]): Call +[WebFrameBridge supportedImageResourceMIMETypes]
1459         instead of -[WebImageRendererFactory supportedMIMETypes].
1460         (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
1461         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): Update
1462         to no longer pass nil for an image to _web_declareAndWriteDragImageElement and to
1463         _web_dragImageElement.
1464         (-[WebHTMLView dealloc]): Remove call to now-unneeded _reset.
1465         (-[WebHTMLView finalize]): Ditto.
1466         (-[WebHTMLView viewDidMoveToWindow]): Remove logic for calling _reset, including the inWindow
1467         boolean field.
1468
1469         * WebView/WebHTMLViewInternal.h: Removed inWindow boolean.
1470         * WebView/WebHTMLViewPrivate.h: Removed _reset method.
1471
1472 2006-05-16  Darin Adler  <darin@apple.com>
1473
1474         Reviewed by Hyatt.
1475
1476         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8898
1477           REGRESSION: Attempting to right-click image in own tab on website causes crash
1478         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8919
1479           REGRESSION: image could not be dragged, subsequent click-drag activity caused crash
1480
1481         These fixes may become obsolete when Anders lands his standalone image viewer
1482         patch, but in my tree they are needed to make Copy Image work after the fix
1483         over on the WebCore side to avoid the crashes.
1484
1485         * Misc/WebNSPasteboardExtras.h: Change _web_writeImage parameter to an NSImage.
1486         * Misc/WebNSPasteboardExtras.m:
1487         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Change parameter
1488         to an NSImage instead of a WebImageRenderer.
1489         (-[NSPasteboard _web_declareAndWriteDragImage:element:URL:title:archive:source:]):
1490         Call -[WebImageRenderer image] to get an NSImage to pass to _web_writeImage.
1491
1492         * WebView/WebView.m: (-[WebView _writeImageElement:withPasteboardTypes:toPasteboard:]):
1493         Get the image using WebElementImageKey if WebElementDOMNodeKey is nil.
1494
1495 2006-05-16  Anders Carlsson  <acarlsson@apple.com>
1496
1497         Reviewed by Maciej.
1498
1499         http://bugzilla.opendarwin.org/show_bug.cgi?id=8921
1500         Use WebCore to render full-frame images
1501         
1502         * WebCoreSupport/WebFrameBridge.m:
1503         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
1504         Remove WebImageView handling.
1505         
1506         (-[WebFrameBridge mainResourceURLResponse]):
1507         New function which returns the URL response for the main resource. This is used by the
1508         manual loading of images.
1509         
1510         (-[WebFrameBridge imageTitleForFilename:size:]):
1511         New function which returns a correctly translated image title given a filename and a size.
1512         
1513         * WebCoreSupport/WebImageRenderer.m:
1514         (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
1515         Remove WebImageView handling.
1516         
1517         * WebKit.xcodeproj/project.pbxproj:
1518         Remove WebImageRepresentation and WebImageView.
1519         
1520         * WebView/WebArchiver.h:
1521         * WebView/WebArchiver.m:
1522         (+[WebArchiver archiveMainResourceForFrame:]):
1523         New functions which returns a WebArchive with just the main resource, ignoring any subresources.
1524         
1525         * WebView/WebDataSource.m:
1526         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1527         Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
1528         
1529         * WebView/WebFrameView.m:
1530         (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1531         Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
1532         
1533         (+[WebHTMLRepresentation supportedMIMETypes]):
1534         Create an array of image and non-image MIME Types.
1535         
1536         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
1537         (+[WebHTMLRepresentation supportedImageMIMETypes]):
1538         New functions, separating the list of MIME types into image and non-image ones.
1539         
1540         * WebView/WebHTMLView.m:
1541         (+[WebHTMLView supportedImageMIMETypes]):
1542         (+[WebHTMLView supportedNonImageMIMETypes]):
1543         New functions which call down to WebHTMLRepresentation.
1544         
1545         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1546         If the image element comes from an ImageDocument, just use an archive of the main resource
1547         instead of the generated HTML document.
1548         
1549         * WebView/WebHTMLViewPrivate.h:
1550         Declare new functions.
1551         
1552         * WebView/WebImageRepresentation.h: Removed.
1553         * WebView/WebImageRepresentation.m: Removed.
1554         * WebView/WebImageView.h: Removed.
1555         * WebView/WebImageView.m: Removed.
1556         
1557 2006-05-15  Tim Omernick  <timo@apple.com>
1558
1559         Reviewed by John Sullivan.
1560
1561         Part of <rdar://problem/4466508> Add 64-bit support to the Netscape Plugin API
1562
1563         Added to the Netscape Plugin API the concept of "plugin drawing models".  The drawing model
1564         determines the kind of graphics context created by the browser for the plugin, as well as 
1565         the Mac types of various Netscape Plugin API data structures.
1566
1567         There is a drawing model to represent the old QuickDraw-based API.  It is used by default
1568         if QuickDraw is available on the system, unless the plugin specifies another drawing model.
1569
1570         The big change is the addition of the CoreGraphics drawing model.  A plugin may request this
1571         drawing model to obtain access to a CGContextRef for drawing, instead of a QuickDraw CGrafPtr.
1572
1573         * Plugins/WebBaseNetscapePluginView.h:
1574         Added PluginPort union, which wraps a NP_Port and a NP_CGContext.  This is to make access to
1575         the nPort and lastSetPort ivars more convenient now that the port type differs based on the 
1576         drawing model.
1577         Changed types of nPort and lastSetPort to PluginPort so they can be used with any drawing model.
1578         Added drawingModel ivar.
1579         * Plugins/WebBaseNetscapePluginView.m:
1580         Renamed PortState to PortState_QD.  PortState is now an opaque pointer.  PortState_QD cannot be
1581         used if QuickDraw is unavailable.
1582         (-[WebBaseNetscapePluginView fixWindowPort]):
1583         Cannot be used if QuickDraw is unavailable.
1584         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1585         Only fix window port if drawing model is QuickDraw.
1586         Re-ordered some code so I could group QuickDraw-specific stuff into switch and if blocks (that's
1587         why the diff here is so terrible).
1588         Now returns a malloc()'ed PortState that the caller is responsible for freeing.  Renamed to
1589         better reflect this behavior.
1590         Support for the CoreGraphics drawing model -- fill PortState_CG struct, save CGContext state.
1591         (-[WebBaseNetscapePluginView restorePortState:]):
1592         Switch based on drawing model.
1593         Support for the CoreGraphics drawing model -- restore CGContext state saved earlier.
1594         (-[WebBaseNetscapePluginView sendEvent:]):
1595         Formatting.
1596         Don't set save/set port state or set the window in CoreGraphics mode unless the event being
1597         sent is an updateEvt.  We can't provide the plugin with a CGContext outside of our view display
1598         cycle.
1599         Don't restore PortState if it's NULL (didn't used to be a pointer).  Free when we're done with it.
1600         (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
1601         Formatting.
1602         Switch how we compare ports based on the drawing model.
1603         (-[WebBaseNetscapePluginView updateAndSetWindow]):
1604         Fixed for CoreGraphics by triggering a redisplay instead of sending an update event to the plugin
1605         outside of the view display cycle.
1606         Don't restore PortState if it's NULL (didn't used to be a pointer).  Free when we're done with it.
1607         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
1608         Assert that the window is only set when updating in CoreGraphics mode.
1609         Log differently depending on the drawing model.
1610         (-[WebBaseNetscapePluginView start]):
1611         Fall back on QuickDraw if the plugin does not specify a drawing model.
1612         (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
1613         Cannot be used if QuickDraw is unavailable.
1614         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
1615         Only call -tellQuickTimeToChill in QuickDraw mode.
1616         (-[WebBaseNetscapePluginView viewHasMoved:]):
1617         ditto
1618         (-[WebBaseNetscapePluginView invalidateRegion:]):
1619         NPRegion is a CGPathRef in CoreGraphics mode.
1620         (-[WebBaseNetscapePluginView getVariable:value:]):
1621         Added support for retriveing the NPNVpluginDrawingModel, NPNVsupportsQuickDrawBool, and
1622         NPNVsupportsCoreGraphicsBool browser variables.
1623         (-[WebBaseNetscapePluginView setVariable:value:]):
1624         Added support for setting the NPNVpluginDrawingModel variable.
1625
1626 2006-05-15  Tim Omernick  <timo@apple.com>
1627
1628         Reviewed by Kevin Decker.
1629
1630         Follow-up to my previous PLT fix.  I found upon further testing (by dramatically decreasing the
1631         allowed display rate) that +_webkit_displayThrottledWindows did not always force a display when
1632         necessary.  The reason is that I was not giving a proper timeout to CFRunLoopRunInMode().  I was
1633         passing 0, which was causing only "expired" timers to fire.  This method is actually supposed to
1634         block until all currently scheduled display timers fire.
1635
1636         I tested this change and found that it did not affect my PLT times when the display rate was
1637         capped to 60 fps.  It also behaves as expected when the display rate is set much lower (say, 1
1638         display per second); my previous fix did not work well at such display rates.
1639
1640         * Misc/WebNSWindowExtras.m:
1641         (+[NSWindow _webkit_displayThrottledWindows]):
1642         Run the runloop for an amount of time equal to the minimum allowed interval between displays.
1643         This ensures that we'll block until all currently scheduled display timers fire (but we won't
1644         block for future display timers).
1645
1646 2006-05-15  John Sullivan  <sullivan@apple.com>
1647
1648         Reviewed by Tim Omernick.
1649         
1650         - followup to previous fix; I hadn't tested quitting adequately
1651
1652         * WebView/WebHTMLView.m:
1653         (-[WebHTMLView dealloc]):
1654         call removeAllToolTips before clearing _private so that removeTrackingRect: override can work 
1655         properly. Normally removeAllToolTips would be called by super, but that's too late.
1656         (-[WebHTMLView finalize]):
1657         ditto
1658
1659 2006-05-15  John Sullivan  <sullivan@apple.com>
1660
1661         Reviewed by Darin.
1662         
1663         - fixed <rdar://problem/4503016> TOT assertion failure in -[WebHTMLView(WebPrivate) removeTrackingRect:]
1664         
1665         We have some tricky code to deal with tracking rects, which succumbed to a fix in AppKit. Updated our
1666         tricky code to work with the AppKit fix.
1667
1668         * WebView/WebHTMLViewInternal.h:
1669         new instance variable lastToolTipTag
1670         
1671         * WebView/WebHTMLView.m:
1672         (-[WebHTMLView removeTrackingRect:]):
1673         handle removing lastToolTipTag by calling super
1674         (-[WebHTMLView _setToolTip:]):
1675         save tool tip tag in lastToolTipTag; this apparently used to always return 0, so we formerly had no way
1676         to distinguish it from the no-tool-tips-yet case.
1677
1678         * WebKit.xcodeproj/project.pbxproj:
1679         Xcode removed some old cruft
1680
1681 2006-05-15  Tim Omernick  <timo@apple.com>
1682
1683         Reviewed by Darin.
1684
1685         Safari's Page Load Test (PLT) saturates the runloop with so many sources that timers are not allowed to fire 
1686         as frequently as they should.  This is a general problem with the PLT -- because of this, it does not measure
1687         work done in timer callbacks during/after the page load process.
1688
1689         Unfortunately, this aspect of the PLT interferes with our window display throttle hack.  Because we throttle
1690         display using timers, and the PLT starves timers, most of the pages loaded by the PLT do not actually display.
1691         This makes the PLT run "too fast", yielding ridiculously fast numbers compared to when throttling is disabled.
1692
1693         I've added a new method that the PLT can call after each page load to force any starved display throttle timers
1694         to fire.  By doing this, Safari's PLT will be guaranteed to display each page at least once.
1695
1696         * Misc/WebNSWindowExtras.h:
1697         * Misc/WebNSWindowExtras.m:
1698         Added a special internal runloop mode for the throttle timers.
1699         (+[NSWindow _webkit_displayThrottledWindows]):
1700         Run the runloop in our special internal mode until there are no more sources to handle.
1701         (requestWindowDisplay):
1702         Schedule the timer in the new mode as well as the standard modes.
1703         
1704 2006-05-15  Anders Carlsson  <acarlsson@apple.com>
1705
1706         Reviewed by Maciej.
1707
1708         http://bugzilla.opendarwin.org/show_bug.cgi?id=8913
1709         REGRESSION: Can view source for text files
1710
1711         * WebView/WebDocumentPrivate.h:
1712         Add canSaveAsWebArchive.
1713         
1714         * WebView/WebHTMLRepresentation.m:
1715         (-[WebHTMLRepresentation canProvideDocumentSource]):
1716         Call the bridge.
1717         
1718         (-[WebHTMLRepresentation canSaveAsWebArchive]):
1719         New function. This will be used in Safari ToT to determine if a page can be saved as an archive.
1720
1721 2006-05-14  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1722
1723         Reviewed by Darin.
1724
1725         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8739
1726           Crash in RenderTableSection::paint due to manipulating DOM on resize
1727
1728         Manual test: manual-tests/dom-manipulation-on-resize.html
1729
1730         * WebView/WebHTMLView.m:
1731         (-[NSArray layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Relayout if necessary
1732         after sending the resize event.
1733
1734 2006-05-12  Maciej Stachowiak  <mjs@apple.com>
1735
1736         Reviewed by Brady.
1737         
1738         http://bugzilla.opendarwin.org/show_bug.cgi?id=8876
1739         - move most private WebDataSource methods to uninstalled header
1740         
1741         I put the declarations for the ones only used in WebKit in WebDataSourceInternal.h
1742         and removed two entirey unused ones.
1743
1744         * Plugins/WebNetscapePluginRepresentation.m:
1745         * Plugins/WebNetscapePluginStream.m:
1746         * Plugins/WebPluginController.m:
1747         * Plugins/WebPluginDocumentView.m:
1748         * WebCoreSupport/WebFrameBridge.m:
1749         (-[WebFrameBridge dataSource]):
1750         * WebCoreSupport/WebSubresourceLoader.m:
1751         * WebKit.xcodeproj/project.pbxproj:
1752         * WebView/WebDataSource.m:
1753         (-[WebDataSource _updateIconDatabaseWithURL:]):
1754         (-[WebDataSource _loadIcon]):
1755         (-[WebDataSource _clearErrors]):
1756         (-[WebDataSource _commitLoadWithData:]):
1757         (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1758         (-[WebDataSource _addResponse:]):
1759         * WebView/WebDataSourceInternal.h: Added.
1760         * WebView/WebDataSourcePrivate.h:
1761         * WebView/WebFrame.m:
1762         * WebView/WebHTMLRepresentation.m:
1763         * WebView/WebHTMLView.m:
1764         * WebView/WebImageView.m:
1765         * WebView/WebLoader.m:
1766         * WebView/WebMainResourceLoader.m:
1767         * WebView/WebPDFView.m:
1768         * WebView/WebRenderNode.m:
1769         * WebView/WebView.m:
1770
1771 2006-05-12  Tim Omernick  <timo@apple.com>
1772
1773         Reviewed by John Sullivan.
1774
1775         <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
1776         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8740>
1777
1778         Improvement to my NSWindow display throttle hack.  Remember the last flush time instead of the last display time.
1779         Our goal is to never draw less than 1/60th of a second after the window is flushed in order to avoid blocking on
1780         a CG coalesced update.  Using the last display time is close, but this is much more accurate.  I have verified that
1781         this further improves our score on BenchJS Test 1 (by 9.8% with the status bar shown compared to the previous build),
1782         as well as on our internal PLT scores by a smaller percentage.
1783
1784         * Misc/WebNSWindowExtras.m:
1785         Renamed lastDisplayTime to lastFlushTime.
1786         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
1787         Replace -[NSWindow flushWindow] with our own implementation.
1788         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
1789         Restore -[NSWindow flushWindow].
1790         (replacementFlushWindow):
1791         Use the last flush time instead of the last display time.
1792         (getWindowDisplayInfo):
1793         Renamed lastDisplayTime to lastFlushTime.
1794         (requestWindowDisplay):
1795         Moved some code to replacementFlushWindow().
1796
1797 2006-05-11  Timothy Hatcher  <timothy@apple.com>
1798
1799         Reviewed by Darin.
1800
1801         Bug 8856: Web Inspector should show the Xpath for the selected node
1802         http://bugzilla.opendarwin.org/show_bug.cgi?id=8856
1803         
1804         Adds an Xpath area to the Node panel.
1805
1806         * WebInspector/webInspector/inspector.css:
1807         * WebInspector/webInspector/inspector.html:
1808         * WebInspector/webInspector/inspector.js:
1809
1810 2006-05-11  Timothy Hatcher  <timothy@apple.com>
1811
1812         Reviewed by Anders.
1813
1814         Fixes <rdar://problem/4411845> lots of SPOD trying to scroll through
1815         Markup & Content inspecting body at apple.com (6614)
1816         http://bugzilla.opendarwin.org/show_bug.cgi?id=6614
1817
1818         Removed the Markup & Content pane when viewing a element.
1819         This pane was not that useful and made the inspector really slow
1820         when the markup was large. Only show this pane for text nodes.
1821
1822         * WebInspector/webInspector/inspector.css: use -webkit prefix
1823         * WebInspector/webInspector/inspector.html:
1824         * WebInspector/webInspector/inspector.js:
1825
1826 2006-05-11  Sam Weinig  <sam.weinig@gmail.com>
1827
1828         Reviewed by Timothy.
1829
1830         Patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8810>
1831         Bug 8810: Scrollbars in WebInspector rendered incorrectly
1832
1833         * WebInspector/webInspector/inspector.css: 
1834         Make scroll bars absolutely positioned.
1835
1836 2006-05-10  Tim Omernick  <timo@apple.com>
1837
1838         Reviewed by Darin.
1839
1840         <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
1841         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8740>
1842
1843         * Misc/WebNSWindowExtras.h:
1844         * Misc/WebNSWindowExtras.m:
1845         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
1846         Overrides certain NSWindow methods so that window autodisplay can be throttled to 60Hz.
1847
1848         (disableWindowDisplayThrottleApplierFunction):
1849         CFDictionary applier function for when the throttle is disabled.  Cancels all pending window displays,
1850         and calls -displayIfNeeded on each window with a pending display.
1851
1852         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
1853         Restores default NSWindow method implementations and clears pending window displays.
1854
1855         (swizzleInstanceMethod):
1856         Helper function to swizzle ObjC method implementations.
1857
1858         (replacementPostWindowNeedsDisplay):
1859         Don't call into -[NSWindow _postWindowNeedsDisplay] if requestWindowDisplay() returns NO (this is the
1860         function that throttles display).
1861
1862         (replacementClose):
1863         Clean up the WindowDisplayInfo struct for the window, since it's about to go away.
1864
1865         (getWindowDisplayInfo):
1866         Gets the WindowDisplayInfo struct for the window, or creates it if absent.
1867
1868         (requestWindowDisplay):
1869         Returns YES if a display is allowed right now.  Returns NO otherwise, and schedules a timer to try the
1870         display again.
1871
1872         (cancelPendingWindowDisplay):
1873         Cancels the pending display for the window, if any.
1874
1875         (-[NSWindow _webkit_doPendingPostWindowNeedsDisplay:]):
1876         Try to call _postWindowNeedsDisplay again.
1877
1878         * WebView/WebFrameView.m:
1879         (-[WebFrameView initWithFrame:]):
1880         If the secret "WebKitThrottleWindowDisplay" default is set, then enable the NSWindow throttle.
1881
1882 2006-05-10  Anders Carlsson  <acarlsson@apple.com>
1883
1884         Reviewed by Maciej.
1885
1886         * WebView/WebHTMLView.m:
1887         (+[WebHTMLView unsupportedTextMIMETypes]):
1888         Add text/rtf
1889         
1890 2006-05-09  Levi Weintraub  <lweintraub@apple.com>
1891
1892         Reviewed by justin.
1893
1894         <rdar://problem/4442395>
1895         Tiny MCE: Link isn't inserted after dragging into textarea field
1896         
1897         * WebView/WebHTMLView.m:
1898         (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]):
1899         Modified to create an anchor object with a title as opposed to just the URL as text.
1900
1901 2006-05-09  Tim Omernick  <timo@apple.com>
1902
1903         Reviewed by Dave Harrison.
1904
1905         <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or
1906         other WebPreferences changes)
1907
1908         * Plugins/WebBaseNetscapePluginView.m:
1909         (-[WebBaseNetscapePluginView viewWillMoveToHostWindow:]):
1910         When the plugin view is removed from both its window and its hostWindow, stop observing
1911         WebPreferences.
1912
1913 2006-05-09  Anders Carlsson  <acarlsson@apple.com>
1914
1915         Reviewed by Darin.
1916
1917         http://bugzilla.opendarwin.org/show_bug.cgi?id=8808
1918         WebCore should handle text files
1919
1920         * WebKit.exp:
1921         Remove WebTextView.
1922         
1923         * WebKit.xcodeproj/project.pbxproj:
1924         Get rid of WebTextView and WebTextRepresentation.
1925         
1926         * WebView/WebDataSource.m:
1927         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1928         * WebView/WebFrameView.m:
1929         (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1930         * WebView/WebHTMLView.m:
1931         The text MIME types are now handled by WebHTMLView.
1932         
1933         (+[WebHTMLView unsupportedTextMIMETypes]):
1934         New function, moved here from WebTextView.
1935         
1936         * WebView/WebHTMLViewPrivate.h:
1937         * WebView/WebTextRepresentation.h: Removed.
1938         * WebView/WebTextRepresentation.m: Removed.
1939         * WebView/WebTextView.h: Removed.
1940         * WebView/WebTextView.m: Removed.
1941         
1942         * WebView/WebView.m:
1943         (+[WebView _viewClass:andRepresentationClass:forMIMEType:]):
1944         Now special-case WebHTMLView instead of WebTextView for MIME types
1945         that shouldn't be shown.
1946
1947 2006-05-09  Maciej Stachowiak  <mjs@apple.com>
1948
1949         Rubber stamped by Anders.
1950         
1951         - renamed kxmlcore to wtf
1952         
1953         kxmlcore --> wtf
1954         KXMLCore --> WTF
1955         KXC --> WTF
1956
1957         * Misc/WebKitLogging.h:
1958         * Misc/WebKitLogging.m:
1959         (initializeLogChannel):
1960
1961 2006-05-09  Timothy Hatcher  <timothy@apple.com>
1962
1963         Reviewed by Anders.
1964
1965         Bug 8804: Inspector should support searching by Xpath query
1966         http://bugzilla.opendarwin.org/show_bug.cgi?id=8804
1967
1968         * WebInspector/WebInspector.m:
1969         (-[WebInspector _refreshSearch]):
1970         * WebInspector/webInspector/inspector.js:
1971
1972 2006-05-08  Maciej Stachowiak  <mjs@apple.com>
1973
1974         Reviewed by Tim Hatcher.
1975         
1976         - refactor things so that WebKit doesn't save a WebResource for every loaded URL,
1977         but rather retrieves the data from the WebCore cache as needed.
1978         http://bugzilla.opendarwin.org/show_bug.cgi?id=8802
1979
1980         * WebCoreSupport/WebFrameBridge.m:
1981         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
1982         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1983         * WebCoreSupport/WebSubresourceLoader.m:
1984         (-[WebSubresourceLoader didReceiveResponse:]):
1985         * WebView/WebDataSource.m:
1986         (-[WebDataSourcePrivate dealloc]):
1987         (-[WebDataSource _setupForReplaceByMIMEType:]):
1988         (-[WebDataSource _archivedSubresourceForURL:]):
1989         (-[WebDataSource initWithRequest:]):
1990         (-[WebDataSource subresources]):
1991         (-[WebDataSource subresourceForURL:]):
1992         (-[WebDataSource addSubresource:]):
1993         * WebView/WebDataSourcePrivate.h:
1994         * WebView/WebFrame.m:
1995         * WebView/WebFrameInternal.h:
1996         * WebView/WebHTMLView.m:
1997         * WebView/WebLoader.h:
1998         * WebView/WebLoader.m:
1999         (-[NSURLProtocol loadWithRequest:]):
2000         (-[NSURLProtocol didFinishLoading]):
2001         * WebView/WebUnarchivingState.h:
2002         * WebView/WebUnarchivingState.m:
2003         (-[WebUnarchivingState addResource:]):
2004
2005 2006-05-04  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2006
2007         Reviewed by Darin.
2008
2009         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8594
2010           REGRESSION: Exception on closing a page containing (just) an mp3
2011
2012         Test: plugins/pluginDocumentView-deallocated-dataSource.html
2013
2014         * Plugins/WebPluginDocumentView.m:
2015         (-[WebPluginDocumentView dealloc]): Release the dataSource.
2016         (-[WebPluginDocumentView setDataSource:]): Retain the dataSource.
2017
2018 2006-05-04  Tim Omernick  <timo@apple.com>
2019
2020         Reviewed by Darin.
2021
2022         <rdar://problem/4537606> Give Java WebKit plugin access to its own DOM element
2023
2024         * WebCoreSupport/WebFrameBridge.m:
2025         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
2026         Pass the DOMElement to the plugin if it's a WebKit plugin (we need to handle Netscape plugins
2027         differently).
2028
2029 2006-05-04  Tim Omernick  <timo@apple.com>
2030
2031         Reviewed by John Sullivan.
2032
2033         <rdar://problem/4480186> Give WebKit plugins access to their own DOM element
2034
2035         This does not fix <rdar://problem/4480187> Give Netscape plugins access to their own DOM element --
2036         we're not going to use the ObjC DOM API for that, but rather the NP bindings API.
2037
2038         * Plugins/WebPluginPackage.m:
2039         Declared WebPlugInContainingElementKey.  This is not a new plugin argument -- it's been in our public
2040         headers since all along, but has never been concretely declared -- plugins that referenced it would not
2041         link.
2042
2043         * WebCoreSupport/WebFrameBridge.m:
2044         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:]):
2045         Added DOMElement parameter, which is now included in the plugin arguments dictionary.
2046         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:]):
2047         ditto
2048
2049         * WebKit.exp:
2050         Export WebPlugInContainingElementKey.
2051
2052 2006-05-02  Darin Adler  <darin@apple.com>
2053
2054         Reviewed by Eric.
2055
2056         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8677
2057           REGRESSION: wkSetUpFontCache() may be called before the SPIs are connected.
2058
2059         I don't know how reproduce this without one of Rosyna's hacks installed, so I
2060         did not include a test.
2061
2062         * Misc/WebStringTruncator.m: (+[WebStringTruncator initialize]): Add call to
2063         InitWebCoreSystemInterface.
2064
2065         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Add a boolean
2066         so we will only do this one time.
2067
2068 2006-05-02  Adele Peterson  <adele@apple.com>
2069
2070         Reviewed by Tim O.
2071
2072         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6988
2073         REGRESSION: Display correct context menus for new text fields
2074
2075         * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
2076         Don't let the UI delegate have control over the context menu for text fields.
2077
2078 2006-05-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2079
2080         Reviewed by Darin.
2081
2082         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8658
2083           Assertion failure in -[WebPluginContainerCheck _isForbiddenFileLoad]
2084           (bridge is null) when clicking QuickTime object with href
2085
2086         * WebView/WebHTMLView.m:
2087        (-[WebHTMLView setDataSource:]): Set the pluginController's dataSource.
2088
2089 2006-05-01  Maciej Stachowiak  <mjs@apple.com>
2090
2091         - fix build
2092
2093         * WebKit.exp: Add symbol that the new Safari will need.
2094
2095 2006-05-01  John Sullivan  <sullivan@apple.com>
2096
2097         Reviewed by Tim Omernick.
2098         
2099         - fixed <rdar://problem/3126419> history load enforces history limit, but deletes the newest instead of oldest items
2100         - added notification reporting items discarded during load because the age limit or item count limit is exceeded
2101         - a few other minor tweaks
2102
2103         * History/WebHistory.h:
2104         fixed a typo and an incorrect method name
2105         
2106         * History/WebHistoryPrivate.h:
2107         Added declaration of WebHistoryItemsDiscardedWhileLoadingNotification. Also changed signature of
2108         WebHistoryPrivate method -loadFromURL:error: to have new collectDiscardedItemsInto: parameter.
2109         Also deleted declarations of two methods that didn't actually exist (loadHistory and initWithFile:), 
2110         and added comments about which methods should become public API, WebKit-internal, or file-internal.
2111
2112         * History/WebHistory.m:
2113         (-[WebHistoryPrivate arrayRepresentation]):
2114         This method, called only by _saveHistoryGuts:, used to deliberately leave out items that violated
2115         either the age limit or the item count limit. Now all the items are included (and thus saved), and
2116         all the pruning is done at load time, so clients can keep track of the pruned items by observing
2117         the new WebHistoryItemsDiscardedWhileLoadingNotification
2118         (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
2119         Now keeps track of all the items that violated the age limit or item count limit in the new
2120         collectedDiscardedItemsInto: parameter. Also, now processes items in forward order rather than
2121         reverse order to fix 3126419. Now uses compare: rather than _webkit_compareDay: to check against
2122         age limit; this is faster and also more correct (most noticeable with small age limits).
2123         (-[WebHistoryPrivate loadFromURL:collectDiscardedItemsInto:error:]):
2124         new collectDiscardedItemsInto: parameter, passed into _loadHistoryGuts:...
2125         (-[WebHistory loadFromURL:error:]):
2126         Now sends new WebHistoryItemsDiscardedWhileLoadingNotification if any items were discarded due
2127         to age limit or item count limit.
2128         
2129         * WebKit.exp:
2130         exported symbol for WebHistoryItemsDiscardedWhileLoadingNotification
2131
2132 2006-04-29  Timothy Hatcher  <timothy@apple.com>
2133
2134         Reviewed by Maciej.
2135
2136         Bug 8577: [TabBarView _web_superviewOfClass:stoppingAtClass:]
2137         http://bugzilla.opendarwin.org/show_bug.cgi?id=8577
2138
2139         Added back _web_superviewOfClass:stoppingAtClass:.
2140         This method was removed in r14032 (bug 8562), but Safari 2.0 still uses it.
2141         We should remove this method once Open Source users have a new version
2142         to use with TOT WebKit.
2143
2144         * Misc/WebNSViewExtras.m:
2145         (-[NSView _web_superviewOfClass:stoppingAtClass:]):
2146
2147 2006-04-28  David Hyatt  <hyatt@apple.com>
2148
2149         Double the cache size to account for our revised (more accurate)
2150         measurement of the image buffers.
2151
2152         Reviewed by darin
2153
2154         * WebView/WebPreferences.m:
2155         (+[WebPreferences initialize]):
2156
2157 2006-04-28  David Hyatt  <hyatt@apple.com>
2158
2159         Fix for 8586, move WebTextRenderer into WebCore.
2160
2161         Reviewed by darin
2162
2163         * Misc/WebKitNSStringExtras.m:
2164         (-[NSString _web_drawAtPoint:font:textColor:]):
2165         (-[NSString _web_widthWithFont:]):
2166         * Misc/WebStringTruncator.m:
2167         (+[WebStringTruncator centerTruncateString:toWidth:]):
2168         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
2169         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
2170         (+[WebStringTruncator widthOfString:font:]):
2171         * WebCoreSupport/WebSystemInterface.m:
2172         (InitWebCoreSystemInterface):
2173         * WebCoreSupport/WebTextRenderer.h: Removed.
2174         * WebCoreSupport/WebTextRenderer.m: Removed.
2175         * WebCoreSupport/WebTextRendererFactory.h: Removed.
2176         * WebCoreSupport/WebTextRendererFactory.m: Removed.
2177         * WebKit.xcodeproj/project.pbxproj:
2178         * WebView/WebFrameView.m:
2179         (-[WebFrameView initWithFrame:]):
2180         * WebView/WebHTMLView.m:
2181         (-[NSArray _addToStyle:fontA:fontB:]):
2182         * WebView/WebTextView.m:
2183         (-[WebTextView setFixedWidthFont]):
2184         * WebView/WebView.m:
2185         (+[WebView _setAlwaysUseATSU:]):
2186         (+[WebView _setShouldUseFontSmoothing:]):
2187         (+[WebView _shouldUseFontSmoothing]):
2188
2189 2006-04-28  Eric Seidel  <eseidel@apple.com>
2190
2191         Reviewed by darin.
2192
2193         Misc. style cleanup.
2194         http://bugzilla.opendarwin.org/show_bug.cgi?id=8643
2195
2196         * Misc/WebIconDatabase.m:
2197         (-[NSMutableDictionary iconForURL:withSize:cache:]):
2198         (-[NSMutableDictionary iconURLForURL:]):
2199         (-[NSMutableDictionary retainIconForURL:]):
2200         (-[NSMutableDictionary releaseIconForURL:]):
2201         (-[WebIconDatabase _setIcon:forIconURL:]):
2202         (-[WebIconDatabase _iconsForIconURLString:]):
2203         (-[WebIconDatabase _forgetIconForIconURLString:]):
2204         (-[WebIconDatabase _releaseIconForIconURLString:]):
2205         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
2206         * Plugins/WebBasePluginPackage.m:
2207         (+[WebBasePluginPackage pluginWithPath:]):
2208         (-[WebBasePluginPackage pathByResolvingSymlinksAndAliasesInPath:]):
2209         (-[WebBasePluginPackage initWithPath:]):
2210         (-[WebBasePluginPackage getPluginInfoFromBundleAndMIMEDictionary:]):
2211         (-[WebBasePluginPackage pListForPath:createFile:]):
2212         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2213         (-[WebBasePluginPackage load]):
2214         (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
2215         (-[WebBasePluginPackage isNativeLibraryData:]):
2216         (-[NSArray _web_lowercaseStrings]):
2217         * Plugins/WebNetscapePluginPackage.m:
2218         (-[WebNetscapePluginPackage openResourceFile]):
2219         (-[WebNetscapePluginPackage closeResourceFile:]):
2220         (-[WebNetscapePluginPackage stringForStringListID:andIndex:]):
2221         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2222         (-[WebNetscapePluginPackage initWithPath:]):
2223         (-[WebNetscapePluginPackage executableType]):
2224         (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2225         (-[WebNetscapePluginPackage load]):
2226         (-[WebNetscapePluginPackage unload]):
2227         * Plugins/WebNetscapePluginRepresentation.m:
2228         (-[WebNetscapePluginRepresentation redeliverStream]):
2229         * Plugins/WebPluginDatabase.m:
2230         (+[WebPluginDatabase installedPlugins]):
2231         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
2232         (-[WebPluginDatabase pluginForExtension:]):
2233         (pluginLocations):
2234         (-[WebPluginDatabase init]):
2235         (-[WebPluginDatabase refresh]):
2236         * Plugins/npapi.m:
2237         (NPN_MemAlloc):
2238         (NPN_MemFree):
2239         (pluginViewForInstance):
2240         * WebCoreSupport/WebSubresourceLoader.m:
2241         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
2242         (-[WebSubresourceLoader willSendRequest:redirectResponse:]):
2243         * WebView/WebDataSource.m:
2244         (-[WebDataSource isLoading]):
2245         * WebView/WebFrame.m:
2246         (-[WebFrame _loadDataSource:withLoadType:formState:]):
2247         (-[WebFrame _subframeIsLoading]):
2248         * WebView/WebView.m:
2249         (-[WebView initWithFrame:]):
2250         (-[WebView initWithFrame:frameName:groupName:]):
2251
2252 2006-04-26  Tim Omernick  <timo@apple.com>
2253
2254         Reviewed by Geoff.
2255
2256         <rdar://problem/4525105> Repro TOT crash in [WebBaseNetscapePluginView dealloc] at coachella.com
2257         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8564> crashed when closing a tab
2258
2259         * WebView/WebFrame.m:
2260         (-[WebFramePrivate dealloc]):
2261         Assert that plugInViews has been released.
2262         (-[WebFrame _addPlugInView:]):
2263         New method.  Adds the plug-in view to the plugInViews set and calls -setWebFrame: on it.
2264         (-[WebFrame _removeAllPlugInViews]):
2265         New method.  Calls -setWebFrame:nil on all plug-in views and releases the plugInViews set.
2266         (-[WebFrame _willCloseURL]):
2267         New method.  Dispose of plug-in views when leaving a page (or closing the WebView).
2268
2269         * WebView/WebFrameInternal.h:
2270         Declared -_addPlugInView:, -_removeAllPlugInViews, -_willCloseURL
2271
2272         * WebCoreSupport/WebFrameBridge.m:
2273         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
2274         Call -[WebFrame _addPlugInView:] instead of directly setting plug-in views' frames.  This
2275         allows us to keep track of them so that we can explicitly dispose of them when leaving the page.
2276         (-[WebFrameBridge closeURL]):
2277         Override -[WebCoreFrameBridge closeURL] so that we can perform our own teardown when leaving
2278         a page or closing the WebView.
2279
2280         * Plugins/WebBaseNetscapePluginView.h:
2281         Declared -stop so that subclass WebNetscapePluginEmbeddedView can call it.
2282
2283         * Plugins/WebNetscapePluginEmbeddedView.m:
2284         (-[WebNetscapePluginEmbeddedView setWebFrame:]):
2285         Stop the plug-in when it is removed from its WebFrame.
2286
2287 2006-04-25  Tim Omernick  <timo@apple.com>
2288
2289         Reviewed by John Sullivan.
2290
2291         <rdar://problem/4472035> SPI that checks for URL policy fails in plugin documents
2292
2293         * Plugins/WebPluginController.h:
2294         * Plugins/WebPluginController.m:
2295         (-[WebPluginController URLPolicyCheckReferrer]):
2296         New method.  Get the referrer from the frame's data source's NSURLResponse.  Note that for
2297         document types loaded by WebCore, this URL is the same as -[WebCorePageBridge referrer],
2298         since the response URL is what we pass to -[WebCorePageBridge openURL:].
2299
2300         * Plugins/WebPluginContainerCheck.m:
2301         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
2302         Use the WebPluginController's -URLPolicyCheckReferrer instead of assuming that the bridge's
2303         -referrer is valid.  -[WebCorePageBridge referrer] is only set during the normal WebCore page
2304         load process, which has nothing to do with loading standalone plugin documents.
2305
2306 2006-04-25  Tim Omernick  <timo@apple.com>
2307
2308         Reviewed by Eric.
2309
2310         <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc]
2311         running layout tests
2312
2313         * Plugins/WebPluginPackage.m:
2314         (-[WebPluginPackage unload]):
2315         Clear isLoaded here.  It turns out that only WebNetscapePluginPackage cleared its isLoaded
2316         flag in -unload.  We need to also do it here, because the superclass (WebBasePluginPackage)
2317         asserts in -dealloc that -unload has been called.
2318
2319 2006-04-25  Tim Omernick  <timo@apple.com>
2320
2321         Reviewed by Eric.
2322
2323         <rdar://problem/4526120> -[WebBasePluginPackage finalize] leaks the CFBundle (under GC only)
2324
2325         * Plugins/WebBasePluginPackage.m:
2326         (-[WebBasePluginPackage finalize]):
2327         Release the CFBundle here.
2328
2329 2006-04-25  Tim Omernick  <timo@apple.com>
2330
2331         Reviewed by Geoff.
2332
2333         <rdar://problem/4472037>
2334         
2335         Private extensions to the WebPlugin interface.  A plugin may implement these methods to receive loading callbacks
2336         for its main resource.  Plug-ins that implement this SPI show better loading progress in the browser, can be saved
2337         to disk, and are more efficient by avoiding making duplicate GET or POST requests for the plug-in's main resource.
2338
2339         I want to provide a solid API for plug-in networking, but time constraints require that I first provide this simple
2340         SPI for internal clients.
2341
2342         * Plugins/WebPluginViewFactoryPrivate.h:
2343         Added a new plugin argument, WebPlugInShouldLoadMainResourceKey.  If YES, the plugin is responsible
2344         for loading its own content.  If NO, the plugin should wait for WebKit to send it the data via the
2345         new request-sharing SPI.
2346
2347         * Plugins/WebPluginPrivate.h: Added.
2348         Request-sharing SPI.  See comments in code.
2349
2350         * Plugins/WebPluginDocumentView.h:
2351         Hang onto the plugin view as an ivar so we can call the new resource loading methods on it.
2352         * Plugins/WebPluginDocumentView.m:
2353         (-[WebPluginDocumentView dealloc]):
2354         Release pluginView ivar.
2355         (-[WebPluginDocumentView setDataSource:]):
2356         Pass NO for WebPlugInShouldLoadMainResourceKey to indicate to the plugin that it should not 
2357         load its own main resource -- the data will come from WebKit.  This is only necessary for plugin
2358         documents.  By the time we create the view for a plugin document, we already have fetched some
2359         of its main resource's data.  Embedded plugins do not have this issue because WebKit is not
2360         involved in loading their content.
2361         Call -webPlugInMainResourceDidReceivResponse: on the plugin if necessary.  This lets the plugin
2362         know how much and what kind of data is going to be received.
2363         (-[WebPluginDocumentView dataSourceUpdated:]):
2364         If the plugin implements the new request-sharing SPI, don't cancel the in-progress request.
2365         (-[WebPluginDocumentView receivedData:withDataSource:]):
2366         Forward to the plugin via the new request-sharing SPI.
2367         (-[WebPluginDocumentView receivedError:withDataSource:]):
2368         ditto
2369         (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
2370         ditto
2371
2372         * Plugins/WebPluginPackage.m:
2373         Added WebPlugInShouldLoadMainResourceKey, tweaked some style a bit.
2374
2375         * WebCoreSupport/WebFrameBridge.m:
2376         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
2377         Pass YES for WebPlugInShouldLoadMainResourceKey.  Embedded plugins must load their own data.
2378         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
2379         ditto
2380         
2381         * WebKit.xcodeproj/project.pbxproj:
2382         Added WebPluginPrivate.h
2383
2384 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
2385
2386         Reviewed by Geoff.
2387         
2388         <rdar://problem/4525364> REGRESSION (yesterday?): LOG() mechanism is broken
2389         
2390         - initialize WebKit's log channels
2391
2392         * Misc/WebKitLogging.h:
2393         * Misc/WebKitLogging.m:
2394         (initializeLogChannel):
2395         (WebKitInitializeLoggingChannelsIfNecessary):
2396         * WebView/WebPreferences.m:
2397         (+[WebPreferences initialize]):
2398         * WebView/WebView.m:
2399         (-[WebView _commonInitializationWithFrameName:groupName:]):
2400
2401 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
2402
2403         Build fix:
2404         
2405         - move some prematurely moved code back
2406
2407         * WebCoreSupport/WebFrameBridge.h:
2408         * WebCoreSupport/WebFrameBridge.m:
2409         (-[WebFrameBridge fini]):
2410         (-[WebFrameBridge _preferences]):
2411         (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]):
2412         (-[WebFrameBridge keyboardUIMode]):
2413
2414 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
2415
2416         Reviewed by Darin.
2417
2418         - move more code from WebFrameBridge to WebCoreFrameBridge
2419
2420         * WebCoreSupport/WebFrameBridge.h:
2421         * WebCoreSupport/WebFrameBridge.m:
2422         (-[WebFrameBridge fini]):
2423         (-[WebFrameBridge expiresTimeForResponse:]):
2424         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
2425         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2426         (-[WebFrameBridge valueForKey:keys:values:]):
2427         (-[WebFrameBridge _preferences]):
2428
2429 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
2430
2431         Reviewed by Anders.
2432         
2433         - Remove use of _webSuperviewOfClass: and related
2434         http://bugzilla.opendarwin.org/show_bug.cgi?id=8562
2435         
2436         I removed all use of these, now objects get at each other via
2437         actual pointers, not using the view hierarchy. However, I left two
2438         of the calls in because other clients rely on them as SPI (ugh).
2439
2440         * History/WebHistoryItem.m:
2441         * Misc/WebNSViewExtras.h:
2442         * Misc/WebNSViewExtras.m:
2443         (-[NSView _web_superviewOfClass:]):
2444         (-[NSView _web_parentWebFrameView]):
2445         * Plugins/WebNetscapePluginDocumentView.m:
2446         (-[WebNetscapePluginDocumentView layout]):
2447         * Plugins/WebNetscapePluginEmbeddedView.h:
2448         * Plugins/WebNetscapePluginEmbeddedView.m:
2449         (-[WebNetscapePluginEmbeddedView setWebFrame:]):
2450         (-[WebNetscapePluginEmbeddedView dataSource]):
2451         * Plugins/WebNullPluginView.h:
2452         * Plugins/WebNullPluginView.m:
2453         (-[WebNullPluginView setWebFrame:]):
2454         (-[WebNullPluginView viewDidMoveToWindow]):
2455         * Plugins/WebPluginController.h:
2456         * Plugins/WebPluginController.m:
2457         (-[WebPluginController setDataSource:]):
2458         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2459         (-[WebPluginController webPlugInContainerShowStatus:]):
2460         (-[WebPluginController webPlugInContainerSelectionColor]):
2461         (-[WebPluginController webFrame]):
2462         * Plugins/WebPluginDocumentView.h:
2463         * Plugins/WebPluginDocumentView.m:
2464         (-[WebPluginDocumentView setDataSource:]):
2465         (-[WebPluginDocumentView layout]):
2466         (-[WebPluginDocumentView currentWindow]):
2467         (-[WebPluginDocumentView viewWillMoveToWindow:]):
2468         * WebCoreSupport/WebFrameBridge.m:
2469         (-[WebFrameBridge formControlIsBecomingFirstResponder:]):
2470         (-[WebFrameBridge formControlIsResigningFirstResponder:]):
2471         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
2472         * WebCoreSupport/WebViewFactory.m:
2473         (-[WebViewFactory bridgeForView:]):
2474         * WebView/WebClipView.m:
2475         (-[NSView initWithFrame:]):
2476         * WebView/WebFrameView.m:
2477         (-[WebFrameView _shouldDrawBorder]):
2478         (-[WebFrameView webCoreBridge]):
2479         * WebView/WebHTMLView.m:
2480         (-[WebTextCompleteController dealloc]):
2481         (-[WebHTMLView _dataSource]):
2482         (-[WebHTMLView _bridge]):
2483         (-[WebHTMLView _webView]):
2484         (-[WebHTMLView _frameView]):
2485         (-[WebHTMLView _web_firstResponderCausesFocusDisplay]):
2486         (-[NSArray becomeFirstResponder]):
2487         (-[NSArray setDataSource:]):
2488         (-[NSArray pageUp:]):
2489         (-[NSArray pageDown:]):
2490         (-[NSArray pageUpAndModifySelection:]):
2491         (-[NSArray pageDownAndModifySelection:]):
2492         (-[WebHTMLView _frame]):
2493         * WebView/WebHTMLViewInternal.h:
2494         * WebView/WebImageView.h:
2495         * WebView/WebImageView.m:
2496         (-[WebImageView drawRect:]):
2497         (-[WebImageView adjustFrameSize]):
2498         (-[WebImageView setDataSource:]):
2499         (-[WebImageView webView]):
2500         (-[WebImageView writeImageToPasteboard:types:]):
2501         (-[WebImageView copy:]):
2502         (-[WebImageView elementAtPoint:]):
2503         (-[WebImageView mouseDragged:]):
2504         * WebView/WebPDFView.h:
2505         * WebView/WebPDFView.m:
2506         (-[WebPDFView _applyPDFDefaults]):
2507         (-[WebPDFView _trackFirstResponder]):
2508         (-[PDFPrefUpdatingProxy forwardInvocation:]):
2509         * WebView/WebRenderNode.m:
2510         (-[WebRenderNode initWithWebFrameView:]):
2511         * WebView/WebTextView.h:
2512         * WebView/WebTextView.m:
2513         (-[WebTextView _textSizeMultiplierFromWebView]):
2514         (-[WebTextView _preferences]):
2515         (-[WebTextView setDataSource:]):
2516         (-[WebTextView _webFrame]):
2517         (-[WebTextView dragSelectionWithEvent:offset:slideBack:]):
2518         (-[WebTextView menuForEvent:]):
2519         (-[WebTextView resignFirstResponder]):
2520         (-[WebTextView drawPageBorderWithSize:]):
2521         (-[WebTextView knowsPageRange:]):
2522         * WebView/WebView.m:
2523         (-[WebView searchFor:direction:caseSensitive:wrap:]):
2524         (containingFrameView):
2525         (-[WebView _focusedFrame]):
2526         (-[WebView _frameViewAtWindowPoint:]):
2527
2528 2006-04-23  Maciej Stachowiak  <mjs@apple.com>
2529
2530         Reviewed by Darin.
2531         
2532         - push WebFileButton and WebStringTruncator code down to WebCore
2533         http://bugzilla.opendarwin.org/show_bug.cgi?id=8552
2534
2535         * Misc/WebStringTruncator.m:
2536         (+[WebStringTruncator centerTruncateString:toWidth:]):
2537         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
2538         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
2539         (+[WebStringTruncator widthOfString:font:]):
2540         * WebCoreSupport/WebFileButton.h: Removed.
2541         * WebCoreSupport/WebFileButton.m: Removed.
2542         * WebCoreSupport/WebFrameBridge.h:
2543         * WebCoreSupport/WebFrameBridge.m:
2544         (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
2545         * WebCoreSupport/WebViewFactory.m:
2546         (-[WebViewFactory fileButtonChooseFileLabel]):
2547         (-[WebViewFactory fileButtonNoFileSelectedLabel]):
2548         * WebKit.xcodeproj/project.pbxproj:
2549
2550 2006-04-23  Maciej Stachowiak  <mjs@apple.com>
2551
2552         Reviewed by Eric.
2553         
2554         - remove WebCookieAdapter, WebCore can just use Foundation directly.
2555
2556         * WebCoreSupport/WebCookieAdapter.h: Removed.
2557         * WebCoreSupport/WebCookieAdapter.m: Removed.
2558         * WebKit.xcodeproj/project.pbxproj:
2559         * WebView/WebFrameView.m:
2560         (-[WebFrameView initWithFrame:]):
2561
2562 2006-04-23  Maciej Stachowiak  <mjs@apple.com>
2563
2564         Reviewed by Adele.
2565         
2566         - prune WebView SPI of unused calls
2567         
2568         Specifically I moved methods that have no callers outside WebKit
2569         to WebViewInternal.h or removed them entirely.
2570
2571         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2572         * Plugins/WebBaseNetscapePluginView.m:
2573         * Plugins/WebNetscapePluginDocumentView.m:
2574         * Plugins/WebNetscapePluginStream.m:
2575         * Plugins/WebNullPluginView.m:
2576         * Plugins/WebPluginContainerCheck.m:
2577         * Plugins/WebPluginController.m:
2578         * WebCoreSupport/WebFrameBridge.m:
2579         * WebCoreSupport/WebPageBridge.m:
2580         * WebCoreSupport/WebSubresourceLoader.m:
2581         * WebView/WebDataSource.m:
2582         * WebView/WebHTMLView.m:
2583         * WebView/WebImageView.m:
2584         * WebView/WebLoader.m:
2585         * WebView/WebMainResourceLoader.m:
2586         * WebView/WebPDFView.m:
2587         * WebView/WebScriptDebugDelegate.m:
2588         * WebView/WebView.m:
2589         (-[WebView _downloadURL:]):
2590         * WebView/WebViewInternal.h:
2591         * WebView/WebViewPrivate.h:
2592
2593 2006-04-22  Maciej Stachowiak  <mjs@apple.com>
2594
2595         Reviewed by Eric.
2596
2597         - remove WebKit copy of assertions code, use the assertions
2598         stuff from JavaScriptCore instead.
2599
2600         * Carbon/HIViewAdapter.m:
2601         * DOM/WebDOMOperations.m:
2602         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2603         * DefaultDelegates/WebDefaultPolicyDelegate.m:
2604         (-[WebDefaultPolicyDelegate webView:unableToImplementPolicyWithError:frame:]):
2605         * History/WebBackForwardList.m:
2606         * History/WebHistory.m:
2607         (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
2608         (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
2609         * History/WebHistoryItem.m:
2610         * Misc/WebAssertions.h: Removed.
2611         * Misc/WebAssertions.m: Removed.
2612         * Misc/WebDatabase.m:
2613         * Misc/WebDownload.m:
2614         * Misc/WebFileDatabase.m:
2615         (SetThreadPriority):
2616         * Misc/WebIconDatabase.m:
2617         (-[NSMutableDictionary iconForURL:withSize:cache:]):
2618         (-[NSMutableDictionary releaseIconForURL:]):
2619         (-[NSMutableDictionary delayDatabaseCleanup]):
2620         (-[NSMutableDictionary allowDatabaseCleanup]):
2621         (-[WebIconDatabase _loadIconDictionaries]):
2622         (-[WebIconDatabase _updateFileDatabase]):
2623         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
2624         * Misc/WebIconLoader.m:
2625         * Misc/WebKitLogging.h:
2626         * Misc/WebKitLogging.m:
2627         * Misc/WebKitSystemBits.m:
2628         (initCapabilities):
2629         * Misc/WebLRUFileList.m:
2630         (WebLRUFileListRemoveOldestFileFromList):
2631         (WebLRUFileListGetFileSize):
2632         * Misc/WebLocalizableStrings.m:
2633         * Misc/WebNSCalendarDateExtras.m:
2634         * Misc/WebNSDataExtras.m:
2635         * Misc/WebNSDictionaryExtras.m:
2636         * Misc/WebNSFileManagerExtras.m:
2637         * Misc/WebNSPasteboardExtras.m:
2638         * Misc/WebNSURLExtras.m:
2639         (hexDigit):
2640         (hexDigitValue):
2641         (allCharactersInIDNScriptWhiteList):
2642         * Misc/WebNSURLRequestExtras.m:
2643         * Misc/WebNSUserDefaultsExtras.m:
2644         * Misc/WebStringTruncator.m:
2645         * Panels/WebAuthenticationPanel.m:
2646         (-[WebAuthenticationPanel loadNib]):
2647         * Panels/WebPanelAuthenticationHandler.m:
2648         * Plugins/WebBaseNetscapePluginStream.m:
2649         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2650         (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
2651         * Plugins/WebBaseNetscapePluginView.m:
2652         (TSMEventHandler):
2653         (-[WebBaseNetscapePluginView start]):
2654         (-[WebBaseNetscapePluginView status:]):
2655         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2656         * Plugins/WebBasePluginPackage.m:
2657         * Plugins/WebNetscapePluginDocumentView.m:
2658         * Plugins/WebNetscapePluginPackage.m:
2659         (-[WebNetscapePluginPackage load]):
2660         * Plugins/WebNetscapePluginRepresentation.m:
2661         * Plugins/WebPluginContainerCheck.m:
2662         * Plugins/WebPluginController.m:
2663         (-[WebPluginController addPlugin:]):
2664         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2665         (-[WebPluginController webPlugInContainerShowStatus:]):
2666         * Plugins/WebPluginDatabase.m:
2667         * Plugins/WebPluginDocumentView.m:
2668         * WebCoreSupport/WebCookieAdapter.m:
2669         * WebCoreSupport/WebFileButton.m:
2670         * WebCoreSupport/WebFrameBridge.m:
2671         (-[WebFrameBridge runModal]):
2672         * WebCoreSupport/WebImageData.m:
2673         (-[WebImageData _checkSolidColor:]):
2674         (-[WebImageData tileInRect:fromPoint:context:]):
2675         (-[WebImageData scaleAndTileInRect:fromRect:withHorizontalTileRule:withVerticalTileRule:context:]):
2676         * WebCoreSupport/WebImageDecoder.m:
2677         * WebCoreSupport/WebImageRenderer.m:
2678         (-[WebImageRenderer TIFFRepresentation]):
2679         * WebCoreSupport/WebImageRendererFactory.m:
2680         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
2681         * WebCoreSupport/WebKeyGenerator.m:
2682         * WebCoreSupport/WebPageBridge.m:
2683         * WebCoreSupport/WebSubresourceLoader.m:
2684         * WebCoreSupport/WebTextRenderer.m:
2685         (widthForGlyph):
2686         (-[WebTextRenderer initWithFont:]):
2687         (drawGlyphs):
2688         (initializeATSUStyle):
2689         (createATSULayoutParameters):
2690         (getTextBounds):
2691         (ATSU_draw):
2692         * WebCoreSupport/WebTextRendererFactory.m:
2693         * WebCoreSupport/WebViewFactory.m:
2694         * WebKit.exp:
2695         * WebKit.xcodeproj/project.pbxproj:
2696         * WebKitPrefix.h:
2697         * WebView/WebArchiver.m:
2698         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
2699         * WebView/WebClipView.m:
2700         * WebView/WebDataProtocol.m:
2701         * WebView/WebDataSource.m:
2702         (-[WebDataSource _startLoading]):
2703         * WebView/WebFormDataStream.m:
2704         (formEventCallback):
2705         (webSetHTTPBody):
2706         * WebView/WebFrame.m:
2707         (-[WebFrame _transitionToCommitted:]):
2708         * WebView/WebFrameView.m:
2709         * WebView/WebHTMLRepresentation.m:
2710         * WebView/WebHTMLView.m:
2711         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2712         (-[NSArray drawSingleRect:]):
2713         (-[NSArray namesOfPromisedFilesDroppedAtDestination:]):
2714         (-[NSArray _scaleFactorForPrintOperation:]):
2715         (-[NSArray deleteBackwardByDecomposingPreviousCharacter:]):
2716         (-[NSArray checkSpelling:]):
2717         (-[NSArray showGuessPanel:]):
2718         (-[NSArray _changeSpellingToWord:]):
2719         (-[NSArray ignoreSpelling:]):
2720         (-[NSArray performFindPanelAction:]):
2721         (-[WebTextCompleteController doCompletion]):
2722         * WebView/WebImageView.m:
2723         * WebView/WebLoader.m:
2724         (-[NSURLProtocol connection:willCacheResponse:]):
2725         * WebView/WebPDFRepresentation.m:
2726         (+[WebPDFRepresentation PDFDocumentClass]):
2727         * WebView/WebPDFView.m:
2728         (+[WebPDFView PDFKitBundle]):
2729         (+[WebPDFView PDFViewClass]):
2730         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
2731         * WebView/WebTextRepresentation.m:
2732         * WebView/WebTextView.m:
2733         * WebView/WebUnarchivingState.m:
2734         * WebView/WebView.m:
2735
2736 2006-04-22  Timothy Hatcher  <timothy@apple.com>
2737
2738         Reviewed by Eric.
2739
2740         http://bugzilla.opendarwin.org/show_bug.cgi?id=8514
2741         Bug 8514: Web Inspector hides when the app is in the background
2742
2743         Makes the inspector not hide in the background. Since the inspector is a floating panel
2744         we need to call setFloatingPanel:NO when the app is switching into the background. Then
2745         call setFloatingPanel:YES when the app is activated again. Without this the inspector
2746         would float above all applications.
2747
2748         * WebInspector/WebInspector.m:
2749         (-[NSWindow window]): setHidesOnDeactivate:NO
2750         (-[NSWindow windowWillClose:]): de-regiser appliction active notifications
2751         (-[NSWindow showWindow:]): register for appliction active notifications
2752         (-[WebInspector _applicationWillResignActive]): setFloatingPanel:NO
2753         (-[WebInspector _applicationDidBecomeActive]): setFloatingPanel:YES
2754
2755 2006-04-21  Adele Peterson  <adele@apple.com>
2756
2757         Reviewed by Darin.
2758
2759         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8181
2760         REGRESSION: After tabbing in page's field, attempting to tab from Google toolbar search to page fails on first try
2761
2762         Test: manual-tests/tabbing-input-google.html
2763
2764         * WebView/WebHTMLView.m: (-[NSArray resignFirstResponder]):
2765         When resigning first responder, reset willBecomeFirstResponderForNodeFocus, so when the WebHTMLView gets focus again
2766         it knows it can start moving through the tab cycle.
2767
2768 2006-04-20  Tim Omernick  <timo@apple.com>
2769
2770         Reviewed by John Sullivan.
2771
2772         <rdar://problem/4476875> Support printing for embedded Netscape plugins
2773
2774         NOTE: This only works with the Flash plugin right now.  It appears that the other
2775         major plugins either have awful printing support, or no printing support.  If someone
2776         can find an example of any other embedded Netscape plugin printing in any browser on
2777         the Mac, I will be happy to eat my own words!
2778
2779         * Plugins/WebBaseNetscapePluginView.m:
2780         (-[WebBaseNetscapePluginView drawRect:]):
2781         When printing, get the printed bitmap via -_printedPluginBitmap, and draw it into the
2782         plugin view.
2783         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2784         Call NPP_Print on the plugin to render it into a GWorld.  This GWorld has the same
2785         underlying buffer as an NSBitmapImageRep, which is returned to the caller.
2786
2787 2006-04-20 Mitz Pettel  <opendarwin.org@mitzpettel.com>
2788
2789         Reviewed by Darin.
2790
2791         WebKit part of:
2792         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8276
2793           REGRESSION (NativeTextField): Pasting a Finder item into a text field results in
2794             a file: URL being pasted instead of just the file name
2795         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8283
2796           REGRESSION: File's path doesn't appear after dragging file into input field
2797
2798         * WebView/WebHTMLView.m:
2799         (-[WebHTMLView _plainTextFromPasteboard:]): Added method that tries to copy AppKit
2800         text fields' logic for extracting plain text from the pasteboard.
2801         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Added helper method.
2802         (-[WebHTMLView _shouldInsertText:replacingDOMRange:givenAction:]):
2803         (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]):
2804         (-[WebHTMLView readSelectionFromPasteboard:]): Paste as plain text if
2805         rich text is not allowed.
2806         (-[WebHTMLView validateUserInterfaceItem:]): Changed to not allow pasteAsRichText:
2807         if the paste is not going to be handled by the DOM and the selection
2808         does not allow pasting rich text.
2809         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Paste as plain text if
2810         rich text is not allowed.
2811         (-[WebHTMLView paste:]): Ditto.
2812         (-[WebHTMLView pasteAsPlainText:]):
2813
2814 2006-04-20  Darin Adler  <darin@apple.com>
2815
2816         Reviewed by Adele.
2817
2818         - WebKit part of http://bugzilla.opendarwin.org/show_bug.cgi?id=8505
2819           eliminate WebCoreGraphics bridge, demonstrate new SystemInterface technique
2820
2821         * WebCoreSupport/WebGraphicsBridge.h: Removed.
2822         * WebCoreSupport/WebGraphicsBridge.m: Removed.
2823         * WebCoreSupport/WebSystemInterface.h: Added.
2824         * WebCoreSupport/WebSystemInterface.m: Added.
2825
2826         * WebKit.xcodeproj/project.pbxproj: Updated for removed and added files.
2827
2828         * WebCoreSupport/WebImageData.m: Removed unneeded include of WebGraphicsBridge.h.
2829         * WebCoreSupport/WebImageRenderer.m: Ditto.
2830         * WebCoreSupport/WebTextRenderer.m: Ditto.
2831
2832         * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Guarded all the one-time
2833         initialization inside a boolean, just in case some things take a little time. Added
2834         a call to InitWebCoreSystemInterface to the one-time initialization here. Later, we
2835         will need to add it in some other places if we call code that requires the use of
2836         WebCoreSystemInterface functions from anywhere that can be invoked before creations
2837         of the first WebFrameView, but for now there is no need.
2838
2839 2006-04-19  James G. Speth  <speth@end.com>
2840
2841         Reviewed by Timothy.
2842
2843         http://bugzilla.opendarwin.org/show_bug.cgi?id=8442
2844         Bug 8442: improvements to Cocoa bindings support in WebView - code simplification
2845
2846         Removes the WebController class added earlier; changes NSTreeController and 
2847         WebView to together without it. Now you can just bind the contentObject binding
2848         of the tree controller directly to the mainFrameDocument key of the WebView.
2849
2850         * WebCoreSupport/WebFrameBridge.m:
2851         (-[WebFrameBridge windowObjectCleared]):
2852         * WebView/WebDataSource.m:
2853         (-[WebDataSource _setTitle:]):
2854         * WebView/WebFrame.m:
2855         (-[WebFrame _closeOldDataSources]):
2856         * WebView/WebView.m:
2857         (-[WebView _progressStarted:]):
2858         (-[WebView _finalProgressComplete]):
2859         (-[WebView _commonInitializationWithFrameName:groupName:]):
2860         (-[WebView setMainFrameDocumentReady:]):
2861         (-[WebView mainFrameDocument]):
2862         * WebView/WebViewPrivate.h:
2863
2864 2006-04-19  James G. Speth  <speth@end.com>
2865
2866         Reviewed by Timothy.
2867
2868         http://bugzilla.opendarwin.org/show_bug.cgi?id=6635
2869         Bug 6635: Crash selecting inspector nodes for tabs that aren't foremost
2870
2871         Stop observing window will close notifications before we tell the highlight window to close,
2872         this prevents the crash. Also prevent drawing highlights for hidden tabs.
2873
2874         * WebInspector/WebInspector.m:
2875         (-[WebInspector _highlightNode:]):
2876         * WebInspector/WebNodeHighlight.m:
2877         (-[WebNodeHighlight expire]):
2878
2879 2006-04-19  James G. Speth  <speth@end.com>
2880
2881         Reviewed by Timothy.
2882
2883         http://bugzilla.opendarwin.org/show_bug.cgi?id=6637
2884         Bug 6637: selecting node in Inspector after closing window crashes Safari
2885
2886         When the window the Web Inspector was inspecting is closed, the inspector goes into its
2887         no-selection state. Choosing to inspect another element activates it again. The inspector
2888         will also follow the WebView if the URL changes and select the root element on the new page.
2889
2890         * WebInspector/WebInspector.m:
2891         (-[NSWindow setWebFrame:]):
2892         (-[NSWindow setRootDOMNode:]):
2893         (-[WebInspector _revealAndSelectNodeInTree:]):
2894         (-[WebInspector _update]):
2895         (-[WebInspector _updateRoot]):
2896         (-[WebInspector inspectedWebViewProgressFinished:]):
2897         (-[WebInspector inspectedWindowWillClose:]):
2898         (-[WebInspector webView:didFinishLoadForFrame:]):
2899         * WebInspector/WebInspectorPanel.m:
2900         (-[WebInspectorPanel canBecomeMainWindow]):
2901
2902 2006-04-18  Darin Adler  <darin@apple.com>
2903
2904         Reviewed by Beth.
2905
2906         * WebInspector/webInspector/inspector.css: Add "-webkit-" prefixes to the border
2907         radius properties to make the corners rounded again.
2908
2909 2006-04-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2910
2911         Reviewed by Darin.
2912
2913         - WebKit part of fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8324
2914           REGRESSION: textarea :focus not applied immediately
2915
2916         * WebCoreSupport/WebFrameBridge.m:
2917         (-[WebFrameBridge formControlIsBecomingFirstResponder:]): Added. Calls the ancestor
2918         WebHTMLView's _formControlIsBecomingFirstResponder:
2919         * WebView/WebHTMLView.m:
2920         (-[WebHTMLView _updateFocusState:]): If a descendant is becoming first responder,
2921         enable focused appearance.
2922         (-[WebHTMLView _formControlIsBecomingFirstResponder:]): Added. Calls _updateFocusState,
2923         causing the frame to display with focus attributes.
2924         * WebView/WebHTMLViewInternal.h:
2925
2926 2006-04-14  James G. Speth  <speth@end.com>
2927
2928         Reviewed by Timothy.
2929
2930         Bug 8389: support for Cocoa bindings - binding an NSTreeController to the WebView's DOM
2931         http://bugzilla.opendarwin.org/show_bug.cgi?id=8389
2932
2933         Added a controller class, WebController, that is a subclass of
2934         NSTreeController that has a new outlet/binding for the WebView.
2935
2936         * WebCoreSupport/WebFrameBridge.m:
2937         (-[WebFrameBridge windowObjectCleared]): notify bindings about the document change
2938         * WebView/WebView.m:
2939         (-[WebView _progressStarted:]): notify bindings about the document change
2940         (-[WebView _finalProgressComplete]): notify bindings about the document change
2941         (-[WebView _declaredKeys]): added a key for the main frame document
2942         (-[WebController init]):
2943         (-[WebController exposedBindings]):
2944         (-[WebController valueClassForBinding:]):
2945         (-[WebController setContent:]):
2946         (-[WebController webView]):
2947         (-[WebController setWebView:]):
2948         (-[WebView mainFrameDocument]): get the main frame's DOMDocument
2949         * WebView/WebViewPrivate.h: Adds mainFrameDocument to pending public.
2950
2951 2006-04-12  David Harrison  <harrison@apple.com>
2952
2953         Reviewed by Darin.
2954         
2955         <rdar://problem/4386640> AX: AXPreviousSentenceStartTextMarkerForTextMarker does not respect paragraph boundary
2956         <rdar://problem/4414575> AX: Dictionary popup cannot find some words on Dictionary.app
2957         
2958         (see related changes in WebCore)
2959         
2960         Tests added:
2961         * editing/selection/extend-by-sentence-001.html: Added.
2962         * fast/dom/inner-text-001.html: Added.
2963
2964         * WebView/WebHTMLView.m:
2965         (-[NSArray validateUserInterfaceItem:]):
2966         (-[NSArray moveToBeginningOfSentence:]):
2967         (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
2968         (-[NSArray moveToEndOfSentence:]):
2969         (-[NSArray moveToEndOfSentenceAndModifySelection:]):
2970         (-[NSArray selectSentence:]):
2971         * WebView/WebView.m:
2972         * WebView/WebViewPrivate.h:
2973         Add sentence navigation and selection.
2974
2975 2006-04-12  Tim Omernick  <timo@apple.com>
2976
2977         Reviewed by Darin.
2978
2979         Part of <rdar://problem/4482530>
2980
2981         * WebView/WebView.m:
2982         (-[WebView _focusedFrame]):
2983         Fixed up the logic here to take into account immediate subviews of WebView, which are not actually in a WebFrameView
2984         (they are peers to the main frame's WebFrameView).
2985
2986 2006-04-10  John Sullivan  <sullivan@apple.com>
2987
2988         Reviewed by Tim Omernick.
2989         
2990         - fixed <rdar://problem/4139799> Seed: Safari: Private Browsing leaves traces in Icon Cache
2991         
2992         * Misc/WebIconDatabasePrivate.h:
2993         new ivars: pageURLsBoundDuringPrivateBrowsing, iconURLsBoundDuringPrivateBrowsing, and privateBrowsingEnabled
2994
2995         * Misc/WebIconDatabase.m:
2996         (-[NSMutableDictionary init]):
2997         initialize new ivars, and listen for notifications that WebPreferences changed so we can react to changes
2998         to private browsing.
2999         (-[NSMutableDictionary iconForURL:withSize:cache:]):
3000         Don't remove icon URL from extraRetain dictionary; that's now done in _forgetIconForIconURLString. (I left a
3001         comment here earlier about why I was worried about this change, but I convinced myself that it's fine.)
3002         (-[WebIconDatabase removeAllIcons]):
3003         Removed no-longer-true (and never very clear) comment, and braces. Also remove all objects from the two
3004         private-browsing-related dictionaries.
3005         (-[WebIconDatabase _setIcon:forIconURL:]):
3006         remember icon URL if private browsing is enabled
3007         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
3008         remember icon URL if private browsing is enabled
3009         (-[WebIconDatabase _setIconURL:forURL:]):
3010         added an assert that helped me out at one point
3011         (-[WebIconDatabase _clearDictionaries]):
3012         clear the two new dictionaries too
3013         (-[WebIconDatabase _loadIconDictionaries]):
3014         made an existing ERROR not fire in the expected case where there are no icons at all on disk
3015         (-[WebIconDatabase _updateFileDatabase]):
3016         when saving the pageURLToIconURL dictionary to disk, first remove any values that were created during
3017         private browsing
3018         (-[WebIconDatabase _retainIconForIconURLString:]):
3019         skip the code that deals with saving changes to disk if private browsing is enabled
3020         (-[WebIconDatabase _forgetIconForIconURLString:]):
3021         Remove the icon URL from extraRetain dictionary here. We're forgetting everything about this icon URL
3022         so we should forget its former extraRetain count too.
3023         (-[WebIconDatabase _resetCachedWebPreferences:]):
3024         Cache the new value of private browsing. If it has now been turned off, forget everything we learned
3025         while it was on. This causes (e.g.) icons for bookmarks or pre-existing history items to be forgotten
3026         if the icon was only learned during private browsing.
3027
3028         * History/WebHistoryItem.m:
3029         removed an unnecessary #import I happened to notice
3030         
3031 2006-04-10  David Hyatt  <hyatt@apple.com>
3032
3033         Make the broken CG focus ring painting work when WebCore sets a clip
3034         (in addition to respecting the dirty rect clip).
3035
3036         Reviewed by darin
3037
3038         * WebCoreSupport/WebGraphicsBridge.m:
3039         (-[WebGraphicsBridge drawFocusRingWithPath:radius:color:clipRect:]):
3040
3041 2006-04-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3042
3043         Reviewed by Darin.
3044
3045         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8100
3046           REGRESSION (NativeTextField): Right-aligned and RTL text jitters in new text fields
3047
3048         * WebCoreSupport/WebTextRenderer.m:
3049         (overrideLayoutOperation): For RTL runs, apply the word-rounding on the left.
3050         (CG_floatWidthForRun): For RTL runs, apply the last character's rounding
3051         on the left by adjusting the start position.
3052         (initializeWidthIterator): Added finalRoundingWidth field to WidthIterator.
3053         (advanceWidthIterator): For RTL runs, apply rounding on the left of the character,
3054         by increasing the width of the next character (which is the character to the left). For
3055         the last character, keep the rounding width in the iterator's finalRoundingWidth, to be used by
3056         CG_floatWidthForRun().
3057
3058 2006-04-08  John Sullivan  <sullivan@apple.com>
3059
3060         Reviewed by Adele Peterson.
3061
3062         - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=8260
3063         REGRESSION: Assertion failure: ![_private->iconsToSaveWithURLs containsObject:iconURLString] 
3064         in WebIconDatabase.m:695-[WebIconDatabase(WebInternal) _retainIconForIconURLString:]
3065
3066         * Misc/WebIconDatabase.m:
3067         (-[WebIconDatabase _retainIconForIconURLString:]):
3068         This new assertion was one block too high; moved it in.
3069
3070 2006-04-07  David Hyatt  <hyatt@apple.com>
3071
3072         A fix that makes coalesced updates work much better (and makes our
3073         single animated GIF timer work better).  The new rect painting algorithm
3074         for WebHTMLView will use the single unioned rect if the # of rects exceeds
3075         a threshold (10 is my initial cut), or if the union has enough "wasted"
3076         additional pixels (conservatively set at 75%).
3077
3078         Reviewed by darin
3079
3080         * WebView/WebHTMLView.m:
3081         (-[NSArray drawSingleRect:]):
3082         (-[NSArray drawRect:]):
3083
3084 2006-04-07  Maciej Stachowiak  <mjs@apple.com>
3085
3086         Reviewed by Darin.
3087         
3088         - simplify archive loading
3089
3090         * WebView/WebDataSource.m:
3091         (-[WebDataSource representation]): fix whitespace
3092         * WebView/WebHTMLRepresentation.m:
3093         (-[WebHTMLRepresentation loadArchive]): Use WebFrame's loadArchive: instead
3094         of trying to do a manual load here.
3095         (-[WebHTMLRepresentation documentSource]): No more special case for WebArchive.
3096
3097 2006-04-07  John Sullivan  <sullivan@apple.com>
3098
3099         Reviewed by Tim Omernick.
3100         
3101         - fixed <rdar://problem/4507054> If an icon file is removed from disk behind Safari's back, 
3102         Safari will not try to refetch it
3103         
3104         In addition to letting WebIconDatabase recover from disk/memory mismatches as per 4507054, I also found
3105         a bug in the way icons are remembered that could account for some of the other cases where
3106         site icons didn't appear (and you'd get an ERROR on debug builds about WebIconDatabase saying it
3107         had some icon when it really doesn't).
3108
3109         * Misc/WebIconDatabase.m:
3110         (-[WebIconDatabase iconForURL:withSize:cache:]):
3111         When the icon file for a previously-saved site icon isn't found, forget about the darn icon URL thoroughly
3112         so that this situation is self-correcting. Formerly, once you got into this state WebKit would never find
3113         the icon again (short of removing the entire icon database cleanly). Note that this does *not* change
3114         the behavior of sites that didn't have a site icon when WebKit checked -- these will continue to not
3115         return a site icon indefinitely (that's a separate, possibly performance-sensitive issue).
3116         (-[WebIconDatabase _retainIconForIconURLString:]):
3117         This code did the wrong thing in the case where an icon was in the process of being forgotten about. In
3118         that case, the icon would still be in _private->iconsOnDiskWithURLs, so we wouldn't try to save it here,
3119         so the new icon wouldn't stick.
3120
3121 2006-04-07  David Hyatt  <hyatt@apple.com>
3122
3123         Re-enable coalesced updates.  Our move to a single timer has essentially
3124         implemented coalescing of updates anyway, so the regression has already
3125         come back.  Since we have to deal with that now anyway, there's no reason
3126         to visually tear also. :)
3127
3128         Reviewed by darin
3129
3130         * ChangeLog:
3131         * WebView/WebView.m:
3132         (-[WebView _commonInitializationWithFrameName:groupName:]):
3133
3134 2006-04-05  Darin Adler  <darin@apple.com>
3135
3136         - fixed a storage leak from that last check-in
3137
3138         * WebView/WebUnarchivingState.m: (-[WebUnarchivingState dealloc]):
3139         Release the two dictionaries.
3140
3141 2006-04-05  Maciej Stachowiak  <mjs@apple.com>
3142
3143         Reviewed by Eric.
3144         
3145         - start on factoring WebArchive unpacking more into a separate class.
3146         http://bugzilla.opendarwin.org/show_bug.cgi?id=8208
3147         
3148         * WebKit.xcodeproj/project.pbxproj:
3149         * WebView/WebDataSource.m:
3150         (-[WebDataSourcePrivate dealloc]):
3151         (-[WebDataSource _addToUnarchiveState:]):
3152         (-[WebDataSource _popSubframeArchiveWithName:]):
3153         (-[WebDataSource _documentFragmentWithArchive:]):
3154         (-[WebDataSource _setupForReplaceByMIMEType:]):
3155         (-[WebDataSource subresourceForURL:]):
3156         * WebView/WebDataSourcePrivate.h:
3157         * WebView/WebFrame.m:
3158         (-[WebFrame _loadRequest:archive:]):
3159         (-[WebFrame loadRequest:]):
3160         (-[WebFrame loadArchive:]):
3161         * WebView/WebFramePrivate.h:
3162         * WebView/WebHTMLRepresentation.m:
3163         (-[WebHTMLRepresentation loadArchive]):
3164         * WebView/WebUnarchivingState.h: Added.
3165         * WebView/WebUnarchivingState.m: Added.
3166         (-[WebUnarchivingState init]):
3167         (-[WebUnarchivingState addArchive:]):
3168         (-[WebUnarchivingState archivedResourceForURL:]):
3169         (-[WebUnarchivingState popSubframeArchiveWithFrameName:]):
3170
3171 2006-04-04  Timothy Hatcher  <timothy@apple.com>
3172
3173         Reviewed by Darin.
3174
3175         The Debug and Release frameworks are now built with install paths relative to the build products directory.
3176         This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore. 
3177
3178         * WebKit.xcodeproj/project.pbxproj:
3179
3180 2006-04-04  John Sullivan  <sullivan@apple.com>
3181
3182         Reviewed by Adele Peterson.
3183
3184         - WebKit part of <rdar://problem/4498418> "Autosaved" searchterms are saved during private browsing
3185
3186         * WebView/WebView.m:
3187         (-[WebView _updateWebCoreSettingsFromPreferences:]):
3188         Pass private browsing setting down to WebCore.
3189
3190 2006-04-03  John Sullivan  <sullivan@apple.com>
3191
3192         Reviewed by Tim Hatcher.
3193         
3194         - re-fixed <rdar://problem/4481198> REGRESSION (TOT): search results list in bookmarks view 
3195         remains when search text is deleted
3196
3197         * WebView/WebView.m:
3198         (-[WebView searchFor:direction:caseSensitive:wrap:]):
3199         I fixed this recently, but then broke it again by adding an early bail-out to this method. So
3200         now I'm removing the early bail-out.
3201
3202 2006-04-02  Trey Matteson  <trey@usa.net>
3203
3204         Reviewed by Maciej.
3205
3206         fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8121
3207         REGRESSION: 404s are not displayed
3208
3209         * WebView/WebMainResourceLoader.m:
3210         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3211         Only cancel failed loads for object elements, not for frames or a whole page.
3212
3213 2006-04-02  Maciej Stachowiak  <mjs@apple.com>
3214
3215         Reviewed by Hyatt.
3216
3217         - fixed <rdar://problem/4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
3218         - fixed <rdar://problem/4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
3219         (http://bugzilla.opendarwin.org/show_bug.cgi?id=6811)
3220         - fixed tab and shift tab don't select the right things
3221         http://bugzilla.opendarwin.org/show_bug.cgi?id=5685
3222
3223         * WebCoreSupport/WebFrameBridge.m:
3224         (-[WebFrameBridge willMakeFirstResponderForNodeFocus]): New method
3225         - let WebHTMLView know that the next time it becomes first
3226         responder, it's to change focus within the page and the right node
3227         has already been set, so it should not move focus forward or
3228         backward inside it.
3229         * WebView/WebHTMLView.m:
3230         (-[NSArray needsPanelToBecomeKey]): Override to return YES, oddly enough this
3231         is the right way to tell AppKit that you should be in the tab cycle loop.
3232         (-[NSArray becomeFirstResponder]): Don't move forward or back in tab cycle
3233         when this becomeFirstResponder is for tabbing from a control in the page.
3234         (-[WebHTMLView _willMakeFirstResponderForNodeFocus]): Note that the next
3235         time this view becomes first responder, it will be for in-page focus 
3236         navigation.
3237         * WebView/WebHTMLViewInternal.h:
3238
3239 2006-04-01  Darin Adler  <darin@apple.com>
3240
3241         Reviewed by Maciej.
3242
3243         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8105
3244           REGRESSION (NativeTextField): Option-delete deletes one space before the deleted word
3245
3246         Test: fast/forms/input-text-option-delete.html
3247
3248         * WebView/WebHTMLView.m:
3249         (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Pass NO for
3250         smartDeleteOK. Smart deletion only applies to deleting a word at a time, and none of
3251         the callers of this function that delete a word at a time want smart deletion.
3252         (-[WebHTMLView deleteToEndOfLine:]): Fixed tiny formatting glitch.
3253
3254 2006-03-31  Timothy Hatcher  <timothy@apple.com>
3255
3256         Reviewed by Darin.
3257
3258         We need to set reachedTerminalState to YES before we release
3259         the resources to prevent a double dealloc of WebView
3260
3261         Fixes <rdar://problem/4372628> crash deallocating a WebView in -[WebFrame stopLoading]
3262
3263         * WebView/WebLoader.m:
3264         (-[NSURLProtocol releaseResources]): set reachedTerminalState earlier
3265
3266 2006-03-31  John Sullivan  <sullivan@apple.com>
3267
3268         Reviewed by Tim Omernick.
3269         
3270         Some cleanup in the WebIconDatabase code in a fruitless search for the cause
3271         of the mysterious -[WebFileDatabase performSetObject:forKey] crash
3272
3273         * Misc/WebIconDatabase.m:
3274         (-[WebIconDatabase _createFileDatabase]):
3275         removed obsolete comment
3276         (-[WebIconDatabase _loadIconDictionaries]):
3277         Added ERRORs for unexpected early returns. Made dictionaries be autoreleased until
3278         the end of the method where they are retained, so that the early returns don't leak;
3279         added ASSERTs that the _private->dictionary values aren't being leaked.
3280         (-[WebIconDatabase _updateFileDatabase]):
3281         Added an ERROR for an unexpected early return, and made a trivial style fix.
3282
3283 2006-03-31  Trey Matteson  <trey@usa.net>
3284
3285         Reviewed by Maciej, landed by ap.
3286
3287         http://bugzilla.opendarwin.org/show_bug.cgi?id=7739
3288         REGRESSION: Assertion failure loading acid2 test in -[WebCoreFrameBridge installInFrame:]
3289
3290         Tests: http/tests/misc/acid2.html, http/tests/misc/acid2-pixel.html
3291
3292         The gist of this change is that we must cancel the load from the Webkit side when we
3293         realize we're switching to the fallback content.  This is somewhat a temp workaround
3294         since control of loading will be moving to WebCore.
3295
3296         * WebView/WebMainResourceLoader.m:
3297         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3298
3299 2006-03-30  Justin Garcia  <justin.garcia@apple.com>
3300
3301         Reviewed by darin
3302         
3303         http://bugzilla.opendarwin.org/show_bug.cgi?id=6989
3304         REGRESSION: Plain-text mode needed for contenteditable area used in new text field
3305
3306         * WebView/WebHTMLView.m:
3307         (-[WebHTMLView _canEditRichly]): Added.
3308         (-[WebHTMLView _canIncreaseSelectionListLevel]): Use _canEditRichly
3309         (-[WebHTMLView _canDecreaseSelectionListLevel]): Ditto.
3310         (-[WebHTMLView _increaseSelectionListLevel]):
3311         (-[WebHTMLView _decreaseSelectionListLevel]):
3312         (-[NSArray validateUserInterfaceItem:]): 
3313         Split rich text editing actions off from ones that can be applied anywhere.
3314         (-[NSArray _applyStyleToSelection:withUndoAction:]):
3315         (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
3316         (-[NSArray _alignSelectionUsingCSSValue:withUndoAction:]):
3317         * WebView/WebHTMLViewPrivate.h:
3318
3319 2006-03-29  Tim Omernick  <timo@apple.com>
3320
3321         Reviewed by John Sullivan.
3322
3323         <rdar://problem/4495316> REGRESSION (420+): After page has loaded, spinning progress indicator is displayed on
3324         tab at versiontracker.com
3325
3326         * WebView/WebFrame.m:
3327         (-[WebFrame _receivedMainResourceError:]):
3328         Call -_clientRedirectCancelledOrFinished: here so that the frame load delegate is notified that the redirect's
3329         status has changed, if there was a redirect.  The frame load delegate may have saved some state about
3330         the redirect in its -webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:.  Since we are definitely
3331         not going to use this provisional resource, as it was cancelled, notify the frame load delegate that the redirect
3332         has ended.
3333         The fix for 4432562 was similar to this, but only took care of the case where the redirect load was actually
3334         committed to the frame.  The new call to -_clientRedirectCancelledOrFinished: handles the case where the redirect
3335         load was successful, but was not committed.  This happens with downloads.
3336         
3337 2006-03-29  John Sullivan  <sullivan@apple.com>
3338
3339         Reviewed by Tim Omernick.
3340         
3341         - fixed these bugs:
3342         <rdar://problem/4483806> REGRESSION (417.8-TOT): PDFs don't scale correctly with auto-size (5356)
3343         <rdar://problem/3874856> Safari PDF display should be full width by default rather than 
3344         sized to show the entire page
3345
3346         * WebView/WebPDFRepresentation.m:
3347         (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
3348         Let the WebPDFView handle setting the document, because that's the best time to apply
3349         the sizing-related preferences.
3350         
3351         * WebView/WebPDFView.h:
3352         eliminated firstLayoutDone ivar and -PDFSubview public method; added -setPDFDocument:
3353         
3354         * WebView/WebPDFView.m:
3355         (-[WebPDFView initWithFrame:]):
3356         eliminate use of obsolete firstLayoutDone ivar
3357         (-[WebPDFView _applyPDFDefaults]):
3358         renamed from _readPDFDefaults for clarity
3359         (-[WebPDFView layout]):
3360         removed code that applied the preferences here. This was too early to handle auto-sizing correctly,
3361         because -layout can be called before the document exists, and calling setAutoSize:YES at that
3362         point confuses PDFView into setting the scale factor to 20 (the maximum).
3363         (-[WebPDFView setPDFDocument:]):
3364         New method, does what WebPDFRepresentation used to do and also applies the preferences here.
3365         This is a good place to apply them because the document is guaranteed to now exist (of course).
3366         (-[WebPDFView PDFSubview]):
3367         Moved this into a new FileInternal category because it's still needed by another class in
3368         this file but no longer needs to be public.
3369         
3370         * WebView/WebPreferences.m:
3371         (+[WebPreferences initialize]):
3372         Change WebKitPDFScaleFactorPreferenceKey to 0, which represents auto-size. This fixes 3874856,
3373         but wasn't feasible until 4483806 was fixed.
3374
3375 2006-03-28  Darin Adler  <darin@apple.com>
3376
3377         Reviewed by Geoff.
3378
3379         - added a build step that checks for init routines
3380
3381         * WebKit.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
3382         check-for-global-initializers script.
3383
3384 2006-03-28  Tim Omernick  <timo@apple.com>
3385
3386         Reviewed by Darin.
3387
3388         <rdar://problem/3694090> -[WebBaseNetscapePluginView finalize] is incorrect; design change needed
3389
3390         * Plugins/WebBaseNetscapePluginView.m:
3391         (-[WebBaseNetscapePluginView initWithFrame:]):
3392         Don't observe preferences changes here -- we only want to observe preferences while the view is 
3393         installed in the view hierarchy.  Plugins will appropriately start and stop themselves when added to
3394         or removed from a window.
3395         (-[WebBaseNetscapePluginView dealloc]):
3396         Don't remove observers here -- they should have been removed when the view was removed from its
3397         window.
3398         (-[WebBaseNetscapePluginView finalize]):
3399         ditto
3400         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
3401         Stop observing preferences when the view is removed from its window.
3402         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
3403         Start observing preferences when the view is added to a window.
3404
3405 2006-03-27  Tim Omernick  <timo@apple.com>
3406
3407         Reviewed by Eric.
3408
3409         <rdar://problem/3694090> -[WebBaseNetscapePluginView finalize] is incorrect; design change needed
3410
3411         * ChangeLog:
3412         * Plugins/WebBaseNetscapePluginView.m:
3413         (-[WebBaseNetscapePluginView dealloc]):
3414         Instead of calling -stop, assert that the plugin is not running.  A plugin view cannot be deallocated
3415         until it is removed from its window.  When a plugin view is removed from its window, it calls -stop
3416         on itself.  Therefore I believe that this call to -stop is unnecessary; if I'm wrong, then the
3417         assertion will help catch any edge cases.
3418         (-[WebBaseNetscapePluginView finalize]):
3419         ditto
3420
3421 2006-03-27  Tim Omernick  <timo@apple.com>
3422
3423         Reviewed by Eric.
3424
3425         <rdar://problem/3694086> -[WebBaseNetscapePluginStream finalize] is incorrect; design change needed
3426
3427         * Plugins/WebBaseNetscapePluginStream.m:
3428         (-[WebBaseNetscapePluginStream dealloc]):
3429         Assert that the stream file path either never existed, or was deleted and NULL-ed out.  The stream file
3430         is now deleted immediately after calling NPP_StreamAsFile().
3431         (-[WebBaseNetscapePluginStream finalize]):
3432         ditto
3433         (-[WebBaseNetscapePluginStream _destroyStream]):
3434         Delete the file after calling NPP_StreamAsFile(), instead of in -dealloc/-finalize.  It should be OK
3435         to delete the file here -- NPP_StreamAsFile() is always called immediately before NPP_DestroyStream()
3436         (the stream destruction function), so there can be no expectation that a plugin will read the stream file
3437         asynchronously after NPP_StreamAsFile() is called.
3438
3439 2006-03-27  Tim Omernick  <timo@apple.com>
3440
3441         Reviewed by Eric.
3442
3443         <rdar://problem/3694093> -[WebBasePluginPackage finalize] is incorrect; design change needed
3444
3445         Call -unload on plug-in packages instead of relying on -dealloc/-finalize to do it.  Currently
3446         the only place plug-in packages are deallocated is when refreshing the set of plugins, as when
3447         handling JavaScript's navigator.plugins.refresh().
3448
3449         * Plugins/WebBasePluginPackage.m:
3450         (-[WebBasePluginPackage dealloc]):
3451         Assert that the plug-in has been unloaded by the time -dealloc is called.
3452         (-[WebBasePluginPackage finalize]):
3453         ditto
3454
3455         * Plugins/WebPluginDatabase.m:
3456         (-[WebPluginDatabase refresh]):
3457         Call -unload on the plug-in packages before releasing them.
3458
3459 2006-03-27  Tim Omernick  <timo@apple.com>
3460
3461         Reviewed by Tim Hatcher.
3462
3463         Part of <rdar://problem/4448350> Deprecated ObjC language API used in JavaScriptCore, WebCore,
3464         WebKit and WebBrowser
3465
3466         * Carbon/HIViewAdapter.h:
3467         HIViewAdapter is no longer an NSView subclass, since we no longer pose it as NSView.
3468         * Carbon/HIViewAdapter.m:
3469         (+[NSView bindHIViewToNSView:nsView:]):
3470         Replace individual NSView methods instead of posing as NSView.
3471         (_webkit_NSView_setNeedsDisplay):
3472         Replacement implementation of -[NSView setNeedsDisplay:].
3473         (_webkit_NSView_setNeedsDisplayInRect):
3474         Replacement implementation of -[NSView setNeedsDisplayInRect:]
3475         (_webkit_NSView_nextValidKeyView):
3476         Replacement implementation of -[NSView nextValidKeyView]
3477
3478 2006-03-27  John Sullivan  <sullivan@apple.com>
3479
3480         Reviewed by Darin Adler.
3481         
3482         Removed two overzealous assertions that the steps to reproduce 4451831 were running into.
3483         Improved comments to match.
3484
3485         * WebCoreSupport/WebFrameBridge.m:
3486         (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
3487         Remove assertion that _inNextKeyViewOutsideWebFrameViews should always be false here.
3488         
3489         * WebView/WebHTMLView.m:
3490         (-[NSArray nextValidKeyView]):
3491         Removed assertion that the frame should never be the main frame here.
3492
3493 2006-03-27  Tim Omernick  <timo@apple.com>
3494
3495         Reviewed by Tim Hatcher.
3496
3497         Removed tabs & reformatted code.
3498         
3499         * Carbon/HIViewAdapter.m:
3500         (+[NSView bindHIViewToNSView:nsView:]):
3501         (+[NSView getHIViewForNSView:]):
3502         (+[NSView unbindNSView:]):
3503         (-[NSView setNeedsDisplay:]):
3504         (-[NSView setNeedsDisplayInRect:]):
3505         (-[NSView nextValidKeyView]):
3506         (SetViewNeedsDisplay):
3507
3508 2006-03-26  Justin Garcia  <justin.garcia@apple.com>
3509
3510         Reviewed by darin
3511         
3512         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7974>
3513         Add EditActions and WebUndoActions&