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