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