Inspired and reviewed by Mark Rowe.
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2008-07-02  Alexey Proskuryakov  <ap@webkit.org>
2
3         Inspired and reviewed by Mark Rowe.
4
5         Change non-API includes from JavaScriptCore/ to kjs/ and wtf/ to match prevalent style.
6
7         * Carbon/HIViewAdapter.m:
8         * DOM/WebDOMOperations.mm:
9         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
10         * DefaultDelegates/WebDefaultPolicyDelegate.m:
11         * History/WebBackForwardList.mm:
12         * History/WebHistory.mm:
13         * History/WebHistoryItem.mm:
14         * History/WebHistoryItemInternal.h:
15         * Misc/WebCoreStatistics.mm:
16         * Misc/WebDownload.m:
17         * Misc/WebGraphicsExtras.c:
18         * Misc/WebKitLogging.h:
19         * Misc/WebKitSystemBits.m:
20         * Misc/WebLocalizableStrings.m:
21         * Misc/WebNSArrayExtras.m:
22         * Misc/WebNSDataExtras.m:
23         * Misc/WebNSDictionaryExtras.m:
24         * Misc/WebNSFileManagerExtras.m:
25         * Misc/WebNSPasteboardExtras.mm:
26         * Misc/WebNSURLExtras.mm:
27         * Misc/WebNSUserDefaultsExtras.m:
28         * Panels/WebAuthenticationPanel.m:
29         * Panels/WebPanelAuthenticationHandler.m:
30         * Plugins/WebBaseNetscapePluginView.mm:
31         * Plugins/WebBasePluginPackage.m:
32         * Plugins/WebNetscapePluginEmbeddedView.mm:
33         * Plugins/WebPluginContainerCheck.mm:
34         * Plugins/WebPluginController.mm:
35         * Plugins/WebPluginDatabase.mm:
36         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
37         * WebCoreSupport/WebKeyGenerator.m:
38         * WebCoreSupport/WebViewFactory.mm:
39         * WebKitPrefix.h:
40         * WebView/WebHTMLRepresentation.mm:
41         * WebView/WebPDFRepresentation.m:
42         * WebView/WebPDFView.mm:
43         * WebView/WebScriptDebugger.mm:
44
45 2008-07-01  Alexey Proskuryakov  <ap@webkit.org>
46
47         Reviewed by Darin.
48
49         Disable JSLock for per-thread contexts.
50
51         * Misc/WebCoreStatistics.mm:
52         (+[WebCoreStatistics javaScriptObjectsCount]):
53         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
54         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
55         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
56         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
57         (+[WebCoreStatistics shouldPrintExceptions]):
58         (+[WebCoreStatistics setShouldPrintExceptions:]):
59         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
60         * Plugins/WebBaseNetscapePluginView.mm:
61         (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]):
62         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
63         (-[WebBaseNetscapePluginView start]):
64         (-[WebBaseNetscapePluginView createPluginScriptableObject]):
65         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
66         (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
67         (-[WebBaseNetscapePluginView loadPluginRequest:]):
68         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
69         * Plugins/WebPluginController.mm:
70         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
71         (-[WebPluginController startAllPlugins]):
72         (-[WebPluginController stopAllPlugins]):
73         (-[WebPluginController addPlugin:]):
74         (-[WebPluginController destroyPlugin:]):
75         (-[WebPluginController destroyAllPlugins]):
76         * WebView/WebFrame.mm:
77         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
78         * WebView/WebScriptDebugDelegate.mm:
79         (-[WebScriptCallFrame evaluateWebScript:]):
80         * WebView/WebView.mm:
81         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
82         Pass a parameter (always false) to JSLock and JSLock::DropAllLocks to indicate that WebKit
83         doesn't need locking. In the future, it may be possible to remove some of these if we
84         establish that this won't make JSC assertions fail (and that we don't want to add such
85         assertions either).
86         Added includes that are now needed.
87
88 2008-07-01  Kevin McCullough  <kmccullough@apple.com>
89
90         Build fix.
91
92         * WebView/WebView.mm:
93
94 2008-07-01  Anders Carlsson  <andersca@apple.com>
95
96         Reviewed by Darin.
97
98         Use the PluginMainThreadScheduler, and implement NPN_PluginThreadAsyncCall.
99         
100         * Plugins/WebBaseNetscapePluginView.mm:
101         (-[WebBaseNetscapePluginView _createPlugin]):
102         Register the plug-in instance.
103         
104         (-[WebBaseNetscapePluginView _destroyPlugin]):
105         Unegister the plug-in instance.
106         
107         * Plugins/WebNetscapePluginPackage.m:
108         (-[WebNetscapePluginPackage load]):
109         Set NPN_PluginThreadAsyncCall.
110         
111         * Plugins/npapi.mm:
112         (NPN_PluginThreadAsyncCall):
113         Implement this.
114
115 2008-07-01  Dan Bernstein  <mitz@apple.com>
116
117         Reviewed by Darin Adler.
118
119         - WebKit part of moving the method to set the base writing direction from Frame to Editor
120
121         * WebView/WebHTMLView.mm:
122         (-[WebHTMLView toggleBaseWritingDirection:]): Changed back to call the
123         Editor method.
124         (-[WebHTMLView changeBaseWritingDirection:]): Ditto.
125         (-[WebHTMLView _changeBaseWritingDirectionTo:]): Ditto.
126
127 2008-07-01  Geoffrey Garen  <ggaren@apple.com>
128
129         Build fix: forgot to check in this file.
130
131         * WebView/WebScriptDebugger.mm:
132         (WebScriptDebugger::WebScriptDebugger):
133
134 2008-06-30  Dan Bernstein  <mitz@apple.com>
135
136         Reviewed by Adele Peterson.
137
138         - WebKit/mac part of <rdar://problem/3881497> Writing direction context menu item has no effect on text typed in Safari
139
140         * WebView/WebHTMLView.mm:
141         (-[WebHTMLView toggleBaseWritingDirection:]): Changed to call
142         WebCore::Frame::setSelectionBaseWritingDirection() instead of
143         WebCore::Editor::setBaseWritingDirection().
144         (-[WebHTMLView changeBaseWritingDirection:]): Ditto.
145         (-[WebHTMLView _changeBaseWritingDirectionTo:]): Ditto.
146
147 2008-06-28  Darin Adler  <darin@apple.com>
148
149         - fix build
150
151         * WebView/WebView.mm:
152         (aeDescFromJSValue): Use get instead of getItem, which no longer exists.
153
154 2008-06-26  Anders Carlsson  <andersca@apple.com>
155
156         Reviewed by Darin.
157
158         Add a new MainThreadObjectDeallocator which can schedule dealloc calls on the main thread
159         if necessary. Use this for the WebView class. 
160                 
161         * WebView/MainThreadObjectDeallocator.h: Added.
162         * WebView/MainThreadObjectDeallocator.mm: Added.
163         (deallocCallback):
164         (scheduleDeallocateOnMainThread):
165         * WebView/WebView.mm:
166         (-[WebViewPrivate dealloc]):
167         (+[WebView initialize]):
168
169 2008-06-25  Anders Carlsson  <andersca@apple.com>
170
171         Reviewed by Mark.
172
173         <rdar://problem/5984270> 
174         REGRESSION (Tiger only) : Mail crashes because message load is being processed on a secondary thread
175         
176         * WebView/WebView.mm:
177         (tigerMailReleaseIMP):
178         New method that makes sure that the final release happens on the main thread.
179         
180         (-[WebView release]):
181         New method that just calls [super release];
182         
183         (+[WebView initialize]):
184         When running under Tiger mail, replace the release method with tigerMailReleaseIMP.
185
186 2008-06-19  Alexey Proskuryakov  <ap@webkit.org>
187
188         Reviewed by Geoff.
189
190         Make Machine per-JSGlobalData.
191
192         * WebView/WebScriptDebugger.mm:
193         (WebScriptDebugger::WebScriptDebugger):
194
195 2008-06-17  Alexey Proskuryakov  <ap@webkit.org>
196
197         Reviewed by Darin.
198
199         Prepare JavaScript heap for being per-thread.
200
201         * Misc/WebCoreStatistics.mm:
202         (+[WebCoreStatistics javaScriptObjectsCount]):
203         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
204         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
205         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
206         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
207         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
208         Use JSGlobalData::threadInstance()->heap instead of static Collector calls.
209
210 2008-06-17  Darin Adler  <darin@apple.com>
211
212         Reviewed by Sam.
213
214         * WebView/WebHTMLView.mm:
215         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Use create instead of new
216         to create a CSSMutableStyleDeclaration.
217
218 2008-06-16  Mark Rowe  <mrowe@apple.com>
219
220         Reviewed by Darin Adler.
221
222         <rdar://problem/5951874> WebHTMLHighlighter mistakenly gained two new methods, causing compile warnings
223
224         _pauseNullEventsForAllNetscapePlugins and _resumeNullEventsForAllNetscapePlugins ended up being declared both in
225         WebHTMLViewInternal.h and as members of the WebHTMLHighlighter protocol in WebHTMLViewPrivate.h.  They don't belong
226         in the protocol, but they do need to be available outside of WebKit so they're being moved to the correct location
227         in WebHTMLViewPrivate.h and removed from WebHTMLViewInternal.h.
228
229         * WebView/WebHTMLView.mm:
230         (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]):
231         (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]):
232         * WebView/WebHTMLViewInternal.h:
233         * WebView/WebHTMLViewPrivate.h:
234
235 2008-06-15  Darin Adler  <darin@apple.com>
236
237         - give Frame object functions shorter names: scriptProxy() -> script(),
238           selectionController() -> selection(), animationController() -> animation()
239
240         * Plugins/WebPluginController.mm:
241         (-[WebPluginController webPlugInContainerSelectionColor]):
242         * WebView/WebFrame.mm:
243         (-[WebFrame _attachScriptDebugger]):
244         (-[WebFrame _hasSelection]):
245         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
246         (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
247         (-[WebFrame _convertToNSRange:]):
248         (-[WebFrame _convertToDOMRange:]):
249         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
250         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
251         (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
252         (-[WebFrame _selectedNSRange]):
253         (-[WebFrame _selectNSRange:]):
254         (-[WebFrame globalContext]):
255         * WebView/WebHTMLView.mm:
256         (-[WebHTMLView _selectedRange]):
257         (-[WebHTMLView _hasSelection]):
258         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
259         (-[WebHTMLView _hasInsertionPoint]):
260         (-[WebHTMLView _isEditable]):
261         (-[WebHTMLView _updateFocusedAndActiveState]):
262         (-[WebHTMLView readSelectionFromPasteboard:]):
263         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
264         (-[WebHTMLView maintainsInactiveSelection]):
265         (-[WebHTMLView paste:]):
266         (isTextInput):
267         (-[WebHTMLView inputContext]):
268         (-[WebTextCompleteController doCompletion]):
269         (-[WebHTMLView selectAll]):
270         (-[WebHTMLView deselectAll]):
271         (-[WebHTMLView selectedAttributedString]):
272         * WebView/WebView.mm:
273         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
274         (-[WebView setSelectedDOMRange:affinity:]):
275         (-[WebView selectedDOMRange]):
276         (-[WebView selectionAffinity]):
277
278 2008-06-15  Darin Adler  <darin@apple.com>
279
280         - rename KJS::List to KJS::ArgList
281
282         * WebView/WebScriptDebugger.h:
283
284 2008-06-15  Darin Adler  <darin@apple.com>
285
286         - new names for more JavaScriptCore files
287
288         * WebView/WebView.mm:
289
290 2008-06-15  Darin Adler  <darin@apple.com>
291
292         - new names for a few key JavaScriptCore files
293
294         * ForwardingHeaders/kjs/JSFunction.h: Copied from WebKit/mac/ForwardingHeaders/kjs/function.h.
295         * ForwardingHeaders/kjs/JSObject.h: Copied from WebKit/mac/ForwardingHeaders/kjs/object.h.
296         * ForwardingHeaders/kjs/JSString.h: Copied from WebKit/mac/ForwardingHeaders/kjs/internal.h.
297         * ForwardingHeaders/kjs/JSValue.h: Copied from WebKit/mac/ForwardingHeaders/kjs/value.h.
298         * ForwardingHeaders/kjs/function.h: Removed.
299         * ForwardingHeaders/kjs/internal.h: Removed.
300         * ForwardingHeaders/kjs/object.h: Removed.
301         * ForwardingHeaders/kjs/value.h: Removed.
302         * WebView/WebScriptDebugDelegate.mm:
303
304 2008-06-15  Darin Adler  <darin@apple.com>
305
306         Rubber stamped by Sam.
307
308         - use JS prefix and simpler names for basic JavaScriptCore types,
309           to complement JSValue and JSObject
310
311         * WebView/WebView.mm:
312         (aeDescFromJSValue):
313
314 2008-06-14  Darin Adler  <darin@apple.com>
315
316         Rubber stamped by Sam.
317
318         - new names for kjs_binding.h and kjs_proxy.h
319
320         * WebView/WebFrame.mm:
321         * WebView/WebScriptDebugDelegate.mm:
322         * WebView/WebView.mm:
323
324 2008-06-14  Darin Adler  <darin@apple.com>
325
326         Rubber stamped by Sam.
327
328         - renamed HTMLGenericFormElement to HTMLFormControlElement
329
330         * WebView/WebHTMLRepresentation.mm:
331         (-[WebHTMLRepresentation elementWithName:inForm:]):
332         (-[WebHTMLRepresentation controlsInForm:]):
333
334 2008-06-14  Darin Adler  <darin@apple.com>
335
336         Reviewed by Sam.
337
338         - more of https://bugs.webkit.org/show_bug.cgi?id=17257
339           start ref counts at 1 instead of 0 for speed
340
341         * WebCoreSupport/WebFrameLoaderClient.mm:
342         (WebFrameLoaderClient::createDocumentLoader): Use create instead of new.
343         (WebFrameLoaderClient::createFrame): Remove now-obsolete adoptRef that was balanced by
344         a ref call inside the Frame constructor. The lifetime rules for Frame are now the
345         conventional ones without a special case.
346
347         * WebView/WebDataSource.mm:
348         (-[WebDataSource _initWithDocumentLoader:]): Changed argument to be a PassRefPtr, since
349         this function takes ownership of the DocumentLoader.
350         (-[WebDataSource initWithRequest:]): Use create instead of new.
351         * WebView/WebDataSourceInternal.h: Changed _initWithDocumentLoader argument to be a
352         PassRefPtr and also cleaned up the header a bit.
353
354         * WebView/WebDocumentLoaderMac.h:
355         (WebDocumentLoaderMac::create): Added. Also made the constructor and a couple of virtual
356         functions private.
357
358         * WebView/WebFrame.mm:
359         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]): Use create instead
360         of new.
361
362 2008-06-14  Darin Adler  <darin@apple.com>
363
364         Reviewed by Sam.
365
366         - more work on https://bugs.webkit.org/show_bug.cgi?id=17257
367           start ref counts at 1 instead of 0 for speed
368
369         * WebView/WebFrame.mm:
370         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
371         * WebView/WebPDFView.mm:
372         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
373
374 2008-06-13  Darin Adler  <darin@apple.com>
375
376         Reviewed by John Sullivan.
377
378         - updated for addition of FormState argument to action policy functions
379         - added WebActionFormKey
380
381         * WebCoreSupport/WebFrameLoaderClient.h:
382         * WebCoreSupport/WebFrameLoaderClient.mm:
383         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
384         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
385         (WebFrameLoaderClient::actionDictionary):
386         * WebKit.exp:
387         * WebView/WebPolicyDelegate.mm:
388         * WebView/WebPolicyDelegatePrivate.h:
389
390 2008-06-12  John Sullivan  <sullivan@apple.com>
391
392         Reviewed by Dan and Darin
393
394         Clear up the confusion about _close (older private method) vs -close (newer public method).
395
396         * WebView/WebView.mm:
397         (-[WebView _isClosed]):
398         simplified style
399         (-[WebView _close]):
400         added a comment about how clients and subclasses should use -close instead
401         (-[WebView dealloc]):
402         call -close instead of _close, so subclasses that override the public method will have the intended behavior
403         (-[WebView close]):
404         added a comment
405         (-[WebView _windowWillClose:]):
406         call -close instead of _close, so subclasses that override the public method will have the intended behavior
407
408         * WebView/WebViewPrivate.h:
409         added a comment about how clients and subclasses should use -close instead
410
411 2008-06-07  Darin Adler  <darin@apple.com>
412
413         Reviewed by Mitz.
414
415         - work on https://bugs.webkit.org/show_bug.cgi?id=17257
416           start ref counts at 1 instead of 0 for speed
417
418         * History/WebHistoryItem.mm:
419         (-[WebHistoryItem init]):
420         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
421         (-[WebHistoryItem initWithURL:target:parent:title:]):
422         (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
423         * WebView/WebView.mm:
424         (+[WebView _decodeData:]):
425
426 2008-06-03  Oliver Hunt  <oliver@apple.com>
427
428         Reviewed by Tim.
429
430         Bug 12983: Web Inspector break on the debugger keyword
431         <https://bugs.webkit.org/show_bug.cgi?id=12983>
432
433         Add stubs to allow old webkit debugger interface to build.
434
435         * WebView/WebScriptDebugger.h:
436         * WebView/WebScriptDebugger.mm:
437
438 2008-06-03  Anders Carlsson  <andersca@apple.com>
439
440         Reviewed by Darin.
441
442         <rdar://problem/5980961>
443         
444         In 64-bit Web Kit, converting between float and double, can cause rounding errors which in turn causes
445         newBottom to be larger than oldBottom which is illegal.
446         
447         * WebView/WebHTMLView.mm:
448         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
449
450 2008-06-02  Anders Carlsson  <andersca@apple.com>
451
452         Reviewed by Mitz.
453
454         Speculative fix for <rdar://problem/5661112> 
455         CrashTracer: [USER] 49 crashes in DashboardClient at com.apple.WebCore: WebCore::RenderPart::setWidget + 62
456         
457         Defer loads while calling NPP_New. Some plug-ins start a run-loop inside NPP_New and finished loads could cause
458         layouts to be triggered.
459         
460         * Plugins/WebBaseNetscapePluginView.mm:
461         (-[WebBaseNetscapePluginView _createPlugin]):
462
463 2008-05-29  Justin Garcia  <justin.garcia@apple.com>
464
465         Reviewed by Darin.
466         
467         <rdar://problem/5949462> REGRESSION: Can't paste screen captures into Mail
468         
469         AppKit started putting PNG instead of PICT onto the pasteboard for screen 
470         captures.  Added support for PNG with kUTTypePNG.  Tiger doesn't support
471         setting and retrieving pasteboard types with UTIs, but we don't know of any
472         applications on Tiger that put only PNG on the pasteboard.
473
474         * WebView/WebHTMLView.mm:
475         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
476         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
477
478 2008-05-29  Anders Carlsson  <andersca@apple.com>
479
480         Reviewed by Brady.
481
482         <rdar://problem/5970312> 
483         icon file specified for stand alone web app causes crash if the icon can't be found
484         
485         Handle the case where iconData is null.
486         
487         * Misc/WebIconFetcher.mm:
488         (WebIconFetcherClient::finishedFetchingIcon):
489
490 2008-05-29  Anders Carlsson  <andersca@apple.com>
491
492         Reviewed by Mitz.
493
494         <rdar://problem/5971845>
495         https://bugs.webkit.org/show_bug.cgi?id=19313
496         Add version member to NPCocoaEvent
497
498         Initialize the version member to 0 for all events.
499         
500         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
501         (initializeEvent):
502         (WebNetscapePluginEventHandlerCocoa::drawRect):
503         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
504         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
505         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
506         (WebNetscapePluginEventHandlerCocoa::windowFocusChanged):
507         (WebNetscapePluginEventHandlerCocoa::focusChanged):
508
509 2008-05-29  Dan Bernstein  <mitz@apple.com>
510
511         Reviewed by Jessica Kahn.
512
513         - fix <rdar://problem/5965013> Page 2 does not print correctly
514
515         When printing, _recursiveDisplayRectIfNeededIgnoringOpacity:... and
516         _recursiveDisplayAllDirtyWithLockFocus:... can be invoked without
517         -viewWillDraw being sent first, which could lead to painting without
518         valid layout. The fix is to ensure up-to-date layout in those methods
519         when printing.
520
521         * WebView/WebHTMLView.mm:
522         (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
523         (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
524
525 2008-05-28  Anders Carlsson  <andersca@apple.com>
526
527         Reviewed by Jon.
528
529         Remove workaround, this is no longer a problem.
530         
531         * WebView/WebView.mm:
532         (-[WebView _removeObjectForIdentifier:]):
533
534 2008-05-27  Geoffrey Garen  <ggaren@apple.com>
535
536         Reviewed by Tim Hatcher.
537         
538         Fixed https://bugs.webkit.org/show_bug.cgi?id=19183
539         REGRESSION (r33979): Crash in DebuggerCallFrame::functionName when
540         clicking button in returnEvent-crash.html
541         
542         Added implementations for willExecuteProgram and didExecuteProgram, which
543         take care of making sure we're not hanging on to stale data.
544
545 2008-05-27  Timothy Hatcher  <timothy@apple.com>
546
547         Fixes a bug where unplugging the monitor from a video card and
548         moving it to another video card would no longer show OpenGL plugins
549         until you relaunched Safari.
550
551         <rdar://problem/5790983> Add AllowOfflineDisplays pixel format
552         attribute to OpenGL contexts
553
554         Reviewed by Kevin Decker.
555
556         * Plugins/WebBaseNetscapePluginView.mm:
557         (-[WebBaseNetscapePluginView _createWindowedAGLContext]): Added
558         AGL_ALLOW_OFFLINE_RENDERERS for non-Tiger builds.
559         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]): Ditto.
560
561 2008-05-25  Mark Rowe  <mrowe@apple.com>
562
563         Reviewed by Darin Adler.
564
565         <rdar://problem/5840884> _recursive_resumeNullEventsForAllNetscapePlugins and _pauseNullEvents not defined
566
567         Follow-up for r33052.  _recursive_resumeNullEventsForAllNetscapePlugins and _recursive_pauseNullEventsForAllNetscapePlugins
568         need to be declared in WebFramePrivate.h rather than WebFrameInternal.h so they can be used from outside of WebKit.
569
570         * WebView/WebFrame.mm:
571         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
572         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
573         * WebView/WebFrameInternal.h:
574         * WebView/WebFramePrivate.h:
575
576 2008-05-23  Timothy Hatcher  <timothy@apple.com>
577
578         Fix attaching and detaching the Web Inspector. This change removes
579         the clunky animation that never looked right and was causing issues
580         where the inspected WebView would get into a no useable state.
581
582         <rdar://problem/5958812> Attaching and Detaching the Web Inspector
583         can cause the inspected WebVIew to be unusable
584
585         Reviewed by Adam Roben.
586
587         * WebCoreSupport/WebInspectorClient.mm:
588         (-[WebInspectorWindowController close]): Removes animation code.
589         Sets the frame directly and does a displayIfNeeded to prevent
590         showing the Inspector in the page and in the Inspector window.
591         (-[WebInspectorWindowController showWindow:]): Removes animation code.
592         Sets the frame directly.
593         (-[WebInspectorWindowController attach]): Simplified.
594         (-[WebInspectorWindowController detach]): Ditto.
595
596 2008-05-22  Dan Bernstein  <mitz@apple.com>
597
598         Reviewed by Darin Adler.
599
600         - fix broken documentation of
601           webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:
602
603         * WebView/WebUIDelegate.h: Fixed method name in HeaderDoc for
604         -webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:
605
606 2008-05-22  Timothy Hatcher  <timothy@apple.com>
607
608         <rdar://problem/5956403> Update the Develop menu to match the new Inspector items
609
610         Reviewed by Adam Roben.
611
612         * WebCoreSupport/WebInspectorClient.mm:
613         (-[WebInspectorWindowController showWebInspector:]):
614         (-[WebInspectorWindowController showErrorConsole:]):
615         (-[WebInspectorWindowController toggleDebuggingJavaScript:]):
616         (-[WebInspectorWindowController toggleProfilingJavaScript:]):
617         (-[WebInspectorWindowController validateUserInterfaceItem:]):
618         * WebInspector/WebInspector.h:
619         * WebInspector/WebInspector.mm:
620         (-[WebInspector showConsole:]):
621         (-[WebInspector showTimeline:]):
622         (-[WebInspector isDebuggingJavaScript]):
623         (-[WebInspector toggleDebuggingJavaScript:]):
624         (-[WebInspector startDebuggingJavaScript:]):
625         (-[WebInspector stopDebuggingJavaScript:]):
626         (-[WebInspector isProfilingJavaScript]):
627         (-[WebInspector toggleProfilingJavaScript:]):
628         (-[WebInspector startProfilingJavaScript:]):
629         (-[WebInspector stopProfilingJavaScript:]):
630
631 2008-05-22  Josh Aas  <joshmoz@gmail.com>
632
633         Reviewed by Anders.
634
635         <rdar://problem/5956429> 
636         https://bugs.webkit.org/show_bug.cgi?id=19192
637         remove NPNVpluginEventModel, fix example plugin
638         
639         * Plugins/WebBaseNetscapePluginView.mm:
640         (-[WebBaseNetscapePluginView getVariable:value:]):
641
642 2008-05-21  Anders Carlsson  <andersca@apple.com>
643
644         Reviewed by Maciej.
645
646         Add WebIconFetcher.
647         
648         * Misc/WebIconFetcher.h: Added.
649         * Misc/WebIconFetcher.mm: Added.
650         (WebIconFetcherClient::WebIconFetcherClient):
651         (WebIconFetcherClient::finishedFetchingIcon):
652         (WebIconFetcherClient::setFetcher):
653         (-[WebIconFetcher init]):
654         (-[WebIconFetcher dealloc]):
655         (-[WebIconFetcher finalize]):
656         (-[WebIconFetcher cancel]):
657         (-[WebIconFetcher _initWithIconFetcher:client:]):
658         (+[WebIconFetcher _fetchApplicationIconForFrame:target:selector:]):
659         * Misc/WebIconFetcherInternal.h: Added.
660         * WebView/WebFrame.mm:
661         (-[WebFrame fetchApplicationIcon:selector:]):
662         * WebView/WebFramePrivate.h:
663
664 === End merge of squirrelfish ===
665
666 2008-05-21  Geoffrey Garen  <ggaren@apple.com>
667
668         Reviewed by Tim Hatcher.
669         
670         Updated for API changes from merging with trunk WebCore's new debugger.
671
672         * WebView/WebScriptDebugDelegate.mm:
673         (-[WebScriptCallFrame evaluateWebScript:]): Explicitly check for an
674         exception return, since the DebuggerCallFrame no longer automatically
675         substitutes the exception for the return value.
676
677         * WebView/WebScriptDebugger.mm: Use the dynamic global object, not the
678         lexical global object, since the debugger attaches based on dynamic
679         global object.
680
681 2008-05-17  Geoffrey Garen  <ggaren@apple.com>
682
683         Reviewed by Oliver Hunt.
684         
685         Re-enabled previously disabled debugging functionality.
686         
687         There are two major changes from how the WebKit debugger used to work:
688         
689         (1) All the interesting bits are implemented down in JavaScriptCore. The
690         debugger just calls through to KJS::DebuggerCallFrame for everything.
691         
692         (2) Instead of copyihng a pointer to an ExecState once, the debugger
693         copies the DebuggerCallFrame passed to it in each callback. This is
694         because the VM no longer maintains a fully transparent execution state
695         to which you can hold a pointer, and the DebuggerCallFrames it vends
696         are temporaries.
697         
698         Also, we NULL out a WebScriptCallFrame's DebuggerCallFrame upon return
699         from its function. This is safer than the old method, which was to
700         hold a stale ExecState* and hope for the best.
701
702 2008-05-13  Geoffrey Garen  <ggaren@apple.com>
703
704         Reviewed by Oliver Hunt.
705
706         Updated for API changes in KJS::Debugger.
707
708         * WebView/WebFrame.mm:
709         (-[WebFrame _attachScriptDebugger]): Changed the order of operations to
710         fix an ASSERT that can happen when re-entering _attachScriptDebugger.
711
712 2008-05-13  Geoffrey Garen  <ggaren@apple.com>
713
714         Reviewed by Oliver Hunt.
715         
716         Updated WebScriptDebugger API to accept a SourceProvider instead
717         of a WebCore::String, to avoid copying.
718
719         (WebScriptDebugger::sourceParsed): Updated this function not to return
720         a value.
721
722 2008-04-30  Geoffrey Garen  <ggaren@apple.com>
723
724         Build fix: #ifdef'd out some code that doesn't work anymore.
725
726 2008-04-30  Geoffrey Garen  <ggaren@apple.com>
727
728         Reviewed by Oliver Hunt.
729         
730         #ifdef'd out some debugger code that doesn't work anymore.
731
732         * WebView/WebScriptDebugDelegate.mm:
733         (-[WebScriptCallFrame scopeChain]):
734
735 2008-04-21  Geoffrey Garen  <ggaren@apple.com>
736
737         Build fix.
738
739         * ChangeLog:
740         * WebView/WebScriptDebugDelegate.mm:
741         (-[WebScriptCallFrame scopeChain]):
742
743 2008-03-30  Geoffrey Garen  <ggaren@apple.com>
744
745         Reviewed by Oliver Hunt.
746         
747         Build fix.
748
749 === Start merge of squirrelfish ===
750
751 2008-05-21  Darin Adler  <darin@apple.com>
752
753         - fix build
754
755         * WebView/WebViewPrivate.h: Remove declaration of closeWithFastTeardown. We can add it back later
756         if we want, but if we do, we should probably make some refinements like checking _private->closed
757         and applicationIsTerminating.
758
759 2008-05-21  Darin Adler  <darin@apple.com>
760
761         Reviewed by Anders and Kevin Decker.
762
763         - fix <rdar://problem/5951130> REGRESSION: crash on quit after reopening windows from previous session
764
765         * WebView/WebView.mm:
766         (-[WebViewPrivate dealloc]): Fix assertions to not complain when fast teardown is used.
767         (-[WebView _closePluginDatabases]): Factored out some common code from both versions of close.
768         (-[WebView _closeWithFastTeardown]): Added an underscore to this method's name, since it's internal.
769         Streamlined the code a bit. Added a line of code to set _private->closed (this is the bug fix).
770         (-[WebView _close]): Changed for new method name and to use _closePluginDatabases.
771
772 2008-05-19  Stephanie Lewis  <slewis@apple.com>
773
774         Reviewed by Darin.
775     
776         more fast teardown performance work
777
778         * Misc/WebDownload.m:
779         (-[WebDownloadInternal downloadDidBegin:]):
780         (-[WebDownloadInternal downloadDidFinish:]):
781         (-[WebDownloadInternal download:didFailWithError:]):
782         * WebCoreSupport/WebChromeClient.h:
783         * WebCoreSupport/WebChromeClient.mm:
784         (WebChromeClient::disableSuddenTermination):
785         (WebChromeClient::enableSuddenTermination):
786
787 2008-05-18  Dan Bernstein  <mitz@apple.com>
788
789         Reviewed by Sam Weinig.
790
791         - fix <rdar://problem/5944596> IDNs are displayed as punycode in the authentication panel
792
793         * Panels/WebAuthenticationPanel.m:
794         (-[WebAuthenticationPanel setUpForChallenge:]):
795
796 2008-05-16  Timothy Hatcher  <timothy@apple.com>
797
798         Removes WebScriptDebugServer files and related calls. This removes
799         the hooks that Drosera uses for debugging. Now that the Web Inspector
800         has a better debugger, we don't need these anymore.
801
802         Reviewed by Sam Weinig.
803
804         * DefaultDelegates/WebScriptDebugServer.h: Removed.
805         * DefaultDelegates/WebScriptDebugServer.m: Removed.
806         * DefaultDelegates/WebScriptDebugServerPrivate.h: Removed.
807         * WebCoreSupport/WebFrameLoaderClient.mm:
808         * WebKit.exp:
809         * WebView/WebScriptDebugDelegate.mm:
810         * WebView/WebScriptDebugger.mm:
811         (WebScriptDebugger::sourceParsed):
812         (WebScriptDebugger::callEvent):
813         (WebScriptDebugger::atStatement):
814         (WebScriptDebugger::returnEvent):
815         (WebScriptDebugger::exception):
816         * WebView/WebView.mm:
817         (-[WebView _commonInitializationWithFrameName:groupName:]):
818         * WebView/WebViewPrivate.h:
819
820 2008-05-16  Brady Eidson  <beidson@apple.com>
821
822         Reviewed by Anders
823
824         <rdar://problem/5942616> - Need to standardize LocalStorage persistence path
825
826         Took the opportunity to touch up another pref that needs the same standardization.
827         That pref is currently not in use on Mac.
828
829         * WebView/WebPreferences.m:
830         (-[WebPreferences _setFTPDirectoryTemplatePath:]):
831         (-[WebPreferences _localStorageDatabasePath]):
832         (-[WebPreferences _setLocalStorageDatabasePath:]):
833         (-[WebPreferences _ftpDirectoryTemplatePath]):
834
835 2008-05-16  Chris Fleizach  <cfleizach@apple.com>
836
837         Reviewed by Alice Liu
838
839         <rdar://problem/5710317> REGRESSION:Selecting ranges of text should be possible using the keyboard (15310)
840
841         * WebView/WebFrame.mm:
842         (-[WebFrame _accessibilityTree]):
843
844 2008-05-15  Stephanie Lewis  <slewis@apple.com>
845         
846         fix mac build
847
848         * WebView/WebView.mm:
849         (-[WebView closeWithFastTeardown]):
850
851 2008-05-15  Stephanie Lewis  <slewis@apple.com>
852
853         Reviewed by Anders.
854
855         Turn on fast teardown.  I added a preference for using full teardown because 
856         the LEAKS output will be useless without a full teardown.  
857
858         preference for fullteardown
859         * WebView/WebPreferenceKeysPrivate.h:
860         * WebView/WebPreferences.m:
861         (-[WebPreferences setFullDocumentTeardownEnabled:]):
862         (-[WebPreferences fullDocumentTeardownEnabled]):
863         * WebView/WebPreferencesPrivate.h:
864         
865         on application quit dispatch unload events and destroy plugins then exit
866         * WebView/WebView.mm:
867         (-[WebView closeWithFastTeardown]):
868         (-[WebView _close]):
869         * WebView/WebViewPrivate.h:
870
871 2008-05-15  Stephanie Lewis  <slewis@apple.com>
872
873         Reviewed by Anders.
874
875         get the pending frame unload count from WebCore
876
877         * WebView/WebFrame.mm:
878         (-[WebFrame _pendingFrameUnloadEventCount]):
879         * WebView/WebFramePrivate.h:
880
881 2008-05-15  John Sullivan  <sullivan@apple.com>
882
883         Reviewed by Kevin Decker
884         
885         - fixed <rdar://problem/5940275> Inspector highlighting moves to bottom-left corner of 
886           screen when new tab appears
887           
888         The highlight should go away entirely, but this simple patch just makes it not jump away.
889         The issue with it not going away entirely is harder to fix and covered by <rdar://problem/5322306>
890
891         * WebInspector/WebNodeHighlight.m:
892         (-[WebNodeHighlight _repositionHighlightWindow]):
893         Bail out if target view isn't in a window
894
895 2008-05-15  Stephanie Lewis  <slewis@apple.com>
896
897         Reviewed by Anders.
898
899         Track views that contain plugin instances so that they can be destroyed at application
900         quit without walking the entire document tree.
901
902         Add/Remove Netscape plugin views from instance list.  Start/stop are when netscape
903         plugins are created and destroyed
904         * Plugins/WebBaseNetscapePluginView.mm:
905         (-[WebBaseNetscapePluginView start]):
906         (-[WebBaseNetscapePluginView stop]):
907  
908         Add/remove WebKit plugin views from instance list
909         * Plugins/WebPluginController.mm:
910         (-[WebPluginController addPlugin:]):
911         (-[WebPluginController destroyPlugin:]):
912         (-[WebPluginController destroyAllPlugins]):
913
914         Add a set of views with plugin instances to the WebPluginDatabase
915         * Plugins/WebPluginDatabase.h:
916         * Plugins/WebPluginDatabase.mm:
917         (-[WebPluginDatabase init]):
918         (-[WebPluginDatabase dealloc]):
919         (-[WebPluginDatabase addPluginInstanceView:]):
920         (-[WebPluginDatabase removePluginInstanceView:]):
921         (-[WebPluginDatabase removePluginInstanceViewsFor:]):
922         (-[WebPluginDatabase destroyAllPluginInstanceViews]):
923         
924         Handle cases where plugin views are detached before the plugin is destroyed.
925         * WebCoreSupport/WebFrameLoaderClient.mm:
926         (WebFrameLoaderClient::detachedFromParent2):
927         (WebFrameLoaderClient::transitionToCommittedFromCachedPage):
928         (WebFrameLoaderClient::transitionToCommittedForNewPage):
929
930         Add plugin instances to the set in the WebPluginDatabase by way of the WebView
931         * WebView/WebHTMLView.mm:
932         (-[WebHTMLView _destroyAllWebPlugins]):
933         * WebView/WebHTMLViewInternal.h:
934         * WebView/WebView.mm:
935         (-[WebView addPluginInstanceView:]):
936         (-[WebView removePluginInstanceView:]):
937         (-[WebView removePluginInstanceViewsFor:]):
938         * WebView/WebViewInternal.h:
939
940 2008-05-15  Brady Eidson  <beidson@apple.com>
941
942         Reviewed by Tim Hatcher
943
944         Until the settings/preferences equation can be reworked, we'll need to manually set the local storage path
945         before setting the page group of the new page.
946         
947         * WebView/WebView.mm:
948         (-[WebView _commonInitializationWithFrameName:groupName:]): Set the LocalStorage path 
949           immediately after creating the page so it is in place for initializing the LocalStorageThread
950
951 2008-05-15  Timothy Hatcher  <timothy@apple.com>
952
953         Fixes the bug where the Web Inspector would flash white while resizing.
954         This was cause by deferring the window creation.
955
956         <rdar://problem/5873549> REGRESSION: Inspector flickers horribly while resizing (17979)
957
958         Reviewed by Darin Adler.
959
960         * WebCoreSupport/WebInspectorClient.mm:
961         (-[WebInspectorWindowController window]): Don't defer the window creation.
962
963 2008-05-15  Alexey Proskuryakov  <ap@webkit.org>
964
965         Tiger build fix.
966
967         * Misc/WebNSAttributedStringExtras.mm: Import WebTypesInternal.h for NSUInteger.
968
969 2008-05-15  Adele Peterson  <adele@apple.com>
970
971         Reviewed and landed by Alexey.
972
973         Use TextIterator in +[NSAttributedString _web_attributedStringFromRange:].
974
975         * Misc/WebNSAttributedStringExtras.mm:
976         (+[NSAttributedString _web_attributedStringFromRange:]):
977
978 2008-05-14  Eric Seidel  <eric@webkit.org>
979
980         Reviewed by Oliver.
981
982         Add missing NULL check to match rest of file, this was found by the editing fuzzer.
983
984         * WebView/WebResource.mm:
985         (-[WebResource data]):
986
987 2008-05-14  Alexey Proskuryakov  <ap@webkit.org>
988
989         Reviewed by Dan Bernstein.
990
991         NPP_ValidAttributesForMarkedText should return NSArray*, not NSArray.
992
993         * Plugins/nptextinput.h:
994
995 2008-05-13  Anders Carlsson  <andersca@apple.com>
996
997         Reviewed by Sam.
998
999         Don't empty the application cache in _setCacheModel, since it will be called during initialization.
1000         Instead, do it in [WebCache empty].
1001         
1002         * Misc/WebCache.mm:
1003         (+[WebCache empty]):
1004         * WebView/WebView.mm:
1005         (+[WebView _setCacheModel:]):
1006
1007 2008-05-13  chris fleizach  <cfleizach@apple.com>
1008
1009         Reviewed by Beth Dakin
1010
1011         <rdar://problem/4780592> WebKit application has its window announced as HTML content
1012
1013         * WebCoreSupport/WebViewFactory.mm:
1014         (-[WebViewFactory AXWebAreaText]):
1015
1016 2008-05-13  Timothy Hatcher  <timothy@apple.com>
1017
1018         Fixes a crash seen in Xcode where CallUIDelegateReturningBoolean
1019         was referencing a nil WebView under validateUserInterfaceItem.
1020         The validateUserInterfaceItem methods was being called at a time
1021         when the WebHTMLView is being torndown.
1022
1023         <rdar://problem/5806229> A crash occurs at CallUIDelegateReturningBoolean()
1024         while mousing down on menu bar after Xcode News window is opened
1025
1026         Reviewed by Ada Chan.
1027
1028         * WebView/WebHTMLView.mm:
1029         (-[WebHTMLView validateUserInterfaceItem:]): NULL check the WebView and
1030         return NO when it is nil. Adds a comment.
1031         * WebView/WebPDFView.mm:
1032         (-[WebPDFView validateUserInterfaceItem:]): Ditto.
1033
1034 2008-05-13  Mark Rowe  <mrowe@apple.com>
1035
1036         Reviewed by John Sullivan.
1037
1038         <rdar://problem/5926425> HIWebViewCreateWithClass declared as API in HIWebView.h but never exported from WebKit.framework
1039
1040         * Carbon/HIWebView.h: Remove HIWebViewCreateWithClass.
1041         * Carbon/HIWebView.m: Ditto.
1042         (HIWebViewCreate):
1043         (HIWebViewConstructor):
1044
1045 2008-05-12  Dan Bernstein  <mitz@apple.com>
1046
1047         Reviewed by Ada Chan.
1048
1049         - WebKit/mac changes for https://bugs.webkit.org/show_bug.cgi?id=17097
1050           <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
1051
1052         Added font cache statistics and a function to purge inactive font data.
1053
1054         * Misc/WebCoreStatistics.h:
1055         * Misc/WebCoreStatistics.mm:
1056         (+[WebCoreStatistics cachedFontDataCount]):
1057         (+[WebCoreStatistics cachedFontDataInactiveCount]):
1058         (+[WebCoreStatistics purgeInactiveFontData]):
1059         (+[WebCoreStatistics glyphPageCount]):
1060
1061 2008-05-12  Mark Rowe  <mrowe@apple.com>
1062
1063         Reviewed by Tim Hatcher.
1064
1065         Decorate some deprecated delegate methods with the availability macros.
1066
1067         The compiler doesn't appear to warn if a delegate implements these methods, but using the availability
1068         macros is good for consistency and documentation.
1069
1070         * WebView/WebFrameLoadDelegate.h:
1071         * WebView/WebUIDelegate.h:
1072
1073 2008-05-12  Mark Rowe  <mrowe@apple.com>
1074
1075         Reviewed by Tim Hatcher.
1076
1077         <rdar://problem/5835604> Deprecate HIWebView
1078
1079         Use of HIWebView is deprecated in favor of embedding a WebView in a HICocoaView.
1080
1081         * Carbon/CarbonUtils.h: Include the availability macro header and decorate the functions appropriately.
1082         * Carbon/HIWebView.h: Ditto.
1083
1084 2008-05-12  Kevin Decker  <kdecker@apple.com>
1085
1086         Reviewed by Anders.
1087
1088         Fixed: <rdar://problem/5840884>_recursive_resumeNullEventsForAllNetscapePlugins and _pauseNullEvents not defined
1089         
1090         Re-added these SPI methods because they are needed by some clients. They were accidentally removed
1091         in changeset <http://trac.webkit.org/changeset/31028>
1092         
1093         * Plugins/WebBaseNetscapePluginView.h: Added stopTimers, restartTimers to the header.
1094         * WebView/WebFrame.mm:
1095         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]): Re-addd.
1096         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]): Ditto.
1097         * WebView/WebFrameInternal.h: Ditto.
1098         * WebView/WebHTMLView.mm: Ditto.
1099         (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]): Ditto.
1100         (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]): Ditto.
1101         * WebView/WebHTMLViewInternal.h: Ditto.
1102         * WebView/WebHTMLViewPrivate.h: Ditto.
1103
1104 2008-05-12  Anders Carlsson  <andersca@apple.com>
1105
1106         Reviewed by Alexey.
1107
1108         Empty the application cache when changing the cache model.
1109         
1110         * WebView/WebView.mm:
1111         (+[WebView _setCacheModel:]):
1112
1113 2008-05-12  Anders Carlsson  <andersca@apple.com>
1114
1115         Reviewed by Oliver.
1116
1117         <rdar://problem/5774495> Make Unicode text input possible in Netscape-style plug-ins
1118         
1119         * Plugins/WebBaseNetscapePluginView.h:
1120         * Plugins/WebBaseNetscapePluginView.mm:
1121         (-[WebBaseNetscapePluginView start]):
1122         Get the plug-in text input vtable pointer.
1123         
1124         (-[WebBaseNetscapePluginView stop]):
1125         Set the plug-in text input vtable pointer to 0.
1126         
1127         (-[WebBaseNetscapePluginView inputContext]):
1128         Return 0 for Carbon plug-ins since we don't want Cocoa to handle text input for them.
1129         
1130         (-[WebBaseNetscapePluginView hasMarkedText]):        
1131         (-[WebBaseNetscapePluginView insertText:]):
1132         (-[WebBaseNetscapePluginView markedRange]):
1133         (-[WebBaseNetscapePluginView selectedRange]):
1134         (-[WebBaseNetscapePluginView setMarkedText:selectedRange:]):
1135         (-[WebBaseNetscapePluginView unmarkText]):
1136         (-[WebBaseNetscapePluginView validAttributesForMarkedText]):
1137         (-[WebBaseNetscapePluginView attributedSubstringFromRange:]):
1138         (-[WebBaseNetscapePluginView characterIndexForPoint:]):
1139         (-[WebBaseNetscapePluginView doCommandBySelector:]):
1140         (-[WebBaseNetscapePluginView firstRectForCharacterRange:]):
1141         (-[WebBaseNetscapePluginView conversationIdentifier]):
1142         Implement NSTextInput and call into the plug-in text input vtable.
1143         
1144         (browserTextInputFuncs):
1145         New method which returns the browser input vtable.
1146         
1147         (-[WebBaseNetscapePluginView getVariable:value:]):
1148         Support getting the browser input vtable pointer.
1149         
1150         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
1151         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1152         (WebNetscapePluginEventHandlerCocoa::keyDown):
1153         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1154         If the plug-in returns 0 when a NPCocoaEventKeyDown is passed to NPP_HandleEvent,
1155         it means that the event should be passed on to the input manager.
1156          
1157         * Plugins/npapi.mm:
1158         (NPN_MarkedTextAbandoned):
1159         (NPN_MarkedTextSelectionChanged):
1160         Add implementations of browser input method methods.
1161         
1162         * Plugins/nptextinput.h: Added.
1163         Add file with new text input API.
1164
1165 2008-05-12  Alexey Proskuryakov  <ap@webkit.org>
1166
1167         Roll out recent  threading changes (r32807, r32810, r32819, r32822) to simplify
1168         SquirrelFish merging.
1169
1170         * Misc/WebCoreStatistics.mm:
1171         (+[WebCoreStatistics javaScriptObjectsCount]):
1172         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1173         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
1174         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1175         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1176         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
1177         * WebView/WebScriptDebugDelegate.mm:
1178         (-[WebScriptCallFrame evaluateWebScript:]):
1179
1180 2008-05-07  Anders Carlsson  <andersca@apple.com>
1181
1182         Reviewed by Mitz.
1183
1184         REGRESSION (3.1.1-TOT): Arrow keys are sticky in Google Maps street view
1185         https://bugs.webkit.org/show_bug.cgi?id=18880
1186         <rdar://problem/5909513>
1187
1188         Stop suspending key up events before calling handleEvent.
1189         
1190         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1191         (WebNetscapePluginEventHandlerCarbon::sendEvent):
1192
1193 2008-05-06  Stephanie Lewis  <slewis@apple.com>
1194
1195         Reviewed by Andersca.
1196
1197         prepare for plugin fast teardown work - make WebPluginDatabase a objective C++ file.
1198
1199         * Plugins/WebPluginDatabase.m: Removed.
1200         * Plugins/WebPluginDatabase.mm: Copied from WebKit/mac/Plugins/WebPluginDatabase.m.
1201         * Plugins/npapi.m: Removed.
1202         * Plugins/npapi.mm: Copied from WebKit/mac/Plugins/npapi.m.
1203
1204 2008-05-06  Anders Carlsson  <andersca@apple.com>
1205
1206         Reviewed by Darin.
1207
1208         Initialize numArchs to 0.
1209         
1210         * Plugins/WebBasePluginPackage.m:
1211         (-[WebBasePluginPackage isNativeLibraryData:]):
1212
1213 2008-05-06  Anders Carlsson  <andersca@apple.com>
1214
1215         Reviewed by Darin.
1216
1217         Add implementation of NPN_PopUpContextMenu.
1218         
1219         * Plugins/WebBaseNetscapePluginView.mm:
1220         (-[WebBaseNetscapePluginView popUpContextMenu:]):
1221         * Plugins/WebBaseNetscapePluginViewPrivate.h:
1222         * Plugins/WebNetscapePluginPackage.m:
1223         (-[WebNetscapePluginPackage load]):
1224         * Plugins/npapi.m:
1225         (NPN_PopUpContextMenu):
1226
1227 2008-05-06  Anders Carlsson  <andersca@apple.com>
1228
1229         Fix typo (don't read random memory).
1230         
1231         * Plugins/WebBasePluginPackage.m:
1232         (-[WebBasePluginPackage isNativeLibraryData:]):
1233
1234 2008-05-05  Anders Carlsson  <andersca@apple.com>
1235
1236         Reviewed by Darin.
1237
1238         Change the isNativeLibraryData: method to handle universal binaries.
1239         
1240         * Plugins/WebBasePluginPackage.m:
1241         (swapIntsInHeader):
1242         (-[WebBasePluginPackage isNativeLibraryData:]):
1243
1244 2008-05-06  Brady Eidson  <beidson@apple.com>
1245
1246         Reviewed by Darin Adler
1247
1248         Preparation for upcoming work making LocalStorage persistent.
1249
1250         When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
1251
1252         * WebView/WebView.mm:
1253         (+[WebView _applicationWillTerminate]):  Close all LocalStorage areas before quitting.
1254
1255 2008-05-05  Sam Weinig  <sam@webkit.org>
1256
1257         Reviewed by Darin Adler.
1258
1259         Fix for <rdar://problem/5884383>
1260         Escape look-a-like characters from the the entire url.
1261
1262         * Misc/WebNSURLExtras.mm:
1263         (escapeUnsafeCharacters):
1264         (-[NSURL _web_userVisibleString]):
1265
1266 2008-05-05  Justin Garcia  <justin.garcia@apple.com>
1267
1268         Reviewed by Darin.
1269         
1270         <rdar://problem/5865171> REGRESSION: Creating a new quote places caret at beginning of quote instead of the end
1271
1272         * WebView/WebView.mm:
1273         (-[WebView _updateSettingsFromPreferences:]): Disable Range mutation on changes to
1274         the document for Tiger and Leopard Mail.  There is code in Mail that does it, and
1275         the two interfere.
1276
1277 2008-05-05  Sam Weinig  <sam@webkit.org>
1278
1279         Reviewed by Tim Hatcher.
1280
1281         Make the Inspector's localizable strings file match the format used by Dashboard widgets.
1282
1283         * WebCoreSupport/WebInspectorClient.mm:
1284         (WebInspectorClient::localizedStringsURL):
1285
1286 2008-05-05  Anders Carlsson  <andersca@apple.com>
1287
1288         Reviewed by Jess.
1289
1290         Apparently preflighting can cause hangs for some reason. Revert this for now.
1291         
1292         * Plugins/WebNetscapePluginPackage.m:
1293         (-[WebNetscapePluginPackage _initWithPath:]):
1294         * Plugins/WebPluginPackage.m:
1295         (-[WebPluginPackage initWithPath:]):
1296
1297 2008-05-05  Darin Adler  <darin@apple.com>
1298
1299         Reviewed by Mitz.
1300
1301         - https://bugs.webkit.org/show_bug.cgi?id=18789
1302           fix some shouldCloseWithWindow edge cases
1303
1304         * WebView/WebView.mm:
1305         (-[WebView viewWillMoveToWindow:]): Fix bug where we would stop observing the
1306         NSWindowWillCloseNotification if the view was moved out of the window but still
1307         had that window set as the host window. Also make sure this function doesn't do
1308         anything if the WebView is already closed.
1309         (-[WebView setHostWindow:]): Ditto.
1310
1311 2008-05-04  David Kilzer  <ddkilzer@apple.com>
1312
1313         Make parameters match for WebChromeClient::addMessageToConsole()
1314
1315         Reviewed by John.
1316
1317         * WebCoreSupport/WebChromeClient.h:
1318         (WebChromeClient::addMessageToConsole): Renamed sourceID parameter
1319         to sourceURL to match implementation in WebChromeClient.mm.
1320
1321 2008-05-02  Anders Carlsson  <andersca@apple.com>
1322
1323         Reviewed by Mark.
1324
1325         Various Cocoa event model and 64-bit plug-in fixes.
1326         
1327         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1328         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
1329         Set click count.
1330         
1331         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1332         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1333         Don't try to get the mouse location for keyboard events.
1334         
1335         * Plugins/WebPluginPackage.m:
1336         (-[WebPluginPackage initWithPath:]):
1337         Preflight the bundle so we won't show 32-bit WebKit plug-ins when running as 64-bit.
1338
1339 2008-05-02  Anders Carlsson  <andersca@apple.com>
1340
1341         Reviewed by Sam.
1342
1343         The event union is now named.
1344         
1345         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1346         (WebNetscapePluginEventHandlerCocoa::drawRect):
1347         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
1348         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1349         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1350         (WebNetscapePluginEventHandlerCocoa::windowFocusChanged):
1351         (WebNetscapePluginEventHandlerCocoa::focusChanged):
1352
1353 2008-05-02  Anders Carlsson  <andersca@apple.com>
1354
1355         Reviewed by Mark.
1356
1357         Make sure that 32-bit only plug-ins aren't shown when running as 64-bit.
1358         
1359         Call preflightAndReturnError on the bundle, which will check if any of the architectures
1360         in the bundle match the current architecture.
1361         
1362         * Plugins/WebNetscapePluginPackage.m:
1363         (-[WebNetscapePluginPackage _initWithPath:]):
1364
1365 2008-05-02  Alexey Proskuryakov  <ap@webkit.org>
1366
1367         Reviewed by Geoffrey Garen.
1368
1369         https://bugs.webkit.org/show_bug.cgi?id=18826
1370         Make JavaScript heap per-thread
1371
1372         * Misc/WebCoreStatistics.mm:
1373         (+[WebCoreStatistics javaScriptObjectsCount]):
1374         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1375         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
1376         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1377         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1378         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
1379         Replaced static Collector calls with calls to a current thread's instance.
1380
1381         * WebView/WebScriptDebugDelegate.mm:
1382         (-[WebScriptCallFrame evaluateWebScript:]):
1383         Pass ExecState to jsString().
1384
1385 2008-05-01  Anders Carlsson  <andersca@apple.com>
1386
1387         Reviewed by Mark.
1388
1389         64-bit NPAPI plugin build fixes.
1390         
1391         * Plugins/WebBaseNetscapePluginView.mm:
1392         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1393         (-[WebBaseNetscapePluginView updateAndSetWindow]):
1394         (-[WebBaseNetscapePluginView start]):
1395         (-[WebBaseNetscapePluginView windowBecameKey:]):
1396         * Plugins/WebNetscapeDeprecatedFunctions.c:
1397         * Plugins/WebNetscapeDeprecatedFunctions.h:
1398         * Plugins/WebNetscapePluginEventHandler.mm:
1399         (WebNetscapePluginEventHandler::create):
1400         * Plugins/WebNetscapePluginEventHandlerCarbon.h:
1401         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1402         * Plugins/WebPluginDatabase.m:
1403         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
1404
1405 2008-05-01  Anders Carlsson  <andersca@apple.com>
1406
1407         Reviewed by Tim.
1408
1409         Remove duplicate npfunctions.h header from WebKit.
1410
1411         * MigrateHeaders.make:
1412         Migrate npfunctions.h
1413         
1414         * Plugins/npfunctions.h: Removed.
1415
1416 2008-05-01  Anders Carlsson  <andersca@apple.com>
1417
1418         Reviewed by John.
1419         
1420         Add null checks for the event handler.
1421         
1422         * Plugins/WebBaseNetscapePluginView.mm:
1423         (-[WebBaseNetscapePluginView stopTimers]):
1424         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1425
1426 2008-05-01  Anders Carlsson  <andersca@apple.com>
1427
1428         Fix 64-bit build.
1429         
1430         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
1431         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1432         * WebCoreSupport/WebFrameLoaderClient.mm:
1433
1434 2008-05-01  Anders Carlsson  <andersca@apple.com>
1435
1436         Fix build.
1437         
1438         * Plugins/npfunctions.h:
1439
1440 2008-05-01  Anders Carlsson  <andersca@apple.com>
1441
1442         Reviewed by Adam.
1443
1444         Forward mouse move events to the Netscape plug-in view.
1445         
1446         * Plugins/WebBaseNetscapePluginView.h:
1447         * Plugins/WebBaseNetscapePluginView.mm:
1448         (-[WebBaseNetscapePluginView handleMouseMoved:]):
1449         New method that just calls the current event handler.
1450         
1451         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1452         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1453         NSFlagsChanged is not a regular keyboard event and some of the NSEvent accessors
1454         don't work on it so don't call them.
1455         
1456         * WebCoreSupport/WebFrameLoaderClient.mm:
1457         (NetscapePluginWidget::NetscapePluginWidget):
1458         New Widget subclass to be used for Netscape plug-ins.
1459         
1460         (NetscapePluginWidget::handleEvent):
1461         Forward NSMouseMoved events to the plug-in.
1462         
1463         (WebFrameLoaderClient::createPlugin):
1464         Wrap the plug-in view in a NetscapePluginWidget.
1465
1466 2008-05-01  Alp Toker  <alp@nuanti.com>
1467
1468         Rubber-stamped by Anders.
1469
1470         GTK+ build fix for changes in r32752. Use int32, not int32_t types in
1471         npapi.h.
1472
1473         Additional fix to use same signedness in npapi.h and Mac for the
1474         interval parameter.
1475
1476         * Plugins/WebBaseNetscapePluginView.h:
1477         * Plugins/WebBaseNetscapePluginView.mm:
1478         (PluginTimer::PluginTimer):
1479         (-[WebBaseNetscapePluginView stopTimers]):
1480         (-[WebBaseNetscapePluginView restartTimers]):
1481         (-[WebBaseNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1482         (-[WebBaseNetscapePluginView unscheduleTimer:]):
1483         * Plugins/WebBaseNetscapePluginViewPrivate.h:
1484         * Plugins/npapi.m:
1485         (NPN_ScheduleTimer):
1486         (NPN_UnscheduleTimer):
1487         * Plugins/npfunctions.h:
1488
1489 2008-04-30  Anders Carlsson  <andersca@apple.com>
1490
1491         Reviewed by Adam.
1492
1493         Add new Cocoa event model and the NPN_ScheduleTimer/NPN_UnscheduleTimer methods.
1494         
1495         * Plugins/WebBaseNetscapePluginView.h:
1496         * Plugins/WebBaseNetscapePluginView.mm:
1497         (PluginTimer::PluginTimer):
1498         (PluginTimer::start):
1499         (PluginTimer::fired):
1500         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1501         (-[WebBaseNetscapePluginView stopTimers]):
1502         (-[WebBaseNetscapePluginView restartTimers]):
1503         (-[WebBaseNetscapePluginView scrollWheel:]):
1504         (-[WebBaseNetscapePluginView flagsChanged:]):
1505         (-[WebBaseNetscapePluginView start]):
1506         (-[WebBaseNetscapePluginView eventModel]):
1507         (-[WebBaseNetscapePluginView fini]):
1508         (-[WebBaseNetscapePluginView getVariable:value:]):
1509         (-[WebBaseNetscapePluginView setVariable:value:]):
1510         (-[WebBaseNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1511         (-[WebBaseNetscapePluginView unscheduleTimer:]):
1512         * Plugins/WebBaseNetscapePluginViewInternal.h:
1513         * Plugins/WebBaseNetscapePluginViewPrivate.h:
1514         * Plugins/WebNetscapePluginEventHandler.h:
1515         * Plugins/WebNetscapePluginEventHandler.mm:
1516         (WebNetscapePluginEventHandler::create):
1517         * Plugins/WebNetscapePluginEventHandlerCarbon.h:
1518         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1519         (WebNetscapePluginEventHandlerCarbon::scrollWheel):
1520         (WebNetscapePluginEventHandlerCarbon::flagsChanged):
1521         (WebNetscapePluginEventHandlerCarbon::platformWindow):
1522         * Plugins/WebNetscapePluginEventHandlerCocoa.h: Added.
1523         (WebNetscapePluginEventHandlerCocoa::startTimers):
1524         (WebNetscapePluginEventHandlerCocoa::stopTimers):
1525         * Plugins/WebNetscapePluginEventHandlerCocoa.mm: Added.
1526         (WebNetscapePluginEventHandlerCocoa::WebNetscapePluginEventHandlerCocoa):
1527         (WebNetscapePluginEventHandlerCocoa::drawRect):
1528         (WebNetscapePluginEventHandlerCocoa::mouseDown):
1529         (WebNetscapePluginEventHandlerCocoa::mouseDragged):
1530         (WebNetscapePluginEventHandlerCocoa::mouseEntered):
1531         (WebNetscapePluginEventHandlerCocoa::mouseExited):
1532         (WebNetscapePluginEventHandlerCocoa::mouseMoved):
1533         (WebNetscapePluginEventHandlerCocoa::mouseUp):
1534         (WebNetscapePluginEventHandlerCocoa::scrollWheel):
1535         (WebNetscapePluginEventHandlerCocoa::sendMouseEvent):
1536         (WebNetscapePluginEventHandlerCocoa::keyDown):
1537         (WebNetscapePluginEventHandlerCocoa::keyUp):
1538         (WebNetscapePluginEventHandlerCocoa::flagsChanged):
1539         (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
1540         (WebNetscapePluginEventHandlerCocoa::windowFocusChanged):
1541         (WebNetscapePluginEventHandlerCocoa::focusChanged):
1542         (WebNetscapePluginEventHandlerCocoa::platformWindow):
1543         (WebNetscapePluginEventHandlerCocoa::sendEvent):
1544         * Plugins/WebNetscapePluginPackage.m:
1545         (-[WebNetscapePluginPackage load]):
1546         * Plugins/npapi.m:
1547         (NPN_ScheduleTimer):
1548         (NPN_UnscheduleTimer):
1549         * Plugins/npfunctions.h:
1550
1551 2008-04-30  Brady Eidson  <beidson@apple.com>
1552
1553         Fix my WebPreferences revert check-in
1554
1555         * WebView/WebView.mm:
1556         (-[WebView _preferencesChangedNotification:]):
1557
1558 2008-04-30  Brady Eidson  <beidson@apple.com>
1559
1560         Rubberstamped by John Sullivan
1561
1562         Revert the remainder of my original preferences changes from last week.
1563         They caused a massive PLT regression (too many notifications being sent out
1564         or listened to that weren't previously) and it's not in my schedule to refine
1565         the preferences code instead of working on my feature!
1566
1567         * WebView/WebView.mm:
1568         (-[WebView _updateSettingsFromPreferences:]):
1569         (-[WebView _commonInitializationWithFrameName:groupName:]):
1570
1571 2008-04-30  Anders Carlsson  <andersca@apple.com>
1572
1573         Fix the 64-bit build.
1574         
1575         * Plugins/WebNetscapePluginEventHandler.h:
1576         * Plugins/WebNetscapePluginEventHandler.mm:
1577         * Plugins/WebNetscapePluginEventHandlerCarbon.h:
1578         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1579
1580 2008-04-29  David D. Kilzer  <ddkilzer@apple.com>
1581
1582         BUILD FIX for Release build.
1583
1584         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1585         (WebNetscapePluginEventHandlerCarbon::drawRect): Declare acceptedEvent
1586         separately so the compiler doesn't complain about an unused variable.
1587         (WebNetscapePluginEventHandlerCarbon::TSMEventHandler): Ditto.
1588
1589 2008-04-29  Anders Carlsson  <andersca@apple.com>
1590
1591         Reviewed by Adam.
1592
1593         Refactor the Carbon event handling code out into a separate class in preparation for adding
1594         the Cocoa event handling code.
1595         
1596         * Plugins/WebBaseNetscapePluginView.h:
1597         * Plugins/WebBaseNetscapePluginView.mm:
1598         (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]):
1599         (-[WebBaseNetscapePluginView sendActivateEvent:]):
1600         (-[WebBaseNetscapePluginView sendDrawRectEvent:]):
1601         (-[WebBaseNetscapePluginView stopTimers]):
1602         (-[WebBaseNetscapePluginView restartTimers]):
1603         (-[WebBaseNetscapePluginView setHasFocus:]):
1604         (-[WebBaseNetscapePluginView mouseDown:]):
1605         (-[WebBaseNetscapePluginView mouseUp:]):
1606         (-[WebBaseNetscapePluginView mouseEntered:]):
1607         (-[WebBaseNetscapePluginView mouseExited:]):
1608         (-[WebBaseNetscapePluginView mouseDragged:]):
1609         (-[WebBaseNetscapePluginView keyUp:]):
1610         (-[WebBaseNetscapePluginView keyDown:]):
1611         (-[WebBaseNetscapePluginView cut:]):
1612         (-[WebBaseNetscapePluginView copy:]):
1613         (-[WebBaseNetscapePluginView paste:]):
1614         (-[WebBaseNetscapePluginView selectAll:]):
1615         (-[WebBaseNetscapePluginView start]):
1616         (-[WebBaseNetscapePluginView stop]):
1617         (-[WebBaseNetscapePluginView fini]):
1618         (-[WebBaseNetscapePluginView drawRect:]):
1619         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
1620         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
1621         (-[WebBaseNetscapePluginView windowBecameKey:]):
1622         (-[WebBaseNetscapePluginView windowResignedKey:]):
1623         (-[WebBaseNetscapePluginView windowDidMiniaturize:]):
1624         (-[WebBaseNetscapePluginView windowDidDeminiaturize:]):
1625         (-[WebBaseNetscapePluginView loginWindowDidSwitchFromUser:]):
1626         (-[WebBaseNetscapePluginView loginWindowDidSwitchToUser:]):
1627         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1628         (-[WebBaseNetscapePluginView _viewHasMoved]):
1629         * Plugins/WebBaseNetscapePluginViewInternal.h:
1630         * Plugins/WebNetscapePluginEmbeddedView.h:
1631         * Plugins/WebNetscapePluginEventHandler.h: Added.
1632         (WebNetscapePluginEventHandler::~WebNetscapePluginEventHandler):
1633         (WebNetscapePluginEventHandler::currentEventIsUserGesture):
1634         (WebNetscapePluginEventHandler::WebNetscapePluginEventHandler):
1635         * Plugins/WebNetscapePluginEventHandler.mm: Added.
1636         (WebNetscapePluginEventHandler::create):
1637         * Plugins/WebNetscapePluginEventHandlerCarbon.h: Added.
1638         * Plugins/WebNetscapePluginEventHandlerCarbon.mm: Added.
1639         (WebNetscapePluginEventHandlerCarbon::WebNetscapePluginEventHandlerCarbon):
1640         (getCarbonEvent):
1641         (modifiersForEvent):
1642         (WebNetscapePluginEventHandlerCarbon::sendNullEvent):
1643         (WebNetscapePluginEventHandlerCarbon::drawRect):
1644         (WebNetscapePluginEventHandlerCarbon::mouseDown):
1645         (WebNetscapePluginEventHandlerCarbon::mouseUp):
1646         (WebNetscapePluginEventHandlerCarbon::mouseEntered):
1647         (WebNetscapePluginEventHandlerCarbon::mouseExited):
1648         (WebNetscapePluginEventHandlerCarbon::mouseDragged):
1649         (WebNetscapePluginEventHandlerCarbon::mouseMoved):
1650         (WebNetscapePluginEventHandlerCarbon::keyDown):
1651         (keyMessageForEvent):
1652         (WebNetscapePluginEventHandlerCarbon::keyUp):
1653         (WebNetscapePluginEventHandlerCarbon::focusChanged):
1654         (WebNetscapePluginEventHandlerCarbon::windowFocusChanged):
1655         (WebNetscapePluginEventHandlerCarbon::TSMEventHandler):
1656         (WebNetscapePluginEventHandlerCarbon::installKeyEventHandler):
1657         (WebNetscapePluginEventHandlerCarbon::removeKeyEventHandler):
1658         (WebNetscapePluginEventHandlerCarbon::nullEventTimerFired):
1659         (WebNetscapePluginEventHandlerCarbon::startTimers):
1660         (WebNetscapePluginEventHandlerCarbon::stopTimers):
1661         (WebNetscapePluginEventHandlerCarbon::sendEvent):
1662
1663 2008-04-29  Mark Rowe  <mrowe@apple.com>
1664
1665         Reviewed by David Harrison.
1666
1667         Ensure that WebDynamicScrollBarsView defines WebCoreScrollbarAlwaysOn to keep Mail building.
1668
1669         * WebKit.exp:
1670         * WebView/WebDynamicScrollBarsView.h:
1671         * WebView/WebDynamicScrollBarsView.m:
1672
1673 2008-04-29  Greg Bolsinga  <bolsinga@apple.com>
1674
1675         Reviewed by Darin.
1676
1677         Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)
1678
1679         * WebCoreSupport/WebChromeClient.h:
1680         * WebCoreSupport/WebChromeClient.mm:
1681         * WebView/WebClipView.m:
1682         (-[WebClipView scrollWheel:]):
1683         * WebView/WebHTMLView.mm:
1684         (-[WebHTMLView addMouseMovedObserver]):
1685         (-[WebHTMLView removeMouseMovedObserver]):
1686         (-[WebHTMLView acceptsFirstMouse:]):
1687         * WebView/WebUIDelegatePrivate.h:
1688         * WebView/WebView.mm:
1689         (-[WebViewPrivate init]):
1690         * WebView/WebViewPrivate.h:
1691
1692 2008-04-28  Rob Buis  <buis@kde.org>
1693
1694         Reviewed by Maciej.
1695
1696         Build fix for Tiger.
1697
1698         * WebView/WebView.mm:
1699         (WebKitInitializeApplicationCachePathIfNecessary):
1700
1701 2008-04-28  Adele Peterson  <adele@apple.com>
1702
1703         Reviewed by Dan Bernstein, Tim Hatcher, Anders Carlsson, and Darin Adler.
1704
1705         WebKit part of fix for <rdar://problem/3709505>
1706         Safari should have a way to upload bundles from the file upload control (as zip)
1707
1708         Added UIDelegate methods to let the application handle generating replacement files for uploads.
1709         In this case, Safari will create archived files for bundles so they can be uploaded properly.
1710
1711         * DefaultDelegates/WebDefaultUIDelegate.m:
1712         (-[WebDefaultUIDelegate webView:shouldReplaceUploadFile:usingGeneratedFilename:]):
1713         (-[WebDefaultUIDelegate webView:generateReplacementFile:]):
1714         * WebCoreSupport/WebChromeClient.h:
1715         * WebCoreSupport/WebChromeClient.mm:
1716         (WebChromeClient::shouldReplaceWithGeneratedFileForUpload):
1717         (WebChromeClient::generateReplacementFile):
1718         * WebView/WebUIDelegatePrivate.h:
1719
1720 2008-04-28  Anders Carlsson  <andersca@apple.com>
1721
1722         Reviewed by Sam, Mark, Adele and Darin.
1723
1724         Initialize the application cache path.
1725         
1726         * WebView/WebView.mm:
1727         (WebKitInitializeApplicationCachePathIfNecessary):
1728         (-[WebView _commonInitializationWithFrameName:groupName:]):
1729
1730 2008-04-28  Alice Liu  <alice.liu@apple.com>
1731
1732         Reviewed by Darin.
1733
1734         Fix <rdar://problem/4911289> Add tabindex property to all children 
1735         of HTMLElement (7138)
1736         http://bugs.webkit.org/show_bug.cgi?id=7138
1737
1738         * MigrateHeaders.make:
1739         Removing DOMHTMLLabelElementPrivate.h and DOMHTMLLegendElementPrivate.h
1740         because now that focus() has been moved to DOMHTMLElement.h, these
1741         files are no longer needed.
1742
1743 2008-04-25  Alexey Proskuryakov  <ap@webkit.org>
1744
1745         Reviewed by Darin.
1746
1747         Fix run-webkit-tests --threading
1748         and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
1749         Proxy server issue in Sunday's Nightly
1750
1751         * WebView/WebView.mm: (-[WebViewPrivate init]): Initialize threading. Previously, this was
1752         only done from icon database code, which is not robust enough.
1753
1754 2008-04-20 Adam Barth <hk9565@gmail.com>
1755
1756         Reviewed by Adam Roben and Sam Weinig.
1757
1758         Updated WebSecurityOrigin to match new SecurityOrigin API.
1759
1760         Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
1761
1762         * Storage/WebSecurityOrigin.mm:
1763         (-[WebSecurityOrigin host]):
1764         (-[WebSecurityOrigin domain]):
1765         * Storage/WebSecurityOriginPrivate.h:
1766
1767 2008-04-25  Mark Rowe  <mrowe@apple.com>
1768
1769         Rubber-stamped by Sam Weinig.
1770
1771         Add some content to an empty ICU header file to prevent verification errors.
1772
1773         * icu/unicode/utf_old.h:
1774
1775 2008-04-25  Anders Carlsson  <andersca@apple.com>
1776
1777         Reviewed by Sam.
1778
1779         Add offlineWebApplicationCacheEnabled preference.
1780         
1781         * WebView/WebPreferenceKeysPrivate.h:
1782         * WebView/WebPreferences.m:
1783         (+[WebPreferences initialize]):
1784         (-[WebPreferences offlineWebApplicationCacheEnabled]):
1785         (-[WebPreferences setOfflineWebApplicationCacheEnabled:]):
1786         * WebView/WebPreferencesPrivate.h:
1787         * WebView/WebView.mm:
1788         (-[WebView _updateSettingsFromPreferences:]):
1789
1790 2008-04-24  Mark Rowe  <mrowe@apple.com>
1791
1792         Reviewed by Sam Weinig.
1793
1794         Remove code for calculating the glyph cache size.
1795
1796         * WebCoreSupport/WebSystemInterface.m:
1797         (InitWebCoreSystemInterface): Remove unused symbol.
1798
1799 2008-04-24  Mark Rowe  <mrowe@apple.com>
1800
1801         Reviewed by Sam Weinig.
1802
1803         Add a definition of BUILDING_ON_LEOPARD to complement BUILDING_ON_TIGER.
1804
1805         * WebKitPrefix.h:
1806
1807 2008-04-24  Brady Eidson  <beidson@apple.com>
1808
1809         Reviewed by Darin
1810
1811         Fix layout test regressions from my earlier preferences/settings tweak.
1812
1813         * WebView/WebView.mm:
1814         (-[WebView _commonInitializationWithFrameName:groupName:]): Even if we're not posting
1815           the notification to update the settings, each WebView still needs to register for the
1816           notification - restore that behavior.
1817
1818 2008-04-24  Dan Bernstein  <mitz@apple.com>
1819
1820         Reviewed by Darin Adler.
1821
1822         - preparation for https://bugs.webkit.org/show_bug.cgi?id=3729
1823           <rdar://problem/4036353> REGRESSION: arrow keys move insertion bar backwards in RTL text
1824
1825         * WebView/WebFrame.mm:
1826         (-[WebFrame _caretRectAtNode:offset:affinity:]): Changed to use
1827         VisiblePosition::caretRect() instead of the RenderObject method which
1828         was removed.
1829
1830 2008-04-24  Brady Eidson  <beidson@apple.com>
1831
1832         Reviewed by Darin
1833
1834         Rework the Settings population again.
1835
1836         * WebView/WebView.mm:
1837         (-[WebView _updateSettingsFromPreferences:]): This method is called both from _preferencesChangedNotification
1838           and directly from WebView's common init function.
1839         (-[WebView _preferencesChangedNotification:]):
1840         (-[WebView _commonInitializationWithFrameName:groupName:]): Call _updateSettingsFromPreferences immediately
1841           after creating the new Page
1842
1843 2008-04-24  Darin Adler  <darin@apple.com>
1844
1845         Reviewed by Geoff.
1846
1847         - fix crash in regression test where we'd ask a frame for a user agent string
1848           after the WebView was already closed
1849
1850         * WebCoreSupport/WebFrameLoaderClient.mm:
1851         (WebFrameLoaderClient::userAgent): Assert that the WebView is not nil. Also
1852         added some code to prevent the crash in release builds if this problem happens
1853         again.
1854
1855 2008-04-24  Anders Carlsson  <andersca@apple.com>
1856
1857         Reviewed by Sam.
1858
1859         Change some String arguments to be const references instead.
1860
1861         * WebCoreSupport/WebEditorClient.h:
1862         * WebCoreSupport/WebEditorClient.mm:
1863         (WebEditorClient::shouldInsertText):
1864
1865 2008-04-24  John Sullivan  <sullivan@apple.com>
1866
1867         Mac build fix
1868         
1869         * WebCoreSupport/WebViewFactory.mm:
1870         (-[WebViewFactory AXButtonActionVerb]):
1871         implement this method using the text in WebCoreLocalizedStrings.cpp
1872         (-[WebViewFactory AXRadioButtonActionVerb]):
1873         ditto
1874         (-[WebViewFactory AXTextFieldActionVerb]):
1875         ditto
1876         (-[WebViewFactory AXCheckedCheckBoxActionVerb]):
1877         ditto
1878         (-[WebViewFactory AXUncheckedCheckBoxActionVerb]):
1879         ditto
1880         (-[WebViewFactory AXLinkActionVerb]):
1881         ditto
1882
1883 2008-04-23  Brady Eidson  <beidson@apple.com>
1884
1885         Reviewed by Sam Weinig
1886
1887         In some current work I noticed that when a new Page is created, it is possible that it requires info from its Settings
1888         object before the Settings object is initialized.  It seems quite prudent to post the preferences changed notification,
1889         thereby populating the Settings object, immediately after the Page is created.
1890
1891         * WebView/WebView.mm:
1892         (-[WebView _commonInitializationWithFrameName:groupName:]): Post the notification right after the Page is created
1893
1894 2008-04-24  John Sullivan  <sullivan@apple.com>
1895
1896         Reviewed by Jess
1897         
1898         - fixed <rdar://problem/5886655> JavaScript input panel automatic resizing doesn't work right with HiDPI
1899
1900         * Misc/WebNSControlExtras.m:
1901         (-[NSControl sizeToFitAndAdjustWindowHeight]):
1902         deploy userSpaceScaleFactor when using view distances on the window
1903
1904 2008-04-22  Anders Carlsson  <andersca@apple.com>
1905
1906         Reviewed by Darin.
1907
1908         Add NPN_Construct and NPN_PluginThreadAsyncCall declarations.
1909         
1910         * Plugins/npfunctions.h:
1911
1912 2008-04-20  Matt Lilek  <webkit@mattlilek.com>
1913
1914         Mysteriously reviewed by mitz|away.
1915
1916         Bug 18111: Closing a tab while dragging crashes Safari
1917         https://bugs.webkit.org/show_bug.cgi?id=18111
1918
1919         Null check the page before handling drag events.
1920
1921         * WebView/WebView.mm:
1922         (-[WebView draggingUpdated:]):
1923         (-[WebView draggingExited:]):
1924
1925 2008-04-19  Brady Eidson  <beidson@apple.com>
1926
1927         Reviewed by Tim Hatcher
1928
1929         Add a WebPreference for the path of the local storage persistent store.
1930
1931         * WebView/WebPreferenceKeysPrivate.h:
1932
1933         * WebView/WebPreferences.m:
1934         (-[WebPreferences _localStorageDatabasePath]):
1935         (-[WebPreferences _setLocalStorageDatabasePath:]):
1936         * WebView/WebPreferencesPrivate.h:
1937
1938         * WebView/WebView.mm:
1939         (-[WebView _preferencesChangedNotification:]):
1940
1941 2008-04-18  Brady Eidson  <beidson@apple.com>
1942
1943         Reviewed by Sam Weinig
1944
1945         Don't clear the PageGroup on _close, as the WebCore::Page destructor already does this.
1946         No reason to do the work twice...
1947
1948         * WebView/WebView.mm:
1949         (-[WebView _close]):
1950
1951 2008-04-17  Eric Seidel  <eric@webkit.org>
1952
1953         Reviewed by beth.
1954
1955         Rename Frame::renderer() to contentRenderer() and fix uses.
1956
1957         * Misc/WebCoreStatistics.mm:
1958         * WebView/WebRenderNode.mm:
1959         (-[WebRenderNode initWithWebFrameView:]):
1960
1961 2008-04-17  Jon Honeycutt  <jhoneycutt@apple.com>
1962
1963         Reviewed by mrowe.
1964
1965         * WebView/WebFrame.mm: Remove temporary build fix.
1966
1967 2008-04-17  Mark Rowe  <mrowe@apple.com>
1968
1969         Reviewed by Dan Bernstein.
1970
1971         Fix <rdar://problem/5863552> REGRESSION (r30741): Attachments don't appear in the iChat message window after sending
1972
1973         The order of arguments to -[NSDictionary initWithObjects:andKeys:] had been transposed accidentally during refactoring.
1974
1975         * WebCoreSupport/WebFrameLoaderClient.mm:
1976         (WebFrameLoaderClient::createPlugin): Pass the arguments in the correct order.
1977
1978 2008-04-17  Mark Rowe  <mrowe@apple.com>
1979
1980         Rubber-stamped by Dan Bernstein.
1981
1982         Fix the Mac build.
1983
1984         * WebView/WebFrame.mm: Define HAVE_ACCESSIBILITY before including AccessibilityObject.h and AXObjectCache.h to get things building
1985         for now.  This comes from config.h in WebCore but we don't have an equivalent in WebKit so we'll need to work out the correct place
1986         for this to live going forward.
1987
1988 2008-04-15  Kevin Decker  <kdecker@apple.com>
1989
1990         Reviewed by Anders.
1991
1992         <rdar://problem/5412759> CrashTracer: [USER] 22 crashes in Safari at com.apple.quicktime.webplugin: NPN_SetValue + 15403
1993         
1994         In certain situations, code in WebBasePluginPackage would load a plug-in only for the explicit reason of asking it to create a
1995         preference file, but wouldn't actually unload the bundle. This created problems for the QuickTime WebKit plug-in by unloading
1996         a bundle out from underneath itself.
1997
1998         * Plugins/WebBasePluginPackage.h: Added unload method.
1999         * Plugins/WebBasePluginPackage.m:
2000         (-[WebBasePluginPackage unload]): Added new method. Currently, only Netscape plug-ins support unload.
2001         (-[WebBasePluginPackage pListForPath:createFile:]): Added a call to unload.
2002         * Plugins/WebNetscapePluginPackage.m:
2003         (-[WebNetscapePluginPackage unload]): Added.
2004
2005 2008-04-15  Anders Carlsson  <andersca@apple.com>
2006
2007         Reviewed by Adam.
2008
2009         Add ENABLE_OFFLINE_WEB_APPLICATIONS to FEATURE_DEFINES.
2010
2011         * Configurations/WebKit.xcconfig:
2012
2013 2008-04-15  Brady Eidson  <beidson@apple.com>
2014
2015         Reviewed by John Sullivan
2016
2017         Do a more complete job adding the "WebArchiveDebugMode" pref
2018
2019         * WebView/WebPreferences.m: Add both getter *and* setter
2020         (-[WebPreferences webArchiveDebugModeEnabled]):
2021         (-[WebPreferences setWebArchiveDebugModeEnabled:]):
2022         * WebView/WebPreferencesPrivate.h:
2023
2024         * WebView/WebView.mm:
2025         (-[WebView _preferencesChangedNotification:]): Call the renamed getter
2026
2027 2008-04-14  Brady Eidson  <beidson@apple.com>
2028
2029         Reviewed by Anders
2030
2031         Add a hidden pref to debug WebArchive loading.  With this pref on, when loading a WebArchive,
2032         if the resource isn't in the ArchiveResourceCollection, the loader will not fall back to the 
2033         network and will instead fail the load as "cancelled."
2034
2035         * WebView/WebPreferenceKeysPrivate.h:
2036
2037         * WebView/WebPreferences.m:
2038         (+[WebPreferences initialize]):
2039         (-[WebPreferences _webArchiveDebugModeEnabled]):
2040         * WebView/WebPreferencesPrivate.h:
2041
2042         * WebView/WebView.mm:
2043         (-[WebView _preferencesChangedNotification:]):
2044
2045 2008-04-11  David Hyatt  <hyatt@apple.com>
2046
2047         Rename CachedResource ref/deref methods to addClient/removeClient.
2048
2049         Reviewed by olliej
2050
2051         * WebView/WebHTMLView.mm:
2052         (-[WebHTMLViewPrivate dealloc]):
2053         (-[WebHTMLViewPrivate finalize]):
2054         (-[WebHTMLViewPrivate clear]):
2055         (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
2056
2057 2008-04-07  Brady Eidson  <beidson@apple.com>
2058
2059         Add "ENABLE_DOM_STORAGE" to keep in sync with the rest of the project
2060
2061         * Configurations/WebKit.xcconfig:
2062
2063 2008-04-04  Adam Roben  <aroben@apple.com>
2064
2065         Use WebCore's ICU headers instead of our own copy
2066
2067         Rubberstamped by Tim Hatcher.
2068
2069         * Configurations/WebKit.xcconfig: Pick up ICU headers from WebCore's
2070         PrivateHeaders.
2071
2072 2008-04-04  Adam Roben  <aroben@apple.com>
2073
2074         Fix <rdar://problem/5804776> Would like to use WebCore's
2075         ForwardingHeaders in WebKit without manually creating copies
2076
2077         Patch by Tim Hatcher, typed by me.
2078
2079         * Configurations/WebKit.xcconfig: Use the copy of ForwardingHeaders in
2080         WebCore's PrivateHeaders instead of our own copy.
2081
2082 2008-04-04  Ada Chan  <adachan@apple.com>
2083
2084         Now we pass width and height directly as integers to format
2085         the window title for a standalone image.
2086
2087         Reviewed by Dan.
2088
2089         * WebCoreSupport/WebViewFactory.mm:
2090         (-[WebViewFactory imageTitleForFilename:width:height:]):
2091
2092 2008-04-03  Nicholas Shanks  <webkit@nickshanks.com>
2093
2094         Updated by Dan Bernstein. Reviewed by Dave Hyatt.
2095
2096         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
2097           font-weight does not properly support graded weights
2098
2099         * WebView/WebHTMLView.mm:
2100         (-[WebHTMLView _styleFromFontAttributes:]):
2101         (-[WebHTMLView _originalFontB]):
2102         (-[WebHTMLView _addToStyle:fontA:fontB:]):
2103
2104 2008-04-02  Mark Rowe  <mrowe@apple.com>
2105
2106         Reviewed by Oliver Hunt.
2107
2108         Ensure that debug symbols are generated for x86_64 and ppc64 builds.
2109
2110         * Configurations/Base.xcconfig:
2111
2112 2008-03-31  Alice Liu  <alice.liu@apple.com>
2113
2114         Reviewed by Darin.
2115
2116         * WebView/WebFrame.mm:
2117         (-[WebFrame _accessibilityTree]):
2118         The syntax for fetching an object from the AXObjectCache changed slightly
2119
2120 2008-03-31  Brady Eidson  <beidson@apple.com>
2121
2122         Reviewed by Jon Honeycutt
2123         
2124         Move a WebArchive loading check into WebCore
2125
2126         * WebView/WebHTMLRepresentation.mm:
2127         (-[WebHTMLRepresentation receivedData:withDataSource:]): Don't check "isDisplayingWebArchive" as WebCore is now
2128           responsible for checking that state
2129
2130 2008-03-31  Brady Eidson  <beidson@apple.com>
2131
2132         Reviewed by Darin and Mitz's rubber stamp
2133
2134         Remove dataForArchivedSelection(WebCore::Frame*) from the EditorClient - only usage is now directly in WebCore
2135
2136         * WebCoreSupport/WebEditorClient.mm:
2137         * WebCoreSupport/WebEditorClient.h:
2138
2139 2008-03-28  Brady Eidson  <beidson@apple.com>
2140
2141         Rubberstamped by Darin Adler
2142
2143         Remove WebArchiver.h/mm
2144
2145         * WebView/WebArchiver.h: Removed.
2146         * WebView/WebArchiver.mm: Removed.
2147
2148         * DOM/WebDOMOperations.mm:
2149         * WebCoreSupport/WebDragClient.mm:
2150         * WebCoreSupport/WebEditorClient.mm:
2151         * WebView/WebDataSource.mm:
2152         * WebView/WebHTMLView.mm:
2153
2154 2008-03-28  Brady Eidson  <beidson@apple.com>
2155
2156         Reviewed by Darin Adler
2157
2158         Now that WebCore can create archives from a frame selection directly, we don't need it in WebArchiver anymore
2159
2160         * WebCoreSupport/WebEditorClient.mm:
2161         (WebEditorClient::dataForArchivedSelection):
2162
2163         * WebView/WebArchiver.h: Nuke archiveSelectionInFrame, as there are no remaining users
2164         * WebView/WebArchiver.mm: Ditto
2165
2166         * WebView/WebHTMLView.mm:
2167         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
2168
2169 2008-03-28  Brady Eidson  <beidson@apple.com>
2170
2171         Reviewed by Darin Adler
2172
2173         More Kit->Core WebArchive changes.
2174
2175         Create an archive from the current selection in a frame
2176
2177         * WebView/WebArchiver.mm: Remove one more *undeclared* method, the last method will drop off
2178           easily in a followup
2179
2180 2008-03-28  Brady Eidson  <beidson@apple.com>
2181
2182         Reviewed by Sam Weinig
2183
2184         WebArchive saga continues - Can now make archives from ranges in WebCore
2185
2186         * DOM/WebDOMOperations.mm:
2187         (-[DOMRange webArchive]):
2188         (-[DOMRange markupString]):
2189
2190         * WebView/WebArchiver.h: Remove newly obsolete [WebArchiver archiveRange:]
2191         * WebView/WebArchiver.mm:
2192
2193 2008-03-28  Brady Eidson  <beidson@apple.com>
2194
2195         Reviewed by Sam Weinig
2196
2197         More Kit->Core webarchive code movement
2198
2199         * DOM/WebDOMOperations.mm:
2200         (-[DOMNode markupString]): Call createFullMarkup() instead
2201
2202         * WebView/WebFrame.mm: Remove obsolete _markupStringFromNode
2203         * WebView/WebFrameInternal.h: Ditto
2204
2205 2008-03-28  Brady Eidson  <beidson@apple.com>
2206
2207         Reviewed by Sam Weinig
2208
2209         Fold [WebArchiver archiveFrame:] into WebDataSource - the last remaining caller
2210
2211         * WebView/WebArchiver.h:
2212         * WebView/WebArchiver.mm:
2213         * WebView/WebDataSource.mm:
2214         (-[WebDataSource webArchive]):
2215
2216 2008-03-28  Brady Eidson  <beidson@apple.com>
2217
2218         Reviewed by Sam Weinig
2219
2220         Remove unused [WebArchiver archiveNode:], made obsolete in r31400
2221
2222         * WebView/WebArchiver.h:
2223         * WebView/WebArchiver.mm:
2224
2225 2008-03-28  Brady Eidson  <beidson@apple.com>
2226
2227         Reviewed by Darin
2228
2229         "Yet another transitional step" to empty out WebKit-based code for archiving.
2230
2231         With this patch, the key operation of "Creating a WebArchive rooted at a single Node" takes place
2232         entirely within WebCore, and opens the door to saving WebArchives on Windows.
2233
2234         * DOM/WebDOMOperations.mm:
2235         * WebView/WebArchiver.mm:
2236         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
2237
2238 2008-03-27  Brady Eidson  <beidson@apple.com>
2239
2240         Reviewed by Adam Roben
2241
2242         Move [WebDataSource mainResource] and [WebDataSource subresources] down into WebCore
2243         as the push to core-ify WebArchives continues.
2244
2245         This patch also introduces a behavior change.  WebCore allows ArchiveResources with null or empty data.  
2246         WebKit has had the inexplicable distinction of allowing empty Data in a WebResource, but not null.  
2247         Since WebResource is API, I decided to leave it be to avoid a behavior change.  But internally created resources 
2248         (as in "while archiving a page") are accepting of null or empty data.
2249
2250         This actually fixes a bug where not all subframes are archived, and resulted in a layout test change. 
2251
2252         * WebView/WebDataSource.mm:
2253         (-[WebDataSource mainResource]): Call DocumentLoader implementation
2254         (-[WebDataSource subresources]): Ditto
2255         * WebView/WebFrame.mm: Remove [WebFrame _getAllResourceDatas:andResponses:] as its only caller is obsolete
2256         * WebView/WebFrameInternal.h:
2257
2258 2008-03-27  Brady Eidson  <beidson@apple.com>
2259
2260         Reviewed by Adam
2261
2262         Change the "init from WebCore resource" version of WebResource to take PassRefPtr
2263         (more efficient)
2264
2265         * WebView/WebResource.mm:
2266         (-[WebResource _initWithCoreResource:]):
2267         * WebView/WebResourceInternal.h:
2268
2269 2008-03-26  Brady Eidson  <beidson@apple.com>
2270
2271         Build fix - accidentally checked in this change which was work in progress
2272
2273         * DOM/WebDOMOperations.mm:
2274
2275 2008-03-26  Brady Eidson  <beidson@apple.com>
2276
2277         Reviewed by Darin
2278
2279         When we create a WebArchive, we walk every node from some starting point, asking each node
2280         along the way "What are your subresource URLs?"
2281
2282         That logic is currently in DOMNode in WebKitMac - this patch moves that ability down into
2283         WebCore::Node
2284
2285         * DOM/WebDOMOperations.mm:
2286         (-[DOMNode _subresourceURLs]): One generic DOMNode method can now handle all DOMNodes by
2287           calling into individual WebCore::Node implementations
2288         * DOM/WebDOMOperationsPrivate.h:
2289
2290 2008-03-26  Brady Eidson  <beidson@apple.com>
2291
2292         Reviewed by Mark Rowe
2293
2294         Part of the continued push to move WebArchive-related code down to WebCore, this
2295         moves [WebDataSource subresourceForURL:] down to DocumentLoader->subresource()
2296
2297         * WebView/WebDataSource.mm:
2298         (-[WebDataSource subresourceForURL:]): Call through to the DocumentLoader 
2299
2300         * WebView/WebFrame.mm: Remove [WebFrame _getData:andResponse:forURL:], as its only use
2301           has now been ported down to WebCore
2302         * WebView/WebFrameInternal.h:
2303
2304 2008-03-26  Mark Rowe  <mrowe@apple.com>
2305
2306         Rubber-stamped by Brady Eidson.
2307
2308         Update FEATURE_DEFINES to be consistent with the other locations in which it is defined.
2309
2310         * Configurations/WebKit.xcconfig:
2311
2312 2008-03-26  Mark Rowe  <mrowe@apple.com>
2313
2314         Reviewed by David Hyatt.
2315
2316         Make the Ahem font antialias correctly on Acid3 on Tiger.
2317
2318         * WebCoreSupport/WebSystemInterface.m:
2319         (InitWebCoreSystemInterface):
2320
2321 2008-03-26  Mark Rowe  <mrowe@apple.com>
2322
2323         Fix the Mac build.
2324
2325         * MigrateHeaders.make: Copy the newly generated header into the right place.
2326
2327 2008-03-25  Brady Eidson  <beidson@apple.com>
2328
2329         Reviewed by Beth Dakin
2330
2331         Remove entirely unused internal method
2332
2333         * WebView/WebArchiver.h:
2334         * WebView/WebArchiver.mm:
2335
2336 2008-03-25  Brady Eidson  <beidson@apple.com>
2337
2338         Reviewed by Adam Roben
2339
2340         <rdar://problem/5819308> - View Source is empty when view webarchives
2341
2342         * WebCore.base.exp:
2343         * loader/DocumentLoader.cpp:
2344         (WebCore::DocumentLoader::setParsedArchiveData):
2345         (WebCore::DocumentLoader::parsedArchiveData):
2346         * loader/DocumentLoader.h:
2347
2348         * loader/FrameLoader.cpp:
2349         (WebCore::FrameLoader::finishedLoadingDocument): Set the archive's MainResource data as the parsedArchiveData
2350           in the DocumentLoader
2351
2352 2008-03-25  Dan Bernstein  <mitz@apple.com>
2353
2354         Reviewed by Darin Adler.
2355
2356         - fix http://bugs.webkit.org/show_bug.cgi?id=17933
2357           Reopen All Windows From Last Session causes crash
2358
2359         * WebView/WebHTMLView.mm:
2360         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Added null
2361         check.
2362
2363 2008-03-25  Brady Eidson  <beidson@apple.com>
2364
2365         Reviewed by Jon Honeycutt's rubberstamp
2366
2367         Fix a leak with the new WebArchive setup
2368
2369         * WebView/WebArchive.mm:
2370         (-[WebArchivePrivate setCoreArchive:]): Deref() the old WebArchive
2371
2372 2008-03-25  Brady Eidson  <beidson@apple.com>
2373
2374         Reviewed by Darin
2375
2376         Removed the concept of "pending archive resources" and the "archive resources delivery timer"
2377         from WebFrameLoaderClient, as those concepts have been pushed into WebCore
2378
2379         * WebCoreSupport/WebFrameLoaderClient.h:
2380         * WebCoreSupport/WebFrameLoaderClient.mm:
2381         (WebFrameLoaderClient::WebFrameLoaderClient):
2382
2383 2008-03-25  Brady Eidson  <beidson@apple.com>
2384
2385         Reviewed by Darin
2386
2387         Remove newly obsolete FrameLoaderClient methods
2388
2389         * WebCoreSupport/WebFrameLoaderClient.h:
2390         * WebCoreSupport/WebFrameLoaderClient.mm:
2391
2392 2008-03-25  Brady Eidson  <beidson@apple.com>
2393
2394         Release build fix
2395
2396         * WebView/WebArchive.mm:
2397         (-[WebArchive subresources]):
2398         (-[WebArchive subframeArchives]):
2399
2400 2008-03-25  Brady Eidson  <beidson@apple.com>
2401
2402         Reviewed by Darin
2403
2404         <rdar://problem/4516169> - Support WebArchives on Windows
2405         And paves the way for many future WebArchive bug fixes and enhancements
2406
2407         This change moves most of the real workhorse code about WebArchives into WebCore.  It maintains 
2408         1-to-1 relationships between a few objects in WebCore and WebKit.  Such as:
2409          * WebArchive <-> LegacyWebArchive
2410          * WebResource <-> ArchiveResource
2411          * WebUnarchivingState <-> ArchiveResourceCollection
2412  
2413         The other biggest changes involve many FrameLoaderClient methods that existed soley for WebArchives 
2414         and now exist in WebCore
2415
2416         * WebCoreSupport/WebFrameLoaderClient.mm:
2417         (WebFrameLoaderClient::clearUnarchivingState): Emptied - to be removed in a followup patch
2418         (WebFrameLoaderClient::finalSetupForReplace):
2419         (WebFrameLoaderClient::setDefersLoading):
2420         (WebFrameLoaderClient::willUseArchive):
2421         (WebFrameLoaderClient::isArchiveLoadPending):
2422         (WebFrameLoaderClient::cancelPendingArchiveLoad):
2423         (WebFrameLoaderClient::clearArchivedResources):
2424         (WebFrameLoaderClient::createFrame):
2425
2426         * WebView/WebArchive.mm:
2427         (+[WebArchivePrivate initialize]):
2428         (-[WebArchivePrivate init]):
2429         (-[WebArchivePrivate initWithCoreArchive:]):
2430         (-[WebArchivePrivate coreArchive]):
2431         (-[WebArchivePrivate setCoreArchive:]):
2432         (-[WebArchivePrivate dealloc]):
2433         (-[WebArchivePrivate finalize]):
2434         (-[WebArchive init]):
2435         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2436         (-[WebArchive initWithData:]):
2437         (-[WebArchive initWithCoder:]):
2438         (-[WebArchive encodeWithCoder:]):
2439         (-[WebArchive mainResource]):
2440         (-[WebArchive subresources]):
2441         (-[WebArchive subframeArchives]):
2442         (-[WebArchive data]):
2443         (-[WebArchive _initWithCoreLegacyWebArchive:WebCore::]):
2444         (-[WebArchive WebCore::]):
2445         * WebView/WebArchiveInternal.h: Added.
2446
2447         * WebView/WebDataSource.mm:
2448         (-[WebDataSourcePrivate dealloc]):
2449         (-[WebDataSource _addSubframeArchives:]):
2450         (-[WebDataSource _documentFragmentWithArchive:]):
2451         (-[WebDataSource subresourceForURL:]):
2452         (-[WebDataSource addSubresource:]):
2453         * WebView/WebDataSourceInternal.h:
2454
2455         * WebView/WebFrame.mm:
2456         (-[WebFrame loadArchive:]):
2457         * WebView/WebFrameInternal.h:
2458
2459         * WebView/WebHTMLRepresentation.mm:
2460         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
2461
2462         * WebView/WebResource.mm:
2463         (+[WebResourcePrivate initialize]):
2464         (-[WebResourcePrivate init]):
2465         (-[WebResourcePrivate initWithCoreResource:]):
2466         (-[WebResourcePrivate dealloc]):
2467         (-[WebResourcePrivate finalize]):
2468         (-[WebResource initWithCoder:]):
2469         (-[WebResource encodeWithCoder:]):
2470         (-[WebResource data]):
2471         (-[WebResource URL]):
2472         (-[WebResource MIMEType]):
2473         (-[WebResource textEncodingName]):
2474         (-[WebResource frameName]):
2475         (-[WebResource _initWithCoreResource:WebCore::]):
2476         (-[WebResource WebCore::]):
2477         (-[WebResource _ignoreWhenUnarchiving]):
2478         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
2479         (-[WebResource _fileWrapperRepresentation]):
2480         (-[WebResource _response]):
2481         (-[WebResource _stringValue]):
2482         * WebView/WebResourceInternal.h: Added.
2483         * WebView/WebResourcePrivate.h:
2484
2485         * WebView/WebUnarchivingState.h: Removed.
2486         * WebView/WebUnarchivingState.m: Removed.
2487
2488 2008-03-24  Oliver Hunt  <oliver@apple.com>
2489
2490         Reviewed by Mark Rowe.
2491
2492         Bug 18030: REGRESSION(r31236): Space bar fails to scroll down page
2493         <http://bugs.webkit.org/show_bug.cgi?id=18030>
2494
2495         Rollout keyDown changes from r31236 -- fix for keyDown behaviour is
2496         tracked by Bug 18057: keyDown incorrectly propagates up the frame tree
2497         <http://bugs.webkit.org/show_bug.cgi?id=18057>
2498
2499         * WebView/WebHTMLView.mm:
2500         (-[WebHTMLView keyDown:]):
2501
2502 2008-03-24  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
2503
2504         Reviewed by Maciej, landed by Brady
2505
2506         Bug 3580: iFrames Appear to be Cached
2507         <http://bugs.webkit.org/show_bug.cgi?id=3580>
2508
2509         Bug 15486: REGRESSION: Reload causes WebKit to *forget* fragment URLs
2510         <http://bugs.webkit.org/show_bug.cgi?id=15486>
2511
2512         Bug 15554: Reload causes <object> to use old data
2513         <http://bugs.webkit.org/show_bug.cgi?id=15554>
2514
2515         If a page is reloaded, a child frame's URL can not be taken from a history item.
2516
2517         * WebView/WebFrame.mm:
2518         (-[WebFrame _loadURL:referrer:intoChild:]):
2519
2520 2008-03-24  Darin Adler  <darin@apple.com>
2521
2522         Reviewed by Beth.
2523
2524         - fix <rdar://problem/5817067> -[WebDataSource unreachableURL] invokes KURL's copy constructor
2525
2526         * History/WebHistoryItem.mm:
2527         (-[WebHistoryItem URL]): Use a reference to avoid making a copy.
2528         * WebView/WebDataSource.mm:
2529         (-[WebDataSource _URL]): Ditto.
2530         (-[WebDataSource unreachableURL]): Ditto.
2531         * WebView/WebHTMLView.mm:
2532         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
2533
2534         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2535         * History/WebHistory.mm:
2536         * Misc/WebElementDictionary.mm:
2537         * Misc/WebNSAttributedStringExtras.mm:
2538         Remove unneeded imports of KURL.h.
2539
2540 2008-03-24  Brady Eidson  <beidson@apple.com>
2541
2542         Reviewed by Darin's rubberstamp
2543
2544         Rename this file for upcoming work.
2545
2546         * WebView/WebArchive.m: Removed.
2547         * WebView/WebArchive.mm: Copied from WebKit/mac/WebView/WebArchive.m.
2548
2549 2008-03-24  Alexey Proskuryakov  <ap@webkit.org>
2550
2551         Build fix.
2552
2553         * MigrateHeaders.make: Added DOMSVGAltGlyphElement.h and DOMSVGAltGlyphElementInternal.h.
2554
2555 2008-03-23  Oliver Hunt  <oliver@apple.com>
2556
2557         Reviewed by Maciej.
2558
2559         Bug 17670: Key events may improperly propagate from iframe to parent frame
2560         <http://bugs.webkit.org/show_bug.cgi?id=17670>
2561         Bug 16381: REGRESSION: Shift, command, option, ctrl keys in Gmail Rich Text changes focus
2562         <http://bugs.webkit.org/show_bug.cgi?id=16381>
2563
2564         Prevent the Cocoa event system from propagating key events to the parent WebHTMLView,
2565         as that results in us dispatching the key events for each frame going up the frame
2566         tree.
2567
2568         * WebView/WebHTMLView.mm:
2569         (-[WebHTMLView keyDown:]):
2570         (-[WebHTMLView keyUp:]):
2571         (-[WebHTMLView flagsChanged:]):
2572
2573 2008-03-21  Timothy Hatcher  <timothy@apple.com>
2574
2575         Bug 17980: Regression: Inspector highlighting of webpage not cleared when going to new URL
2576         http://bugs.webkit.org/show_bug.cgi?id=17980
2577
2578         Reviewed by Adam.
2579
2580         The new highlight drawing was not honoring the fade value, so it was
2581         always drawing at full opacity. The animation code didn't match Windows
2582         and the new highlight anyway, so it has been removed. The highlight
2583         how just detaches when it is hidden.
2584
2585         * WebCoreSupport/WebInspectorClient.mm:
2586         (-[WebInspectorWindowController windowShouldClose:]): Call hideHighlight.
2587         (-[WebInspectorWindowController close]): Ditto.
2588         (-[WebInspectorWindowController highlightNode:]): Call attach.
2589         (-[WebInspectorWindowController hideHighlight]): Call detach and release _currentHighlight.
2590         * WebInspector/WebNodeHighlight.h:
2591         * WebInspector/WebNodeHighlight.m:
2592         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2593         (-[WebNodeHighlight dealloc]): Assert we have no _highlightView.
2594         (-[WebNodeHighlight attach]): Renamed from attachHighlight.
2595         (-[WebNodeHighlight detach]): Renamed from detachHighlight.
2596         (-[WebNodeHighlight setNeedsUpdateInTargetViewRect:]): Renamed from setHolesNeedUpdateInTargetViewRect:.
2597         * WebInspector/WebNodeHighlightView.h:
2598         * WebInspector/WebNodeHighlightView.m:
2599         (-[WebNodeHighlightView setNeedsDisplayInRect:]): Renamed from setHolesNeedUpdateInRect:.
2600
2601 2008-03-20  Mark Rowe  <mrowe@apple.com>
2602
2603         Reviewed by Sam Weinig.
2604
2605         Ensure that the defines in FEATURE_DEFINES are sorted so that they will match the default settings of build-webkit.
2606         This will prevent the world from being rebuilt if you happen to switch between building in Xcode and with build-webkit on the
2607         command-line.
2608
2609         * Configurations/WebKit.xcconfig:
2610
2611 2008-03-20  Adam Roben  <aroben@apple.com>
2612
2613         Make WebNodeHighlightView use InspectorController to do its painting
2614
2615         Reviewed by Tim Hatcher.
2616
2617         * WebCoreSupport/WebInspectorClient.mm:
2618         (-[WebInspectorWindowController highlightNode:]): Pass the
2619         InspectorController to the WebNodeHighlight, and don't call
2620         setHighlightedNode: (which has been removed).
2621         (-[WebInspectorWindowController hideHighlight]): Removed call to
2622         setHighlightedNode:.
2623         * WebInspector/WebNodeHighlight.h:
2624           - Replaced _highlightNode with _inspectorController
2625           - Removed _highlightedNode accessors
2626           - Added -inspectorController method
2627         * WebInspector/WebNodeHighlight.m:
2628         (-[WebNodeHighlight initWithTargetView:inspectorController:]): Now
2629         takes an InspectorController* and stores it in _inspectorController.
2630         (-[WebNodeHighlight dealloc]): Removed code dealing with
2631         _highlightedNode.
2632         (-[WebNodeHighlight inspectorController]): Added.
2633         * WebInspector/WebNodeHighlightView.m: Removed FileInternal category.
2634         (-[WebNodeHighlightView isFlipped]): Added. WebCore expects all
2635         GraphicsContexts to be based on a flipped CGContext, so we have to
2636         specify that this view is flipped.
2637         (-[WebNodeHighlightView drawRect:]): Changed to create a
2638         GraphicsContext and pass it to InspectorController::drawNodeHighlight.
2639
2640 2008-03-18  David Hyatt  <hyatt@apple.com>
2641
2642         Add support for a preference in WebKit that can be used in nightly builds to test full page
2643         zoom.
2644
2645         Reviewed by Antti
2646
2647         * WebView/WebPreferenceKeysPrivate.h:
2648         * WebView/WebView.mm:
2649         (-[WebView setTextSizeMultiplier:]):
2650         (-[WebView canMakeTextSmaller]):
2651         (-[WebView makeTextSmaller:]):
2652         (-[WebView canMakeTextLarger]):
2653         (-[WebView makeTextLarger:]):
2654         (-[WebView canMakeTextStandardSize]):
2655         (-[WebView makeTextStandardSize:]):
2656
2657 2008-03-17  Eric Seidel  <eric@webkit.org>
2658
2659         Reviewed by darin.
2660
2661         Export _NPN_IntFromIdentifier as part of our NPAPI interface
2662
2663         * Plugins/WebNetscapePluginPackage.m:
2664         (-[WebNetscapePluginPackage load]):
2665
2666 2008-03-14  Brady Eidson  <beidson@apple.com>
2667
2668         Reviewed by Brian Dash's rubberstamp
2669
2670         Remove a class declaration for a class that has never existed
2671
2672         * WebView/WebResource.h:
2673
2674 2008-03-14  David D. Kilzer  <ddkilzer@apple.com>
2675
2676         Unify concept of enabling the Mac Java bridge.
2677
2678         Reviewed by Darin and Anders.
2679
2680         * Plugins/WebPluginJava.h: Removed unused file.
2681         * WebCoreSupport/WebFrameLoaderClient.h:
2682         (WebFrameLoaderClient::javaApplet): Added #if ENABLE(MAC_JAVA_BRIDGE) guard.
2683         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto for #import and NSView SPI method.
2684         (WebFrameLoaderClient::javaApplet): Ditto.
2685
2686 2008-03-13  Antti Koivisto  <antti@apple.com>
2687
2688         Reviewed by Darin.
2689
2690         * ForwardingHeaders/wtf/Deque.h: Added.
2691
2692 2008-03-13  Anders Carlsson  <andersca@apple.com>
2693
2694         Reviewed by Adam.
2695
2696         Call originalRequest, not initialRequest.
2697         
2698         * WebView/WebDataSource.mm:
2699         (-[WebDataSource initialRequest]):
2700
2701 2008-03-12  Darin Adler  <darin@apple.com>
2702
2703         Reviewed by John Sullivan.
2704
2705         - cleanup after removing the bridge
2706
2707         * DOM/WebDOMOperations.mm:
2708         (-[DOMDocument URLWithAttributeString:]): Call computeURL directly.
2709
2710         * Misc/WebCoreStatistics.mm:
2711         (-[WebFrame renderTreeAsExternalRepresentation]): Call externalRepresentation directly.
2712
2713         * Plugins/WebBaseNetscapePluginView.mm:
2714         (-[WebBaseNetscapePluginView loadPluginRequest:]): Use core function instead of
2715         _frameLoader method.
2716         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2717         Ditto.
2718         * Plugins/WebPluginController.mm:
2719         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]): Ditto.
2720
2721         * WebCoreSupport/WebFrameLoaderClient.mm:
2722         (WebFrameLoaderClient::frameLoaderDestroyed): Added a call to the new _clearCoreFrame
2723         method. Without this we could leave a stale frame pointer around.
2724         (WebFrameLoaderClient::dispatchDidReceiveIcon): Rewrote assertion so it's not the single
2725         caller of the _isMainFrame method.
2726         (WebFrameLoaderClient::transitionToCommittedForNewPage): Use core function instead of
2727         _frameLoader method.
2728         (WebFrameLoaderClient::createFrame): Moved code here from _addChild.
2729
2730         * WebView/WebFrame.mm: Removed lots of methods. Some were moved elsewhere, others
2731         turned out to be unused.
2732         (core): Added overload for DocumentFragment.
2733         (kit): Ditto.
2734         (-[WebFrame _loadURL:referrer:intoChild:]): Get to Frame using _private->coreFrame and
2735         to FrameLoader with _private->coreFrame->loader().
2736         (-[WebFrame _attachScriptDebugger]): Ditto.
2737         (-[WebFrame _clearCoreFrame]): Added.
2738         (-[WebFrame _updateBackground]): More of the same.
2739         (-[WebFrame _unmarkAllBadGrammar]): Ditto.
2740         (-[WebFrame _unmarkAllMisspellings]): Ditto.
2741         (-[WebFrame _hasSelection]): Ditto.
2742         (-[WebFrame _atMostOneFrameHasSelection]): Ditto.
2743         (-[WebFrame _findFrameWithSelection]): Ditto.
2744         (-[WebFrame _dataSource]): Ditto.
2745         (-[WebFrame _addData:]): Streamlined code a bit.
2746         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]): Ditto.
2747         (-[WebFrame _receivedData:textEncodingName:]): Ditto.
2748         (-[WebFrame _isDescendantOfFrame:]): Ditto.
2749         (-[WebFrame _bodyBackgroundColor]): Ditto.
2750         (-[WebFrame _isFrameSet]): Ditto.
2751         (-[WebFrame _firstLayoutDone]): Ditto.
2752         (-[WebFrame _loadType]): Ditto.
2753         (-[WebFrame _isDisplayingStandaloneImage]): Ditto.
2754         (-[WebFrame name]): Ditto.
2755         (-[WebFrame DOMDocument]): Ditto.
2756         (-[WebFrame frameElement]): Ditto.
2757         (-[WebFrame provisionalDataSource]): Ditto.
2758         (-[WebFrame dataSource]): Ditto.
2759         (-[WebFrame loadRequest:]): Ditto.
2760         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Ditto.
2761         (-[WebFrame loadArchive:]): Ditto.
2762         (-[WebFrame stopLoading]): Ditto.
2763         (-[WebFrame reload]): Ditto.
2764         (-[WebFrame findFrameNamed:]): Ditto.
2765         (-[WebFrame parentFrame]): Ditto.
2766         (-[WebFrame childFrames]): Ditto.
2767         (-[WebFrame windowObject]): Ditto.
2768         (-[WebFrame globalContext]): Ditto.
2769
2770         * WebView/WebFrameInternal.h: Added overloads of core and kit.
2771         Removed method declarations.
2772
2773         * WebView/WebHTMLRepresentation.mm:
2774         (-[WebHTMLRepresentation documentSource]): Moved code here from WebFrame.
2775         (formElementFromDOMElement): Ditto.
2776         (-[WebHTMLRepresentation elementWithName:inForm:]): Ditto.
2777         (inputElementFromDOMElement): Ditto.
2778         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Ditto.
2779         (-[WebHTMLRepresentation elementIsPassword:]): Ditto.
2780         (-[WebHTMLRepresentation formForElement:]): Ditto.
2781         (-[WebHTMLRepresentation currentForm]): Ditto.
2782         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2783         (-[WebHTMLRepresentation searchForLabels:beforeElement:]): Ditto.
2784         (-[WebHTMLRepresentation matchLabels:againstElement:]): Ditto.
2785
2786         * WebView/WebHTMLView.mm:
2787         (-[WebHTMLView _frameOrBoundsChanged]): Moved sendScrollEvent code here from WebFrame.
2788         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2789         Call createFragmentFromText directly instead of via WebFrame.
2790         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
2791         Moved layout calls here from WebFrame.
2792         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
2793         (-[WebHTMLView _updateFontPanel]): Ditto, but with fontForSelection.
2794         (-[WebHTMLView _canSmartCopyOrDelete]): Ditto, but with selectionGranularity.
2795         (-[WebHTMLView markedRange]): Moved code here from _markedTextNSRange.
2796         (-[WebHTMLView attributedSubstringFromRange:]): Tweaked code a bit.
2797         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
2798         Moved code here from WebFrame.
2799         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
2800         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): Ditto.
2801         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]): Ditto.
2802         (-[WebHTMLView markedTextMatchesAreHighlighted]): Ditto.
2803         (-[WebHTMLView unmarkAllTextMatches]): Ditto.
2804         (-[WebHTMLView rectsForTextMatches]): Ditto.
2805
2806         * WebView/WebHTMLViewInternal.h: Removed unused method declarations.
2807
2808         * WebView/WebPDFView.mm:
2809         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Use core function instead of
2810         _frameLoader method.
2811
2812         * WebView/WebRenderNode.mm:
2813         (copyRenderNode): Moved code here from WebFrame.
2814         (-[WebRenderNode initWithWebFrameView:]): Ditto.
2815
2816         * WebView/WebResource.mm:
2817         (-[WebResource _stringValue]): Moved code here from WebFrame.
2818
2819         * WebView/WebView.mm:
2820         (-[WebView _close]): Use core function intsead of _frameLoader method.
2821         (-[WebView setCustomTextEncodingName:]): Ditto.
2822         (-[WebView setHostWindow:]): Moved code here from WebFrame.
2823         (aeDescFromJSValue): Moved this here from WebFrame.
2824         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Moved code here from WebFrame.
2825
2826 2008-03-12  Darin Adler  <darin@apple.com>
2827
2828         Reviewed by Anders.
2829
2830         - http://bugs.webkit.org/show_bug.cgi?id=17640
2831           eliminate WebCoreFrameBridge
2832
2833         Moved all the code from the bridge into WebFrame. This need not be the final
2834         home of these methods -- they can be moved closer to their callers and improved
2835         further -- but it eliminates the bridge without requiring a rewrite of the code.
2836         It's a fairly mechanical process (just adding underscores to method names really).
2837
2838         There's even a chance that some of the methods are unused. Those we can remove
2839         after checking if that's so.
2840
2841         * DOM/WebDOMOperations.mm:
2842         (-[DOMNode markupString]): Use WebFrame rather than bridge.
2843         (-[DOMDocument webFrame]): Changed to use the core and kit functions
2844         instead of using the bridge.
2845         (-[DOMDocument URLWithAttributeString:]): Use WebFrame rather than bridge.
2846         (-[DOMRange markupString]): Ditto.
2847         * DOM/WebDOMOperationsPrivate.h: Removed _bridge methods.
2848
2849         * DefaultDelegates/WebDefaultContextMenuDelegate.mm: Removed unneeded import.
2850         * History/WebHistoryItem.mm: Ditto.
2851
2852         * MigrateHeaders.make: Added DOMDocumentFragmentInternal.h.
2853         * Misc/WebCoreStatistics.mm:
2854         (-[WebFrame renderTreeAsExternalRepresentation]): Use WebFrame rather than bridge.
2855
2856         * Misc/WebElementDictionary.mm: Removed unneeded import.
2857
2858         * Misc/WebKitStatistics.m:
2859         (+[WebKitStatistics bridgeCount]): Removed WebBridgeCount and just return 0.
2860         * Misc/WebKitStatisticsPrivate.h: Ditto.
2861
2862         * Misc/WebNSAttributedStringExtras.mm: Removed unneeded import.
2863         * Misc/WebNSPasteboardExtras.mm: Ditto.
2864
2865         * Plugins/WebBaseNetscapePluginView.mm:
2866         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Use WebFrame
2867         rather than bridge.
2868
2869         * Plugins/WebNetscapePluginEmbeddedView.mm: Removed unneeded import.
2870         * Plugins/WebNetscapePluginStream.mm: Ditto.
2871
2872         * Plugins/WebPluginContainerCheck.mm:
2873         (-[WebPluginContainerCheck _isForbiddenFileLoad]): Use WebFrame rather than
2874         bridge to get to the WebCore::Frame.
2875
2876         * Plugins/WebPluginController.h: Declare webFrame method and remove bridge method.
2877         * Plugins/WebPluginController.mm:
2878         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]): Use WebFrame
2879         rather than bridge.
2880
2881         * WebCoreSupport/WebEditorClient.mm:
2882         (selectorForKeyEvent): Tweaked comment.
2883
2884         * WebCoreSupport/WebFrameBridge.h: Removed.
2885         * WebCoreSupport/WebFrameBridge.mm: Removed.
2886
2887         * WebCoreSupport/WebFrameLoaderClient.mm:
2888         (WebFrameLoaderClient::frameLoaderDestroyed): Removed bridge assertion.
2889         (WebFrameLoaderClient::detachedFromParent4): Removed bridge teardown code.
2890         I could remove this function entirely, but it looks like the Qt port is using it.
2891
2892         * WebCoreSupport/WebViewFactory.mm: Removed unneeded import.
2893
2894         * WebView/WebArchiver.mm:
2895         (+[WebArchiver archiveRange:]): Use WebFrame rather than bridge.
2896         (+[WebArchiver archiveNode:]): Ditto.
2897         (+[WebArchiver archiveSelectionInFrame:]): Ditto.
2898
2899         * WebView/WebDataSource.mm:
2900         (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): Ditto.
2901         (-[WebDataSource _documentFragmentWithArchive:]): Ditto.
2902         (-[WebDataSource subresources]): Ditto.
2903         (-[WebDataSource subresourceForURL:]): Ditto.
2904
2905         * WebView/WebDataSourceInternal.h: Removed _bridge method.
2906
2907         * WebView/WebFrame.mm:
2908         (-[WebFramePrivate dealloc]): Removed code to release the bridge.
2909         (core): Go directly to the core frame, not via the bridge.
2910         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
2911         Remove the code to deal with the bridge.
2912         (-[WebFrame _initWithWebFrameView:webView:]): Ditto. Also added code to set the
2913         shouldCreateRenderers flag, formerly on the bridge.
2914         (-[WebFrame _updateBackground]): Change to call mehods on self, not bridge.
2915         (aeDescFromJSValue): Moved here from bridge.
2916         (-[WebFrame _domain]): Ditto.
2917         (-[WebFrame _addData:]): Ditto.
2918         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]): Ditto.
2919         (-[WebFrame _nodesFromList:]): Ditto.
2920         (-[WebFrame _markupStringFromNode:nodes:]): Ditto.
2921         (-[WebFrame _markupStringFromRange:nodes:]): Ditto.
2922         (-[WebFrame _selectedString]): Ditto.
2923         (-[WebFrame _stringForRange:]): Ditto.
2924         (-[WebFrame _forceLayoutAdjustingViewSize:]): Ditto.
2925         (-[WebFrame _forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Ditto.
2926         (-[WebFrame _sendScrollEvent]): Ditto.
2927         (-[WebFrame _drawRect:]): Ditto.
2928         (-[WebFrame _computePageRectsWithPrintWidthScaleFactor:printHeight:]): Ditto.
2929         (-[WebFrame _adjustPageHeightNew:top:bottom:limit:]): Ditto.
2930         (-[WebFrame _copyRenderNode:copier:]): Ditto.
2931         (-[WebFrame _copyRenderTree:]): Ditto.
2932         (inputElementFromDOMElement): Ditto.
2933         (formElementFromDOMElement): Ditto.
2934         (-[WebFrame _elementWithName:inForm:]): Ditto.
2935         (-[WebFrame _elementDoesAutoComplete:]): Ditto.
2936         (-[WebFrame _elementIsPassword:]): Ditto.
2937         (-[WebFrame _formForElement:]): Ditto.
2938         (-[WebFrame _currentForm]): Ditto.
2939         (-[WebFrame _controlsInForm:]): Ditto.
2940         (-[WebFrame _searchForLabels:beforeElement:]): Ditto.
2941         (-[WebFrame _matchLabels:againstElement:]): Ditto.
2942         (-[WebFrame _URLWithAttributeString:]): Ditto.
2943         (-[WebFrame _searchFor:direction:caseSensitive:wrap:startInSelection:]): Ditto.
2944         (-[WebFrame _markAllMatchesForText:caseSensitive:limit:]): Ditto.
2945         (-[WebFrame _markedTextMatchesAreHighlighted]): Ditto.
2946         (-[WebFrame _setMarkedTextMatchesAreHighlighted:]): Ditto.
2947         (-[WebFrame _unmarkAllTextMatches]): Ditto.
2948         (-[WebFrame _rectsForTextMatches]): Ditto.
2949         (-[WebFrame _stringByEvaluatingJavaScriptFromString:]): Ditto.
2950         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Ditto.
2951         (-[WebFrame _aeDescByEvaluatingJavaScriptFromString:]): Ditto.
2952         (-[WebFrame _caretRectAtNode:offset:affinity:]): Ditto.
2953         (-[WebFrame _firstRectForDOMRange:]): Ditto.
2954         (-[WebFrame _scrollDOMRangeToVisible:]): Ditto.
2955         (-[WebFrame _baseURL]): Ditto.
2956         (-[WebFrame _stringWithData:]): Ditto.
2957         (+[WebFrame _stringWithData:textEncodingName:]): Ditto.
2958         (-[WebFrame _needsLayout]): Ditto.
2959         (-[WebFrame _renderTreeAsExternalRepresentation]): Ditto.
2960         (-[WebFrame _accessibilityTree]): Ditto.
2961         (-[WebFrame _setBaseBackgroundColor:]): Ditto.
2962         (-[WebFrame _setDrawsBackground:]): Ditto.
2963         (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
2964         Ditto.
2965         (-[WebFrame _selectionGranularity]): Ditto.
2966         (-[WebFrame _convertToNSRange:]): Ditto.
2967         (-[WebFrame _convertToDOMRange:]): Ditto.
2968         (-[WebFrame _convertNSRangeToDOMRange:]): Ditto.
2969         (-[WebFrame _convertDOMRangeToNSRange:]): Ditto.
2970         (-[WebFrame _markDOMRange]): Ditto.
2971         (-[WebFrame _markedTextNSRange]): Ditto.
2972         (-[WebFrame _smartDeleteRangeForProposedRange:]): Ditto.
2973         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
2974         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]): Ditto.
2975         (-[WebFrame _documentFragmentWithText:inContext:]): Ditto.
2976         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]): Ditto.
2977         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]): Ditto.
2978         (-[WebFrame _replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]): Ditto.
2979         (-[WebFrame _replaceSelectionWithMarkupString:baseURLString:selectReplacement:smartReplace:]): Ditto.
2980         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]): Ditto.
2981         (-[WebFrame _insertParagraphSeparatorInQuotedContent]): Ditto.
2982         (-[WebFrame _visiblePositionForPoint:]): Ditto.
2983         (-[WebFrame _characterRangeAtPoint:]): Ditto.
2984         (-[WebFrame _typingStyle]): Ditto.
2985         (-[WebFrame _setTypingStyle:withUndoAction:]): Ditto.
2986         (-[WebFrame _fontForSelection:]): Ditto.
2987         (-[WebFrame _dragSourceMovedTo:]): Ditto.
2988         (-[WebFrame _dragSourceEndedAt:operation:]): Ditto.
2989         (-[WebFrame _getData:andResponse:forURL:]): Ditto.
2990         (-[WebFrame _getAllResourceDatas:andResponses:]): Ditto.
2991         (-[WebFrame _canProvideDocumentSource]): Ditto.
2992         (-[WebFrame _canSaveAsWebArchive]): Ditto.
2993         (-[WebFrame _receivedData:textEncodingName:]): Ditto.
2994         (-[WebFrame _setShouldCreateRenderers:]): Put the code from the bridge in this preexisting
2995         function. Couldn't just keep the bridge method because this was already here with the same name.
2996         (-[WebFrame _selectedNSRange]): Ditto.
2997         (-[WebFrame _selectNSRange:]): Ditto.
2998         (-[WebFrame dealloc]): Remove bridge-related code.
2999         (-[WebFrame finalize]): Ditto.
3000
3001         * WebView/WebFrameInternal.h: Added all the method declarations from the bridge.
3002         Removed the bridge parameter from the init method. Removed the #if blocks that
3003         tried to make this header work in non-C++ ObjC files -- they were broken and unused.
3004         Removed the _bridge method.
3005
3006         * WebView/WebFrameView.mm: Removed the _bridge method.
3007
3008         * WebView/WebHTMLRepresentation.mm:
3009         (-[WebHTMLRepresentation setDataSource:]): Removed the code to set up the bridge
3010         field.
3011         (-[WebHTMLRepresentation receivedData:withDataSource:]): Use WebFrame instead of bridge.
3012         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Ditto.
3013         (-[WebHTMLRepresentation canProvideDocumentSource]): Ditto.
3014         (-[WebHTMLRepresentation canSaveAsWebArchive]): Ditto.
3015         (-[WebHTMLRepresentation documentSource]): Ditto.
3016         (-[WebHTMLRepresentation DOMDocument]): Ditto.
3017         (-[WebHTMLRepresentation elementWithName:inForm:]): Ditto.
3018         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Ditto.
3019         (-[WebHTMLRepresentation elementIsPassword:]): Ditto.
3020         (-[WebHTMLRepresentation formForElement:]): Ditto.
3021         (-[WebHTMLRepresentation currentForm]): Ditto.
3022         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
3023         (-[WebHTMLRepresentation searchForLabels:beforeElement:]): Ditto.
3024         (-[WebHTMLRepresentation matchLabels:againstElement:]): Ditto.
3025
3026         * WebView/WebHTMLRepresentationPrivate.h: Removed the _bridge method.
3027
3028         * WebView/WebHTMLView.mm:
3029         (-[WebHTMLView _documentFragmentWithPaths:]): Use WebFrame instead of bridge.
3030         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Ditto.
3031         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Ditto.
3032         (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
3033         (-[WebHTMLView _frameOrBoundsChanged]): Ditto.
3034         (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
3035         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]): Ditto.
3036         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Ditto.
3037         (-[WebHTMLView drawSingleRect:]): Ditto.
3038         (-[WebHTMLView draggedImage:movedTo:]): Ditto.
3039         (-[WebHTMLView draggedImage:endedAt:operation:]): Ditto.
3040         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
3041         (-[WebHTMLView knowsPageRange:]): Ditto.
3042         (-[WebHTMLView accessibilityAttributeValue:]): Ditto.
3043         (-[WebHTMLView accessibilityFocusedUIElement]): Ditto.
3044         (-[WebHTMLView accessibilityHitTest:]): Ditto.
3045         (-[WebHTMLView _accessibilityParentForSubview:]): Ditto.
3046         (-[WebHTMLView changeDocumentBackgroundColor:]): Ditto.
3047         (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
3048         (-[WebHTMLView _changeSpellingToWord:]): Ditto.
3049         (-[WebHTMLView startSpeaking:]): Ditto.
3050         (-[WebHTMLView _updateFontPanel]): Ditto.
3051         (-[WebHTMLView _canSmartCopyOrDelete]): Ditto.
3052         (-[WebHTMLView _layoutIfNeeded]): Ditto.
3053         (-[WebHTMLView characterIndexForPoint:]): Ditto.
3054         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
3055         (-[WebHTMLView selectedRange]): Ditto.
3056         (-[WebHTMLView markedRange]): Ditto.
3057         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
3058         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
3059         (-[WebHTMLView insertText:]): Ditto.
3060         (-[WebTextCompleteController _insertMatch:]): Ditto.
3061         (-[WebTextCompleteController doCompletion]): Ditto.
3062         (-[WebTextCompleteController endRevertingChange:moveLeft:]): Ditto.
3063         (-[WebHTMLView string]): Ditto.
3064         (-[WebHTMLView selectedString]): Ditto.
3065         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Ditto.
3066         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): Ditto.
3067         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]): Ditto.
3068         (-[WebHTMLView markedTextMatchesAreHighlighted]): Ditto.
3069         (-[WebHTMLView unmarkAllTextMatches]): Ditto.
3070         (-[WebHTMLView rectsForTextMatches]): Ditto.
3071         * WebView/WebRenderNode.mm:
3072         (-[WebRenderNode initWithWebFrameView:]): Ditto.
3073         * WebView/WebResource.mm:
3074         (-[WebResource _stringValue]): Ditto.
3075
3076         * WebView/WebScriptDebugDelegate.mm: Removed unneeded include.
3077
3078         * WebView/WebView.mm:
3079         (-[WebView _dashboardRegions]): Use WebFrame instead of bridge.
3080         (-[WebView setProhibitsMainFrameScrolling:]): Ditto.
3081         (-[WebView _setInViewSourceMode:]): Ditto.
3082         (-[WebView _inViewSourceMode]): Ditto.
3083         (-[WebView _executeCoreCommandByName:value:]): Ditto.
3084         (-[WebView stringByEvaluatingJavaScriptFromString:]): Ditto.
3085         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Ditto.
3086         (-[WebView scrollDOMRangeToVisible:]): Ditto.
3087         (-[WebView setSelectedDOMRange:affinity:]): Ditto.
3088         (-[WebView setEditable:]): Ditto.
3089         (-[WebView setTypingStyle:]): Ditto.
3090         (-[WebView typingStyle]): Ditto.
3091         (-[WebView replaceSelectionWithNode:]): Ditto.
3092         (-[WebView replaceSelectionWithText:]): Ditto.
3093         (-[WebView replaceSelectionWithMarkupString:]): Ditto.
3094         (-[WebView replaceSelectionWithArchive:]): Ditto.
3095         (-[WebView _insertNewlineInQuotedContent]): Ditto.
3096         (-[WebView _replaceSelectionWithNode:matchStyle:]): Ditto.
3097
3098 2008-03-12  David Hyatt  <hyatt@apple.com>
3099
3100         Make the zoom factor a float and not a percent.
3101
3102         Reviewed by antti
3103
3104         * WebView/WebView.mm:
3105         (-[WebView _setZoomMultiplier:isTextOnly:]):
3106
3107 2008-03-11  David Hyatt  <hyatt@apple.com>
3108
3109         This patch prepares Mac WebKit to handle two different zooming modes (full page zoom and text only zoom).
3110         New API is added that is parallel to the text zoom public API.  You can get/set a pageSizeMultiplier and you
3111         can zoom the page in, out or reset it to the standard size.
3112
3113         In the implementation only one zoom factor is stored, and setting one multiplier will shift you into that mode
3114         and set the common zoom factor.  In other words you can't combine text zoom and page zoom.  One will always
3115         win.
3116
3117         Reviewed by Tim H.
3118
3119         * WebCoreSupport/WebFrameBridge.mm:
3120         (-[WebFrameBridge finishInitializingWithPage:frameName:WebCore::frameView:ownerElement:]):
3121         * WebView/WebDocumentInternal.h:
3122         * WebView/WebHTMLView.mm:
3123         (-[WebHTMLView viewDidMoveToSuperview]):
3124         * WebView/WebPDFView.h:
3125         * WebView/WebPDFView.mm:
3126         (-[WebPDFView _zoomOut:]):
3127         (-[WebPDFView _zoomIn:]):
3128         (-[WebPDFView _resetZoom:]):
3129         (-[WebPDFView _canZoomOut]):
3130         (-[WebPDFView _canZoomIn]):
3131         (-[WebPDFView _canResetZoom]):
3132         * WebView/WebView.mm:
3133         (-[WebViewPrivate init]):
3134         (-[WebView setTextSizeMultiplier:]):
3135         (-[WebView textSizeMultiplier]):
3136         (-[WebView _setZoomMultiplier:isTextOnly:]):
3137         (-[WebView _zoomMultiplier:]):
3138         (-[WebView _realZoomMultiplier]):
3139         (-[WebView _realZoomMultiplierIsTextOnly]):
3140         (-[WebView _canZoomOut:]):
3141         (-[WebView _canZoomIn:]):
3142         (-[WebView _zoomOut:isTextOnly:]):
3143         (-[WebView _zoomIn:isTextOnly:]):
3144         (-[WebView _canResetZoom:]):
3145         (-[WebView _resetZoom:isTextOnly:]):
3146         (-[WebView canMakeTextSmaller]):
3147         (-[WebView makeTextSmaller:]):
3148         (-[WebView canMakeTextLarger]):
3149         (-[WebView makeTextLarger:]):
3150         (-[WebView canMakeTextStandardSize]):
3151         (-[WebView makeTextStandardSize:]):
3152         (-[WebView setPageSizeMultiplier:]):
3153         (-[WebView pageSizeMultiplier]):
3154         (-[WebView canZoomPageIn]):
3155         (-[WebView zoomPageIn:]):
3156         (-[WebView canZoomPageOut]):
3157         (-[WebView zoomPageOut:]):
3158         (-[WebView canResetPageZoom]):
3159         (-[WebView resetPageZoom:]):
3160         (-[WebView _searchWithSpotlightFromMenu:]):
3161         * WebView/WebViewInternal.h:
3162         * WebView/WebViewPrivate.h:
3163
3164 2008-03-12  Dan Bernstein  <mitz@apple.com>
3165
3166         Reviewed by Darin Adler and Sam Weinig.
3167
3168         - <rdar://problem/4433248> use CoreText API instead of SPI on Leopard
3169
3170         * WebCoreSupport/WebSystemInterface.m:
3171         (InitWebCoreSystemInterface): Made WKGetCGFontFromNSFont and
3172         WKGetNSFontATSUFontId Tiger-only.
3173
3174 2008-03-12  Darin Adler  <darin@apple.com>
3175
3176         - fix http://bugs.webkit.org/show_bug.cgi?id=17794
3177           REGRESSION (r30980): 23 tests hanging on the Mac buildbot
3178
3179         * WebView/WebFrame.mm:
3180         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Added missing call to set
3181         up pointer from the bridge to the frame. (My next check-in removes the bridge
3182         entirely, but we need this until then.)
3183
3184 2008-03-11  Darin Adler  <darin@apple.com>
3185
3186         Reviewed by Sam.
3187
3188         - remove all bridge-related things from WebCore except the bridge itself
3189
3190         * DOM/WebDOMOperations.mm:
3191         (-[DOMNode _bridge]): Reimplemented to not use the bridgeForDOMDocument: method.
3192
3193         * DefaultDelegates/WebDefaultContextMenuDelegate.mm: Removed unneeded include.
3194
3195         * Plugins/WebPluginController.mm: Ditto.
3196
3197         * WebCoreSupport/WebFrameBridge.h: Removed unneeded things, including the
3198         init and close methods. Added a setWebFrame: method.
3199
3200         * WebCoreSupport/WebFrameBridge.mm:
3201         (-[WebFrameBridge setWebFrame:]): Added.
3202
3203         * WebCoreSupport/WebFrameLoaderClient.mm:
3204         (WebFrameLoaderClient::frameLoaderDestroyed): Added an assertion.
3205         (WebFrameLoaderClient::detachedFromParent4): Moved the call to close on the
3206         bridge here. Soon we will be able to remove this entirely!
3207         (WebFrameLoaderClient::createFrame): Rewrote this to use the method moved
3208         into WebFrame from the bridge.
3209
3210         * WebView/WebFrame.mm:
3211         (-[WebFramePrivate dealloc]): Added code to release the bridge, because it's
3212         now owned by the frame.
3213         (-[WebFramePrivate finalize]): Added this missing method. We'd leak the script
3214         debugger under GC without this!
3215         (kit): Rewrote the function that maps from a WebCore::Frame to a WebFrame to
3216         use WebFrameLoaderClient instead of the bridge.
3217         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]): Added.
3218         This is code that used to live in the bridge's init function.
3219         (+[WebFrame _createMainFrameWithPage:frameName:frameView:]): Ditto.
3220         (+[WebFrame WebCore::_createSubframeWithOwnerElement:frameName:frameView:]): Ditto.
3221         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Retain the bridge, since
3222         the WebView is now the bridge's owner.
3223         (-[WebFrame _updateBackground]): Changed this one call site that was calling the
3224         WebCore::Frame::bridge function directly to use the kit function instead.
3225         (-[WebFrame dealloc]): Added code to clear the WebFrame pointer in the bridge.
3226         This code won't last long -- we're eliminating the bridge soon.
3227         (-[WebFrame finalize]): Ditto.
3228
3229         * WebView/WebFrameInternal.h: Added a coreFrame backpointer and two new methods
3230         for creating frames.
3231
3232         * WebView/WebView.mm:
3233         (-[WebView _commonInitializationWithFrameName:groupName:]): Rewrote this to use
3234         the method moved into WebFrame from the bridge. Gets rid of the unpleasant idiom
3235         where we have to allocate a WebFrameBridge and then immediately release it.
3236
3237 2008-03-11  Darin Adler  <darin@apple.com>
3238
3239         Reviewed by Anders.
3240
3241         - remove code depending on the bridge to get from an NSView to a WebCore::Frame
3242
3243         * WebCoreSupport/WebFrameLoaderClient.mm:
3244         (WebFrameLoaderClient::transitionToCommittedForNewPage): Remove incorrect call
3245         to setView. A couple lines later, there is a call to _install, which sets the
3246         view to the scroll view.
3247
3248         * WebCoreSupport/WebViewFactory.mm: Removed bridgeForView method.
3249
3250         * WebView/WebDynamicScrollBarsView.h: Moved most of the declarations out of
3251         this file, since it's used by Safari.
3252         * WebView/WebDynamicScrollBarsViewInternal.h: Added.
3253         * WebView/WebDynamicScrollBarsView.m:
3254         (-[WebDynamicScrollBarsView updateScrollers]): Ditto.
3255         (-[WebDynamicScrollBarsView setAllowsScrolling:]): Ditto.
3256         (-[WebDynamicScrollBarsView allowsScrolling]): Ditto.
3257         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]): Ditto.
3258         (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]): Ditto.
3259         (-[WebDynamicScrollBarsView allowsHorizontalScrolling]): Ditto.
3260         (-[WebDynamicScrollBarsView allowsVerticalScrolling]): Ditto.
3261         (-[WebDynamicScrollBarsView horizontalScrollingMode]): Ditto.
3262         (-[WebDynamicScrollBarsView verticalScrollingMode]): Ditto.
3263         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]): Ditto.
3264         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:andLock:]): Ditto.
3265         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]): Ditto.
3266         (-[WebDynamicScrollBarsView setVerticalScrollingMode:andLock:]): Ditto.
3267         (-[WebDynamicScrollBarsView setScrollingMode:]): Ditto.
3268         (-[WebDynamicScrollBarsView setScrollingMode:andLock:]): Ditto.
3269
3270         * WebView/WebFrameView.mm:
3271         (-[WebFrameView _web_frame]): Added. Replaces the webCoreBridge method.
3272
3273         * WebView/WebView.mm:
3274         (-[WebView setAlwaysShowVerticalScroller:]): Updated for changes to WebCoreFrameView.h.
3275         (-[WebView alwaysShowVerticalScroller]): Ditto.
3276         (-[WebView setAlwaysShowHorizontalScroller:]): Ditto.
3277         (-[WebView alwaysShowHorizontalScroller]): Ditto.
3278
3279 2008-03-11  Darin Adler  <darin@apple.com>
3280
3281         Reviewed by Sam.
3282
3283         - eliminate the remaining parts of WebCoreBridge used for calls to WebKit from WebCore
3284
3285         * WebCoreSupport/WebChromeClient.h: Added new virtual functions that replace
3286         bridge methods.
3287         * WebCoreSupport/WebChromeClient.mm: Added lots of BEGIN_BLOCK_OBJC_EXCEPTIONS
3288         to recently-created functions.
3289         (WebChromeClient::firstResponder): Moved code here from the bridge.
3290         (WebChromeClient::makeFirstResponder): Ditto.
3291         (WebChromeClient::runOpenPanel): Ditto.
3292         (WebChromeClient::willPopUpMenu): Ditto.
3293
3294         * WebCoreSupport/WebFrameBridge.h: Removed almost everything. What's left
3295         is related to creating the bridge and connecting it to WebCore, which will
3296         go next when I eliminate use of the bridge to get to/from the Frame*.
3297         * WebCoreSupport/WebFrameBridge.mm:
3298         (-[WebFrameBridge close]): Moved the code to track the bridge count here
3299         instead of the dealloc and finalize methods.
3300
3301 2008-03-11  Darin Adler  <darin@apple.com>
3302
3303         Reviewed by Mitz.
3304
3305         - update code affected by Range changes
3306
3307         * Misc/WebNSAttributedStringExtras.mm:
3308         (+[NSAttributedString _web_attributedStringFromRange:]): Update for name changes.
3309         * WebView/WebHTMLRepresentation.mm:
3310         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
3311         Use Range::create.
3312         * WebView/WebHTMLView.mm:
3313         (-[WebHTMLView attributedString]): Ditto.
3314
3315 2008-03-10  Darin Adler  <darin@apple.com>
3316
3317         Reviewed by Sam.
3318
3319         - eliminate keyboard UI mode method from WebCoreFrameBridge
3320
3321         * WebCoreSupport/WebChromeClient.h: Added keyboardUIMode function.
3322         * WebCoreSupport/WebChromeClient.mm:
3323         (WebChromeClient::keyboardUIMode): Ditto. Calls WebView.
3324         * WebCoreSupport/WebFrameBridge.h: Removed unused things, including the
3325         fields for keyboard UI mode.
3326         * WebCoreSupport/WebFrameBridge.mm:
3327         (-[WebFrameBridge dealloc]): Removed unneeded code; eliminated the fini
3328         method.
3329         (-[WebFrameBridge finalize]): Ditto.
3330         * WebView/WebView.mm: Moved the keyboard mode code in here.
3331         (-[WebView _close]): Remove observer from the distributed notification
3332         center as well as the normal one.
3333         (-[WebView _retrieveKeyboardUIModeFromPreferences:]): Added. Code moved
3334         here from the bridge.
3335         (-[WebView _keyboardUIMode]): Ditto.
3336         * WebView/WebViewInternal.h: Added _keyboardUIMode method.
3337
3338 2008-03-10  Darin Adler  <darin@apple.com>
3339
3340         Reviewed by Sam.
3341
3342         - eliminate Java applet methods from WebCoreFrameBridge
3343
3344         * WebCoreSupport/WebChromeClient.mm: Removed unneeded headers and declarations.
3345         * WebCoreSupport/WebFrameBridge.mm: Ditto. Also removed unneeded methods, including
3346         the ones that load Java applets.
3347         * WebCoreSupport/WebFrameLoaderClient.h: Added javaApplet function.
3348         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
3349
3350 2008-03-07  Simon Hausmann  <hausmann@webkit.org>
3351
3352         Reviewed by Darin.
3353
3354         Done with Lars.
3355
3356         Simplified WebViewFactory's refreshPlugins method to only refresh the
3357         plugins and not reload the frames anymore since that's now done in a
3358         platform independent manner by WebCore::Page.
3359
3360         Also removed the now unused pluginNameForMIMEType and
3361         pluginSupportsMIMEType methods.
3362
3363         * WebCoreSupport/WebViewFactory.mm:
3364         * WebView/WebFrame.mm:
3365         * WebView/WebFrameInternal.h:
3366         * WebView/WebView.mm:
3367
3368 2008-03-08  Mark Rowe  <mrowe@apple.com>
3369
3370         Reviewed by Darin Adler.
3371
3372         Fix 64-bit build with GCC 4.2.
3373
3374         * DefaultDelegates/WebDefaultScriptDebugDelegate.m: Use NSUInteger in place of unsigned where required.
3375         * DefaultDelegates/WebDefaultUIDelegate.m: Ditto.
3376         * History/WebHistoryItem.mm: Ditto.
3377         * Misc/WebElementDictionary.mm: Ditto.
3378         * WebCoreSupport/WebFrameLoaderClient.mm:
3379         (WebFrameLoaderClient::objectContentType): Move variable declaration outside of if to avoid warning about the
3380         variable being unused in 64-bit.
3381         * WebCoreSupport/WebInspectorClient.mm: Use NSUInteger in place of unsigned where required.
3382         * WebView/WebHTMLView.mm:
3383         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Use CGFloat in place of float where required.
3384         (-[WebTextCompleteController numberOfRowsInTableView:]): Use NSInteger in place of int where required.
3385
3386 2008-03-08  Darin Adler  <darin@apple.com>
3387
3388         Reviewed by Adele.
3389
3390         - eliminate custom highlight methods from WebCoreFrameBridge
3391
3392         * WebCoreSupport/WebChromeClient.h: Added custom highlight functions.
3393         * WebCoreSupport/WebChromeClient.mm:
3394         (WebChromeClient::customHighlightRect): Moved code here from bridge.
3395         (WebChromeClient::paintCustomHighlight): Ditto.
3396         * WebCoreSupport/WebFrameBridge.mm: Removed code here.
3397
3398 2008-03-07  David D. Kilzer  <ddkilzer@apple.com>
3399
3400         Unify concept of enabling Netscape Plug-in API (NPAPI).
3401
3402         Reviewed by Darin.
3403
3404         * WebKit.exp: Removed unused class export for WebBaseNetscapePluginView.
3405
3406         * WebKitPrefix.h: Removed WTF_USE_NPOBJECT since we now use
3407         ENABLE(NETSCAPE_PLUGIN_API) as defined in Platform.h.
3408
3409         * Plugins/WebBaseNetscapePluginStream.h: Replaced #ifndef __LP64__ with
3410         #if ENABLE(NETSCAPE_PLUGIN_API).
3411         * Plugins/WebBaseNetscapePluginStream.mm: Ditto.
3412         * Plugins/WebBaseNetscapePluginView.h: Ditto.
3413         * Plugins/WebBaseNetscapePluginView.mm: Ditto.
3414         * Plugins/WebBaseNetscapePluginViewInternal.h: Ditto.
3415         * Plugins/WebBaseNetscapePluginViewPrivate.h: Ditto.
3416         * Plugins/WebBasePluginPackage.h: Ditto.
3417         * Plugins/WebBasePluginPackage.m: Ditto.
3418         (+[WebBasePluginPackage pluginWithPath:]):
3419         * Plugins/WebNetscapeDeprecatedFunctions.c: Ditto.
3420         * Plugins/WebNetscapeDeprecatedFunctions.h: Ditto.
3421         * Plugins/WebNetscapePluginEmbeddedView.h: Ditto.
3422         * Plugins/WebNetscapePluginEmbeddedView.mm: Ditto.
3423         * Plugins/WebNetscapePluginPackage.h: Ditto.
3424         * Plugins/WebNetscapePluginPackage.m: Ditto.
3425         * Plugins/WebNetscapePluginStream.h: Ditto.
3426         * Plugins/WebNetscapePluginStream.mm: Ditto.
3427         * Plugins/WebPluginDatabase.m: Ditto.
3428         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
3429         * Plugins/npapi.m: Ditto.
3430         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
3431         (WebFrameLoaderClient::objectContentType):
3432         (WebFrameLoaderClient::createPlugin):
3433         * WebView/WebHTMLView.mm: Ditto.
3434         (-[NSArray _web_makePluginViewsPerformSelector:withObject:]):
3435         * WebView/WebHTMLViewInternal.h: Ditto.
3436
3437         * WebView/WebFrame.mm: Replaced #ifndef __LP64__ with
3438         #if ENABLE(NETSCAPE_PLUGIN_API). Moved methods below from (WebPrivate)
3439         category to (WebInternal) category so we don't expose the ENABLE() macro
3440         from the private header.
3441         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
3442         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
3443         * WebView/WebFrameInternal.h: Ditto.
3444         * WebView/WebFramePrivate.h: Ditto.
3445
3446 2008-03-07  Alexey Proskuryakov  <ap@webkit.org>
3447
3448         Reviewed by Darin.
3449
3450         <rdar://problem/5579292> REGRESSION: (safari 2-3): "Default default" encoding for Korean
3451         changed from Korean (Windows, DOS) to Korean (ISO 2022-KR), which breaks some sites
3452
3453         * WebView/WebPreferences.m:
3454         (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Make encoding name match
3455         the one used in Safari.
3456
3457 2008-03-07  Mark Rowe  <mrowe@apple.com>
3458
3459         Reviewed by Oliver Hunt.
3460
3461         Fix WebKit build with GCC 4.2.
3462
3463         * Plugins/WebBaseNetscapePluginView.mm: Use the correct return type in method signature.
3464
3465 2008-03-07  Darin Adler  <darin@apple.com>
3466
3467         Reviewed by Adam.
3468
3469         - eliminated WebCoreFrameBridge runOpenPanel
3470
3471         * WebCoreSupport/WebChromeClient.h: Added runOpenPanel.
3472         * WebCoreSupport/WebChromeClient.mm:
3473         (WebChromeClient::runOpenPanel): Added.
3474         (-[WebOpenPanelResultListener initWithChooser:]): Added. Used to wrap the
3475         FileChooser so it can get a result from the UI delegate.
3476         (-[WebOpenPanelResultListener dealloc]): Added.
3477         (-[WebOpenPanelResultListener finalize]): Added.
3478         (-[WebOpenPanelResultListener cancel]): Added.
3479         (-[WebOpenPanelResultListener chooseFilename:]): Added.
3480
3481 2008-03-06  Darin Adler  <darin@apple.com>
3482
3483         Reviewed by Mitz.
3484
3485         - fix regression test failures from the visited-link change
3486
3487         * History/WebHistory.mm:
3488         (+[WebHistory setOptionalSharedHistory:]): Call PageGroup::setShouldTrackVisitedLinks
3489         to turn off visited links if there is no history object. Also call
3490         removeAllVisitedLinks so we can start over from scratch with the new history.
3491
3492 2008-03-06  Dan Bernstein  <mitz@apple.com>
3493
3494         Reviewed by Darin Adler.
3495
3496         - fix a regression from r30741: a crash under
3497           WebFrameLoaderClient::createPlugin() when showing a Mail message with
3498           an attachment
3499
3500         * WebCoreSupport/WebFrameLoaderClient.mm:
3501         (WebFrameLoaderClient::createPlugin):
3502
3503 2008-03-06  Darin Adler  <darin@apple.com>
3504
3505         - fix Tiger build
3506
3507         * History/WebHistory.mm: Added include of WebTypesInternal.h.
3508
3509 2008-03-06  Darin Adler  <darin@apple.com>
3510
3511         - fix Release build
3512
3513         * History/WebHistory.mm:
3514         (-[WebHistoryPrivate setLastVisitedTimeInterval:forItem:]): Removed underscore.
3515         (-[WebHistoryPrivate loadFromURL:collectDiscardedItemsInto:error:]): Added #if.
3516         (-[WebHistoryPrivate saveToURL:error:]): Ditto.
3517
3518 2008-03-06  Darin Adler  <darin@apple.com>
3519
3520         Reviewed by Mitz.
3521
3522         - fix http://bugs.webkit.org/show_bug.cgi?id=17526
3523           REGRESSION: iframes are added to Safari's History menu
3524           by separating the visited link machinery from global history
3525
3526         * History/WebHistory.mm: Moved WebHistoryPrivate inside this file.
3527         (-[WebHistoryPrivate removeItemFromDateCaches:]): Removed the underscore from this
3528         method name, since it's on a private object.
3529         (-[WebHistoryPrivate removeItemForURLString:]): Added a call to the
3530         PageGroup::removeAllVisitedLinks function if the last URL was removed.
3531         (-[WebHistoryPrivate addItemToDateCaches:]): Removed the underscore from this
3532         method name, since it's on a private object.
3533         (-[WebHistoryPrivate removeAllItems]): Call PageGroup::removeAllVisitedLinks.
3534         (-[WebHistoryPrivate ageLimitDate]): Removed the underscore from this
3535         method name, since it's on a private object.
3536         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
3537         Ditto.
3538         (-[WebHistoryPrivate saveHistoryGuts:URL:error:]): Ditto. Also changed this
3539         to correctly return the error by using the newer version of writeToURL: and
3540         removed the FIXME about that.
3541         (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Added. Calls addVisitedLink
3542         for every link in the history.
3543         (-[WebHistory saveToURL:error:]): Removed the FIXME, since we do get the error now.
3544         (-[WebHistory addItem:]): Moved into the WebPrivate category.
3545         (-[WebHistory addItemForURL:]): Ditto.
3546         (-[WebHistory _addItemForURL:title:]): Added. Used for the normal case where we
3547         create an item and already know its title.
3548         (-[WebHistory ageLimitDate]): Moved into the WebPrivate category.
3549         (-[WebHistory containsItemForURLString:]): Ditto.
3550         (-[WebHistory removeItem:]): Ditto.
3551         (-[WebHistory setLastVisitedTimeInterval:forItem:]): Ditto.
3552         (-[WebHistory _itemForURLString:]): Ditto.
3553         (-[WebHistory _addVisitedLinksToPageGroup:]): Added. For use only inside WebKit.
3554
3555         * History/WebHistoryInternal.h: Added.
3556         * History/WebHistoryItemInternal.h: Tweaked formatting and includes.
3557         * History/WebHistoryPrivate.h: Moved the WebHistoryPrivate class out of this header.
3558         Also reorganized what was left behind.
3559
3560         * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks.
3561         * WebCoreSupport/WebChromeClient.mm:
3562         (WebChromeClient::populateVisitedLinks): Added a call to the new
3563         -[WebHistory _addVisitedLinksToPageGroup:] method.
3564
3565         * WebCoreSupport/WebFrameLoaderClient.mm:
3566         (WebFrameLoaderClient::updateGlobalHistory): Changed code to use the new
3567         -[WebHistory _addItemForURL:title:] method.
3568
3569 2008-03-05  Adam Roben  <aroben@apple.com>
3570
3571         Rename WebCoreScriptDebuggerImp.{h,mm} to WebScriptDebugger.{h,mm}
3572
3573         Reviewed by Kevin M.
3574
3575         * WebView/WebFrame.mm:
3576         * WebView/WebScriptDebugDelegate.mm:
3577         * WebView/WebScriptDebugger.h: Renamed from WebKit/mac/WebView/WebCoreScriptDebuggerImp.h.
3578         * WebView/WebScriptDebugger.mm: Renamed from WebKit/mac/WebView/WebCoreScriptDebuggerImp.mm.
3579
3580 2008-03-05  Adam Roben  <aroben@apple.com>
3581
3582         Rename WebCoreScriptDebuggerImp to WebScriptDebugger
3583
3584         Reviewed by Kevin M.
3585
3586         * WebView/WebCoreScriptDebuggerImp.h:
3587         * WebView/WebCoreScriptDebuggerImp.mm:
3588         * WebView/WebFrame.mm:
3589         (-[WebFrame _attachScriptDebugger]):
3590         * WebView/WebFrameInternal.h:
3591
3592 2008-03-05  Adam Roben  <aroben@apple.com>
3593
3594         Remove WebScriptDebugger
3595
3596         Uses of WebScriptDebugger have been replaced with
3597         WebCoreScriptDebuggerImp.
3598
3599         Reviewed by Kevin M.
3600
3601         * WebView/WebFrame.mm:
3602         (-[WebFramePrivate dealloc]): Use delete instead of release since
3603         WebCoreScriptDebuggerImp is a C++ class.
3604         (-[WebFrame _attachScriptDebugger]): Updated to use early returns and
3605         WebCoreScriptDebuggerImp.
3606         (-[WebFrame _detachScriptDebugger]): Ditto.
3607         * WebView/WebFrameInternal.h:
3608         * WebView/WebScriptDebugDelegate.mm: Removed WebScriptDebugger
3609         * WebView/WebScriptDebugDelegatePrivate.h: Removed.
3610         * WebView/WebView.mm:
3611
3612 2008-03-05  Adam Roben  <aroben@apple.com>
3613
3614         Remove -webFrame and -globalObject from WebScriptDebugger
3615
3616         WebCoreScriptDebuggerImp is now unaware of WebScriptDebugger
3617
3618         Reviewed by Kevin M.
3619
3620         * WebView/WebCoreScriptDebuggerImp.h: Removed WebScriptDebugger*
3621         parameter to the constructor.
3622         * WebView/WebCoreScriptDebuggerImp.mm:
3623         (toWebFrame): Added.
3624         (WebCoreScriptDebuggerImp::sourceParsed): Call toWebFrame.
3625         (WebCoreScriptDebuggerImp::callEvent): Ditto, and get the Frame's
3626         WindowScriptObject ourselves instead of asking WebScriptDebugger for
3627         it.
3628         (WebCoreScriptDebuggerImp::atStatement): Call toWebFrame.
3629         (WebCoreScriptDebuggerImp::returnEvent): Ditto.
3630         (WebCoreScriptDebuggerImp::exception): Ditto.
3631         * WebView/WebScriptDebugDelegate.mm:
3632         (-[WebScriptDebugger initWithWebFrame:]): Updated for change to
3633         WebScriptDebuggerImp's constructor.
3634         * WebView/WebScriptDebugDelegatePrivate.h: Removed
3635         -webFrame/-globalObject.
3636
3637 2008-03-05  Adam Roben  <aroben@apple.com>
3638
3639         Remove -enterFrame: and -leaveFrame from WebScriptDebugger
3640
3641         Reviewed by Kevin M.
3642
3643         * WebView/WebCoreScriptDebuggerImp.h: Changed to store m_topCallFrame
3644         in a RetainPtr, now that WebCoreScriptDebuggerImp is in charge of its
3645         lifetime.
3646         * WebView/WebCoreScriptDebuggerImp.mm:
3647           - Added declaration of -[WebScriptCallFrame
3648             _initWithGlobalObject:caller:state:].
3649           - Changed most uses of m_topCallFrame to m_topCallFrame.get()
3650         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Removed
3651         now-unnecessary initialization of m_topCallFrame.
3652         (WebCoreScriptDebuggerImp::callEvent): Replaced call to enterFrame:
3653         with its implementation. The one difference between this
3654         implementation and the old enterFrame: method is that we don't hand
3655         our reference to m_topCallFrame to _initWithGlobalObject: -- that
3656         method must now retain the passed-in WebScriptCallFrame manually.
3657         (WebCoreScriptDebuggerImp::atStatement):
3658         (WebCoreScriptDebuggerImp::returnEvent): Replaced call to leaveFrame
3659         with its implementation.
3660         (WebCoreScriptDebuggerImp::exception):
3661         * WebView/WebScriptDebugDelegate.mm: Removed declaration of
3662         -[WebScriptCallFrame _initWithGlobalObject:caller:state:].
3663         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Changed
3664         to retain the passed-in caller.
3665         * WebView/WebScriptDebugDelegatePrivate.h:
3666           - Removed _current ivar
3667           - Removed enterFrame:/leaveFrame declarations.
3668
3669 2008-03-05  Adam Roben  <aroben@apple.com>
3670
3671         Remove -parsedSource: from WebScriptDebugger
3672
3673         Reviewed by Kevin M.
3674
3675         * WebView/WebCoreScriptDebuggerImp.mm:
3676         (WebCoreScriptDebuggerImp::sourceParsed): Moved code here from
3677         -[WebScriptDebugger parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]
3678         * WebView/WebScriptDebugDelegate.mm: Removed -parsedSource:.
3679         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
3680
3681 2008-03-05  Adam Roben  <aroben@apple.com>
3682
3683         Remove -enteredFrame:, -leavingFrame:, and -exceptionRaised: from WebScriptDebugger
3684
3685         Reviewed by Kevin M.
3686
3687         * WebView/WebCoreScriptDebuggerImp.mm:
3688         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Changed to call
3689         trhough to callEvent instead of duplicating its code here.
3690         (WebCoreScriptDebuggerImp::callEvent): Moved code from
3691         -[WebScriptDebugger enteredFrame:sourceId:line:] here.
3692         (WebCoreScriptDebuggerImp::returnEvent): Moved code from
3693         -[WebScriptDebugger leavingFrame:sourceId:line:] here.
3694         (WebCoreScriptDebuggerImp::exception): Moved code from
3695         -[WebScriptDebugger exceptionRaised:sourceId:line:] here.
3696         * WebView/WebScriptDebugDelegate.mm: Removed -enteredFrame:,
3697         -leavingFrame:, and -exceptionRaised:.
3698         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
3699
3700 2008-03-05  Adam Roben  <aroben@apple.com>
3701
3702         Remove -[WebScriptDebugger hitStatement:sourceId:line:]
3703
3704         Reviewed by Kevin M.
3705
3706         * WebView/WebCoreScriptDebuggerImp.mm:
3707         (WebCoreScriptDebuggerImp::atStatement): Moved code here from
3708         -[WebScriptDebugger hitStatement:sourceId:line:].
3709         * WebView/WebScriptDebugDelegate.mm:
3710         (-[WebScriptDebugger webFrame]): Added.
3711         * WebView/WebScriptDebugDelegatePrivate.h:
3712
3713 2008-03-05  Adam Roben  <aroben@apple.com>
3714
3715         Remove WebCoreScriptDebugger
3716
3717         Reviewed by Kevin M.
3718
3719         * WebView/WebCoreScriptDebugger.h: Removed.
3720         * WebView/WebCoreScriptDebugger.mm: Removed.
3721         * WebView/WebCoreScriptDebuggerImp.h: Replaced WebCoreScriptDebugger
3722         with WebScriptDebugger.
3723         * WebView/WebCoreScriptDebuggerImp.mm: Ditto, and replaced [m_debugger
3724         delegate] with just m_debugger.
3725         (toNSString): Moved here from WebCoreScriptDebugger.mm.
3726         (toNSURL): Ditto.
3727         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
3728         (WebCoreScriptDebuggerImp::sourceParsed):
3729         (WebCoreScriptDebuggerImp::callEvent):
3730         (WebCoreScriptDebuggerImp::atStatement):
3731         (WebCoreScriptDebuggerImp::returnEvent):
3732         (WebCoreScriptDebuggerImp::exception):
3733         * WebView/WebScriptDebugDelegate.mm:
3734         (-[WebScriptDebugger initWithWebFrame:]): _debugger now holds a
3735         WebCoreScriptDebuggerImp, so initialize it properly.
3736         * WebView/WebScriptDebugDelegatePrivate.h: Changed _debugger to hold a
3737         WebCoreScriptDebuggerImp.
3738
3739 2008-03-05  Adam Roben  <aroben@apple.com>
3740
3741         Move WebCoreScriptDebuggerImp to its own source files
3742
3743         Also changed WebCoreScriptDebuggerImp coding style to match our style
3744         guidelines.
3745
3746         Reviewed by Kevin M.
3747
3748         * WebView/WebCoreScriptDebugger.h: Added declaration of toNSURL
3749         function.
3750         * WebView/WebCoreScriptDebugger.mm: Removed WebCoreScriptDebuggerImp
3751         implementation.
3752         (toNSURL): Made no longer static.
3753         * WebView/WebCoreScriptDebuggerImp.h: Added.
3754         * WebView/WebCoreScriptDebuggerImp.mm: Added. Code was moved here from
3755         WebCoreScriptDebugger.mm and cleaned up.
3756         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
3757         (WebCoreScriptDebuggerImp::sourceParsed):
3758         (WebCoreScriptDebuggerImp::callEvent):
3759         (WebCoreScriptDebuggerImp::atStatement):
3760         (WebCoreScriptDebuggerImp::returnEvent):
3761         (WebCoreScriptDebuggerImp::exception):
3762
3763 2008-03-05  Adam Roben  <aroben@apple.com>
3764
3765         Move -_enterFrame and -_leaveFrame from WebCoreScriptDebugger to WebScriptDebugger
3766
3767         Reviewed by Kevin M.
3768
3769         * WebView/WebCoreScriptDebugger.h:
3770           - Removed newFrameWithGlobalObject:caller:state: from
3771             WebScriptDebugger protocol
3772           - Added enterFrame: and leaveFrame: to WebScriptDebugger protocol
3773           - Removed _current ivar from WebCoreScriptDebugger
3774         * WebView/WebCoreScriptDebugger.mm:
3775         (WebCoreScriptDebuggerImp::callEvent): Changed to call enterFrame on
3776         the delegate.
3777         (WebCoreScriptDebuggerImp::returnEvent): Ditto for leaveFrame.
3778         * WebView/WebScriptDebugDelegate.mm:
3779         (-[WebScriptDebugger dealloc]): Added code to release _current.
3780         (-[WebScriptDebugger enterFrame:]): Added. Code came from
3781         WebCoreScriptDebugger.
3782         (-[WebScriptDebugger leaveFrame]): Ditto.
3783         * WebView/WebScriptDebugDelegatePrivate.h: Added _current ivar.
3784
3785 2008-03-05  Adam Roben  <aroben@apple.com>
3786
3787         Remove WebCoreScriptCallFrame
3788
3789         Reviewed by Tim.
3790
3791         * WebView/WebCoreScriptDebugger.h:
3792           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
3793           - Replaced -newWrapperForFrame: with
3794             -newFrameWithGlobalObject:caller:state:
3795           - Removed WebCoreScriptCallFrame interface.
3796         * WebView/WebCoreScriptDebugger.mm: Replaced WebCoreScriptCallFrame
3797         with WebScriptCallFrame.
3798         (-[WebCoreScriptDebugger _enterFrame:]): Changed to call
3799         -newFrameWithGlobalObject:caller:state.
3800         (-[WebCoreScriptDebugger _leaveFrame]):
3801         * WebView/WebScriptDebugDelegate.h: Changed WebScriptCallFrame's
3802         _private ivar to be of type WebScriptCallFramePrivate*.
3803         * WebView/WebScriptDebugDelegate.mm:
3804           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
3805           - Added WebScriptCallFramePrivate
3806         (-[WebScriptDebugger enteredFrame:sourceId:line:]):
3807         (-[WebScriptDebugger hitStatement:sourceId:line:]):
3808         (-[WebScriptDebugger leavingFrame:sourceId:line:]):
3809         (-[WebScriptDebugger exceptionRaised:sourceId:line:]):
3810         (-[WebScriptCallFramePrivate dealloc]): Added.
3811         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Added.
3812         Code came from WebCoreScriptCallFrame.
3813         (-[WebScriptCallFrame dealloc]): Added a call to release the _private
3814         ivar.
3815         (-[WebScriptCallFrame _convertValueToObjcValue:]): Replaced calls to
3816         _private with direct access of _private's ivars.
3817         (-[WebScriptCallFrame caller]): Ditto.
3818         (-[WebScriptCallFrame scopeChain]): Ditto.
3819         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
3820
3821 2008-03-05  Adam Roben  <aroben@apple.com>
3822
3823         Move -_convertValueToObjcValue to WebScriptCallFrame
3824
3825         Reviewed by Darin.
3826
3827         * WebView/WebCoreScriptDebugger.h: Removed declaration of
3828         -_convertValueToObjcValue.
3829         * WebView/WebCoreScriptDebugger.mm: Removed -_convertValueToObjcValue.
3830         * WebView/WebScriptDebugDelegate.mm:
3831         (-[WebScriptCallFrame _convertValueToObjcValue:]): Added. Code came
3832         from -[WebCoreScriptCallFrame _convertValueToObjcValue].
3833         (-[WebScriptCallFrame scopeChain]): Changed to call
3834         -_convertValueToObjcValue on self instead of _private.
3835         (-[WebScriptCallFrame exception]): Ditto.
3836         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
3837
3838 2008-03-05  Adam Roben  <aroben@apple.com>
3839
3840         Move -exception and -evaluateWebScript: to WebScriptCallFrame
3841
3842         Reviewed by Darin.
3843
3844         * WebView/WebCoreScriptDebugger.h: Removed declarations of -exception
3845         and -evaluateWebScript:.
3846         * WebView/WebCoreScriptDebugger.mm: Removed -exception and
3847         -evaluateWebScript:.
3848         * WebView/WebScriptDebugDelegate.mm:
3849         (-[WebScriptCallFrame exception]): Added. Code came from
3850         -[WebCoreScriptCallFrame exception].
3851         (-[WebScriptCallFrame evaluateWebScript:]): Added. Code came from
3852         -[WebCoreScriptCallFrame evaluateWebScript:].
3853
3854 2008-03-05  Adam Roben  <aroben@apple.com>
3855
3856         Move -scopeChain to WebScriptCallFrame
3857
3858         Reviewed by Darin.
3859
3860         * WebView/WebCoreScriptDebugger.h:
3861           - Added declarations of -globalObject and -_convertValueToObjcValue:
3862             to WebCoreScriptCallFrame
3863           - Removed declaration of -scopeChain.
3864         * WebView/WebCoreScriptDebugger.mm: Moved -_convertValueToObjcValue
3865         within the main WebCoreScriptCallFrame implementation.
3866         (-[WebCoreScriptCallFrame globalObject]): Added.
3867         * WebView/WebScriptDebugDelegate.mm:
3868         (-[WebScriptCallFrame scopeChain]): Added. Code came from
3869         -[WebCoreScriptCallFrame scopeChain].
3870
3871 2008-03-05  Adam Roben  <aroben@apple.com>
3872
3873         Move -functionName from WebCoreScriptCallFrame to WebScriptCallFrame
3874
3875         Reviewed by Darin.
3876
3877         * WebView/WebCoreScriptDebugger.h:
3878           - Removed #else case of #ifdef __cplusplus since this file is only
3879             ever used by C++ Objective-C files
3880           - Removed 'using KJS::ExecState' statement since we prefer not to
3881             have using statements in header files
3882           - Consequently prefixed uses of ExecState with KJS::
3883           - Added declaration of toNSString method that takes a const
3884             UString&
3885           - Added declaration of -[WebCoreScriptCallFrame state]
3886           - Removed declaration of -[WebCoreScriptCallFrame functionName]
3887         * WebView/WebCoreScriptDebugger.mm:
3888         (toNSString): Made this no longer static.
3889         (-[WebCoreScriptCallFrame state]): Added.
3890         * WebView/WebScriptDebugDelegate.mm:
3891         (-[WebScriptCallFrame functionName]): Added. Code came from
3892         -[WebCoreScriptCallFrame functionName], though I changed some nested
3893         ifs into early returns.
3894
3895 2008-03-05  Adam Roben  <aroben@apple.com>
3896
3897         Move WebCoreScriptDebugger to WebKit
3898
3899         Reviewed by Darin.
3900
3901         * WebView/WebCoreScriptDebugger.h: Renamed from WebCore/page/mac/WebCoreScriptDebugger.h.
3902         * WebView/WebCoreScriptDebugger.mm: Renamed from WebCore/page/mac/WebCoreScriptDebugger.mm.
3903         (toNSString):
3904         (toNSURL):
3905         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
3906         (WebCoreScriptDebuggerImp::sourceParsed):
3907         (WebCoreScriptDebuggerImp::callEvent):
3908         (WebCoreScriptDebuggerImp::atStatement):
3909         (WebCoreScriptDebuggerImp::returnEvent):
3910         (WebCoreScriptDebuggerImp::exception):
3911         (+[WebCoreScriptDebugger initialize]):
3912         (-[WebCoreScriptDebugger initWithDelegate:]):
3913         (-[WebCoreScriptDebugger dealloc]):
3914         (-[WebCoreScriptDebugger finalize]):
3915         (-[WebCoreScriptDebugger delegate]):
3916         (-[WebCoreScriptDebugger _enterFrame:]):
3917         (-[WebCoreScriptDebugger _leaveFrame]):
3918         (-[WebCoreScriptCallFrame _initWithGlobalObject:caller:state:]):
3919         (-[WebCoreScriptCallFrame _setWrapper:]):
3920         (-[WebCoreScriptCallFrame _convertValueToObjcValue:]):
3921         (-[WebCoreScriptCallFrame dealloc]):
3922         (-[WebCoreScriptCallFrame wrapper]):
3923         (-[WebCoreScriptCallFrame caller]):
3924         (-[WebCoreScriptCallFrame scopeChain]):
3925         (-[WebCoreScriptCallFrame functionName]):
3926         (-[WebCoreScriptCallFrame exception]):
3927         (-[WebCoreScriptCallFrame evaluateWebScript:]):
3928         * WebView/WebScriptDebugDelegate.mm: Updated header path.
3929         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
3930
3931 2008-03-05  Anders Carlsson  <andersca@apple.com>
3932
3933         Reviewed by Geoff.
3934
3935         Include file changes.
3936         
3937         * Plugins/WebBaseNetscapePluginView.mm:
3938         * Plugins/WebNetscapePluginPackage.m:
3939
3940 2008-03-04  Timothy Hatcher  <timothy@apple.com>
3941
3942         Reviewed by Darin Adler.
3943
3944         <rdar://problem/5720160> Browser windows "do nothing" while modal
3945         dialog or menu is up due to run loop modes (or while scrolling)
3946
3947         Add new API that lets a WebView be scheduled with multiple runloops and modes.
3948         This lets loading continue when in a nested runloop or in a different mode.
3949
3950         * Misc/WebKitVersionChecks.h: Add a new version define:
3951         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES.
3952         * WebView/WebView.mm:
3953         (-[WebView _commonInitializationWithFrameName:groupName:]): Schedule in the main runloop and with
3954         the default runloop mode if we are linked on an earlier WebKit version, use common modes otherwise.
3955         (-[WebView scheduleInRunLoop:forMode:]): New API, that calls through to Page.
3956         (-[WebView unscheduleFromRunLoop:forMode:]): Ditto.
3957         * WebView/WebViewPrivate.h: Add the new pending API methods.
3958
3959 2008-03-04  Anders Carlsson  <andersca@apple.com>
3960
3961         Reviewed by Darin.
3962
3963         Fix crash that happens when trying to load a page with a Java applet.
3964         
3965         * WebCoreSupport/WebFrameLoaderClient.mm:
3966         Don't release the names and values array - the kit method returns an autoreleased array.
3967
3968 2008-03-04  Darin Adler  <darin@apple.com>
3969
3970         Reviewed by Adam.
3971
3972         - fix 200+ failing regression tests
3973         - fix http://bugs.webkit.org/show_bug.cgi?id=17668
3974           Vertical scrollbar at slashdot.org is randomly not shown
3975
3976         * WebCoreSupport/WebFrameLoaderClient.mm:
3977         (WebFrameLoaderClient::transitionToCommittedForNewPage): Changed the refcounting
3978         code here to exactly match the way it was before it was moved from WebCore. I had
3979         introduced a storage leak and that was causing problems with scroll bars!
3980
3981 2008-03-04  Darin Adler  <darin@apple.com>
3982
3983         Reviewed by Adam.
3984
3985         - remove WebCoreFrameBridge reapplyStyles method
3986
3987         * WebView/WebHTMLView.mm:
3988         (-[WebHTMLView reapplyStyles]): Moved code to reapply styles here from the bridge.
3989
3990 2008-03-04  Darin Adler  <darin@apple.com>
3991
3992         Reviewed by Adam.
3993
3994         - eliminate WebCoreFrameBridge createFrameViewWithNSView
3995
3996         * WebCoreSupport/WebFrameLoaderClient.mm:
3997         (WebFrameLoaderClient::transitionToCommittedForNewPage):
3998         Moved code here from createFrameViewWithNSView.
3999
4000 2008-03-04  Darin Adler  <darin@apple.com>
4001
4002         Reviewed by Adam.
4003
4004         - removed WebCoreFrameBridge scrollOverflowInDirection
4005
4006         * WebView/WebFrameView.mm:
4007         (-[WebFrameView _scrollOverflowInDirection:granularity:]): Changed to call
4008         EventHandler directly instead of using the bridge.
4009         (-[WebFrameView scrollToBeginningOfDocument:]): Updated to use WebCore enums instead
4010         of the ones from the bridge.
4011         (-[WebFrameView scrollToEndOfDocument:]): Ditto.
4012         (-[WebFrameView _pageVertically:]): Ditto.
4013         (-[WebFrameView _pageHorizontally:]): Ditto.
4014         (-[WebFrameView _scrollLineVertically:]): Ditto.
4015         (-[WebFrameView _scrollLineHorizontally:]): Ditto.
4016
4017 2008-03-04  Darin Adler  <darin@apple.com>
4018
4019         Reviewed by Adam.
4020
4021         - remove WebCoreFrameBridge installInFrame: method
4022
4023         * WebCoreSupport/WebFrameLoaderClient.mm:
4024         (WebFrameLoaderClient::transitionToCommittedForNewPage): Call
4025         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
4026         * WebView/WebFrameView.mm:
4027         (-[WebFrameView _install]): Added. Has code from -[WebCoreFrameBridge installInFrame:].
4028         (-[WebFrameView _setCustomScrollViewClass:]): Used early return idiom so the entire
4029         method isn't nested inside an if statement. Call
4030         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
4031         * WebView/WebFrameViewInternal.h: Added declaration of _install method so it can be
4032         used in WebFrameLoaderClient.mm.
4033
4034 2008-03-04  Darin Adler  <darin@apple.com>
4035
4036         Reviewed by Adam.
4037
4038         - remove WebCoreFrameBridge window method
4039
4040         * WebCoreSupport/WebFrameBridge.mm: Removed window method.
4041
4042 2008-03-04  Darin Adler  <darin@apple.com>
4043
4044         Reviewed by Adam.
4045
4046         - move code from WebFrameBridge into WebFrameLoaderClient
4047
4048         * WebCoreSupport/WebFrameBridge.h: Removed unused fields, changed frame name parameters
4049         to use WebCore::String instead of NSString, add initSubframeWithOwnerElement declaration,
4050         removed viewForPluginWithFrame, viewForJavaAppletWithFrame, createChildFrameNamed,
4051         redirectDataToPlugin, determineObjectFromMIMEType, and windowObjectCleared methods.
4052         * WebCoreSupport/WebFrameBridge.mm:
4053         (-[WebFrameBridge finishInitializingWithPage:frameName:WebCore::frameView:ownerElement:]):
4054         Changed to use WebCore::String.
4055         (-[WebFrameBridge initMainFrameWithPage:frameName:WebCore::frameView:]): Ditto.
4056         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:WebCore::frameView:]): Ditto.
4057
4058         * WebCoreSupport/WebFrameLoaderClient.mm:
4059         (WebFrameLoaderClient::setOriginalURLForDownload): Removed some dead code I found here
4060         and added a FIXME.
4061         (WebFrameLoaderClient::createFrame): Moved the code from WebFrameBridge here.
4062         (WebFrameLoaderClient::objectContentType): Ditto.
4063         (parameterValue): Added.  Helper function, based on code originally in WebFrameBridge.
4064         (pluginView): Ditto.
4065         (WebFrameLoaderClient::createPlugin): Moved the code from WebFrameBridge here.
4066
4067 2008-03-04  Darin Adler  <darin@apple.com>
4068
4069         Reviewed by Adam.
4070
4071         - remove -[WebCoreFrameBridge dashboardRegionsChanged:]
4072
4073         * WebCoreSupport/WebChromeClient.h:
4074         * WebCoreSupport/WebChromeClient.mm:
4075         (WebChromeClient::dashboardRegionsChanged): Moved code here from the bridge.
4076         The WebCore side now calls this only when there's an actual change.
4077         * WebCoreSupport/WebFrameBridge.h: Removed lastDashboardRegions.
4078         * WebCoreSupport/WebFrameBridge.mm:
4079         (-[WebFrameBridge dealloc]): Removed code to release lastDashboardRegions.
4080         Removed _compareDashboardRegions: and dashboardRegionsChanged: methods.
4081
4082 2008-03-04  Darin Adler  <darin@apple.com>
4083
4084         Reviewed by Adam.
4085
4086         - remove WebCoreFrameBridge issuePasteComand method
4087
4088         * WebCoreSupport/WebFrameBridge.mm: Removed issuePasteCommand method.
4089         * WebView/WebHTMLViewInternal.h: Removed declaration of paste: method.
4090
4091 2008-03-03  Darin Adler  <darin@apple.com>
4092
4093         Reviewed by Adam.
4094
4095         - some "cleanup" on the path to removing WebCoreFrameBridge
4096
4097         * Storage/WebDatabaseManager.mm: Tweak includes.
4098         * Storage/WebDatabaseTrackerClient.mm: Ditto.
4099         * Storage/WebSecurityOrigin.mm: Ditto.
4100         * Storage/WebSecurityOriginInternal.h: Ditto.
4101
4102         * WebView/WebFrame.mm:
4103         (core): Changed to get rid of the requirement that WebKitEditableLinkBehavior exactly
4104         match WebCore::EditableLinkBehavior.
4105         * WebView/WebFrameInternal.h: Removed unused kit function.
4106
4107         * WebView/WebHTMLView.mm: Moved WebHTMLViewPrivate class in here.
4108         * WebView/WebHTMLViewInternal.h: Moved WebHTMLVewPrivate class out of here.
4109         * WebView/WebHTMLViewPrivate.h: Tweaked formatting and removed some unneeded declarations.
4110
4111         * WebView/WebPreferencesPrivate.h: Removed a no-longer-needed comment.
4112
4113 2008-03-01  Mark Rowe  <mrowe@apple.com>
4114
4115         Reviewed by Tim Hatcher.
4116
4117         Update Xcode configuration to support building debug and release from the mysterious future.
4118
4119         * Configurations/DebugRelease.xcconfig:
4120
4121 2008-02-29  Mark Rowe  <mrowe@apple.com>
4122
4123         Reviewed by Anders Carlsson.
4124
4125         Replace use of WKPathFromFont with implementation in terms of public API.
4126
4127         * WebCoreSupport/WebSystemInterface.m:
4128         (InitWebCoreSystemInterface): Remove unused symbol.
4129
4130 2008-02-29  Mark Rowe  <mrowe@apple.com>
4131
4132         Reviewed by Oliver Hunt.
4133
4134         Fix spelling of "request" in name of WKNSURLProtocolClassForRequest.
4135
4136         * Misc/WebNSURLExtras.mm:
4137         (-[NSURL _webkit_canonicalize]):
4138         * WebKit.order:
4139
4140 2008-02-29  Mark Rowe  <mrowe@apple.com>
4141
4142         Reviewed by Oliver Hunt.
4143
4144         Don't use WKSupportsMultipartXMixedReplace on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest.
4145
4146         * WebCoreSupport/WebSystemInterface.m:
4147         (InitWebCoreSystemInterface):
4148
4149 2008-02-29  Mark Rowe  <mrowe@apple.com>
4150
4151         Reviewed by Oliver Hunt.
4152
4153         Remove obsolete code that had been left intact to support users running WebKit with older versions of Safari.
4154
4155         * Misc/WebNSViewExtras.m:  Remove _web_superviewOfClass:stoppingAtClass:.
4156         * Misc/WebNSWindowExtras.m:  Remove _webkit_displayThrottledWindows.
4157         * Misc/WebSearchableTextView.m:  Remove selectionImageForcingWhiteText:.
4158         * WebCoreSupport/WebImageRendererFactory.m:  Update comment to mention the last version of Safari that
4159         requires this class.
4160         * WebInspector/WebInspector.mm:  Remove sharedWebInspector and update comments to mention the last version
4161         of Safari that calls other obsolete methods.
4162         * WebView/WebDocumentPrivate.h:  Remove selectionImageForcingWhiteText:.
4163         * WebView/WebHTMLView.mm:  Ditto.
4164         * WebView/WebPDFView.mm:  Ditto.
4165         * WebView/WebView.mm:  Update comment to mentoin the last version of Safari that requires the obsolete method.
4166
4167 2008-02-29  Mark Rowe  <mrowe@apple.com>
4168
4169         Rubber-stamped by Eric Seidel.
4170
4171         Remove unneeded includes of WebKitSystemInterface.h.
4172
4173         * History/WebHistoryItem.mm:
4174         * Misc/WebNSViewExtras.m:
4175         * WebCoreSupport/WebFrameLoaderClient.mm:
4176         * WebView/WebDataSource.mm:
4177         * WebView/WebPDFView.mm:
4178
4179 2008-02-29  Mark Rowe&nb