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