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