Use NSWorkspace methods instead of Launch Services and Finder functions.
[WebKit-https.git] / WebKit / ChangeLog-2002-12-03
1 2002-05-30  Chris Blumenberg  <cblu@apple.com>
2
3         Use NSWorkspace methods instead of Launch Services and Finder functions.
4
5         * MIME.subproj/IFDownloadHandler.h:
6         * MIME.subproj/IFDownloadHandler.mm:
7         * WebView.subproj/IFWebFrame.mm:
8         (-[IFWebFrame setProvisionalDataSource:]):
9
10
11 =======
12 2002-05-30  Richard Williamson  <rjw@apple.com>
13
14     Added 'canDraw' check to ensure that we can render
15     an image frame.
16     
17         * WebCoreSupport.subproj/IFImageRenderer.m:
18
19 === Alexander-7 ===
20
21 2002-05-29  Richard Williamson  <rjw@apple.com>
22
23     Changes to support animated image rendering.
24     Moved image rendering into webkit.
25     Still need to implement preferences stubs and
26     start/stop stubs.
27     
28         * WebCoreSupport.subproj/IFImageRenderer.h: Added.
29         * WebCoreSupport.subproj/IFImageRenderer.m: Added.
30         * WebCoreSupport.subproj/IFImageRendererFactory.h: Added.
31         * WebCoreSupport.subproj/IFImageRendererFactory.m: Added.
32         (+[IFImageRendererFactory createSharedFactory]):
33         (+[IFImageRendererFactory sharedFactory]):
34         (-[IFImageRendererFactory imageRendererWithBytes:length:]):
35         (-[IFImageRendererFactory imageRendererWithSize:]):
36         * WebKit.pbproj/project.pbxproj:
37         * WebView.subproj/IFBaseWebController.mm:
38         (-[IFBaseWebController stopAnimatedImages]):
39         (-[IFBaseWebController startAnimatedImages]):
40         (-[IFBaseWebController stopAnimatedImageLooping]):
41         (-[IFBaseWebController startAnimatedImageLooping]):
42         * WebView.subproj/IFPreferences.h:
43         * WebView.subproj/IFPreferences.mm:
44         (+[IFPreferences load]):
45         (-[IFPreferences _resourceTimedLayoutEnabled]):
46         (-[IFPreferences allowAnimatedImages]):
47         (-[IFPreferences allowAnimatedImageLooping]):
48         (-[IFPreferences setAllowAnimatedImageLooping:]):
49         * WebView.subproj/IFWebController.h:
50         * WebView.subproj/IFWebView.mm:
51         (-[IFWebView initWithFrame:]):
52
53 2002-05-29  Richard Williamson  <rjw@apple.com>
54
55     API stubs for image animation.
56
57         * WebKit.pbproj/project.pbxproj:
58         * WebView.subproj/IFBaseWebController.mm:
59         (-[IFBaseWebController stopAnimatedImages]):
60         (-[IFBaseWebController startAnimatedImages]):
61         (-[IFBaseWebController stopAnimatedImageLooping]):
62         (-[IFBaseWebController startAnimatedImageLooping]):
63         * WebView.subproj/IFPreferences.h:
64         * WebView.subproj/IFPreferences.mm:
65         (+[IFPreferences load]):
66         (-[IFPreferences _resourceTimedLayoutEnabled]):
67         (-[IFPreferences allowAnimatedImages]):
68         (-[IFPreferences allowAnimatedImageLooping]):
69         (-[IFPreferences setAllowAnimatedImageLooping:]):
70         * WebView.subproj/IFWebController.h:
71
72 2002-05-29  John Sullivan  <sullivan@apple.com>
73
74         Removed acceptsFirstMouse override, this fixes at least:
75
76         2930713 -- clicking on an empty part of window to bring it to front
77         takes focus away from page address field
78
79         2938028 -- Link cursor doesn't appear when browser window not
80         frontmost, but clicks activate links
81
82         * WebView.subproj/IFWebView.mm:
83
84 2002-05-28  John Sullivan  <sullivan@apple.com>
85
86         Made -[IFBookmark group] and -[IFBookmark parent] public
87         methods, and renamed them to not use leading underscores,
88         as part of support for revealing a particular bookmark in
89         the Bookmarks window.
90
91         * Bookmarks.subproj/IFBookmark_Private.h:
92         removed _group and _parent.
93
94         * Bookmarks.subproj/IFBookmark.h:
95         added group and parent.
96
97         * Bookmarks.subproj/IFBookmark.m:
98         (-[IFBookmark parent]):
99         (-[IFBookmark group]):
100         * Bookmarks.subproj/IFBookmarkGroup.m:
101         (-[IFBookmarkGroup removeBookmark:]):
102         (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:type:]):
103         * Bookmarks.subproj/IFBookmarkLeaf.m:
104         (-[IFBookmarkLeaf copyWithZone:]):
105         (-[IFBookmarkLeaf setTitle:]):
106         (-[IFBookmarkLeaf setImage:]):
107         (-[IFBookmarkLeaf setURLString:]):
108         * Bookmarks.subproj/IFBookmarkList.m:
109         (-[IFBookmarkList copyWithZone:]):
110         (-[IFBookmarkList setTitle:]):
111         (-[IFBookmarkList setImage:]):
112         (-[IFBookmarkList removeChild:]):
113         (-[IFBookmarkList insertChild:atIndex:]):
114         (-[IFBookmarkList _setGroup:]):
115         * Bookmarks.subproj/IFBookmarkSeparator.m:
116         (-[IFBookmarkSeparator copyWithZone:]):
117         Fixed up all references to _group and _parent to now refer to
118         group and parent.
119
120 2002-05-28  Richard Williamson  <rjw@apple.com>
121
122     Backed out band-aid add to fixed malformed resources URLs.
123
124         * WebView.subproj/IFWebDataSourcePrivate.mm:
125         (-[IFWebDataSource _addURLHandle:]):
126
127 2002-05-28  Chris Blumenberg  <cblu@apple.com>
128
129         Added support for creating a new window from a plug-in (2938004)
130
131         * Plugins.subproj/IFPluginView.mm:
132         (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
133
134 2002-05-28  Chris Blumenberg  <cblu@apple.com>
135
136         * Plugins.subproj/IFPluginDatabase.h:
137         * Plugins.subproj/IFPluginDatabase.m:
138         (-[IFPluginDatabase pluginForMimeType:]): renamed
139         (-[IFPluginDatabase pluginForExtension:]): renamed
140         (-[IFPluginDatabase pluginForFilename:]): renamed
141         (findPlugins):
142         * WebCoreSupport.subproj/IFWebCoreViewFactory.m: support for above renamed
143         (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
144         (-[IFWebCoreViewFactory viewForJavaAppletWithArguments:]):
145         * WebView.subproj/IFWebDataSourcePrivate.mm:
146         (-[IFWebDataSource _addURLHandle:]): fix for a nil handle being added to an array
147
148 2002-05-28  Darin Adler  <darin@apple.com>
149
150         * WebCoreSupport.subproj/IFTextRenderer.m:
151         (hasMissingGlyphs): Use recordSize instead of assuming records are sizeof(ATSLayoutRecord).
152         (-[IFTextRenderer convertCharacters:length:toGlyphs:]): Free buffer after calling
153         ATSUConvertCharToGlyphs; old code was using buffer after freeing it.
154         (-[IFTextRenderer widthForString:]): Handle case where string is longer than
155         LOCAL_GLYPH_BUFFER_SIZE.
156         (-[IFTextRenderer slowPackGlyphsForCharacters:numCharacters:glyphBuffer:numGlyphs:]):
157         (-[IFTextRenderer drawString:atPoint:withColor:]): Use recordSize instead of assuming records
158         are sizeof(ATSLayoutRecord).
159         (-[IFTextRenderer slowFloatWidthForCharacters:length:]): Use recordSize instead of assuming
160         records are sizeof(ATSLayoutRecord).
161         (-[IFTextRenderer floatWidthForCharacters:length:]): Remove extra rounding. The caller that
162         converts the width to an integer already does the rounding.
163         (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]): Fix off by one error that caused us
164         to include one extra character in each glyph map block. Also use recordSize instead of assuming
165         records are sizeof(ATSLayoutRecord).
166
167 2002-05-27  John Sullivan  <sullivan@apple.com>
168
169         Part of fix for 2922772 -- page title & location field don't
170         show redirected URLs.
171
172         * WebView.subproj/IFWebDataSource.mm:
173         (-[IFWebDataSource wasRedirected]): Fixed this method, now that
174         we have a client that relies on it. Its logic was backwards, and
175         it didn't handle the null _finalURL case.
176
177 2002-05-26  Maciej Stachowiak  <mjs@apple.com>
178
179         Fixed Radar 936147 - debug output in console "keyUp: NSEvent: type=KeyUp"
180
181         * WebView.subproj/IFWebView.mm:
182         (-[IFWebView keyDown:]): Turned NSLog into WEBKITDEBUGLEVEL.
183         (-[IFWebView keyUp:]): Likewise.
184
185 2002-05-26  Maciej Stachowiak  <mjs@apple.com>
186
187         WebKit part of fix for:
188
189         Radar 2884085 - add support for changing cursor over links
190
191         Also, fix handling of mouseMoved events.
192         
193         * WebView.subproj/IFWebView.mm:
194         (-[IFWebView mouseMovedNotification:]): Clip mouseMoved events to
195         the view rect, otherwise mouseover effects might happen for
196         elements past the edge of the window.   
197         (-[IFWebView setCursor:]): Implement.
198         (-[IFWebView resetCursorRects]): Implement.
199         * WebView.subproj/IFWebViewPrivate.h:
200         * WebView.subproj/IFWebViewPrivate.mm:
201         (-[IFWebViewPrivate dealloc]): Added NSCursor *cursor field.
202
203 2002-05-25  Maciej Stachowiak  <mjs@apple.com>
204
205         * WebKit.pbproj/project.pbxproj: Link against WebCore.framework,
206         not libwebcore.dylib.
207
208 === 0.3 ===
209
210 2002-05-24  Shelley A Sheridan  <sheridan@apple.com>
211
212         * ChangeLog:
213
214 === Alexander-6 ===
215
216 2002-05-23  Maciej Stachowiak  <mjs@apple.com>
217
218         WebKit part of the fix for:
219
220         Radar 2896391 - command-click should open link in new window
221         
222         * WebView.subproj/IFBaseWebController.mm:
223         (-[IFBaseWebController openNewWindowWithURL:]): Default
224         implementation silently does nothing.
225         * WebView.subproj/IFWebController.h: Add openNewWindowWithURL:
226         method.
227         * WebView.subproj/IFWebView.mm:
228         (-[IFWebView _addModifiers:toState:]): Split out modifier key
229         handling to here. Treat Command as Meta.
230         (-[IFWebView mouseUp:]): Use new method to set key modifiers for
231         mouse events.
232         (-[IFWebView mouseDown:]): Use new method to set key modifiers for
233         mouse events.
234         (-[IFWebView keyDown:]): Use new shared code for key modifiers.
235         (-[IFWebView keyUp:]): Use new shared code for key modifiers.
236
237 2002-05-23  Kenneth Kocienda  <kocienda@apple.com>
238
239         Fixes for these bugs:
240
241         Radar 2883631 (need to implement support for META HTTP_EQUIV=REFRESH)
242         Radar 2935472 (Non-standard html pages don't always get decoded)
243
244         * WebView.subproj/IFMainURLHandleClient.h:
245         * WebView.subproj/IFMainURLHandleClient.mm:
246         (-[IFMainURLHandleClient setContentPolicy:]): Updated method to use new processData interface.
247         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Senses when all data has been received for a load.
248         (-[IFMainURLHandleClient processData:isComplete:allDataReceived:]): Modified interface to add a flag 
249           for when all data for a load has been received.
250
251 2002-05-23  Shelley A Sheridan  <sheridan@apple.com>
252
253         * ChangeLog:
254
255 === Alexander-5 ===
256
257 2002-05-23  Maciej Stachowiak  <mjs@apple.com>
258
259         Move authentication panel to WebKit and make it a sheet, fixing:
260
261         Radar 2876445 - Authentication panel should be a sheet
262         Radar 2876449 - The Alexander authentication panel should be moved
263         to WebKit for use as a standard one
264         
265         * Panels.subproj/English.lproj/IFAuthenticationPanel.nib: Added.
266         * Panels.subproj/IFAuthenticationPanel.h: Added.
267         * Panels.subproj/IFAuthenticationPanel.m: Added.
268         * Panels.subproj/IFPanelAuthenticationHandler.h: Added.
269         * Panels.subproj/IFPanelAuthenticationHandler.m: Added.
270         * Panels.subproj/IFStandardPanels.h: Added.
271         * Panels.subproj/IFStandardPanels.m: Added.
272         * Panels.subproj/IFStandardPanelsPrivate.h: Added.
273         * WebKit.pbproj/project.pbxproj: Add new files to build.
274         * Plugins.subproj/IFPluginStream.mm:
275         (-[IFPluginStream IFURLHandleResourceDidBeginLoading:]): Notify of
276         load start.
277         (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]): Notify
278         of load end.
279         (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]): Likewise.
280         (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]): Likewise.
281         (-[IFPluginStream IFURLHandle:didRedirectToURL:]): Notify that old
282         URL is no longer loading, but new one is.
283         * WebView.subproj/IFBaseWebControllerPrivate.h:
284         * WebView.subproj/IFBaseWebControllerPrivate.mm:
285         (-[IFBaseWebController _didStartLoading:]): New private method
286         used to track what URLs are loading on behalf of this controller.
287         (-[IFBaseWebController _didStopLoading:]): Likewise.
288         
289         * WebView.subproj/IFMainURLHandleClient.mm:
290         (-[IFMainURLHandleClient IFURLHandleResourceDidBeginLoading:]): Notify
291         of load start.
292         (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): Notify
293         of load end.
294         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]): Likewise.
295         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Likewise.
296         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]): Likewise.
297         (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]): Notify of 
298         load end and start.
299
300 2002-05-22  Chris Blumenberg  <cblu@apple.com>
301         
302         Fixed download data source leaks when downloads are cancelled.
303
304         * WebView.subproj/IFBaseWebControllerPrivate.mm:
305         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
306         * WebView.subproj/IFMainURLHandleClient.mm:
307         (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
308         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
309
310 2002-05-22  Chris Blumenberg  <cblu@apple.com>
311
312         Removed activate events as this was causing problems
313         for the QT plug-in.
314         
315         * Plugins.subproj/IFPluginView.mm:
316         (-[IFPluginView windowBecameKey:]):
317         (-[IFPluginView windowResignedKey:]):
318
319 2002-05-22  Chris Blumenberg  <cblu@apple.com>
320
321         Fixed crasher caused by not retaining.
322         Fixed targeting bug.
323
324         * Plugins.subproj/IFPluginView.mm:
325         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
326         (-[IFPluginView getURLNotify:target:notifyData:]):
327         (-[IFPluginView getURL:target:]):
328         (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
329         (-[IFPluginView postURL:target:len:buf:file:]):
330
331 2002-05-22  Richard J. Williamson  <rjw@apple.com>
332
333     Changed semantics of isLoading to only return YES if
334     the datasource is loading resources related to the intial
335     load.  Other resources loaded later by JS will not be
336     accounted for by isLoading.
337     
338         * WebView.subproj/IFWebDataSource.mm:
339         (-[IFWebDataSource isLoading]):
340
341 2002-05-22  Chris Blumenberg  <cblu@apple.com>
342
343         - Removed obsolete MIME/download related code.
344         - Minor clean-ups.
345         - Made WebKit support all text/* MIME types.
346         - Now send NPP_URLNotify when pages requested by plug-ins are loaded.
347         - Simplified NPP_Get/NPP_Post code.
348         
349         * MIME.subproj/IFContentHandler.h:
350         * MIME.subproj/IFContentHandler.m:
351         * MIME.subproj/IFDownloadHandler.mm:
352         * MIME.subproj/IFMIMEDatabase.h: Removed.
353         * MIME.subproj/IFMIMEDatabase.m: Removed.
354         * MIME.subproj/IFMIMEHandler.h:
355         * MIME.subproj/IFMIMEHandler.m:
356         (+[IFMIMEHandler MIMEHandlerTypeForMIMEType:]):
357         (+[IFMIMEHandler canShowMIMEType:]):
358         * Plugins.subproj/IFPluginView.h:
359         * Plugins.subproj/IFPluginView.mm:
360         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
361         (-[IFPluginView dealloc]):
362         (-[IFPluginView frameStateChanged:]):
363         (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
364         (-[IFPluginView getURLNotify:target:notifyData:]):
365         (-[IFPluginView getURL:target:]):
366         (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
367         (-[IFPluginView postURL:target:len:buf:file:]):
368         (-[IFPluginView invalidateRect:]):
369         (-[IFPluginView invalidateRegion:]):
370         (-[IFPluginView forceRedraw]):
371         * WebKit.pbproj/project.pbxproj:
372         * WebView.subproj/IFMainURLHandleClient.h:
373         * WebView.subproj/IFMainURLHandleClient.mm:
374         (-[IFMainURLHandleClient dealloc]):
375         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
376         (-[IFMainURLHandleClient processData:isComplete:]):
377         * WebView.subproj/IFWebFramePrivate.h:
378         * WebView.subproj/IFWebFramePrivate.mm:
379         (-[IFWebFrame _setState:]):
380
381 2002-05-21  Richard J. Williamson  <rjw@apple.com>
382
383     Fixed baseline regression.  Obvious of sites that have tables w/ backgrounds,
384     i.e. www.slashdot.org.
385     
386         * WebCoreSupport.subproj/IFTextRenderer.m:
387         (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
388         (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
389
390 2002-05-21  Richard J. Williamson  <rjw@apple.com>
391
392     Changes to support additional DHTML events.
393     
394         * WebView.subproj/IFWebView.mm:
395         (-[IFWebView keyDown:]):
396         (-[IFWebView keyUp:]):
397         * WebView.subproj/IFWebViewPrivate.mm:
398         (+[IFWebView _nodeHTML:DOM::]):
399
400 2002-05-21  Chris Blumenberg  <cblu@apple.com>
401
402         Content policy can now be sent at a later time to avoid blocking.
403
404         * WebView.subproj/IFMainURLHandleClient.h:
405         * WebView.subproj/IFMainURLHandleClient.mm:
406         (-[IFMainURLHandleClient initWithDataSource:part:]):
407         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
408
409 2002-05-21  Chris Blumenberg  <cblu@apple.com>
410
411         Move the tracking rect after the view has moved.
412
413         * Plugins.subproj/IFPluginView.mm:
414         (-[IFPluginView viewHasMoved:]):
415
416         Fixed logging.
417
418         * Plugins.subproj/npapi.m:
419         (NPN_UserAgent):
420         (NPN_MemAlloc):
421         (NPN_MemFree):
422         (NPN_MemFlush):
423         (NPN_ReloadPlugins):
424
425 2002-05-21  Kenneth Kocienda  <kocienda@apple.com>
426
427         Merged these four include files into the precompiled header.
428         These are used for the enhanced assertion/debuggin support I
429         added yesterday.
430
431         <signal.h>
432         <sys/types.h>
433         <sys/time.h>
434         <sys/resource.h>
435
436         * WebKitPrefix.h
437
438 2002-05-20  Chris Blumenberg  <cblu@apple.com>
439
440         Added support for plug-ins to send URL requests to certain targets.
441
442         Added frameNamed to IFWebFrame.
443
444         * Plugins.subproj/IFPluginView.mm:
445         (-[IFPluginView getURLNotify:target:notifyData:]):
446         (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
447         * WebView.subproj/IFWebFrame.h:
448         * WebView.subproj/IFWebFrame.mm:
449         (-[IFWebFrame frameNamed:]):
450
451 2002-05-20  Kenneth Kocienda  <kocienda@apple.com>
452
453         * Misc.subproj/WebKitDebug.h: Now includes <sys/time.h> to prevent possible
454           build breakage in the inclusion of <sys/resource.h>
455
456 2002-05-20  Kenneth Kocienda  <kocienda@apple.com>
457
458         Changed assertion failure code to send a SIGQUIT instead
459         of raising an NSException.
460
461         * Misc.subproj/WebKitDebug.h
462
463 2002-05-20  Chris Blumenberg  <cblu@apple.com>
464
465         A whole lot of plug-in clean-up.
466
467         Moved the following functions from npapi to IFPlugin.
468
469         * Plugins.subproj/IFPlugin.m:
470         (functionPointerForTVector):
471         (tVectorForFunctionPointer):
472
473
474         Only supply mouse coords when active.
475
476         * Plugins.subproj/IFPluginNullEventSender.h:
477         * Plugins.subproj/IFPluginNullEventSender.m:
478         (-[IFPluginNullEventSender initializeWithNPP:functionPointer:window:]):
479         (-[IFPluginNullEventSender dealloc]):
480         (-[IFPluginNullEventSender sendNullEvents]):
481
482         
483         Minor clean-ups
484
485         * Plugins.subproj/IFPluginStream.mm:
486         (-[IFPluginStream dealloc]):
487         (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
488         (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
489         (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
490         
491         
492         Removed the isMouseDown flag from the following functions
493         as it was unnecessary.
494
495         Cleaned up logging.
496
497         * Plugins.subproj/IFPluginView.mm:
498         (-[IFPluginView modifiersForEvent:]):
499         (-[IFPluginView getCarbonEvent:withEvent:]):
500         (-[IFPluginView sendUpdateEvent]):
501         (-[IFPluginView becomeFirstResponder]):
502         (-[IFPluginView resignFirstResponder]):
503         (-[IFPluginView mouseDown:]):
504         (-[IFPluginView mouseUp:]):
505         (-[IFPluginView mouseExited:]):
506         (-[IFPluginView setWindow]):
507         (-[IFPluginView start]):
508         (-[IFPluginView stop]):
509
510
511         URLForString now uses _IF_looksLikeAbsoluteURL.
512
513         (-[IFPluginView URLForString:]):
514
515         
516         Implemented the following:
517
518         (-[IFPluginView invalidateRect:]):
519         (-[IFPluginView invalidateRegion:]):
520         (-[IFPluginView forceRedraw]):
521
522         
523         Put implementation of GetValue SetValue in npapi. 
524
525         * Plugins.subproj/npapi.h:
526         * Plugins.subproj/npapi.m:
527         (NPN_GetValue):
528         (NPN_SetValue):
529
530
531         Added drag & drop support.
532
533         * WebView.subproj/IFWebView.mm:
534         (-[IFWebView initWithFrame:]):
535         (-[IFWebView setCanDragFrom:]):
536         (-[IFWebView canDragFrom]):
537         (-[IFWebView setCanDragTo:]):
538         (-[IFWebView canDragTo]):
539         (-[IFWebView draggingEntered:]):
540         (-[IFWebView prepareForDragOperation:]):
541         (-[IFWebView performDragOperation:]):
542         * WebView.subproj/IFWebViewPrivate.h:
543         * WebView.subproj/IFWebViewPrivate.mm:
544         (-[IFWebViewPrivate dealloc]):
545
546 2002-05-20  John Sullivan  <sullivan@apple.com>
547
548         Support for bookmark separators
549
550         * Bookmarks.subproj/IFBookmark.h: Update comments and replace
551         isLeaf with bookmarkType.
552
553         * Bookmarks.subproj/IFBookmark.m:
554         (-[IFBookmark bookmarkType]): New method, replaces isLeaf.
555         (-[IFBookmark title]):
556         (-[IFBookmark setTitle:]):
557         (-[IFBookmark image]):
558         (-[IFBookmark setImage:]):
559         (-[IFBookmark setURLString:]):
560         (-[IFBookmark children]):
561         (-[IFBookmark numberOfChildren]):
562         (-[IFBookmark _numberOfDescendants]):
563         (-[IFBookmark insertChild:atIndex:]):
564         (-[IFBookmark removeChild:]):
565         Update callers of isLeaf, and don't require concrete implementations
566         of some methods for some types.
567
568         * Bookmarks.subproj/IFBookmarkLeaf.m:
569         (-[IFBookmarkLeaf bookmarkType]): return IFBookmarkTypeLeaf
570         (-[IFBookmarkLeaf _dictionaryRepresentation]): set value for bookmark type.
571
572         * Bookmarks.subproj/IFBookmarkList.m:
573         (-[IFBookmarkList _initFromDictionaryRepresentation:withGroup:]):
574         Handle separator case.
575         (-[IFBookmarkList _dictionaryRepresentation]): set value for bookmark type
576         (-[IFBookmarkList bookmarkType]): return IFBookmarkTypeList
577
578         * Bookmarks.subproj/IFBookmarkSeparator.h: Added.
579         * Bookmarks.subproj/IFBookmarkSeparator.m: Added.
580         (-[IFBookmarkSeparator initWithGroup:]): Simple init method.
581         (-[IFBookmarkSeparator _initFromDictionaryRepresentation:withGroup:]): Just calls
582         initWithGroup.
583         (-[IFBookmarkSeparator _dictionaryRepresentation]): set value for bookmark type
584         (-[IFBookmarkSeparator bookmarkType]): return IFBookmarkTypeSeparator
585         (-[IFBookmarkSeparator copyWithZone:]): calls initWithGroup
586
587         * Bookmarks.subproj/IFBookmark_Private.h: Added key/value #defines for dictionary
588         representation.
589
590         * Bookmarks.subproj/IFBookmarkGroup.h:
591         * Bookmarks.subproj/IFBookmarkGroup.m:
592         (-[IFBookmarkGroup _setTopBookmark:]):
593         (-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
594         (-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:type:]):
595         Update callers of isLeaf to use bookmarkType instead.
596
597         (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:type:]):
598         if type is IFBookmarkTypeSeparator, instantiate an IFBookmarkSeparator
599
600         * WebKit.pbproj/project.pbxproj: Updated for new files.
601
602 2002-05-17  Chris Blumenberg  <cblu@apple.com>
603
604         - Made IFPluginStream the URL handle client instead of IFPluginView.
605         - Added support for NPP_PostURL and NPP_PostNotify.
606         - Possible fix for 2928558.
607
608         * Plugins.subproj/IFPluginStream.h:
609         * Plugins.subproj/IFPluginView.h:
610         * Plugins.subproj/IFPluginView.mm:
611         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):NSURL for url
612         instead of NSString
613         (-[IFPluginView dealloc]):
614         (-[IFPluginView setWindow]):
615         (-[IFPluginView start]): 
616         (-[IFPluginView stop]):
617         (-[IFPluginView webDataSource]):Accessor for IFPluginStream.
618         (-[IFPluginView webController]):Accessor for IFPluginStream.
619         (-[IFPluginView URLForString:]):
620         (-[IFPluginView getURLNotify:target:notifyData:]):
621         (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
622         (-[IFPluginView postURL:target:len:buf:file:]):
623         (-[IFPluginView destroyStream:reason:]):
624         (-[IFPluginView status:]):
625         (-[IFPluginView NPP_NewStream]): Accessor for IFPluginStream.
626         (-[IFPluginView NPP_WriteReady]):Accessor for IFPluginStream.
627         (-[IFPluginView NPP_Write]): Accessor for IFPluginStream.
628         (-[IFPluginView NPP_StreamAsFile]): Accessor for IFPluginStream.
629         (-[IFPluginView NPP_DestroyStream]): Accessor for IFPluginStream.
630         (-[IFPluginView NPP_URLNotify]): Accessor for IFPluginStream.
631         * WebCoreSupport.subproj/IFWebCoreViewFactory.m: Use new IFPluginView init method
632         (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
633         * WebKit.pbproj/project.pbxproj:
634
635 2002-05-16  Richard J. Williamson  <rjw@apple.com>
636
637         Fixed 2925638.  Don't send last progress message from resourceDataDidBecomeAvailable,
638         it is sent from IFURLHandleResourceDidFinishLoading, avoiding duplication.
639         
640         * WebView.subproj/IFMainURLHandleClient.mm:
641         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
642
643 2002-05-16  Richard J. Williamson  <rjw@apple.com>
644
645         Fix to fix for 0x7f to 0xa0.  I was being overly aggressive about
646         finding substitute glyphs.
647         
648         * WebCoreSupport.subproj/IFTextRenderer.m:
649         (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
650         (-[IFTextRenderer floatWidthForCharacters:length:]):
651
652 2002-05-16  Darin Adler  <darin@apple.com>
653
654         * Plugins.subproj/IFPluginView.mm:
655         (-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]):
656         Use this new getCarbonPath function rather than hardcoding assumptions
657         about "/tmp" being ":private:tmp".
658         (getCarbonPath): New.
659
660 2002-05-16  Darin Adler  <darin@apple.com>
661
662         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
663         Fixed log statement so development builds work again.
664
665 2002-05-16  Darin Adler  <darin@apple.com>
666
667         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
668         Remove unused variable that breaks optimized builds.
669
670 2002-05-15  Darin Adler  <darin@apple.com>
671
672         Another quick events cleanup pass.
673
674         * Plugins.subproj/IFPluginNullEventSender.m:
675         (-[IFPluginNullEventSender sendNullEvents]): Use [IFPluginView getCarbonEvent:].
676
677         * Plugins.subproj/IFPluginView.h: Make almost all methods private.
678         * Plugins.subproj/IFPluginView.mm:
679         (+[IFPluginView getCarbonEvent:]): New.
680         (-[IFPluginView getCarbonEvent:]): New, calls class method.
681         (-[IFPluginView modifiersForEvent:isMouseDown:]): Reversed sense of btnState.
682         This flag is set if the mouse is up, not if the mouse is down.
683         (-[IFPluginView getCarbonEvent:withEvent:isMouseDown:]): New.
684         (-[IFPluginView getCarbonEvent:withEvent:]): New.
685         (-[IFPluginView sendActivateEvent:]): Now takes parameter for activate vs.
686         deactivate and uses [getCarbonEvent:].
687         (-[IFPluginView sendUpdateEvent]): Uses [getCarbonEvent:].
688         (-[IFPluginView becomeFirstResponder]): Uses [getCarbonEvent:].
689         (-[IFPluginView resignFirstResponder]): Uses [getCarbonEvent:].
690         (-[IFPluginView mouseDown:]): Uses [getCarbonEvent:withEvent:isMouseDown:].
691         (-[IFPluginView mouseUp:]): Uses [getCarbonEvent:withEvent:isMouseDown:].
692         (-[IFPluginView mouseEntered:]): Uses [getCarbonEvent:withEvent:].
693         (-[IFPluginView mouseExited:]): Uses [getCarbonEvent:withEvent:].
694         (-[IFPluginView keyUp:]): Uses [getCarbonEvent:withEvent:].
695         (-[IFPluginView keyDown:]): Uses [getCarbonEvent:withEvent:].
696         (-[IFPluginView start]): Call [sendActivateEvent:YES].
697         (-[IFPluginView windowBecameKey:]): Call [sendActivateEvent:YES].
698         (-[IFPluginView windowResignedKey:]): Call [sendActivateEvent:NO].
699
700 2002-05-15  Richard J. Williamson  <rjw@apple.com>
701
702     Fixed problem dealing w/ characters in range 0x7f - 0xa0.
703     
704         * WebCoreSupport.subproj/IFTextRenderer.m:
705         (setGlyphForCharacter):
706         (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
707         (-[IFTextRenderer floatWidthForCharacters:length:]):
708
709 2002-05-15  Chris Blumenberg  <cblu@apple.com>
710
711         Fixed Flash mouse-down, mouse-over Flash bug.
712         Added support for modifiers (control-click etc) (2884451).
713         A lot of events clean-up.
714
715         * Plugins.subproj/IFPluginNullEventSender.m:
716         (-[IFPluginNullEventSender sendNullEvents]):
717         * Plugins.subproj/IFPluginView.h:
718         * Plugins.subproj/IFPluginView.mm:
719         (newCString):
720         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
721         (-[IFPluginView start]):
722         (-[IFPluginView drawRect:]):
723         (-[IFPluginView isFlipped]):
724         (-[IFPluginView currentModifiers]):
725         (-[IFPluginView modifiersForEvent:isMouseDown:]):
726         (-[IFPluginView sendActivateEvent]):
727         (-[IFPluginView sendUpdateEvent]):
728         (-[IFPluginView becomeFirstResponder]):
729         (-[IFPluginView resignFirstResponder]):
730         (-[IFPluginView mouseDown:]):
731         (-[IFPluginView mouseUp:]):
732         (-[IFPluginView mouseEntered:]):
733         (-[IFPluginView mouseExited:]):
734         (-[IFPluginView keyUp:]):
735         (-[IFPluginView keyDown:]):
736         (-[IFPluginView windowBecameKey:]):
737         (-[IFPluginView windowResignedKey:]):
738
739         Case-sensitivity issue with an include.
740
741         * WebView.subproj/IFWebView.mm:
742
743 2002-05-15  Darin Adler  <darin@apple.com>
744
745         * Makefile.am:
746         Use all-am and clean-am instead of all and clean because it's better and
747         to make "make check" at the top level work right.
748
749 2002-05-14  John Sullivan  <sullivan@apple.com>
750
751         Work to support copying bookmarks, needed for drag & drop
752         in Bookmarks window.
753
754         * Bookmarks.subproj/IFBookmark.h: Make IFBookmark conform to NSCopying.
755
756         * Bookmarks.subproj/IFBookmark.m:
757         (-[IFBookmark copyWithZone:]): insist that subclasses implement this.
758
759         * Bookmarks.subproj/IFBookmarkGroup.h:
760         * Bookmarks.subproj/IFBookmarkGroup.m:
761         (-[IFBookmarkGroup insertBookmark:atIndex:ofBookmark:]):
762         Removed this unnecessary method.
763
764         * Bookmarks.subproj/IFBookmarkLeaf.m:
765         (-[IFBookmarkLeaf copyWithZone:]): New method.
766
767         * Bookmarks.subproj/IFBookmarkList.m:
768         (-[IFBookmarkList copyWithZone:]): New method.
769
770 2002-05-14  Richard J. Williamson  <rjw@apple.com>
771
772     Fixed exception in log code.
773     
774         * WebCoreSupport.subproj/IFTextRenderer.m:
775         (-[IFTextRenderer floatWidthForCharacters:length:]):
776
777 2002-05-14  Richard J. Williamson  <rjw@apple.com>
778
779     Fixed 2926153, not getting correct messages after cancel.
780     Fixed leak of mouse events (Darin wanted this ASAP).
781     
782         * WebView.subproj/IFBaseWebControllerPrivate.mm:
783         (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
784         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
785         * WebView.subproj/IFLocationChangeHandler.h:
786         * WebView.subproj/IFWebView.mm:
787         (-[IFWebView initWithFrame:]):
788         (-[IFWebView layout]):
789         (-[IFWebView mouseUp:]):
790         (-[IFWebView mouseDown:]):
791         (-[IFWebView mouseMovedNotification:]):
792
793 2002-05-14  Chris Blumenberg  <cblu@apple.com>
794
795         Removed retain of the URL handle. This was causing everything to leak.
796
797         * WebView.subproj/IFMainURLHandleClient.h:
798         * WebView.subproj/IFMainURLHandleClient.mm:
799         (-[IFMainURLHandleClient initWithDataSource:part:]):
800         (-[IFMainURLHandleClient dealloc]):
801         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
802         (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
803         (-[IFMainURLHandleClient processData:isComplete:]):
804
805 2002-05-14  Darin Adler  <darin@apple.com>
806
807         * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]):
808         Remove code that makes us the first responder. That's up to the higher levels,
809         not the web view.
810
811 2002-05-14  John Sullivan  <sullivan@apple.com>
812
813         * History.subproj/IFURIEntry.h:
814         Oops, deleted the prototype for setLastVisitedDate
815         accidentally, which made Jersey sad.
816
817 2002-05-14  John Sullivan  <sullivan@apple.com>
818
819         Fixed 2919027 -- Need to remove unused code in WebKit/History.subproj
820
821         * History.subproj/IFAttributedURL.h: Removed.
822         * History.subproj/IFBackForwardList.h: Removed large #ifdef.
823         * History.subproj/IFURIEntry.h,
824         * History.subproj/IFURIEntry.m: Removed all mention of unused
825         fields comment, creationDate, modificationDate
826         * WebKit.pbproj/project.pbxproj: Updated for removed file.
827
828 2002-05-13  Chris Blumenberg  <cblu@apple.com>
829
830         Added support for setting the content policy on the location change handler
831         and data source at any time instead of depending on an immediate response.
832
833         * WebView.subproj/IFBaseWebController.mm:
834         (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
835         * WebView.subproj/IFMainURLHandleClient.h:
836         * WebView.subproj/IFMainURLHandleClient.mm:
837         (-[IFMainURLHandleClient initWithDataSource:part:]):
838         (-[IFMainURLHandleClient dealloc]):
839         (-[IFMainURLHandleClient setContentPolicy:]):
840         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
841         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
842         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
843         (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
844         (-[IFMainURLHandleClient processData:isComplete:]):
845         * WebView.subproj/IFWebController.h:
846         * WebView.subproj/IFWebDataSourcePrivate.mm:
847         (-[IFWebDataSource _setContentPolicy:]):
848         * WebView.subproj/IFWebFrame.mm:
849         (-[IFWebFrame setProvisionalDataSource:]):
850
851 2002-05-13  Maciej Stachowiak  <mjs@apple.com>
852
853         * WebKitPrefix.h: Gratuitous change to make the prefix file
854         rebuild.
855
856 2002-05-13  Chris Blumenberg  <cblu@apple.com>
857
858         * WebView.subproj/IFBaseWebController.mm:
859         (-[IFBaseWebController URLPolicyForURL:]):
860         
861         Use [IFURLHandle canInitWithURL] instead of hard-coded URL schemes.
862
863         * WebView.subproj/IFBaseWebControllerPrivate.mm:
864         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
865         * WebView.subproj/IFMainURLHandleClient.mm:
866         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
867         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
868         * WebView.subproj/IFWebDataSourcePrivate.h:
869         * WebView.subproj/IFWebDataSourcePrivate.mm:
870         (-[IFWebDataSourcePrivate init]):
871         (-[IFWebDataSource _setDownloadPath:]):
872
873         Removed _contentPolicy as contentPolicy is public. 
874
875         Initialize contentPolicy in [IFWebDataSourcePrivate init].
876
877 2002-05-10  Richard J. Williamson  <rjw@apple.com>
878
879         Logging changes.
880         
881         * WebCoreSupport.subproj/IFTextRenderer.m:
882         * WebView.subproj/IFWebDataSource.mm:
883         (-[IFWebDataSource isLoading]):
884         * WebView.subproj/IFWebFramePrivate.mm:
885         (-[IFWebFrame _isLoadComplete]):
886
887 2002-05-10  Chris Blumenberg  <cblu@apple.com>
888
889         Added support for non-html non-file URL data sources. 
890         Added the init methods below. Removed initWithHandle.
891
892         * WebView.subproj/IFWebDataSource.h:
893         * WebView.subproj/IFWebDataSource.mm:
894         (IFWebDataSourceMake):
895         (-[IFWebDataSource initWithURL:]):
896         (-[IFWebDataSource initWithURL:attributes:]):
897         (-[IFWebDataSource startLoading:]):
898
899 2002-05-10  Darin Adler  <darin@apple.com>
900
901         * WebCoreSupport.subproj/IFTextRenderer.h: Moved most of the
902         stuff from here into the .m file so this header can be included
903         by clients. Also added floatWidthForCharacters:length:.
904         * WebCoreSupport.subproj/IFTextRenderer.m:
905         (freeWidthMap): Check for NULL.
906         (freeGlyphMap): Check for NULL.
907         (-[IFTextRenderer slowFloatWidthForCharacters:length:]): Renamed,
908         and made it return the float.
909         (-[IFTextRenderer floatWidthForCharacters:length:]): Renamed, and
910         made it return the float.
911         (-[IFTextRenderer widthForCharacters:length:]): Do rounding here.
912
913         * WebCoreSupport.subproj/IFTextRendererFactory.h:
914         * WebCoreSupport.subproj/IFTextRendererFactory.m:
915         Make the interface slightly easier to use by using the specific types.
916
917         * WebKit.pbproj/project.pbxproj: Exported the headers.
918
919 2002-05-10  Kenneth Kocienda  <kocienda@apple.com>
920
921         Fixed build breakage caused by my previous checkin.
922
923         * WebView.subproj/IFMainURLHandleClient.mm:
924         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])
925
926 2002-05-10  John Sullivan  <sullivan@apple.com>
927
928         Fixed 2922756 (@ image in History window is a little too tall)
929         Fixed 2923790 (bookmark folders need folder icons)
930
931         * Resources/bookmark_folder.tiff: New image (small folder, copied from elsewhere)
932         * Resources/url_icon.tiff: Shrunk this one a little bit.
933
934         * Bookmarks.subproj/IFBookmarkList.m:
935         (-[IFBookmarkList image]): Return the default image if no custom image is set.
936
937         * History.subproj/IFURIEntry.m:
938         (-[IFURIEntry image]): If the default image's file isn't found, don't try
939         to create an NSImage, because it will come out horribly broken and evil if
940         you do (I ran into this while adding the bookmark folder image; most of Alexander's
941         menus did not appear at all because the bookmark folder image was using a bogus
942         NSImage).
943
944         * WebKit.pbproj/project.pbxproj: Updated for new files.
945
946 2002-05-10  Kenneth Kocienda  <kocienda@apple.com>
947
948         Reviewed by: Maciej Stachowiak
949
950         This code was modified to use the new interface and features of IFError.
951         These features and changes are described in these four bug reports:
952
953         Radar 2923998 (Change IFError private data into a pointer to a private data object)
954         Radar 2924002 (IFError should include an error domain)
955         Radar 2924013 (IFError initialization is not threadsafe)        
956         Radar 2924280 (IFError should contain a new field which tells whether the error is terminal)
957                                                             
958         * Plugins.subproj/IFPluginView.mm:
959         (-[IFPluginView IFURLHandle:resourceDidFailLoadingWithResult:]):
960         * WebView.subproj/IFBaseWebControllerPrivate.mm:
961         (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
962         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
963         * WebView.subproj/IFMainURLHandleClient.mm:
964         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
965
966 2002-05-09  Richard J. Williamson  <rjw@apple.com>
967
968     Tuned implementation more.  Cleaned up and factored code.
969
970         * WebCoreSupport.subproj/IFTextRenderer.h:
971         * WebCoreSupport.subproj/IFTextRenderer.m:
972         (-[IFTextRenderer substituteFontForString:]):
973         (-[IFTextRenderer substituteFontForCharacters:length:]):
974         (-[IFTextRenderer initWithFont:]):
975         (-[IFTextRenderer dealloc]):
976         (-[IFTextRenderer slowPackGlyphsForCharacters:numCharacters:glyphBuffer:numGlyphs:]):
977         (-[IFTextRenderer drawString:atPoint:withColor:]):
978         (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
979         (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
980         (-[IFTextRenderer slowWidthForCharacters:length:]):
981         (-[IFTextRenderer widthForCharacters:length:]):
982         (-[IFTextRenderer extendGlyphToWidthMapToInclude:]):
983
984 2002-05-09  John Sullivan  <sullivan@apple.com>
985
986         * Bookmarks.subproj/IFBookmarkGroup.h:
987         * Bookmarks.subproj/IFBookmarkGroup.m:
988         (-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:isLeaf:]):
989         (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
990         Gave these two methods return values of the new bookmark created, to make callers'
991         lives easier.
992
993 === Alexander-3 ===
994
995 2002-05-08  Richard J. Williamson  <rjw@apple.com>
996
997     Added optimizations for text rendering.
998     
999         * WebCoreSupport.subproj/IFTextRenderer.h:
1000         * WebCoreSupport.subproj/IFTextRenderer.m:
1001         (freeWidthMap):
1002         (freeGlyphMap):
1003         (glyphForCharacter):
1004         (widthForGlyph):
1005         (widthForCharacter):
1006         (-[IFTextRenderer substituteFontForCharacters:length:]):
1007         (-[IFTextRenderer convertCharacters:length:glyphs:]):
1008         (-[IFTextRenderer dealloc]):
1009         (-[IFTextRenderer drawString:atPoint:withColor:]):
1010         (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
1011         (-[IFTextRenderer widthForCharacters:length:]):
1012         (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]):
1013         (-[IFTextRenderer extendGlyphToWidthMapToInclude:]):
1014
1015 2002-05-08  Darin Adler  <darin@apple.com>
1016
1017         * Misc.subproj/IFCache.h: Add more JavaScript object statistics.
1018         * Misc.subproj/IFCache.mm:
1019         (+[IFCache javaScriptInterpretersCount]): New.
1020         (+[IFCache javaScriptNoGCAllowedObjectsCount]): New.
1021         (+[IFCache javaScriptReferencedObjectsCount]): New.
1022
1023         * WebKit.pbproj/project.pbxproj: Rearranged two files, dunno why.
1024
1025 2002-05-08  Chris Blumenberg  <cblu@apple.com>
1026
1027         Cleaned up mach-o plug-in support.
1028         
1029         Changed the init method in IFPlugin to initWithPath.
1030
1031         * Plugins.subproj/IFPlugin.h:
1032         * Plugins.subproj/IFPlugin.m:
1033         (-[IFPlugin initWithPath:]):
1034         (-[IFPlugin load]):
1035         * Plugins.subproj/IFPluginDatabase.m:
1036         (findPlugins):
1037
1038 2002-05-08  Darin Adler  <darin@apple.com>
1039
1040         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
1041         Use _IF_stringByTrimmingWhitespace.
1042
1043 2002-05-07  Richard J. Williamson  <rjw@apple.com>
1044
1045         First pass at font substitution.  Find a substitute font to
1046         use when the specified font doesn't have glyphs for the characters that
1047         need to be drawn.
1048         
1049         Works correctly but hasn't been optimized yet, VERY slow.
1050         Will optimize this evening and tomorrow.  Try www.yahoo.co.jp,
1051         it will take a long time to render be eventually will draw correctly.
1052         
1053         * WebCoreSupport.subproj/IFTextRenderer.h:
1054         * WebCoreSupport.subproj/IFTextRenderer.m:
1055         (hasMissingGlyphs):
1056         (+[IFTextRenderer initialize]):
1057         (-[IFTextRenderer convertCharacters:length:glyphs:]):
1058         (-[IFTextRenderer initializeCaches]):
1059         (-[IFTextRenderer drawString:atPoint:withColor:]):
1060         (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
1061         (-[IFTextRenderer widthForCharacters:length:]):
1062
1063 2002-05-07  Darin Adler  <darin@apple.com>
1064
1065         Oops. These files don't belong at the top level.
1066
1067         * IFWebCoreViewFactory.h: Removed.
1068         * IFWebCoreViewFactory.m: Removed.
1069         * WebCoreSupport.subproj/IFWebCoreViewFactory.h: Added.
1070         * WebCoreSupport.subproj/IFWebCoreViewFactory.m: Added.
1071         * WebKit.pbproj/project.pbxproj:
1072
1073 2002-05-07  Darin Adler  <darin@apple.com>
1074
1075         Move more plugin code here from WebCore.
1076
1077         * IFWebCoreViewFactory.h: Added.
1078         * IFWebCoreViewFactory.m: Added.
1079
1080         * Plugins.subproj/IFPlugin.h: Moved from WebCore.
1081         * Plugins.subproj/IFPlugin.m: Moved from WebCore.
1082         * Plugins.subproj/IFPluginDatabase.h: Moved from WebCore.
1083         * Plugins.subproj/IFPluginDatabase.m: Moved from WebCore.
1084         * Plugins.subproj/npapi.h: Moved from WebCore.
1085         * Plugins.subproj/npapi.m: Moved from WebCore.
1086
1087         * WebKit.pbproj/project.pbxproj: Source file names changed
1088
1089         * MIME.subproj/IFMIMEDatabase.m:
1090         * MIME.subproj/IFMIMEHandler.m:
1091         * Plugins.subproj/IFPluginView.h:
1092         * Plugins.subproj/IFPluginView.mm:
1093         Updated for WC -> IF name change.
1094
1095         * WebCoreSupport.subproj/IFCachedTextRenderer.h: Renamed to IFTextRenderer.
1096         * WebCoreSupport.subproj/IFCachedTextRenderer.m: Renamed to IFTextRenderer.
1097         * WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Renamed to IFTextRendererFactory.
1098         * WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Renamed to IFTextRendererFactory.
1099         * WebCoreSupport.subproj/IFTextRenderer.h: Renamed from IFCachedTextRenderer.
1100         * WebCoreSupport.subproj/IFTextRenderer.m: Renamed from IFCachedTextRenderer.
1101         * WebCoreSupport.subproj/IFTextRendererFactory.h: Renamed from IFCachedTextRendererFactory.
1102         * WebCoreSupport.subproj/IFTextRendererFactory.m: Renamed from IFCachedTextRendererFactory.
1103         Renamed to take "Cached" out of the name now that the simpler name is
1104         available.
1105
1106         * WebView.subproj/IFWebView.mm:
1107         (-[IFWebView initWithFrame:]): Create shared IFWebCoreViewFactory.
1108         (-[IFWebView delayLayout:]): Use WEBKITDEBUG, not KWQDEBUG.
1109         (-[IFWebView notificationReceived:]): Use WEBKITDEBUG, not KWQDEBUG.
1110
1111 2002-05-07  Darin Adler  <darin@apple.com>
1112
1113         Use isEqualToString: instead of isEqual: more consistently. But only for strings.
1114
1115         * WebCoreSupport.subproj/IFCachedTextRendererFactory.m:
1116         (-[IFFontCacheKey isEqual:]):
1117         * WebView.subproj/IFBaseWebController.mm:
1118         (-[IFBaseWebController _frameNamed:fromFrame:]):
1119
1120 2002-05-06  John Sullivan  <sullivan@apple.com>
1121
1122         Some improvements to the bookmark changed notifications.
1123
1124         * Bookmarks.subproj/IFBookmarkGroup.h:
1125         * Bookmarks.subproj/IFBookmarkGroup.m:
1126         (-[IFBookmarkGroup _sendChangeNotificationForBookmark:childrenChanged:]):
1127         (-[IFBookmarkGroup _setTopBookmark:]):
1128         (-[IFBookmarkGroup _bookmarkDidChange:]):
1129         (-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
1130         Send bookmark that changed and whether its children changed as part of
1131         change notifications, so clients can choose to do less unnecessary work.
1132
1133         * Bookmarks.subproj/IFBookmarkLeaf.m:
1134         (-[IFBookmarkLeaf setTitle:]): Check for the no-change case
1135         and bail out without sending notification when you find it.
1136
1137 2002-05-06  Darin Adler  <darin@apple.com>
1138
1139         * WebKitPrefix.h: Added.
1140         * WebKit.pbproj/project.pbxproj: Use PFE precompiling.
1141         Also switch from xNDEBUG to NDEBUG.
1142
1143         * Misc.subproj/WebKitDebug.h: Get rid of format attribute because of bug
1144         2920557. Switch from xNDEBUG to NDEBUG.
1145
1146         * Misc.subproj/WebKitDebug.m:
1147         Add undef to work around PFE problem with inline functions, Radar 2920554.
1148
1149         * Plugins.subproj/IFPluginView.mm: Changed how we work around the bug in
1150         the CGS defines.
1151
1152         * WebCoreSupport.subproj/IFCachedTextRenderer.h: Change include of the
1153         private QD header to use the form that works with more-normal way of
1154         getting at the private bits of frameworks.
1155
1156         * WebCoreSupport.subproj/IFCachedTextRenderer.m: Use the header
1157         <CoreGraphics/CoreGraphicsPrivate.h> instead of <CoreGraphics/CGFontPrivate.h>.
1158
1159         * Misc.subproj/IFCache.mm:
1160         * WebView.subproj/IFLoadProgress.mm:
1161         * WebView.subproj/IFWebFrame.mm:
1162         * WebView.subproj/IFWebFramePrivate.mm:
1163         * WebView.subproj/IFWebView.mm:
1164         Changed includes to imports.
1165
1166 2002-05-06  Chris Blumenberg  <cblu@apple.com>
1167
1168         Made start and stop work cleaner. 
1169
1170         Now observe defaults changes so that plug-ins
1171         are disabled or enabled immediately (2871725). 
1172
1173         * Plugins.subproj/IFPluginNullEventSender.m:
1174         (-[IFPluginNullEventSender sendNullEvents]):
1175         * Plugins.subproj/IFPluginView.h:
1176         * Plugins.subproj/IFPluginView.mm:
1177         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
1178         (-[IFPluginView start]):
1179         (-[IFPluginView stop]):
1180         (-[IFPluginView drawRect:]):
1181         (-[IFPluginView windowWillClose:]):
1182         (-[IFPluginView defaultsHaveChanged:]):
1183
1184 2002-05-06  Richard J. Williamson  <rjw@apple.com>
1185
1186         Fixed width measurement regression.  We lost the final ROUND_TO_INT
1187         in the width measurement funtion after the move from WebCore.
1188         
1189         * WebCoreSupport.subproj/IFCachedTextRenderer.m:
1190         (-[IFCachedTextRenderer widthForCharacters:length:]):
1191
1192 2002-05-06  Richard J. Williamson  <rjw@apple.com>
1193
1194         Changes to support dhtml.
1195         
1196         * WebView.subproj/IFWebView.mm:
1197
1198 2002-05-06  John Sullivan  <sullivan@apple.com>
1199
1200         * Resources/url_icon.tiff: New bookmarks/history icon, looks
1201         more like the springy @ sign as seen from above, less like text.
1202
1203 2002-05-03  John Sullivan  <sullivan@apple.com>
1204
1205         Along with small corresponding WebBrowser change,       
1206         fixed 2919172 (Bookmarks aren't saved between sessions).
1207
1208         * Bookmarks.subproj/IFBookmark_Private.h: Declarations for new private methods.
1209         * Bookmarks.subproj/IFBookmark.m:
1210         (-[IFBookmark _numberOfDescendants]): New private method, counts deep; used
1211         only for debugging messages at this time.
1212         (-[IFBookmark _initFromDictionaryRepresentation:withGroup:]):
1213         (-[IFBookmark _dictionaryRepresentation]): New private methods used to save/load
1214         bookmarks. Stub implementations; subclasses must implement.
1215
1216         * Bookmarks.subproj/IFBookmarkLeaf.m:
1217         (-[IFBookmarkLeaf _initFromDictionaryRepresentation:withGroup:]):
1218         (-[IFBookmarkLeaf _dictionaryRepresentation]): New methods.
1219
1220         * Bookmarks.subproj/IFBookmarkList.m:
1221         (-[IFBookmarkList _initFromDictionaryRepresentation:withGroup:]):
1222         (-[IFBookmarkList _dictionaryRepresentation]):
1223         (-[IFBookmarkList _numberOfDescendants]):
1224         New methods.
1225         (-[IFBookmarkList _setGroup:]): Recurse on children.
1226
1227         * Bookmarks.subproj/IFBookmarkGroup.h: New _loading instance variable.
1228
1229         * Bookmarks.subproj/IFBookmarkGroup.m:
1230         (-[IFBookmarkGroup _setTopBookmark:]): Renamed from _resetTopBookmark,
1231         now has potentially non-nil argument.
1232         (-[IFBookmarkGroup initWithFile:]),
1233         (-[IFBookmarkGroup removeBookmark:]): Updated for name change.
1234         (-[IFBookmarkGroup _sendBookmarkGroupChangedNotification]):
1235         Don't send notifications while loading bookmarks from disk.
1236         (-[IFBookmarkGroup _loadBookmarkGroupGuts]),
1237         (-[IFBookmarkGroup loadBookmarkGroup]),
1238         (-[IFBookmarkGroup _saveBookmarkGroupGuts]),
1239         (-[IFBookmarkGroup saveBookmarkGroup]): New methods, load/save bookmarks
1240         and report timings.
1241
1242         * History.subproj/IFURIEntry.m:
1243         (-[IFURIEntry dictionaryRepresentation]),
1244         (-[IFURIEntry initFromDictionaryRepresentation:]): Handle nil URL
1245         case, which bookmarks run into.
1246
1247         * WebKit.pbproj/project.pbxproj: version wars
1248
1249 2002-05-03  Darin Adler  <darin@apple.com>
1250
1251         * WebCoreSupport.subproj/IFCachedTextRenderer.m: Remove some of the unused code.
1252         I was going to wait and let Richard do it next week, but I was unable to control
1253         my urge to hack on it.
1254
1255 2002-05-03  Darin Adler  <darin@apple.com>
1256
1257         * Resources/url_icon.tiff: Improved icon. Could be better.
1258
1259 2002-05-03  Darin Adler  <darin@apple.com>
1260
1261         * Misc.subproj/WebKitDebug.h: Add WEBKIT_LOG_MEMUSAGE, WEBKIT_LOG_FONTCACHE, and
1262         WEBKIT_LOG_FONTCACHECHARMISS for font code moved here from WebCore.
1263
1264         * Resources/url_icon.tiff: New URL icon?
1265
1266         * WebCoreSupport.subproj/IFCachedTextRenderer.h: Added.
1267         * WebCoreSupport.subproj/IFCachedTextRenderer.m: Added.
1268         * WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Added.
1269         * WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Added.
1270         This has code moved here from WebCore.
1271
1272         * WebKit.pbproj/project.pbxproj: Add the new source files.
1273
1274         * Bookmarks.subproj/IFBookmarkLeaf.m:
1275         (-[IFBookmarkLeaf setURLString:]): Use copy instead of initWithString.
1276         * Bookmarks.subproj/IFBookmarkList.m:
1277         (-[IFBookmarkList initWithTitle:image:group:]): Use copy instead of stringWithString.
1278         (-[IFBookmarkList setTitle:]): Use copy instead of stringWithString.
1279         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
1280         Use mutableCopy instead of stringWithString.
1281         * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]): Use copy instead
1282         of stringWithString.
1283
1284 2002-05-02  John Sullivan  <sullivan@apple.com>
1285
1286         Changed API such that mutating methods can now be called on bookmark objects,
1287         which in turn tell their group that they have changed (so the group can send
1288         out notifications).
1289
1290         * Bookmarks.subproj/IFBookmark.h:
1291         * Bookmarks.subproj/IFBookmark.m:
1292         (-[IFBookmark setTitle:]):
1293         (-[IFBookmark setImage:]):
1294         (-[IFBookmark setURLString:]):
1295         (-[IFBookmark insertChild:atIndex:]):
1296         (-[IFBookmark removeChild:]):
1297         (-[IFBookmark _parent]):
1298         (-[IFBookmark _group]):
1299         * Bookmarks.subproj/IFBookmarkGroup.h:
1300         * Bookmarks.subproj/IFBookmarkGroup.m:
1301         (-[IFBookmarkGroup _resetTopBookmark]):
1302         (-[IFBookmarkGroup _bookmarkDidChange:]):
1303         (-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
1304         (-[IFBookmarkGroup removeBookmark:]):
1305         (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
1306         * Bookmarks.subproj/IFBookmarkLeaf.m:
1307         (-[IFBookmarkLeaf setTitle:]):
1308         (-[IFBookmarkLeaf setImage:]):
1309         (-[IFBookmarkLeaf setURLString:]):
1310         * Bookmarks.subproj/IFBookmarkList.m:
1311         (-[IFBookmarkList setTitle:]):
1312         (-[IFBookmarkList setImage:]):
1313         (-[IFBookmarkList removeChild:]):
1314         (-[IFBookmarkList insertChild:atIndex:]):
1315         * Bookmarks.subproj/IFBookmark_Private.h:
1316         Made _parent and _group private; made setTitle, setImage, setURLString,
1317         insertChild:atIndex:, and removeChild: public.
1318
1319         * Bookmarks.subproj/IFBookmarkGroup_Private.h: Added.
1320         * WebKit.pbproj/project.pbxproj: Changed for new file.
1321
1322 2002-05-02  John Sullivan  <sullivan@apple.com>
1323
1324         Implemented removing the root node bookmark (i.e.,
1325         removing all bookmarks with one call).
1326
1327         * Bookmarks.subproj/IFBookmarkGroup.m:
1328         (-[IFBookmarkGroup _resetTopBookmark]): New method, releases
1329         old topBookmark and creates new one.
1330         (-[IFBookmarkGroup initWithFile:]): Call _resetTopBookmark.
1331         (-[IFBookmarkGroup removeBookmark:]): If the bookmark being
1332         removed is the top one, call _resetTopBookmark.
1333
1334 2002-05-02  John Sullivan  <sullivan@apple.com>
1335
1336         Some more implementation of bookmarks code, enough to support
1337         adding bookmarks to the Bookmarks menu (but not yet enough to
1338         support persistent bookmarks).
1339
1340         * Bookmarks.subproj/IFBookmark_Private.h:
1341         * Bookmarks.subproj/IFBookmark.h:
1342         * Bookmarks.subproj/IFBookmark.m:
1343         (-[IFBookmark numberOfChildren]): New public method, stub implementation.
1344         (-[IFBookmark _removeChild:]): New private method, stub implementation.
1345
1346         * Bookmarks.subproj/IFBookmarkGroup.h:
1347         * Bookmarks.subproj/IFBookmarkGroup.m:
1348         (-[IFBookmarkGroup _sendBookmarkGroupChangedNotification]):
1349         (-[IFBookmarkGroup removeBookmark:]):
1350         (-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:isLeaf:]):
1351         (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
1352         (-[IFBookmarkGroup updateBookmark:title:image:URLString:]):
1353         Changed "URL" to "URLString" in several places, added a "with"
1354         to some parameter names; added addNewBookmarkToBookmark public 
1355         method; added notification that's sent when bookmarks are added or removed.
1356
1357         * Bookmarks.subproj/IFBookmarkLeaf.h:
1358         * Bookmarks.subproj/IFBookmarkLeaf.m:
1359         (-[IFBookmarkLeaf initWithURLString:title:image:group:]):
1360         Added image parameter.
1361
1362         * Bookmarks.subproj/IFBookmarkList.m:
1363         (-[IFBookmarkList numberOfChildren]): New method.
1364         (-[IFBookmarkList _removeChild:]): Implemented.
1365
1366 2002-04-30  John Sullivan  <sullivan@apple.com>
1367
1368         Added initial set of files/API and some of the code for
1369         bookmarks support. Nobody calls it yet, but it compiles.
1370         I wanted to get this in before I ran into project file
1371         merge conflicts.
1372
1373         * Bookmarks.subproj/IFBookmark.h: Added.
1374         * Bookmarks.subproj/IFBookmark_Private.h: Added.
1375         * Bookmarks.subproj/IFBookmark.m: Added.
1376         (-[IFBookmark dealloc]):
1377         (-[IFBookmark title]):
1378         (-[IFBookmark _setTitle:]):
1379         (-[IFBookmark image]):
1380         (-[IFBookmark _setImage:]):
1381         (-[IFBookmark isLeaf]):
1382         (-[IFBookmark URLString]):
1383         (-[IFBookmark _setURLString:]):
1384         (-[IFBookmark children]):
1385         (-[IFBookmark _insertChild:atIndex:]):
1386         (-[IFBookmark parent]):
1387         (-[IFBookmark _setParent:]):
1388         (-[IFBookmark group]):
1389         (-[IFBookmark _setGroup:]):
1390         * Bookmarks.subproj/IFBookmarkGroup.h: Added.
1391         * Bookmarks.subproj/IFBookmarkGroup.m: Added.
1392         (+[IFBookmarkGroup bookmarkGroupWithFile:]):
1393         (-[IFBookmarkGroup initWithFile:]):
1394         (-[IFBookmarkGroup dealloc]):
1395         (-[IFBookmarkGroup topBookmark]):
1396         (-[IFBookmarkGroup insertBookmark:atIndex:ofBookmark:]):
1397         (-[IFBookmarkGroup removeBookmark:]):
1398         (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:title:image:URL:isLeaf:]):
1399         (-[IFBookmarkGroup updateBookmark:title:image:URL:]):
1400         (-[IFBookmarkGroup file]):
1401         (-[IFBookmarkGroup loadBookmarkGroup]):
1402         (-[IFBookmarkGroup saveBookmarkGroup]):
1403         * Bookmarks.subproj/IFBookmarkLeaf.h: Added.
1404         * Bookmarks.subproj/IFBookmarkLeaf.m: Added.
1405         (-[IFBookmarkLeaf dealloc]):
1406         (-[IFBookmarkLeaf title]):
1407         (-[IFBookmarkLeaf _setTitle:]):
1408         (-[IFBookmarkLeaf image]):
1409         (-[IFBookmarkLeaf _setImage:]):
1410         (-[IFBookmarkLeaf isLeaf]):
1411         (-[IFBookmarkLeaf URLString]):
1412         (-[IFBookmarkLeaf _setURLString:]):
1413         * Bookmarks.subproj/IFBookmarkList.h: Added.
1414         * Bookmarks.subproj/IFBookmarkList.m: Added.
1415         (-[IFBookmarkList initWithTitle:image:group:]):
1416         (-[IFBookmarkList dealloc]):
1417         (-[IFBookmarkList title]):
1418         (-[IFBookmarkList _setTitle:]):
1419         (-[IFBookmarkList image]):
1420         (-[IFBookmarkList _setImage:]):
1421         (-[IFBookmarkList isLeaf]):
1422         (-[IFBookmarkList children]):
1423         (-[IFBookmarkList _insertChild:atIndex:]):
1424
1425         * WebKit.pbproj/project.pbxproj: Updated for new files.
1426
1427 2002-04-29  Richard Williamson  <rjw@apple.com>
1428
1429         Fix to 2915688.  I wasn't checking if the main document error had an error, only
1430         the resource errors.
1431         
1432         * WebView.subproj/IFWebFramePrivate.mm:
1433         (-[IFWebFrame _isLoadComplete]):
1434
1435 2002-04-29  Richard Williamson  <rjw@apple.com>
1436
1437         Restored file, line, and function to log messages.
1438         
1439         * Misc.subproj/WebKitDebug.m:
1440         (WebKitLog):
1441
1442 2002-04-25  Darin Adler  <darin@apple.com>
1443
1444         * History.subproj/IFWebHistoryPrivate.m:
1445         (-[IFWebHistoryPrivate _loadHistoryGuts:]): Use NSDictionary instead
1446         of NSObject to avoid a cast.
1447
1448         * WebView.subproj/IFLocationChangeHandler.h: Add NSObject as a required
1449         protocol so we can retain and release.
1450         * WebView.subproj/IFWebController.h: Add NSObject as a required protocol
1451         so we can retain and release.
1452
1453         * WebView.subproj/IFWebDataSourcePrivate.mm:
1454         (-[IFWebDataSourcePrivate dealloc]):
1455         (-[IFWebDataSource _setLoading:]):
1456         (-[IFWebDataSource _setController:]):
1457         (-[IFWebDataSource _setLocationChangeHandler:]):
1458         * WebView.subproj/IFWebViewPrivate.mm:
1459         (-[IFWebViewPrivate dealloc]):
1460         Removed NSObject * casts that were used to work around the problem fixed above.
1461
1462 2002-04-25  Chris Blumenberg  <set EMAIL_ADDRESS environment variable>
1463
1464         * MIME.subproj/IFDownloadHandler.h:
1465         * MIME.subproj/IFDownloadHandler.mm:
1466         (+[IFDownloadHandler launchURL:]):
1467
1468         Added the above method as a way to universally launch an URL
1469         within WebKit
1470
1471         * WebView.subproj/IFBaseWebController.mm:
1472         (-[IFBaseWebController URLPolicyForURL:]):
1473
1474         We handle http, https and file URL's
1475
1476         * WebView.subproj/IFWebDataSource.mm:
1477         (-[IFWebDataSource initWithURL:]):
1478         (-[IFWebDataSource startLoading:]):
1479
1480         The IFURLHandle is now lazilly allocated.
1481
1482         * WebView.subproj/IFWebFrame.mm:
1483         (-[IFWebFrame setProvisionalDataSource:]):
1484
1485         We only load a data source if the URL policy is IFURLPolicyUseContentPolicy
1486
1487 2002-04-25  Richard Williamson  <rjw@apple.com>
1488
1489         Fixed problem with errors potentially being reported on
1490         wrong data source by moving collected errors from frame
1491         to datasource.
1492         
1493         Little changes in preparation for events.
1494         
1495         * WebView.subproj/IFBaseWebControllerPrivate.mm:
1496         (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
1497         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
1498         (-[IFBaseWebController _receivedError:forResource:partialProgress:fromDataSource:]):
1499         (-[IFBaseWebController _mainReceivedError:forResource:partialProgress:fromDataSource:]):
1500         * WebView.subproj/IFWebDataSource.h:
1501         * WebView.subproj/IFWebDataSource.mm:
1502         (-[IFWebDataSource errors]):
1503         (-[IFWebDataSource mainDocumentError]):
1504         * WebView.subproj/IFWebDataSourcePrivate.h:
1505         * WebView.subproj/IFWebDataSourcePrivate.mm:
1506         (-[IFWebDataSourcePrivate dealloc]):
1507         (-[IFWebDataSource _startLoading:]):
1508         (-[IFWebDataSource _setMainDocumentError:]):
1509         (-[IFWebDataSource _clearErrors]):
1510         (-[IFWebDataSource _addError:forResource:]):
1511         * WebView.subproj/IFWebFrame.h:
1512         * WebView.subproj/IFWebFrame.mm:
1513         (-[IFWebFrame reload:]):
1514         (-[IFWebFrame reset]):
1515         * WebView.subproj/IFWebFramePrivate.h:
1516         * WebView.subproj/IFWebFramePrivate.mm:
1517         (-[IFWebFramePrivate dealloc]):
1518         (-[IFWebFrame _isLoadComplete]):
1519         (-[IFWebFrame _checkLoadComplete]):
1520         * WebView.subproj/IFWebView.mm:
1521         (-[IFWebView acceptsFirstResponder]):
1522         (-[IFWebView layout]):
1523         (-[IFWebView drawRect:]):
1524
1525 2002-04-25  Darin Adler  <darin@apple.com>
1526
1527         Rework plugin code to prepare to move more of here from WebCore.
1528
1529         * Plugins.subproj/IFPluginView.mm:
1530         (IFPluginViewCreate): New. Does all the work of creating an NSView
1531         for a plug-in, including stuff previously done in WebCore.
1532         (IFJavaAppletViewCreate): Same as above, for Java applets.
1533         (+[IFPluginView load]): Set up the function pointers using the new
1534         improved WebCore API.
1535
1536         * Plugins.subproj/IFNullPluginView.mm:
1537         (-[IFNullPluginView load]): Remove this setup because now there's
1538         no separate call to set up a null plug-in.
1539
1540 2002-04-25  John Sullivan  <sullivan@apple.com>
1541
1542         Fixed 2911915 (Exception in -[IFWebView mouseMoved])
1543
1544         * WebView.subproj/IFWebView.mm:
1545         (-[IFWebView mouseDown:]): Changed "mouseUp" to "mouseDown"
1546         in exception message.
1547
1548         (-[IFWebView mouseMoved:]): Removed bogus event-type checking
1549         that caused this method to (always?) throw an exception when
1550         invoked.
1551
1552 2002-04-24  Chris Blumenberg  <cblu@apple.com>
1553
1554         Renamed [IFWebDataSource frame] to [IFWebDataSource webFrame]
1555
1556         * WebView.subproj/IFBaseWebControllerPrivate.mm:
1557         (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
1558         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
1559         (-[IFBaseWebController _receivedError:forResource:partialProgress:fromDataSource:]):
1560         (-[IFBaseWebController _mainReceivedError:forResource:partialProgress:fromDataSource:]):
1561         * WebView.subproj/IFMainURLHandleClient.mm:
1562         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
1563         * WebView.subproj/IFWebDataSource.h:
1564         * WebView.subproj/IFWebDataSource.mm:
1565         (-[IFWebDataSource webFrame]):
1566         (-[IFWebDataSource frameName]):
1567         (-[IFWebDataSource isLoading]):
1568         * WebView.subproj/IFWebDataSourcePrivate.mm:
1569         (-[IFWebDataSource _startLoading:]):
1570         (-[IFWebDataSource _setTitle:]):
1571
1572 2002-04-24  Richard Williamson  <rjw@apple.com>
1573
1574         Changed ordering of messages so activity viewer doesn't get -1 bytesSoFar
1575         for cancelled messages.
1576         
1577         * WebView.subproj/IFBaseWebControllerPrivate.mm:
1578         (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
1579         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
1580
1581 === Alexander 0.3c2 (v1) ===
1582
1583 2002-04-23  Chris Blumenberg  <cblu@apple.com>
1584
1585         * WebKit.pbproj/project.pbxproj:
1586
1587         Took IFDownloadHandler.h out of the public headers.
1588
1589         * WebView.subproj/IFLocationChangeHandler.h:
1590
1591         Removed deprecated methods.
1592
1593         * WebView.subproj/IFWebFrame.mm:
1594         (-[IFWebFrame setProvisionalDataSource:]):
1595
1596         Don't call locationChangeStarted anymore.
1597
1598 2002-04-23  Chris Blumenberg  <cblu@apple.com>
1599
1600         * MIME.subproj/IFDownloadHandler.h:
1601         * MIME.subproj/IFDownloadHandler.m: Removed.
1602         * MIME.subproj/IFDownloadHandler.mm: Added.
1603         (-[IFDownloadHandler initWithDataSource:]):
1604         (-[IFDownloadHandler dealloc]):
1605         * MIME.subproj/IFDownloadHandlerPrivate.h: Removed.
1606         * MIME.subproj/IFDownloadHandlerPrivate.m: Removed.
1607
1608         Made IFDownloadHandler a private class that retains the data source
1609         and saves the data to disk.
1610
1611         * WebKit.pbproj/project.pbxproj:
1612
1613         Removed IFDownloadHandlerPrivate
1614
1615         * WebView.subproj/IFBaseWebControllerPrivate.mm:
1616         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
1617
1618         Only send locationChangeCommitted if its shown inline.
1619
1620         * WebView.subproj/IFMainURLHandleClient.mm:
1621         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
1622         
1623         Save data with IFDownloadHandler
1624
1625         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
1626         
1627         If its a download, set the provisionalDataSource on the frame to nil.   
1628
1629         * WebView.subproj/IFWebDataSource.h:
1630         * WebView.subproj/IFWebDataSource.mm:
1631         (-[IFWebDataSource webFrame]):
1632         (-[IFWebDataSource pageTitle]):
1633         (-[IFWebDataSource contentPolicy]):
1634
1635         Added some accessor methods. Spelling fix pageTitle.
1636
1637 2002-04-23  Kenneth Kocienda  <kocienda@apple.com>
1638
1639         Reviewed by: Darin Adler
1640
1641         Fix for Radar 2908403 (Fix names in WebFoundation extensions code)
1642
1643         Extensions code in WebFoundation now is in its own namespace.
1644         Where we have added categories to existing Foundation and AppKit
1645         classes, the categories begin with the IF prefix. All method names
1646         begin with the _IF_ prefix.
1647
1648         This file here was changed to use the new names.
1649
1650         * History.subproj/IFWebHistoryPrivate.m:
1651         (-[IFWebHistoryPrivate findIndex:forDay:]):
1652         (-[IFWebHistoryPrivate arrayRepresentation]):
1653         (-[IFWebHistoryPrivate _loadHistoryGuts:]):
1654
1655 2002-04-22  Chris Blumenberg  <cblu@apple.com>
1656
1657         * WebView.subproj/IFMainURLHandleClient.mm:
1658         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
1659
1660         Send an IFError when we're asked to show content we can't handle.
1661
1662         * WebView.subproj/IFWebDataSourcePrivate.mm:
1663
1664         Cleaning
1665
1666 2002-04-22  Chris Blumenberg  <cblu@apple.com>
1667
1668         * WebKit.pbproj/project.pbxproj:
1669         * WebView.subproj/IFBaseWebController.mm:
1670         (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
1671         * WebView.subproj/IFWebDataSourcePrivate.h:
1672         * WebView.subproj/IFWebDataSourcePrivate.mm:
1673
1674         Fixed frames which I broke in the previous commit. We now set the content policy
1675         on all child frames instead of just the main frame.     
1676
1677 2002-04-22  Chris Blumenberg  <cblu@apple.com>
1678
1679         * MIME.subproj/IFMIMEHandler.h:
1680         * MIME.subproj/IFMIMEHandler.m:
1681         (+[IFMIMEHandler showableMIMETypes]):
1682         (+[IFMIMEHandler saveFileWithPath:andData:]):
1683         (+[IFMIMEHandler saveAndOpenFileWithPath:andData:]):
1684
1685         Added the above factory methods.
1686
1687         * WebView.subproj/IFBaseWebController.mm:
1688         (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
1689         
1690         Save the content policy and download path on the datasource.
1691
1692         * WebView.subproj/IFMainURLHandleClient.mm:
1693         (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
1694         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
1695         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
1696         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
1697         
1698         Made IFMainURLHandleClient use our new content policy API rather than
1699         IFDownloadHandler.
1700         
1701         * WebView.subproj/IFWebController.h:
1702
1703         Removed some deprecated methods.
1704
1705         * WebView.subproj/IFWebDataSourcePrivate.h:
1706         * WebView.subproj/IFWebDataSourcePrivate.mm:
1707         (-[IFWebDataSource _downloadPath]):
1708         (-[IFWebDataSource _setDownloadPath:]):
1709         (-[IFWebDataSource _contentPolicy]):
1710         (-[IFWebDataSource _setContentPolicy:]):
1711
1712         Added the above methods.
1713
1714 2002-04-22  Darin Adler  <darin@apple.com>
1715
1716         * Plugins.subproj/IFPluginView.mm:
1717         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
1718         Fix the fix. It was bumping argsCount even when not putting an
1719         argument into the array.
1720
1721 2002-04-21  Maciej Stachowiak  <mjs@apple.com>
1722
1723         Fix a plugins memory trasher that was making Alexander crash on
1724         the abcnews.com test page in cvs-torture-test:
1725
1726         * Plugins.subproj/IFPluginView.mm:
1727         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
1728         Use a new maxArguments variable to size the argument and value
1729         arrays - with the old code argsCount would end up twice the size
1730         it should be, and the arguments would all get written past the end
1731         of the argument array.
1732
1733 2002-04-19  Kenneth Kocienda  <kocienda@apple.com>
1734
1735         Changes to support submission of forms using HTTP POST.
1736
1737         These changes move us over to using the new WebKit interface for creating 
1738         WebDataSource instances, one that passes a handle rather than just a URL, 
1739         enabling the specific request method to be communicated to WebFoundation.
1740         This fixes:
1741
1742         Radar 2903602 (IFWebDataSource API must passes attributes and flags to IFURLHandle)
1743
1744         * WebKit.pbproj/project.pbxproj:
1745         * WebView.subproj/IFWebDataSource.h:
1746         * WebView.subproj/IFWebDataSource.mm: (IFWebDataSourceMake), (-[IFWebDataSource
1747         initWithURL:]), (-[IFWebDataSource initWithHandle:]):
1748         * WebView.subproj/IFWebDataSourcePrivate.h:
1749         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]):
1750
1751 2002-04-19  Richard Williamson  <rjw@apple.com>
1752
1753         Updated comments to reflect new API.
1754         
1755         * WebView.subproj/IFLocationChangeHandler.h:
1756
1757 2002-04-19  Darin Adler  <darin@apple.com>
1758
1759         * Plugins.subproj/IFPluginView.h: Re-add the attributes and values arrays,
1760         since they need to live the life of the plugin.
1761         * Plugins.subproj/IFPluginView.mm: (newCString): New function to make a C++
1762         new-allocated C string from an NSString.
1763         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Move code
1764         to allocate the arrays back here.
1765         (-[IFPluginView dealloc]): Deallocate the arrays and their contents.
1766         (-[IFPluginView start]): Simplify now that it does no work.
1767
1768 2002-04-18  Chris Blumenberg  <cblu@apple.com>
1769
1770         Made stop and start to work better. Fixed a bug darin made.
1771         
1772         * Plugins.subproj/IFPluginView.h:
1773         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
1774         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
1775         (-[IFPluginView start]), (-[IFPluginView stop]):
1776
1777 2002-04-18  Richard Williamson  <rjw@apple.com>
1778
1779         Fixed typo.
1780
1781         * WebView.subproj/IFBaseLocationChangeHandler.m: (-[IFBaseLocationChangeHandler
1782         requestContentPolicyForMIMEType:]):
1783         * WebView.subproj/IFLocationChangeHandler.h:
1784
1785 2002-04-18  Richard Williamson  <rjw@apple.com>
1786
1787         New API stubs for content policy.
1788         
1789         * WebView.subproj/IFBaseLocationChangeHandler.h: Added.
1790         * WebView.subproj/IFBaseLocationChangeHandler.m: Added.
1791          (+[IFBaseLocationChangeHandler setGlobalContentPolicy:forMIMEType:]),
1792         (+[IFBaseLocationChangeHandler globaContentPolicyForContentType:]),
1793         (+[IFBaseLocationChangeHandler globalContentPolicies]),
1794         (+[IFBaseLocationChangeHandler suggestedFileanemForURL:andContentType:]),
1795         (+[IFBaseLocationChangeHandler suggestedDirectoryForURL:andContentType:]),
1796         (+[IFBaseLocationChangeHandler extensionForURL:]), (-[IFBaseLocationChangeHandler
1797         extension]), (-[IFBaseLocationChangeHandler locationWillChangeTo:]),
1798         (-[IFBaseLocationChangeHandler locationChangeStarted]),
1799         (-[IFBaseLocationChangeHandler locationChangeCommitted]),
1800         (-[IFBaseLocationChangeHandler locationChangeDone:]),
1801         (-[IFBaseLocationChangeHandler receivedPageTitle:forDataSource:]),
1802         (-[IFBaseLocationChangeHandler serverRedirectTo:forDataSource:]),
1803         (-[IFBaseLocationChangeHandler downloadingWithHandler:]),
1804         (-[IFBaseLocationChangeHandler requestContentPolicyForContentMIMEType:]),
1805         (-[IFBaseLocationChangeHandler unableToImplementContentPolicy:]):
1806         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
1807         receivedError:forDownloadHandler:partialProgress:]), (-[IFBaseWebController
1808         provideLocationChangeHandlerForFrame:andURL:]), (-[IFBaseWebController
1809         URLPolicyForURL:]), (-[IFBaseWebController
1810         unableToImplementURLPolicyForURL:error:]), (-[IFBaseWebController
1811         haveContentPolicy:andPath:forLocationChangeHandler:]):
1812         * WebView.subproj/IFLocationChangeHandler.h:
1813         * WebView.subproj/IFWebController.h:
1814         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _setState:]):
1815
1816 2002-04-18  Darin Adler  <darin@apple.com>
1817
1818         * WebKit.pbproj/project.pbxproj: Oops. Take out -Wstrict-prototypes, put back
1819         -Wmissing-prototypes.
1820
1821 2002-04-18  Darin Adler  <darin@apple.com>
1822
1823         * WebKit.pbproj/project.pbxproj: Take out -Wmissing-prototypes
1824         because system headers are triggering it when we don't have
1825         precompiled headers on.
1826
1827 2002-04-18  Darin Adler  <darin@apple.com>
1828
1829         Fixes for compiling with gcc3 and more warnings.
1830
1831         * WebKit.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
1832         as in the rest of Labyrinth (see top level ChangeLog for details).
1833
1834         * Plugins.subproj/IFPluginView.mm:
1835         Avoid warnings about malloc by not using it.
1836         (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Keep the arguments
1837         dictionary around instead of keeping the C format version of it around. Also don't
1838         bother keeping the C string form of the MIME type around, and simplify some other
1839         stuff in here.
1840         (-[IFPluginView dealloc]): Corresponding changes since we keep a different set of things.
1841         (-[IFPluginView newStream:mimeType:notifyData:]): Use [mimeType cString].
1842         (-[IFPluginView start]): Build the lists of attributes and values in here. Do it using
1843         [NSString cString] for simplicity and don't keep the lists around after we're done with
1844         them.
1845         (-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]): Use [filenameClassic cString].
1846
1847         * WebView.subproj/IFMainURLHandleClient.mm:
1848         (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]),
1849         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]),
1850         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]),
1851         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
1852         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
1853         (-[IFWebDataSource _setLoading:]), (-[IFWebDataSource _setController:]),
1854         (-[IFWebDataSource _setLocationChangeHandler:]):
1855         * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
1856         (-[IFWebView mouseUp:]), (-[IFWebView mouseDown:]):
1857         Add type casts required by pickier gcc3.
1858
1859         * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]):
1860         Add type cast required by pickier gcc3.
1861         (-[IFWebView _stopPlugins]): Use local variable to work around Radar 2905835.
1862
1863 2002-04-18  Chris Blumenberg  <cblu@apple.com>
1864
1865         Moved plugin instance creation to the start method in IFPluginView.
1866
1867         * Plugins.subproj/IFPluginView.h:
1868         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
1869         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView dealloc]),
1870         (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView start]),
1871         (-[IFPluginView stop]), (-[IFPluginView drawRect:]), (-[IFPluginView
1872         windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
1873         IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
1874         IFURLHandleResourceDidFinishLoading:data:]):
1875         
1876
1877 2002-04-17  Darin Adler  <darin@apple.com>
1878
1879         * WebKit.pbproj/project.pbxproj: Update header search paths to find
1880         WebCore in the new location and eliminate WebCore/include.
1881
1882 2002-04-17  Chris Blumenberg  <cblu@apple.com>
1883
1884         Added a debug bit mask for plugins and downloads.
1885
1886         * MIME.subproj/IFDownloadHandlerPrivate.m: (-[IFDownloadHandlerPrivate
1887         _openFile]), (-[IFDownloadHandlerPrivate _saveFile]), (-[IFDownloadHandler
1888         _initWithURLHandle:mimeHandler:]):
1889         * Misc.subproj/WebKitDebug.h:
1890         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
1891         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
1892         (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView stop]),
1893         (-[IFPluginView sendUpdateEvent]), (-[IFPluginView becomeFirstResponder]),
1894         (-[IFPluginView resignFirstResponder]), (-[IFPluginView mouseDown:]),
1895         (-[IFPluginView mouseUp:]), (-[IFPluginView mouseEntered:]), (-[IFPluginView
1896         mouseExited:]), (-[IFPluginView keyUp:]), (-[IFPluginView keyDown:]),
1897         (-[IFPluginView IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
1898         IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
1899         getURLNotify:target:notifyData:]), (-[IFPluginView getURL:target:]),
1900         (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]), (-[IFPluginView
1901         postURL:target:len:buf:file:]), (-[IFPluginView newStream:target:stream:]),
1902         (-[IFPluginView write:len:buffer:]), (-[IFPluginView destroyStream:reason:]),
1903         (-[IFPluginView status:]), (-[IFPluginView getValue:value:]), (-[IFPluginView
1904         setValue:value:]), (-[IFPluginView invalidateRect:]), (-[IFPluginView
1905         invalidateRegion:]), (-[IFPluginView forceRedraw]):
1906         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
1907         IFURLHandle:resourceDataDidBecomeAvailable:]):
1908
1909 2002-04-17  Darin Adler  <darin@apple.com>
1910
1911         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
1912         Changed another Georgia that I missed to Times New Roman.
1913
1914 2002-04-16  Darin Adler  <darin@apple.com>
1915
1916         * WebView.subproj/IFWebDataSource.mm:
1917         * WebView.subproj/IFWebDataSourcePrivate.mm:
1918         Touch these files to try to make Jersey build again.
1919
1920 2002-04-16  Darin Adler  <darin@apple.com>
1921
1922         * WebView.subproj/IFBaseWebControllerPrivate.mm: Include khtml_part.h instead
1923         of KWQKHTMLPart.h.
1924
1925         * WebView.subproj/IFWebFrame.mm: Include khtml_part.h instead of KWQKHTMLPart.h.
1926
1927         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource documentTextFromDOM]):
1928         Remove an unneeded cast and an extra retain/autorelease.
1929
1930 2002-04-16  Darin Adler  <darin@apple.com>
1931
1932         * WebView.subproj/IFWebFrame.h:
1933         * WebView.subproj/IFWebFrame.mm:
1934         * WebView.subproj/IFWebFramePrivate.h:
1935         Change view/setView back to be id, rather than IFWebView.
1936         In the future, the view may be some other kind of object.
1937
1938 2002-04-16  John Sullivan  <sullivan@apple.com>
1939
1940         Fixed bug Chris noticed where Alexander wasn't putting up
1941         an error sheet on failed page visits.
1942
1943         * WebView.subproj/IFWebFramePrivate.mm: 
1944         (-[IFWebFrame _isLoadComplete]): Don't set provisionalDataSource
1945         to nil until after sending it locationChangeDone.
1946
1947 2002-04-16  Darin Adler  <darin@apple.com>
1948
1949         * WebView.subproj/IFBaseWebController.mm: Remove special release handling because
1950         data sources now retain the controller as long as they are loading.
1951
1952         * WebView.subproj/IFWebDataSource.mm: Remove special release handling because
1953         data sources now retain themselves as long as they are loading.
1954
1955         * WebView.subproj/IFWebFrame.mm: Remove special release handling, because
1956         data sources now retain the controller as long as they are loading, and the
1957         controller retains the frame.
1958
1959         * WebView.subproj/IFWebDataSourcePrivate.h: Add a "loading" boolean.
1960         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setLoading:]):
1961         Change the "loading" state, retaining or releasing this object and the controller
1962         as necessary.
1963         (-[IFWebDataSource _updateLoading]): Update the loading state; called when
1964         some part of loading is done to see if it's all done.
1965         (-[IFWebDataSource _setController:]): Retain the new controller and release the
1966         old controller when loading.
1967         (-[IFWebDataSource _setPrimaryLoadComplete:]): Call _updateLoading.
1968         (-[IFWebDataSource _startLoading:]): Call _setLoading:YES.
1969         (-[IFWebDataSource _addURLHandle:]): Call _setLoading:YES.
1970         (-[IFWebDataSource _removeURLHandle:]): Call _updateLoading.
1971
1972         * WebView.subproj/IFWebFrame.h: Use the real type, IFWebView, for setView and view.
1973         * WebView.subproj/IFWebFramePrivate.h: Formatting tweak.
1974         * WebKit.pbproj/project.pbxproj: Version wars.
1975
1976 2002-04-16  John Sullivan  <sullivan@apple.com>
1977
1978         * WebView.subproj/IFWebViewPrivate.mm: 
1979         (-[IFWebView _setController:]): removed a mistaken
1980         retain/release pair here for Darin.
1981
1982 2002-04-16  Darin Adler  <darin@apple.com>
1983
1984         Change default font to "Times New Roman 11" rather than
1985         "Georgia 12" to be more like Macintosh Internet Explorer.
1986
1987         * WebView.subproj/IFPreferences.mm:
1988
1989         A little simplifying of private pointers.
1990
1991         * MIME.subproj/IFDownloadHandler.h:
1992         * MIME.subproj/IFDownloadHandler.m:
1993
1994 2002-04-16  Darin Adler  <darin@apple.com>
1995
1996         A little simplifying of private pointers.
1997
1998         * MIME.subproj/IFDownloadHandler.m:
1999         * MIME.subproj/IFDownloadHandlerPrivate.m:
2000         * WebView.subproj/IFBaseWebController.mm:
2001         * WebView.subproj/IFWebDataSource.h:
2002         * WebView.subproj/IFWebDataSource.mm:
2003         * WebView.subproj/IFWebDataSourcePrivate.mm:
2004         * WebView.subproj/IFWebFrame.h:
2005         * WebView.subproj/IFWebFrame.mm:
2006         * WebView.subproj/IFWebFramePrivate.mm:
2007         * WebView.subproj/IFWebView.h:
2008         * WebView.subproj/IFWebView.mm:
2009         * WebView.subproj/IFWebViewPrivate.h:
2010         * WebView.subproj/IFWebViewPrivate.mm:
2011
2012 2002-04-16  Darin Adler  <darin@apple.com>
2013
2014         Change headers so they don't include so much.
2015         Also change IF_LOAD_TYPE to IFLoadType.
2016
2017         * History.subproj/IFBackForwardList.h:
2018         * History.subproj/IFBackForwardList.m:
2019         * History.subproj/IFURIEntry.h:
2020         * History.subproj/IFURIList.h:
2021         * History.subproj/IFURIList.m:
2022         * History.subproj/IFWebHistory.h:
2023         * History.subproj/IFWebHistoryPrivate.h:
2024         * History.subproj/IFWebHistoryPrivate.m:
2025         * MIME.subproj/IFContentHandler.h:
2026         * MIME.subproj/IFDownloadHandler.h:
2027         * MIME.subproj/IFDownloadHandlerPrivate.h:
2028         * MIME.subproj/IFDownloadHandlerPrivate.m:
2029         * MIME.subproj/IFMIMEDatabase.h:
2030         * MIME.subproj/IFMIMEDatabase.m:
2031         * Misc.subproj/IFException.h:
2032         * Plugins.subproj/IFNullPluginView.mm:
2033         * Plugins.subproj/IFPluginView.h:
2034         * Plugins.subproj/IFPluginView.mm:
2035         * WebKit.pbproj/project.pbxproj:
2036         * WebView.subproj/IFBaseWebController.h:
2037         * WebView.subproj/IFBaseWebController.mm:
2038         * WebView.subproj/IFBaseWebControllerPrivate.h:
2039         * WebView.subproj/IFBaseWebControllerPrivate.mm:
2040         * WebView.subproj/IFLoadProgress.h:
2041         * WebView.subproj/IFLoadProgress.mm:
2042         * WebView.subproj/IFLocationChangeHandler.h:
2043         * WebView.subproj/IFMainURLHandleClient.h:
2044         * WebView.subproj/IFMainURLHandleClient.mm:
2045         * WebView.subproj/IFPreferences.h:
2046         * WebView.subproj/IFPreferencesPrivate.h:
2047         * WebView.subproj/IFWebController.h:
2048         * WebView.subproj/IFWebDataSource.h:
2049         * WebView.subproj/IFWebDataSource.mm:
2050         * WebView.subproj/IFWebDataSourcePrivate.h:
2051         * WebView.subproj/IFWebDataSourcePrivate.mm:
2052         * WebView.subproj/IFWebFrame.h:
2053         * WebView.subproj/IFWebFrame.mm:
2054         * WebView.subproj/IFWebFramePrivate.h:
2055         * WebView.subproj/IFWebFramePrivate.mm:
2056         * WebView.subproj/IFWebView.h:
2057         * WebView.subproj/IFWebView.mm:
2058         * WebView.subproj/IFWebViewPrivate.h:
2059         * WebView.subproj/IFWebViewPrivate.mm:
2060
2061 2002-04-16  Kenneth Kocienda  <kocienda@apple.com>
2062
2063         Moved IFError class from WebKit to WebFoundation.
2064         Updated includes due to this change.
2065         Updated URL handle client interface to pass an IFError in
2066         an error callback rather than a plain int. The URL client was
2067         modified due to this change.
2068
2069         * Misc.subproj/IFError.h: Removed.
2070         * Misc.subproj/IFError.m: Removed.
2071         * Plugins.subproj/IFPluginView.mm:
2072         * WebKit.pbproj/project.pbxproj:
2073         * WebView.subproj/IFBaseWebControllerPrivate.mm:
2074         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2075         IFURLHandle:resourceDidFailLoadingWithResult:]):
2076         * WebView.subproj/IFWebFramePrivate.mm:
2077
2078 2002-04-15  Darin Adler  <darin@apple.com>
2079
2080         * WebView.subproj/IFPreferences.h:
2081         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Remove the old
2082         WebKitFontSizes preference.
2083         (-[IFPreferences mediumFontSize]), (-[IFPreferences setMediumFontSize:]): New.
2084
2085         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]): Call
2086         updateStyleSelector() instead of recalcStyle().
2087
2088 2002-04-15  Darin Adler  <darin@apple.com>
2089
2090         Merged changes from previous merge branch.
2091
2092         2002-03-25  Darin Adler  <darin@apple.com>
2093
2094         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
2095         Add WebKitMediumFontSizePreferenceKey.
2096
2097 2002-04-15  John Sullivan  <sullivan@apple.com>
2098
2099         * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView drawRect:]):
2100         Moved a line of code to prevent pluginNotFound message from being
2101         sent twice.
2102
2103 2002-04-15  Richard Williamson  <rjw@apple.com>
2104
2105         Changes to IFLocationChangeHandler.
2106         
2107         Experimental allocator code, not to be used, not thread safe.!
2108         
2109         * Misc.subproj/WebKitDebug.h:
2110         * Misc.subproj/WebKitDebug.m: (if_check_zone), (_debugAllocate),
2111         (_debugAllocatorInitialize), (printDebugMallocCounters), (if_cf_retain),
2112         (if_cf_release), (if_cf_alloc), (if_cf_realloc), (if_cf_dealloc),
2113         (if_cf_preferredSize), (setupDebugMalloc), (clearDebugMalloc),
2114         (resetDebugMallocCounters), (public_mALLOc), (public_fREe), (public_rEALLOc),
2115         (public_mEMALIGn), (public_vALLOc), (public_pVALLOc), (public_cALLOc),
2116         (public_iCALLOc), (public_iCOMALLOc), (public_cFREe), (public_mTRIm),
2117         (public_mUSABLe), (public_mSTATs), (public_mALLINFo), (public_mALLOPt),
2118         (do_check_malloc_state), (mALLINFo), (mSTATs), (if_size), (if_valloc),
2119         (if_malloc), (if_realloc), (if_calloc), (if_free):
2120         * WebKit.pbproj/project.pbxproj:
2121         * WebView.subproj/IFBaseWebController.h:
2122         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
2123         provideLocationChangeHandlerForFrame:]):
2124         * WebView.subproj/IFLocationChangeHandler.h: Added.
2125         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2126         IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFMainURLHandleClient
2127         IFURLHandle:didRedirectToURL:]):
2128         * WebView.subproj/IFWebController.h:
2129         * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource load]):
2130         * WebView.subproj/IFWebDataSourcePrivate.h:
2131         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
2132         (-[IFWebDataSource _startLoading:]), (-[IFWebDataSource _setTitle:]),
2133         (-[IFWebDataSource _locationChangeHandler]), (-[IFWebDataSource
2134         _setLocationChangeHandler:]):
2135         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]):
2136         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2137         _transitionProvisionalToCommitted]), (-[IFWebFrame _isLoadComplete]):
2138
2139 2002-04-15  Chris Blumenberg  <set EMAIL_ADDRESS environment variable>
2140
2141         * MIME.subproj/IFContentHandler.m: (-[IFContentHandler HTMLDocument]):
2142
2143         Made sure I didn't unnecessarily allocate html document strings
2144
2145         * MIME.subproj/IFDownloadHandler.h:
2146         * MIME.subproj/IFDownloadHandler.m: (-[IFDownloadHandler suggestedFilename]),
2147         (-[IFDownloadHandler openAfterDownload:]):
2148
2149         Added the mentioned API's
2150
2151         * MIME.subproj/IFDownloadHandlerPrivate.h:
2152         * MIME.subproj/IFDownloadHandlerPrivate.m: (-[IFDownloadHandlerPrivate init]),
2153         (-[IFDownloadHandlerPrivate dealloc]), (-[IFDownloadHandlerPrivate
2154         _suggestedFilename]), (-[IFDownloadHandlerPrivate _cancelDownload]),
2155         (-[IFDownloadHandlerPrivate _storeAtPath:]), (-[IFDownloadHandlerPrivate
2156         _finishedDownload]), (-[IFDownloadHandlerPrivate _openAfterDownload:]),
2157         (-[IFDownloadHandlerPrivate _openFile]), (-[IFDownloadHandlerPrivate _saveFile]),
2158         (-[IFDownloadHandler _initWithURLHandle:mimeHandler:]):
2159
2160         Cleaned up and added a lot error checking code to IFDownloadHandlerPrivate
2161
2162         * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView
2163         initWithFrame:mimeType:arguments:]), (-[IFNullPluginView drawRect:]):
2164
2165         Made sure I didn't unnecessarily allocate images
2166
2167         * Resources/plugin_document_template.html:
2168
2169         Plugins now have 100% of the window
2170
2171 2002-04-12  Chris Blumenberg  <cblu@apple.com>
2172
2173         Fixed build failure. Forgot to make IFDownloadHandler.h
2174         a public header.
2175
2176         * WebKit.pbproj/project.pbxproj:
2177
2178 2002-04-12 Chris Blumenberg <cblu@apple.com>
2179
2180         First implementation of IFDownloadHandler and IFDownloadHandlerPrivate.
2181
2182 2002-04-11  Chris Blumenberg  <cblu@apple.com>
2183
2184         Added support for non-html content. Non-html content is embedded in a
2185         contrived HTML document.
2186
2187         * English.lproj/IFError.strings:
2188         * MIME.subproj/IFContentHandler.h: Added.
2189         * MIME.subproj/IFContentHandler.m: Added.
2190          (-[IFContentHandler initWithMIMEHandler:URL:]), (-[IFContentHandler
2191         HTMLDocument]), (-[IFContentHandler dealloc]):
2192         * MIME.subproj/IFMIMEDatabase.h:
2193         * MIME.subproj/IFMIMEDatabase.m: (-[IFMIMEDatabase MIMEHandlerForMIMEType:]),
2194         (setMimeHandlers):
2195         * MIME.subproj/IFMIMEHandler.h:
2196         * MIME.subproj/IFMIMEHandler.m: (-[IFMIMEHandler
2197         initWithMIMEType:handlerType:handlerName:]), (-[IFMIMEHandler description]):
2198         * Misc.subproj/IFError.h:
2199         * Misc.subproj/IFError.m: (+[IFError initialize]):
2200         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
2201         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView dealloc]),
2202         (-[IFPluginView stop]):
2203         * Resources/plugin_document_template.html: Added.
2204         * Resources/text_document_template.html: Added.
2205         * WebKit.pbproj/project.pbxproj:
2206         * WebView.subproj/IFMainURLHandleClient.h:
2207         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2208         initWithDataSource:part:]), (-[IFMainURLHandleClient dealloc]),
2209         (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]),
2210         (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
2211
2212 2002-04-10  Chris Blumenberg  <cblu@apple.com>
2213
2214         Cleaned up stream deallocations.
2215
2216         * Plugins.subproj/IFPluginStream.h:
2217         * Plugins.subproj/IFPluginStream.m: (-[IFPluginStream
2218         initWithURL:mimeType:notifyData:]), (-[IFPluginStream incrementOffset:]),
2219         (-[IFPluginStream dealloc]):
2220         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
2221         newStream:mimeType:notifyData:]), (-[IFPluginView
2222         IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
2223         IFURLHandle:resourceDidFailLoadingWithResult:]):
2224
2225 2002-04-10  John Sullivan  <sullivan@apple.com>
2226
2227         Fixed 2891396 -- window fills with garbage if you resize or hide/show toolbar
2228         before loading first page
2229
2230         * WebView.subproj/IFWebView.mm: (-[IFWebView drawRect:]):
2231         Made webview fill rect with white if there's no widget.
2232
2233 2002-04-09  Chris Blumenberg  <cblu@apple.com>
2234
2235         * Plugins.subproj/IFPluginView.h:
2236         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
2237         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
2238         (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView start]),
2239         (-[IFPluginView stop]), (-[IFPluginView dealloc]), (-[IFPluginView
2240         findSuperview:]), (-[IFPluginView sendUpdateEvent]), (-[IFPluginView drawRect:]),
2241         (-[IFPluginView isFlipped]), (-[IFPluginView viewHasMoved:]), (-[IFPluginView
2242         windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
2243         windowWillClose:]), (-[IFPluginView IFURLHandleResourceDidBeginLoading:]),
2244         (-[IFPluginView IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
2245         IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
2246         IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
2247         IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFPluginView
2248         IFURLHandle:didRedirectToURL:]), (-[IFPluginView forceRedraw]), (IFPluginMake),
2249         (+[IFPluginView load]):
2250         * WebKit.pbproj/project.pbxproj:
2251         * WebView.subproj/IFLoadProgress.h:
2252
2253         Cleaned up the IFPluginView code. Moved a lot of things around. 
2254
2255         Added support for plug-in file download progress.
2256
2257 2002-04-08  Chris Blumenberg  <cblu@apple.com>
2258
2259         * Plugins.subproj/IFPluginView.h:
2260         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
2261         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView drawRect:]),
2262         (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView
2263         getURLNotify:target:notifyData:]):
2264
2265         Support new stream requests from plug-ins that are relative URL's.
2266
2267 2002-04-08  Darin Adler  <darin@apple.com>
2268
2269         * WebKit.pbproj/project.pbxproj: Re-added -Wno-format-y2k.
2270
2271 2002-04-08  Richard Williamson  <rjw@apple.com>
2272
2273         Added logs for Shelley to note start and completion of document load.
2274         -WebKitLogLevel 0x1000.  Also, as a bonus, note time to load.
2275         
2276         * Misc.subproj/WebKitDebug.h:
2277         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]):
2278         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _setState:]):
2279
2280 2002-04-08  Chris Blumenberg  <cblu@apple.com>
2281
2282         * Plugins.subproj/IFNullPluginView.h:
2283         * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView
2284         initWithFrame:mimeType:arguments:]), (-[IFNullPluginView drawRect:]):
2285         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
2286         pluginNotFoundForMIMEType:pluginPageURL:]):
2287         * WebView.subproj/IFWebController.h:
2288
2289         Added pluginNotFoundForMIMEType: pluginPageURL: to WebKit. This gets called
2290         by IFNullPluginView when a plug-in for a certain mime type is requested but 
2291         not installed.
2292
2293 2002-04-08  Richard Williamson  <rjw@apple.com>
2294
2295         Added frameForView:
2296         Cleaned up out-of-date comments.
2297         
2298         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
2299         _frameForView:fromFrame:]), (-[IFBaseWebController frameForView:]):
2300         * WebView.subproj/IFWebController.h:
2301
2302 2002-04-05  Chris Blumenberg  <cblu@apple.com>
2303
2304         * Plugins.subproj/IFNullPluginView.mm: (+[IFNullPluginView load]):
2305
2306         Enabled the below.
2307
2308 2002-04-05  Chris Blumenberg  <cblu@apple.com>
2309
2310         * Plugins.subproj/IFNullPluginView.h: Added.
2311         * Plugins.subproj/IFNullPluginView.mm: Added.
2312          (-[IFNullPluginView initWithFrame:mimeType:arguments:]), (-[IFNullPluginView
2313         findSuperview:]), (-[IFNullPluginView drawRect:]):
2314         * Resources/nullplugin.tiff: Added.
2315         * WebKit.pbproj/project.pbxproj:
2316
2317         An IFNullPluginView is now created when no plug-in for a requested
2318         mime type is found. IFNullPluginView displays a null plug-in icon
2319         and will eventually report this error to the WebController.
2320
2321 2002-04-05  Richard Williamson  <rjw@apple.com>
2322
2323         Back out some changes to lazily dealloc frame.
2324         
2325         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame release]):
2326
2327 2002-04-05  Richard Williamson  <rjw@apple.com>
2328
2329         New method on controller to find a frame of a particular name
2330         anywhere in the frame hierarchy.
2331         
2332         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
2333         initWithView:provisionalDataSource:]), (-[IFBaseWebController
2334         _frameNamed:fromFrame:]), (-[IFBaseWebController frameNamed:]):
2335         * WebView.subproj/IFWebController.h:
2336
2337 2002-04-05  Darin Adler  <darin@apple.com>
2338
2339         * WebView.subproj/IFMainURLHandleClient.mm:
2340         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
2341         Use contentLengthReceived rather than getting the length of
2342         availableResourceData to determine how much data has arrived.
2343
2344 2002-04-05  Richard Williamson  <rjw@apple.com>
2345
2346         Implemented the same lazily deallocation scheme on frame as in controller
2347         and data source.
2348         
2349         * WebView.subproj/IFWebFrame.mm: (-[_IFFrameHolder initWithObject:]),
2350         (-[_IFFrameHolder _checkReadyToDealloc:]), (-[IFWebFrame release]):
2351
2352 2002-04-04  Richard Williamson  <rjw@apple.com>
2353
2354         Clear controller references from data source and view, as well as 
2355         frame.
2356         
2357         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
2358         _clearControllerReferences:]):
2359
2360 2002-04-04  Richard Williamson  <rjw@apple.com>
2361
2362         Lazily dealloc controller and data source ONLY after all loads
2363         have completed.
2364         
2365         * WebView.subproj/IFBaseWebController.mm: (-[_IFControllerHolder
2366         initWithController:]), (-[_IFControllerHolder _checkReadyToDealloc:]),
2367         (-[IFBaseWebController dealloc]), (-[IFBaseWebController release]):
2368         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
2369         _clearControllerReferences:]), (-[IFBaseWebControllerPrivate dealloc]):
2370         * WebView.subproj/IFWebDataSource.mm: (-[_IFDataSourceHolder
2371         initWithDataSource:]), (-[_IFDataSourceHolder _checkReadyToDealloc:]),
2372         (-[IFWebDataSource release]):
2373
2374 2002-04-04  Kenneth Kocienda  <kocienda@apple.com>
2375
2376         Hack to handle displaying image URLs. The trick is to sense when
2377         the main URL is an image type and wrap the URL in a small generated
2378         HTML document and hand that off to the engine to display.
2379
2380         Works like a charm! :)
2381
2382         There may be some longer-term issues, but for now, this lets us
2383         do something we could not before. It also lets us handle some iframes
2384         that contain only image URLs.
2385
2386         * Resources/image_document_template.html: Added.
2387         * WebKit.pbproj/project.pbxproj:
2388         * WebView.subproj/IFMainURLHandleClient.h:
2389         * WebView.subproj/IFMainURLHandleClient.mm: (loadImageDocumentTemplate),
2390         (-[IFMainURLHandleClient initWithDataSource:part:]), (-[IFMainURLHandleClient
2391         IFURLHandle:resourceDataDidBecomeAvailable:]):
2392
2393 2002-04-04  Chris Blumenberg  <cblu@apple.com>
2394
2395         * English.lproj/IFError.strings:
2396         * Misc.subproj/IFError.h:
2397         * Misc.subproj/IFError.m: (+[IFError initialize]):
2398         * WebKit.pbproj/project.pbxproj:
2399         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2400         IFURLHandle:resourceDataDidBecomeAvailable:]):
2401
2402         Added the IFNonHTMLContentNotSupportedError to IFError.
2403
2404 2002-04-04  Richard Williamson  <rjw@apple.com>
2405
2406         Tuned and re-enabled resource layouts.
2407         
2408         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
2409         * WebView.subproj/IFWebFramePrivate.h:
2410         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _scheduleLayout:]),
2411         (-[IFWebFrame _timedLayout:]):
2412
2413 2002-04-04  Darin Adler  <darin@apple.com>
2414
2415         * WebKit.pbproj/project.pbxproj: Add an Unoptimized build
2416         style: exactly like Development except without the -O.
2417
2418 2002-04-03  Richard Williamson  <rjw@apple.com>
2419
2420         Changed name of finalURL to redirectedURL.
2421         Disabled layout after resource load.  It appears to really slow us down.
2422         
2423         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
2424         * WebView.subproj/IFWebController.h:
2425         * WebView.subproj/IFWebDataSource.h:
2426         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource redirectedURL]),
2427         (-[IFWebDataSource wasRedirected]):
2428         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
2429
2430 2002-04-03  Richard Williamson  <rjw@apple.com>
2431
2432         Added support for finalURL and wasRedirected to datasource.
2433         Added additional layouts on resource loads.
2434         Added more implementations of frame related methods in data source.
2435         
2436         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2437         IFURLHandle:didRedirectToURL:]):
2438         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]), (-[IFPreferences
2439         _resourceTimedLayoutDelay]), (-[IFPreferences _resourceTimedLayoutEnabled]):
2440         * WebView.subproj/IFPreferencesPrivate.h:
2441         * WebView.subproj/IFWebDataSource.h:
2442         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource frameNames]),
2443         (-[IFWebDataSource findDataSourceForFrameNamed:]), (-[IFWebDataSource
2444         frameExists:]), (-[IFWebDataSource finalURL]), (-[IFWebDataSource
2445         wasRedirected]):
2446         * WebView.subproj/IFWebDataSourcePrivate.h:
2447         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
2448         (-[IFWebDataSource _setTitle:]), (-[IFWebDataSource _setFinalURL:]):
2449         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _scheduleLayout:]),
2450         (-[IFWebFrame _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame
2451         _isLoadComplete]):
2452
2453 2002-04-03  Kenneth Kocienda  <kocienda@apple.com>
2454
2455         Updated debugging log messages to use new varargs macros.
2456
2457         * History.subproj/IFWebHistoryPrivate.m: (-[IFWebHistoryPrivate
2458         removeEntryForURLString:]), (-[IFWebHistoryPrivate _loadHistoryGuts:]),
2459         (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate _saveHistoryGuts:]),
2460         (-[IFWebHistoryPrivate saveHistory]):
2461         * Misc.subproj/WebKitDebug.h:
2462         * Misc.subproj/WebKitDebug.m: (timestamp), (WebKitLog):
2463         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
2464         initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
2465         (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView
2466         IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
2467         IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
2468         becomeFirstResponder]), (-[IFPluginView resignFirstResponder]), (-[IFPluginView
2469         sendUpdateEvent]), (-[IFPluginView mouseDown:]), (-[IFPluginView mouseUp:]),
2470         (-[IFPluginView mouseEntered:]), (-[IFPluginView mouseExited:]), (-[IFPluginView
2471         keyUp:]), (-[IFPluginView keyDown:]), (-[IFPluginView
2472         getURLNotify:target:notifyData:]), (-[IFPluginView getURL:target:]),
2473         (-[IFPluginView status:]), (-[IFPluginView stop]):
2474         * WebKit.pbproj/project.pbxproj:
2475         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
2476         _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
2477         _mainReceivedProgress:forResource:fromDataSource:]):
2478         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2479         IFURLHandleResourceDidBeginLoading:]), (-[IFMainURLHandleClient
2480         IFURLHandleResourceDidCancelLoading:]), (-[IFMainURLHandleClient
2481         IFURLHandleResourceDidFinishLoading:data:]), (-[IFMainURLHandleClient
2482         IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFMainURLHandleClient
2483         IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFMainURLHandleClient
2484         IFURLHandle:didRedirectToURL:]):
2485         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource isLoading]):
2486         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _stopLoading]):
2487         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2488         _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame _timedLayout:]),
2489         (-[IFWebFrame _setState:]), (-[IFWebFrame _isLoadComplete]):
2490         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]), (-[IFWebView
2491         layout]), (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]),
2492         (-[IFWebView setNeedsToApplyStyles:]), (-[IFWebView drawRect:]):
2493
2494 2002-04-02  Darin Adler  <darin@apple.com>
2495
2496         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
2497         Update title if the page is already in the committed state.
2498
2499 2002-04-02  Darin Adler  <darin@apple.com>
2500
2501         * WebKit.pbproj/project.pbxproj: Fix flags as I did in WebFoundation.
2502
2503         * Misc.subproj/WebKitDebug.h: Turn off logging when xNDEBUG is defined.
2504         Remove unused stuff. Add checking for printf parameters.
2505         * Misc.subproj/WebKitDebug.m: Remove unused variants.
2506
2507         * Plugins.subproj/IFPluginView.mm: Change to use WebKit logging, not
2508         WebCore logging.
2509
2510         * WebView.subproj/IFMainURLHandleClient.mm:
2511         * WebView.subproj/IFWebView.mm:
2512         Fix types in log statements caught by the compiler.
2513
2514 2002-04-02  Chris Blumenberg  <cblu@apple.com>
2515
2516         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
2517         IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
2518         IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFPluginView
2519         IFURLHandle:didRedirectToURL:]):
2520
2521         Added support for the above callbacks.
2522
2523         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2524         IFURLHandle:resourceDataDidBecomeAvailable:]):
2525
2526         Return an error if non-html is requested.       
2527
2528 2002-04-02  Richard Williamson  <rjw@apple.com>
2529
2530         More relaxed about invalid states.
2531         
2532         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2533         _transitionProvisionalToLayoutAcceptable]):
2534
2535 2002-04-02  Darin Adler  <darin@apple.com>
2536
2537         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
2538         Fix a leak I introduced here by copying the string in a better way.
2539
2540 2002-04-01  Richard Williamson  <rjw@apple.com>
2541
2542         Cleaned up lots of potentially stale references to controller.
2543         
2544         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
2545         dealloc]):
2546         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2547         initWithDataSource:part:]), (-[IFMainURLHandleClient dealloc]):
2548         * WebView.subproj/IFWebDataSource.h:
2549         * WebView.subproj/IFWebDataSource.mm:
2550         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
2551         (-[IFWebDataSource _setPrimaryLoadComplete:]), (-[IFWebDataSource _setTitle:]):
2552         * WebView.subproj/IFWebFramePrivate.h:
2553         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]),
2554         (-[IFWebFramePrivate setDataSource:]), (-[IFWebFramePrivate
2555         setProvisionalDataSource:]), (-[IFWebFrame _setController:]), (-[IFWebFrame
2556         _transitionProvisionalToCommitted]), (-[IFWebFrame _timedLayout:]), (-[IFWebFrame
2557         _setState:]):
2558
2559 2002-04-01  Richard Williamson  <rjw@apple.com>
2560
2561         Logging changes.
2562         Changes to support correct i/frame behavior.
2563     
2564         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
2565         createFrameNamed:for:inParent:inScrollView:]):
2566         * WebView.subproj/IFWebController.h:
2567         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _timedLayout:]):
2568         * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]),
2569         (-[IFWebView _setupScrollers]):
2570
2571 2002-04-01  John Sullivan  <sullivan@apple.com>
2572
2573         Added method for updating url, title, and/or displayTitle
2574         on existing entry.
2575
2576         * History.subproj/IFWebHistory.h:
2577         * History.subproj/IFWebHistory.m: 
2578         (-[IFWebHistory updateURL:title:displayTitle:forURL:]):
2579         Calls through to IFWebHistoryPrivate.
2580
2581         * History.subproj/IFWebHistoryPrivate.h:
2582         * History.subproj/IFWebHistoryPrivate.m: 
2583         (-[IFWebHistoryPrivate _entryForURLString:]): Broke this out
2584         from containsURL.
2585         (-[IFWebHistoryPrivate containsURL:]): Call broken-out method.
2586         (-[IFWebHistoryPrivate updateURL:title:displayTitle:forURL:]):
2587         Find existing entry (if any), change its attributes.
2588
2589 2002-04-01  Darin Adler  <darin@apple.com>
2590
2591         * Misc.subproj/IFError.h: Add the failing URL to IFError.
2592         * Misc.subproj/IFError.m: (-[IFError initWithErrorCode:]): Call through
2593         with nil for the URL.
2594         (-[IFError initWithErrorCode:failingURL:]): Retain the passed URL.
2595         (-[IFError dealloc]): Autorelease the URL.
2596         (-[IFError failingURL]): Return the URL.
2597         (-[IFError description]): Include the URL in the description.
2598
2599         * WebView.subproj/IFBaseWebControllerPrivate.mm:
2600         (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]),
2601         (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
2602         Put the URL into the IFError.
2603
2604         * WebView.subproj/IFMainURLHandleClient.mm:
2605         (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
2606         Put the URL into the IFError.
2607
2608 2002-04-01  Richard Williamson  <rjw@apple.com>
2609
2610         Added more logging to show time of layouts.
2611         
2612         * WebView.subproj/IFWebFramePrivate.h:
2613         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2614         _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame _timedLayout:]),
2615         (-[IFWebFrame _isLoadComplete]):
2616         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]), (-[IFWebView
2617         layout]):
2618
2619 2002-04-01  Darin Adler  <darin@apple.com>
2620
2621         Added operations for JavaScript objects. Not sure if this was the best
2622         place for them, but it should be OK for now.
2623
2624         * Misc.subproj/IFCache.h:
2625         * Misc.subproj/IFCache.mm: (+[IFCache setDisabled:]), (+[IFCache
2626         javaScriptObjectsCount]), (+[IFCache garbageCollectJavaScriptObjects]):
2627         * WebKit.pbproj/project.pbxproj:
2628
2629 2002-03-30  Richard Williamson  <rjw@apple.com>
2630
2631         Corrected comments describing the new 'acceptable to layout' state
2632         transition.
2633         
2634         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
2635         _mainReceivedProgress:forResource:fromDataSource:]):
2636
2637 2002-03-30  Darin Adler  <darin@apple.com>
2638
2639         * WebView.subproj/IFBaseWebController.mm:
2640         (-[IFBaseWebController receivedPageTitle:forDataSource:]):
2641         Remove the exception from here. This is really a "do nothing,
2642         subclasses override me" method.
2643
2644         * WebView.subproj/IFWebDataSource.mm:
2645         (-[IFWebDataSource pageTitle]): Implement.
2646
2647         * WebView.subproj/IFWebDataSourcePrivate.h: Add pageTitle
2648         and [IFWebDataSource _setTitle].
2649         * WebView.subproj/IFWebDataSourcePrivate.mm:
2650         (-[IFWebDataSourcePrivate dealloc]): autorelease pageTitle.
2651         (-[IFWebDataSource _setTitle:]): Update the title, trimming
2652         whitespace and using nil, rather than empty string, to mean
2653         no title at all. Call [receivedPageTitle: forDataSource:]
2654         as necessary too.
2655
2656         * WebView.subproj/IFMainURLHandleClient.mm: Did a gratuitious
2657         whitespace edit to force this file to recompile so everyone
2658         doesn't have to "make clean".
2659
2660 2002-03-30  Richard Williamson  <rjw@apple.com>
2661
2662         Added support for scrolling to anchor points.
2663         
2664         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
2665
2666 2002-03-30  Maciej Stachowiak  <mjs@apple.com>
2667
2668         * WebKit.pbproj/project.pbxproj: Link against
2669         JavaScriptCore.framework instead of the defunct
2670         libJavaScriptCore.dylib.
2671
2672 2002-03-29  Richard Williamson  <rjw@apple.com>
2673
2674         Fixes for cancelling.  Still need to think about a better
2675         solution than putting data sources in stopped mode.
2676         
2677         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
2678         _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
2679         _mainReceivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
2680         _receivedError:forResource:partialProgress:fromDataSource:]),
2681         (-[IFBaseWebController
2682         _mainReceivedError:forResource:partialProgress:fromDataSource:]):
2683         * WebView.subproj/IFWebDataSourcePrivate.h:
2684         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]),
2685         (-[IFWebDataSource _isStopping]), (-[IFWebDataSource _stopLoading]):
2686         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]):
2687
2688 2002-03-29  Richard Williamson  <rjw@apple.com>
2689
2690         Hooked up redirect.  Now we see many more ads.  :(
2691         Fixed cancel of main handle for document.
2692         Moved stop before start from frame to data source.
2693
2694         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
2695         locationChangeDone:forFrame:]), (-[IFBaseWebController
2696         serverRedirectTo:forDataSource:]):
2697         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2698         IFURLHandleResourceDidCancelLoading:]), (-[IFMainURLHandleClient
2699         IFURLHandleResourceDidFinishLoading:data:]), (-[IFMainURLHandleClient
2700         IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFMainURLHandleClient
2701         IFURLHandle:didRedirectToURL:]):
2702         * WebView.subproj/IFWebDataSourcePrivate.h:
2703         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
2704         (-[IFWebDataSource _startLoading:]), (-[IFWebDataSource _stopLoading]):
2705         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]):
2706
2707 2002-03-29  Richard Williamson  <rjw@apple.com>
2708
2709         Added stopLoading to startLoading to cancel any pending loads before
2710         new loads start.  This doesn't work yet because of loader bugs, but will
2711         once those are fixed.
2712         
2713         Adding logging for redirects.
2714         
2715         * Misc.subproj/WebKitDebug.h:
2716         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2717         IFURLHandle:didRedirectToURL:]):
2718         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]):
2719
2720 2002-03-29  Darin Adler  <darin@apple.com>
2721
2722         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]): Deref the
2723         renderFramePart, and autorelease the provisionalDataSource.
2724         (-[IFWebFramePrivate setRenderFramePart:]): Ref renderFramePart while we hold it.
2725
2726 2002-03-28  Richard Williamson  <rjw@apple.com>
2727
2728         Increased size default for initial layout.
2729         
2730         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
2731
2732 2002-03-28  Richard Williamson  <rjw@apple.com>
2733
2734         Fixed big leak of any document that had a frame or iframe.
2735         
2736         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource retain]):
2737         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
2738         (-[IFWebDataSource _setParent:]):
2739
2740 2002-03-28  Richard Williamson  <rjw@apple.com>
2741     
2742         Modified the initial layout policy.
2743
2744         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
2745         _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
2746         _mainReceivedProgress:forResource:fromDataSource:]):
2747         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]), (-[IFPreferences
2748         _initialTimedLayoutDelay]), (-[IFPreferences _initialTimedLayoutSize]):
2749         * WebView.subproj/IFPreferencesPrivate.h:
2750         * WebView.subproj/IFWebFramePrivate.h:
2751         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2752         _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame
2753         _transitionProvisionalToCommitted]), (-[IFWebFrame _initialLayout:]),
2754         (-[IFWebFrame _isLoadComplete]):
2755
2756 2002-03-28  Darin Adler  <darin@apple.com>
2757
2758         New private interface for getting at the cache.
2759
2760         * Misc.subproj/IFCache.h: New.
2761         * Misc.subproj/IFCache.mm: New.
2762         * WebKit.pbproj/project.pbxproj: Added IFCache files.
2763
2764 2002-03-28  Darin Adler  <darin@apple.com>
2765
2766         * WebView.subproj/IFBaseWebController.mm:
2767         (-[IFBaseWebController locationChangeDone:forFrame:]): Remove log of errors
2768         loading now that we have the activity viewer.
2769
2770 2002-03-28  Richard Williamson  <rjw@apple.com>
2771
2772         Modified the initial layout policy.  We now try to layout as close
2773         as possible to WebKitInitialTimedLayoutDelay seconds after the
2774         load was started, not after the provisional-to-committed transition.
2775         If the time to the provisional-to-committed transition exceeds
2776         WebKitInitialTimedLayoutDelay we layout immediately.
2777         
2778         * WebView.subproj/IFWebDataSourcePrivate.h:
2779         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]),
2780         (-[IFWebDataSource _recursiveStopLoading]), (-[IFWebDataSource
2781         _loadingStartedTime]):
2782         * WebView.subproj/IFWebFramePrivate.h:
2783         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2784         _transitionProvisionalToCommitted]), (-[IFWebFrame _initialLayout:]):
2785
2786 2002-03-28  John Sullivan  <sullivan@apple.com>
2787
2788         * History.subproj/IFWebHistoryPrivate.m: 
2789         (-[IFWebHistoryPrivate _loadHistoryGuts:]):
2790         Made this more robust about bad data from the disk file. I
2791         don't know how bad data could get into the disk file in normal
2792         use, but it seems to have happened to Richard.
2793
2794 2002-03-27  Richard Williamson  <rjw@apple.com>
2795
2796         Added initial-layout-after-delay-if-not-layed-out-yet feature.
2797         
2798         * Misc.subproj/WebKitDebug.h:
2799         * WebKit.pbproj/project.pbxproj:
2800         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
2801         _mainReceivedProgress:forResource:fromDataSource:]):
2802         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]), (-[IFPreferences
2803         setPluginsEnabled:]), (-[IFPreferences _initialTimedLayoutDelay]),
2804         (-[IFPreferences _initialTimedLayoutEnabled]):
2805         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
2806         _transitionProvisionalToCommitted]), (-[IFWebFrame _initialLayout:]),
2807         (-[IFWebFrame _state]):
2808
2809 2002-03-27  Kenneth Kocienda  <kocienda@apple.com>
2810
2811         Changed loadProgress->bytesSoFar to use [sender contentLengthReceived]
2812         instead of the size of the chunk that was delivered in the callback.
2813         This makes the activity window data more correct than it was.
2814
2815         * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
2816         IFURLHandle:resourceDataDidBecomeAvailable:]):
2817
2818 2002-03-27  Chris Blumenberg  <cblu@apple.com>
2819
2820         Now setting the modifier bit for the activate and cursor events.
2821
2822         * Plugins.subproj/IFPluginView.h:
2823         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView drawRect:]), (-[IFPluginView
2824         windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
2825         mouseEntered:]), (-[IFPluginView mouseExited:]):
2826
2827 2002-03-27  Darin Adler  <darin@apple.com>
2828
2829         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Switch back
2830         to serif font, since using Luicida Grande was exposing some font bugs.
2831
2832 2002-03-26  Maciej Stachowiak  <mjs@apple.com>
2833
2834         * WebKit.pbproj/project.pbxproj: Fixed to build with standalone
2835         libJavaScriptCore.dylib.
2836
2837 2002-03-26  Kenneth Kocienda  <kocienda@apple.com>
2838
2839         Changes to help the transition to the new build system which unifies
2840         our development build setting with the settings we use to ship
2841         releases.
2842
2843         * Makefile.am:
2844         * WebKit.pbproj/kocienda.pbxuser:
2845         * WebKit.pbproj/project.pbxproj:
2846
2847 2002-03-26  Richard Williamson  <rjw@apple.com>
2848
2849         Try to ensure that display needed bits are correctly set.
2850         
2851         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
2852
2853 2002-03-26  Darin Adler  <darin@apple.com>
2854
2855         * Misc.subproj/IFError.m: (+[IFError initialize]): Fix a typo where
2856         we said "unvailable".
2857         
2858         * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Change
2859         the default sans-serif font to "Lucida Grande" to match the OS X
2860         system font, and also make that the defalt standard font.
2861
2862 2002-03-26  John Sullivan  <sullivan@apple.com>
2863
2864         * WebKit.pbproj/project.pbxproj:
2865         Marked IFProgress.h Public.
2866
2867 2002-03-25  John Sullivan  <sullivan@apple.com>
2868
2869         Broke IFLoadProgress out into its own file, and added
2870         an init method and getters, without which this class
2871         is useless in Objective-C files (but strangely usable
2872         in Objective-C++ files, see radar 2887253).
2873
2874         * WebView.subproj/IFWebController.h:
2875         * WebView.subproj/IFBaseWebController.mm:
2876         Took IFLoadProgress declaration and implementation out of here.
2877
2878         * WebView.subproj/IFLoadProgress.h,
2879         * WebView.subproj/IFLoadProgress.mm:
2880         Moved IFLoadProgress declaration and implementation to here;
2881         added -[IFLoadProgress initWithBytesSoFar:totalToLoad:type:]
2882         and getters for each field.
2883
2884         * WebKit.pbproj/project.pbxproj: Updated for new files
2885
2886 2002-03-25  Richard Williamson  <rjw@apple.com>
2887
2888         Tweaks to force layout of frames and iframes.
2889         
2890         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
2891
2892 2002-03-25  Maciej Stachowiak  <mjs@apple.com>
2893
2894         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
2895         _startLoading:]): Just create an IFURLHandle, since it now creates
2896         the proper concrete subclass automagically.
2897
2898 2002-03-25  Chris Blumenberg  <cblu@apple.com>
2899
2900         * MIME.subproj/IFMIMEDatabase.m: (+[IFMIMEDatabase sharedMIMEDatabase]),
2901         (-[IFMIMEDatabase MIMEHandlerForMIMEType:]), (setMimeHandlers):
2902         * MIME.subproj/IFMIMEHandler.h:
2903         * MIME.subproj/IFMIMEHandler.m: (-[IFMIMEHandler
2904         initWithMIMEType:handlerType:handlerName:]), (-[IFMIMEHandler MIMEType]),
2905         (-[IFMIMEHandler MIMESupertype]), (-[IFMIMEHandler MIMESubtype]),
2906         (-[IFMIMEHandler handlerName]), (-[IFMIMEHandler handlerType]), (-[IFMIMEHandler
2907         description]):
2908
2909         Initial implementations of the above.
2910
2911 2002-03-25  Richard Williamson  <rjw@apple.com>
2912
2913         Added private API to allow browser to access the DOM tree.
2914
2915         * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView DOM::]), (+[IFWebView
2916         _nodeName:DOM::]), (+[IFWebView _nodeValue:DOM::]), (+[IFWebView
2917         _nodeHTML:DOM::]):
2918
2919 2002-03-25  Richard Williamson  <rjw@apple.com>
2920
2921         Added private API to allow browser to access the render tree.
2922         
2923         * WebView.subproj/IFWebViewPrivate.mm:
2924
2925 2002-03-24  Richard Williamson  <rjw@apple.com>
2926
2927         Changed data source to create IFURLHandle of the appropriate class.
2928         The prevented us from getting the response headers correctly.
2929         
2930         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]):
2931
2932 2002-03-24  Richard Williamson  <rjw@apple.com>
2933
2934         Removed erroneous comments.
2935         
2936         * WebView.subproj/IFWebView.mm: (-[IFWebView dataSourceChanged:]), (-[IFWebView
2937         reapplyStyles]):
2938
2939 2002-03-22  Chris Blumenberg  <cblu@apple.com>
2940
2941         * MIME.subproj/IFMIMEDatabase.h:
2942         Added a list of mime type that WebKit will be capable of handling
2943
2944 2002-03-22  Chris Blumenberg  <cblu@apple.com>
2945
2946         * WebKit.pbproj/project.pbxproj:
2947         Added the MIME clases to WebKit.
2948
2949 2002-03-22  John Sullivan  <sullivan@apple.com>
2950
2951         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]):
2952         Removed stale FIXME.
2953
2954 2002-03-22  Richard Williamson  <rjw@apple.com>
2955
2956         Fixed reapplyStyles to use new KDE3 recalcStyle function.
2957         
2958         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles])
2959
2960 2002-03-21  John Sullivan  <sullivan@apple.com>
2961
2962         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]):
2963         Commented out call to applyChanges that no longer exists.
2964         This was breaking the build. Live font changes are
2965         temporarily broken again.
2966
2967 2002-03-21  Richard Williamson  <rjw@apple.com>
2968
2969         Added setNeedsToApplyStyles: and reapplyStyles.  This is for dynamic preferences
2970         refresh support.
2971         
2972         * WebView.subproj/IFWebView.h:
2973         * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]), (-[IFWebView
2974         layout]), (-[IFWebView setNeedsToApplyStyles:]), (-[IFWebView drawRect:]):
2975         * WebView.subproj/IFWebViewPrivate.h:
2976
2977 2002-03-21  John Sullivan  <sullivan@apple.com>
2978
2979         Cleaned up defaults registration and use. The class
2980         IFPreferences now registers the defaults at load time, early
2981         enough that Alexander doesn't have to register them separately
2982         as it had been. Also, all the defaults currently in use now
2983         have accessor cover methods, which Alexander will use
2984         exclusively.
2985         
2986         * WebView.subproj/IFPreferences.mm:
2987         New file, registers defaults and implements cover methods.
2988
2989         * WebView.subproj/IFPreferences.h:
2990         This file existed but wasn't being used (contents #ifdeffed out).
2991         Now it declares the cover methods, but still has an #ifdeffed
2992         section for possible future stuff.
2993
2994         * WebKit.pbproj/project.pbxproj: Updated for new file.
2995
2996         * WebView.subproj/IFWebDataSource.mm:
2997         (+[IFWebDataSource initialize]): removed defaults-registration
2998         from here.
2999
3000 2002-03-20  Maciej Stachowiak  <mjs@apple.com>
3001
3002         Merged the following changes from LABYRINTH_KDE_3_MERGE branch:
3003         
3004         2002-03-20  Maciej Stachowiak  <mjs@apple.com>
3005
3006                 Merged accumlated changes from HEAD, up to
3007                 MERGED_TO_KDE_3_MERGE_BRANCH tag.
3008
3009         2002-03-19  Maciej Stachowiak  <mjs@apple.com>
3010         
3011                 * WebView.subproj/IFWebView.mm: (-[IFWebView layout]):
3012                 layout() no longer takes an argument.
3013         
3014 2002-03-20  John Sullivan  <sullivan@apple.com>
3015
3016         Added displayTitle field to IFURIEntry. This is intended to hold the string
3017         used in menu items, window titles, etc. Alexander uses this to cache the
3018         center-truncated title for pages with very long titles.
3019
3020         * History.subproj/IFURIEntry.h:
3021         * History.subproj/IFURIEntry.m: (-[IFURIEntry setDisplayTitle:]), (-[IFURIEntry
3022         dictionaryRepresentation]), (-[IFURIEntry initFromDictionaryRepresentation:]):
3023
3024 2002-03-19  Richard Williamson  <rjw@apple.com>
3025
3026         Fixed IFWebView leak.
3027         
3028         * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]):
3029
3030 2002-03-18  John Sullivan  <sullivan@apple.com>
3031
3032         Imposed age limit on history items saved to/loaded from disk.
3033         Sped up history loading by reversing list before processing entries.
3034
3035         * History.subproj/IFWebHistoryPrivate.m: 
3036         (+[IFWebHistoryPrivate initialize]): Register default for age limit.
3037         (-[IFWebHistoryPrivate _ageLimitDate]): New convenience method, returns a date older
3038         than any history entry that should be stored/loaded.
3039         (-[IFWebHistoryPrivate arrayRepresentation]): skip too-old dates.
3040         (-[IFWebHistoryPrivate _loadHistoryGuts:]), (-[IFWebHistoryPrivate _saveHistoryGuts:]): 
3041         Broke into separate methods to make timing wrapper less messy. Respect age limit.
3042         Report number of items saved/loaded in timing message.
3043         (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]):
3044         use broken-out _guts methods.
3045         * WebKit.pbproj/project.pbxproj: version wars
3046
3047 2002-03-16  Richard Williamson  <rjw@apple.com>
3048
3049         Fixed scroll bar flash.  Add provisional view to go along with
3050         provisional widget.
3051         
3052         * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
3053         (-[IFWebView dataSourceChanged:]):
3054
3055 2002-03-16  Richard Williamson  <rjw@apple.com>
3056
3057         Fixed error handling.  Fixed most frame loading problems.
3058         Cleaned up frame state machine.
3059         Moved IFMainURLHandleClient from WebCore.
3060         
3061         * Misc.subproj/IFError.m: (-[IFError description]):
3062         * WebKit.pbproj/project.pbxproj:
3063         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
3064         receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
3065         receivedError:forResource:partialProgress:fromDataSource:]),
3066         (-[IFBaseWebController locationChangeDone:forFrame:]):
3067         * WebView.subproj/IFBaseWebControllerPrivate.h:
3068         * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
3069         _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
3070         _mainReceivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
3071         _receivedError:forResource:partialProgress:fromDataSource:]),
3072         (-[IFBaseWebController
3073         _mainReceivedError:forResource:partialProgress:fromDataSource:]):
3074         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource startLoading:]),
3075         (-[IFWebDataSource isLoading]):
3076         * WebView.subproj/IFWebDataSourcePrivate.h:
3077         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate init]),
3078         (-[IFWebDataSourcePrivate dealloc]), (-[IFWebDataSource
3079         _setPrimaryLoadComplete:]), (-[IFWebDataSource _startLoading:]),
3080         (-[IFWebDataSource _stopLoading]):
3081         * WebView.subproj/IFWebFrame.h:
3082         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]),
3083         (-[IFWebFrame startLoading]), (-[IFWebFrame reload:]), (-[IFWebFrame errors]),
3084         (-[IFWebFrame mainDocumentError]):
3085         * WebView.subproj/IFWebFramePrivate.h:
3086         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]),
3087         (-[IFWebFrame _transitionProvisionalToCommitted]), (-[IFWebFrame _setState:]),
3088         (-[IFWebFrame _addError:forResource:]), (-[IFWebFrame _isLoadComplete]),
3089         (+[IFWebFrame _recursiveCheckCompleteFromFrame:]), (-[IFWebFrame
3090         _checkLoadCompleteResource:error:isMainDocument:]), (-[IFWebFrame
3091         _setMainDocumentError:]), (-[IFWebFrame _clearErrors]):
3092         * WebView.subproj/IFWebView.mm:
3093         * WebView.subproj/IFMainURLHandleClient.h: added
3094         * WebView.subproj/IFMainURLHandleClient.mm: added
3095
3096 2002-03-15  John Sullivan  <sullivan@apple.com>
3097
3098         Impose default-based limit (1000 by default) on number of history items
3099         saved/loaded. Also instrumented timing for saving/loading history.
3100
3101         * History.subproj/IFWebHistoryPrivate.m: 
3102         (+[IFWebHistoryPrivate initialize]): register default for WebKitHistoryItemLimit.
3103
3104         (-[IFWebHistoryPrivate arrayRepresentation]): respect limit
3105         (-[IFWebHistoryPrivate loadHistory]): respect limit, time the load.
3106         (-[IFWebHistoryPrivate saveHistory]): time the save.
3107
3108         * WebKit.pbproj/project.pbxproj: version wars
3109
3110 2002-03-15  John Sullivan  <sullivan@apple.com>
3111
3112         Fixed bug where history entry images weren't showing up, except by historical
3113         accident in some cases.
3114         Made IFWebHistory no longer be a singleton class; made the file location
3115         be passed in at init time.
3116
3117         * History.subproj/IFURIEntry.m: (-[IFURIEntry image]): Get the default image 
3118         a way that works with frameworks; only get the default image once.
3119
3120         * History.subproj/IFWebHistory.h:
3121         * History.subproj/IFWebHistory.m: 
3122         (+[IFWebHistory webHistoryWithFile:]): New convenience constructor that returns
3123         a new IFWebHistory object with a particular disk file.
3124         (-[IFWebHistory initWithFile:]): New init method for specifying a disk file.
3125         (-[IFWebHistory file]): New accessor for file path.
3126         (-[IFWebHistory loadHistory]),
3127         (-[IFWebHistory saveHistory]): Use file accessor.
3128         Also removed the methods that were computing a file path to use.
3129
3130         * History.subproj/IFWebHistoryPrivate.h:
3131         * History.subproj/IFWebHistoryPrivate.m: 
3132         (-[IFWebHistoryPrivate initWithFile:]),
3133         (-[IFWebHistoryPrivate dealloc]), (-[IFWebHistoryPrivate file]),
3134         (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]):
3135         Guts of implementation for file-manipulation stuff.
3136
3137         * Resources/url_icon.tiff: ran tiffUtil to premultiply the alpha channel. This
3138         was spewing error messages that I didn't notice before because they only
3139         happen on Puma and I was on Jaguar.
3140
3141         * WebKit.pbproj/project.pbxproj: not sure what change I made, maybe version wars.
3142
3143 2002-03-14  John Sullivan  <sullivan@apple.com>
3144
3145         Made history store its data in ~/Library/Application Support/<app name>/History.plist
3146
3147         * History.subproj/IFWebHistoryPrivate.m: 
3148         (GetRefPath), (FindFolderPath): Functions copied from NSSavePanel.m for using
3149         FindFolder in a POSIX sort of way. Ken plans to put some version of this in
3150         IFNSFileManagerExtensions eventually, which I'll switch to later.
3151         (-[IFWebHistoryPrivate historyFilePath]): Construct the path using FindFolderPath
3152         and the file name.
3153         (-[IFWebHistoryPrivate loadHistory]),
3154         (-[IFWebHistoryPrivate saveHistory]): failure case debug messages are now more specific.
3155
3156 2002-03-13  Richard Williamson  <rjw@apple.com>
3157
3158         Added support to stop plugins in removeFromSuperview.
3159         
3160         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
3161         * WebView.subproj/IFWebView.mm: (-[IFWebView dealloc]), (-[IFWebView
3162         removeFromSuperview]), (-[IFWebView removeFromSuperviewWithoutNeedingDisplay]):
3163
3164 2002-03-13  Richard Williamson  <rjw@apple.com>
3165
3166         Fixed open window w/ no open windows crasher.
3167         
3168         * ChangeLog:
3169         * WebView.subproj/IFBaseWebController.mm: (-[IFObjectHolder dealloc]):
3170         * WebView.subproj/IFWebView.mm: (-[IFWebView dealloc]), (-[IFWebView layout]):
3171
3172 2002-03-13  Richard Williamson  <rjw@apple.com>
3173
3174         * ChangeLog:
3175         * WebView.subproj/IFBaseWebController.mm: (-[IFObjectHolder dealloc]):
3176         * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
3177         dealloc]), (-[IFWebView provisionalDataSourceChanged:]), (-[IFWebView
3178         dataSourceChanged:]), (-[IFWebView layout]), (-[IFWebView isOpaque]),
3179         (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]), (-[IFWebView
3180         drawRect:]), (-[IFWebView setFrame:]), (-[IFWebView windowResized:]),
3181         (-[IFWebView mouseDragged:]):
3182
3183 2002-03-12  Richard Williamson  <rjw@apple.com>
3184
3185         * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
3186         provisionalDataSourceChanged:]), (-[IFWebView dataSourceChanged:]), (-[IFWebView
3187         layout]), (-[IFWebView isOpaque]), (-[IFWebView setNeedsDisplay:]), (-[IFWebView
3188         setNeedsLayout:]), (-[IFWebView drawRect:]), (-[IFWebView setFrame:]),
3189         (-[IFWebView windowResized:]), (-[IFWebView mouseDragged:]):
3190
3191 2002-03-12  John Sullivan  <sullivan@apple.com>
3192
3193         Added support for persistent history. Following in the grand footsteps of
3194         Ken, it currently stores data in /tmp/alexander.history
3195
3196         * Resources/url_icon.tiff: default IFURIEntry image, moved here from WebBrowser.
3197         * WebKit.pbproj/project.pbxproj: Updated to add image file.
3198
3199         * History.subproj/IFURIEntry.m: 
3200         (-[IFURIEntry image]):
3201         If there's no explicit image, return the default one.
3202
3203         (-[IFURIEntry dictionaryRepresentation]): return a representation suitable
3204         for saving to an xml file.
3205         (-[IFURIEntry initFromDictionaryRepresentation:]): init given the representation
3206         returned from dictionaryRepresentation.
3207
3208         * History.subproj/IFWebHistory.h:
3209         * History.subproj/IFWebHistory.m: (-[IFWebHistory saveHistory]):
3210         Added saveHistory call.
3211
3212         * History.subproj/IFWebHistoryPrivate.h: added saveHistory call.
3213
3214         * History.subproj/IFWebHistoryPrivate.m: 
3215         (-[IFWebHistoryPrivate arrayRepresentation]): return a representation suitable for
3216         saving to an xml file.
3217         (-[IFWebHistoryPrivate historyFilePath]): return location of history on disk.
3218         (-[IFWebHistoryPrivate loadHistory]): read history from disk.
3219         (-[IFWebHistoryPrivate saveHistory]): write history to disk.
3220
3221         (-[IFWebHistoryPrivate init]): call loadHistory
3222         (-[IFWebHistoryPrivate removeEntryForURLString:]): changed NSLog to WEBKITDEBUG
3223
3224 2002-03-11  Richard Williamson  <rjw@apple.com>
3225
3226         Fixed call back ordering problems when an error occurs.
3227         More twiddling with scroll bars.
3228         
3229         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
3230         createFrameNamed:for:inParent:]):
3231         * WebView.subproj/IFDynamicScrollBarsView.h:
3232         * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
3233         reflectScrolledClipView:]):
3234         * WebView.subproj/IFWebFrame.h:
3235         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]), (-[IFWebFrame
3236         reload:]), (-[IFWebFrame reset]), (-[IFWebFrame lastError]):
3237         * WebView.subproj/IFWebFramePrivate.h:
3238         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]),
3239         (-[IFWebFrame _checkLoadComplete:]), (-[IFWebFrame _setLastError:]):
3240
3241 2002-03-08  Richard Williamson  <rjw@apple.com>
3242
3243         Fixed scroll bar recursion problems.
3244 Took a long time to find a stupid typo bug in [IFBaseWebController _frameForDataSource:fromFrame:]
3245 that overwrote an input parameter that should been a local variable.  This caused a crash the
3246 second time a page that contained an iframe was loaded.
3247         
3248         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
3249         createFrameNamed:for:inParent:]), (-[IFBaseWebController
3250         _frameForDataSource:fromFrame:]):
3251         * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
3252         reflectScrolledClipView:]):
3253         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
3254         * WebView.subproj/IFWebView.mm: (-[IFWebView layout]):
3255         * WebView.subproj/IFWebViewPrivate.h:
3256         * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _setFrameScrollView:]),
3257         (-[IFWebView _frameScrollView]), (-[IFWebView _setupScrollers]):
3258
3259 2002-03-07  John Sullivan  <sullivan@apple.com>
3260
3261         * Misc.subproj/IFError.m: (-[IFError errorDescription]):
3262         Removed a line of debugging spam. Oops!
3263
3264 2002-03-07  Richard Williamson  <rjw@apple.com>
3265
3266         Fixed occasional scroll bar problem in iframes.
3267         Fixed occasional problem removing scroll bar on main page.
3268         
3269         * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
3270         reflectScrolledClipView:]):
3271         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
3272         * WebView.subproj/IFWebView.mm: (-[IFWebView drawRect:]):
3273
3274 2002-03-07  John Sullivan  <sullivan@apple.com>
3275
3276         First pass at adding error strings to IFError. They are
3277         properly localized, but they don't include any parameters,
3278         and the strings haven't been made user-friendly.
3279
3280         * Misc.subproj/IFError.m: 
3281         (+[IFError initialize]): New method, set up a dictionary
3282         mapping error code to localized error string.
3283         (-[IFError errorDescription]): Read string from dictionary.
3284
3285         * English.lproj/IFError.strings: New file, auto-generated
3286         by the genstrings tool.
3287
3288         * WebKit.pbproj/project.pbxproj: Removed stray -F /symroots.
3289         This shouldn't have been in there since symroots location is
3290         no longer hardwired.
3291
3292 2002-03-07  John Sullivan  <sullivan@apple.com>
3293
3294         Defined more symbolic debug-level constants; specified ranges for use by
3295         different software levels (core/kit/client==browser) to enable easier
3296         isolation of debug messages.
3297
3298         * Misc.subproj/WebKitDebug.h: #defined new debug levels for existing uses;
3299         renamed a couple.
3300
3301         * Misc.subproj/WebKitDebug.m: (WebKitLog), (WebKitDebug): Updated for
3302         renamed debug levels.
3303
3304         * WebView.subproj/IFBaseWebController.mm: 
3305         (-[IFBaseWebController receivedProgress:forResource:fromDataSource:]):
3306         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _stopLoading]):
3307         * WebView.subproj/IFWebView.mm: (-[IFWebView layout]), 
3308         (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]), (-[IFWebView drawRect:]),
3309         (-[IFWebView mouseDragged:]):
3310         * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _resetView]):
3311         Changed numeric debug levels to symbolic ones.
3312
3313         * WebKit.pbproj/project.pbxproj: Jaguar/Puma version war.
3314
3315 2002-03-06  Richard Williamson  <rjw@apple.com>
3316
3317         Lots of little changes to improve drawing, and dynamic scroll bar
3318         layout.  We now have NO flash between pages, however, I still need
3319         to add a transition timeout.  As currently implemented the page will not
3320         transition until the document is read.
3321         
3322         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
3323         locationChangeDone:forFrame:]):
3324         * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
3325         reflectScrolledClipView:]):
3326         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
3327         _transitionProvisionalToCommitted]), (-[IFWebFrame _checkLoadComplete:]):
3328         * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
3329         dataSourceChanged:]), (-[IFWebView layout]), (-[IFWebView isOpaque]),
3330         (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]), (-[IFWebView
3331         drawRect:]), (-[IFWebView setFrame:]):
3332         * WebView.subproj/IFWebViewPrivate.h:
3333         * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _stopPlugins]), (-[IFWebView
3334         _removeSubviews]):
3335
3336 2002-03-06  John Sullivan  <sullivan@apple.com>
3337
3338         * Misc.subproj/IFError.h: Removed stray but evil import.
3339
3340 2002-03-06  Maciej Stachowiak  <mjs@apple.com>
3341
3342         * WebKit.pbproj/project.pbxproj: Turn on -Werror.
3343
3344 2002-03-05  Richard Williamson  <rjw@apple.com>
3345
3346         Streamlined layout and drawing.  We now do the minimum amount of drawing and
3347         layout.
3348         
3349         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
3350         * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
3351         layout]), (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]),
3352         (-[IFWebView drawRect:]), (-[IFWebView setFrame:]), (-[IFWebView
3353         windowResized:]):
3354
3355 2002-03-05  John Sullivan  <sullivan@apple.com>
3356
3357         * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]):
3358         Tweak default font sizes so they match what algorithm used in Alexander
3359         returns.
3360
3361 2002-03-05  Richard Williamson  <rjw@apple.com>
3362
3363         Pass errors correctly to browser.
3364         Removed old notification code.
3365         Added support for IFError.
3366         Lots of little cleanups.
3367         Improved IFWebFrame state handling.
3368
3369         * Misc.subproj/IFError.h:
3370         * Misc.subproj/IFError.m: (IFErrorMake), (+[IFError load]), (-[IFError
3371         initWithErrorCode:]), (-[IFError errorCode]), (-[IFError errorDescription]):
3372         * WebKit.pbproj/project.pbxproj:
3373         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
3374         receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
3375         receivedError:forResource:partialProgress:fromDataSource:]):
3376         * WebView.subproj/IFBaseWebControllerPrivate.h:
3377         * WebView.subproj/IFBaseWebControllerPrivate.mm:
3378         * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource isLoading]):
3379         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
3380         _startLoading:initiatedByUserEvent:]):
3381         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame
3382         initWithName:view:provisionalDataSource:controller:]), (-[IFWebFrame
3383         setProvisionalDataSource:]):
3384         * WebView.subproj/IFWebFramePrivate.h:
3385         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
3386         _transitionProvisionalToCommitted]), (-[IFWebFrame _state]), (-[IFWebFrame
3387         _setState:]), (-[IFWebFrame _checkLoadComplete:]):
3388
3389 2002-03-05  John Sullivan  <sullivan@apple.com>
3390
3391         * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]):
3392         Changed default font sizes to match scheme used in Alexander. There are
3393         some serious wackinesses with KDE engine font size handling; if and when
3394         we address those we might revisit these default sizes.
3395
3396 2002-03-05  Maciej Stachowiak  <mjs@apple.com>
3397
3398         Removed references to IFAuthenticationHandler, since that protocol
3399         now lives in WebFoundation and it's no longer quite appropriate to
3400         include as part of a controller.
3401
3402         * WebView.subproj/IFBaseWebController.mm:
3403         * WebView.subproj/IFWebController.h:
3404
3405 2002-03-04  Richard Williamson  <rjw@apple.com>
3406
3407         Changes to support 'provisional' data sources.
3408         API changes to IFBaseWebController, removed redundant methods.
3409  
3410         * Misc.subproj/WebKitDebug.h:
3411         * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
3412         getURLNotify:target:notifyData:]):
3413         * WebView.subproj/IFBaseWebController.h:
3414         * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController init]),
3415         (-[IFBaseWebController initWithView:provisionalDataSource:]),
3416         (-[IFBaseWebController createFrameNamed:for:inParent:]), (-[IFBaseWebController
3417         receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
3418         receivedError:forResource:partialProgress:fromDataSource:]),
3419         (-[IFBaseWebController locationChangeCommittedForFrame:]), (-[IFBaseWebController
3420         _frameForDataSource:fromFrame:]), (-[IFBaseWebController mainFrame]):
3421         * WebView.subproj/IFBaseWebControllerPrivate.h:
3422         * WebView.subproj/IFBaseWebControllerPrivate.mm:
3423         * WebView.subproj/IFWebController.h:
3424         * WebView.subproj/IFWebDataSource.mm: (IFWebDataSourceMake), (+[IFWebDataSource
3425         load]):
3426         * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
3427         _startLoading:initiatedByUserEvent:]):
3428         * WebView.subproj/IFWebFrame.h:
3429         * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame init]), (-[IFWebFrame
3430         initWithName:view:provisionalDataSource:controller:]), (-[IFWebFrame
3431         setProvisionalDataSource:]), (-[IFWebFrame startLoading]), (-[IFWebFrame
3432         stopLoading]), (-[IFWebFrame reload:]):
3433         * WebView.subproj/IFWebFramePrivate.h:
3434         * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _setDataSource:]),
3435         (-[IFWebFrame _transitionProvisionalToCommitted]):
3436         * WebView.subproj/IFWebView.h: