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