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