Rename WebCoreScriptDebuggerImp to WebScriptDebugger
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2008-03-05  Adam Roben  <aroben@apple.com>
2
3         Rename WebCoreScriptDebuggerImp to WebScriptDebugger
4
5         Reviewed by Kevin M.
6
7         * WebView/WebCoreScriptDebuggerImp.h:
8         * WebView/WebCoreScriptDebuggerImp.mm:
9         * WebView/WebFrame.mm:
10         (-[WebFrame _attachScriptDebugger]):
11         * WebView/WebFrameInternal.h:
12
13 2008-03-05  Adam Roben  <aroben@apple.com>
14
15         Remove WebScriptDebugger
16
17         Uses of WebScriptDebugger have been replaced with
18         WebCoreScriptDebuggerImp.
19
20         Reviewed by Kevin M.
21
22         * WebView/WebFrame.mm:
23         (-[WebFramePrivate dealloc]): Use delete instead of release since
24         WebCoreScriptDebuggerImp is a C++ class.
25         (-[WebFrame _attachScriptDebugger]): Updated to use early returns and
26         WebCoreScriptDebuggerImp.
27         (-[WebFrame _detachScriptDebugger]): Ditto.
28         * WebView/WebFrameInternal.h:
29         * WebView/WebScriptDebugDelegate.mm: Removed WebScriptDebugger
30         * WebView/WebScriptDebugDelegatePrivate.h: Removed.
31         * WebView/WebView.mm:
32
33 2008-03-05  Adam Roben  <aroben@apple.com>
34
35         Remove -webFrame and -globalObject from WebScriptDebugger
36
37         WebCoreScriptDebuggerImp is now unaware of WebScriptDebugger
38
39         Reviewed by Kevin M.
40
41         * WebView/WebCoreScriptDebuggerImp.h: Removed WebScriptDebugger*
42         parameter to the constructor.
43         * WebView/WebCoreScriptDebuggerImp.mm:
44         (toWebFrame): Added.
45         (WebCoreScriptDebuggerImp::sourceParsed): Call toWebFrame.
46         (WebCoreScriptDebuggerImp::callEvent): Ditto, and get the Frame's
47         WindowScriptObject ourselves instead of asking WebScriptDebugger for
48         it.
49         (WebCoreScriptDebuggerImp::atStatement): Call toWebFrame.
50         (WebCoreScriptDebuggerImp::returnEvent): Ditto.
51         (WebCoreScriptDebuggerImp::exception): Ditto.
52         * WebView/WebScriptDebugDelegate.mm:
53         (-[WebScriptDebugger initWithWebFrame:]): Updated for change to
54         WebScriptDebuggerImp's constructor.
55         * WebView/WebScriptDebugDelegatePrivate.h: Removed
56         -webFrame/-globalObject.
57
58 2008-03-05  Adam Roben  <aroben@apple.com>
59
60         Remove -enterFrame: and -leaveFrame from WebScriptDebugger
61
62         Reviewed by Kevin M.
63
64         * WebView/WebCoreScriptDebuggerImp.h: Changed to store m_topCallFrame
65         in a RetainPtr, now that WebCoreScriptDebuggerImp is in charge of its
66         lifetime.
67         * WebView/WebCoreScriptDebuggerImp.mm:
68           - Added declaration of -[WebScriptCallFrame
69             _initWithGlobalObject:caller:state:].
70           - Changed most uses of m_topCallFrame to m_topCallFrame.get()
71         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Removed
72         now-unnecessary initialization of m_topCallFrame.
73         (WebCoreScriptDebuggerImp::callEvent): Replaced call to enterFrame:
74         with its implementation. The one difference between this
75         implementation and the old enterFrame: method is that we don't hand
76         our reference to m_topCallFrame to _initWithGlobalObject: -- that
77         method must now retain the passed-in WebScriptCallFrame manually.
78         (WebCoreScriptDebuggerImp::atStatement):
79         (WebCoreScriptDebuggerImp::returnEvent): Replaced call to leaveFrame
80         with its implementation.
81         (WebCoreScriptDebuggerImp::exception):
82         * WebView/WebScriptDebugDelegate.mm: Removed declaration of
83         -[WebScriptCallFrame _initWithGlobalObject:caller:state:].
84         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Changed
85         to retain the passed-in caller.
86         * WebView/WebScriptDebugDelegatePrivate.h:
87           - Removed _current ivar
88           - Removed enterFrame:/leaveFrame declarations.
89
90 2008-03-05  Adam Roben  <aroben@apple.com>
91
92         Remove -parsedSource: from WebScriptDebugger
93
94         Reviewed by Kevin M.
95
96         * WebView/WebCoreScriptDebuggerImp.mm:
97         (WebCoreScriptDebuggerImp::sourceParsed): Moved code here from
98         -[WebScriptDebugger parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]
99         * WebView/WebScriptDebugDelegate.mm: Removed -parsedSource:.
100         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
101
102 2008-03-05  Adam Roben  <aroben@apple.com>
103
104         Remove -enteredFrame:, -leavingFrame:, and -exceptionRaised: from WebScriptDebugger
105
106         Reviewed by Kevin M.
107
108         * WebView/WebCoreScriptDebuggerImp.mm:
109         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp): Changed to call
110         trhough to callEvent instead of duplicating its code here.
111         (WebCoreScriptDebuggerImp::callEvent): Moved code from
112         -[WebScriptDebugger enteredFrame:sourceId:line:] here.
113         (WebCoreScriptDebuggerImp::returnEvent): Moved code from
114         -[WebScriptDebugger leavingFrame:sourceId:line:] here.
115         (WebCoreScriptDebuggerImp::exception): Moved code from
116         -[WebScriptDebugger exceptionRaised:sourceId:line:] here.
117         * WebView/WebScriptDebugDelegate.mm: Removed -enteredFrame:,
118         -leavingFrame:, and -exceptionRaised:.
119         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
120
121 2008-03-05  Adam Roben  <aroben@apple.com>
122
123         Remove -[WebScriptDebugger hitStatement:sourceId:line:]
124
125         Reviewed by Kevin M.
126
127         * WebView/WebCoreScriptDebuggerImp.mm:
128         (WebCoreScriptDebuggerImp::atStatement): Moved code here from
129         -[WebScriptDebugger hitStatement:sourceId:line:].
130         * WebView/WebScriptDebugDelegate.mm:
131         (-[WebScriptDebugger webFrame]): Added.
132         * WebView/WebScriptDebugDelegatePrivate.h:
133
134 2008-03-05  Adam Roben  <aroben@apple.com>
135
136         Remove WebCoreScriptDebugger
137
138         Reviewed by Kevin M.
139
140         * WebView/WebCoreScriptDebugger.h: Removed.
141         * WebView/WebCoreScriptDebugger.mm: Removed.
142         * WebView/WebCoreScriptDebuggerImp.h: Replaced WebCoreScriptDebugger
143         with WebScriptDebugger.
144         * WebView/WebCoreScriptDebuggerImp.mm: Ditto, and replaced [m_debugger
145         delegate] with just m_debugger.
146         (toNSString): Moved here from WebCoreScriptDebugger.mm.
147         (toNSURL): Ditto.
148         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
149         (WebCoreScriptDebuggerImp::sourceParsed):
150         (WebCoreScriptDebuggerImp::callEvent):
151         (WebCoreScriptDebuggerImp::atStatement):
152         (WebCoreScriptDebuggerImp::returnEvent):
153         (WebCoreScriptDebuggerImp::exception):
154         * WebView/WebScriptDebugDelegate.mm:
155         (-[WebScriptDebugger initWithWebFrame:]): _debugger now holds a
156         WebCoreScriptDebuggerImp, so initialize it properly.
157         * WebView/WebScriptDebugDelegatePrivate.h: Changed _debugger to hold a
158         WebCoreScriptDebuggerImp.
159
160 2008-03-05  Adam Roben  <aroben@apple.com>
161
162         Move WebCoreScriptDebuggerImp to its own source files
163
164         Also changed WebCoreScriptDebuggerImp coding style to match our style
165         guidelines.
166
167         Reviewed by Kevin M.
168
169         * WebView/WebCoreScriptDebugger.h: Added declaration of toNSURL
170         function.
171         * WebView/WebCoreScriptDebugger.mm: Removed WebCoreScriptDebuggerImp
172         implementation.
173         (toNSURL): Made no longer static.
174         * WebView/WebCoreScriptDebuggerImp.h: Added.
175         * WebView/WebCoreScriptDebuggerImp.mm: Added. Code was moved here from
176         WebCoreScriptDebugger.mm and cleaned up.
177         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
178         (WebCoreScriptDebuggerImp::sourceParsed):
179         (WebCoreScriptDebuggerImp::callEvent):
180         (WebCoreScriptDebuggerImp::atStatement):
181         (WebCoreScriptDebuggerImp::returnEvent):
182         (WebCoreScriptDebuggerImp::exception):
183
184 2008-03-05  Adam Roben  <aroben@apple.com>
185
186         Move -_enterFrame and -_leaveFrame from WebCoreScriptDebugger to WebScriptDebugger
187
188         Reviewed by Kevin M.
189
190         * WebView/WebCoreScriptDebugger.h:
191           - Removed newFrameWithGlobalObject:caller:state: from
192             WebScriptDebugger protocol
193           - Added enterFrame: and leaveFrame: to WebScriptDebugger protocol
194           - Removed _current ivar from WebCoreScriptDebugger
195         * WebView/WebCoreScriptDebugger.mm:
196         (WebCoreScriptDebuggerImp::callEvent): Changed to call enterFrame on
197         the delegate.
198         (WebCoreScriptDebuggerImp::returnEvent): Ditto for leaveFrame.
199         * WebView/WebScriptDebugDelegate.mm:
200         (-[WebScriptDebugger dealloc]): Added code to release _current.
201         (-[WebScriptDebugger enterFrame:]): Added. Code came from
202         WebCoreScriptDebugger.
203         (-[WebScriptDebugger leaveFrame]): Ditto.
204         * WebView/WebScriptDebugDelegatePrivate.h: Added _current ivar.
205
206 2008-03-05  Adam Roben  <aroben@apple.com>
207
208         Remove WebCoreScriptCallFrame
209
210         Reviewed by Tim.
211
212         * WebView/WebCoreScriptDebugger.h:
213           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
214           - Replaced -newWrapperForFrame: with
215             -newFrameWithGlobalObject:caller:state:
216           - Removed WebCoreScriptCallFrame interface.
217         * WebView/WebCoreScriptDebugger.mm: Replaced WebCoreScriptCallFrame
218         with WebScriptCallFrame.
219         (-[WebCoreScriptDebugger _enterFrame:]): Changed to call
220         -newFrameWithGlobalObject:caller:state.
221         (-[WebCoreScriptDebugger _leaveFrame]):
222         * WebView/WebScriptDebugDelegate.h: Changed WebScriptCallFrame's
223         _private ivar to be of type WebScriptCallFramePrivate*.
224         * WebView/WebScriptDebugDelegate.mm:
225           - Replaced WebCoreScriptCallFrame with WebScriptCallFrame
226           - Added WebScriptCallFramePrivate
227         (-[WebScriptDebugger enteredFrame:sourceId:line:]):
228         (-[WebScriptDebugger hitStatement:sourceId:line:]):
229         (-[WebScriptDebugger leavingFrame:sourceId:line:]):
230         (-[WebScriptDebugger exceptionRaised:sourceId:line:]):
231         (-[WebScriptCallFramePrivate dealloc]): Added.
232         (-[WebScriptCallFrame _initWithGlobalObject:caller:state:]): Added.
233         Code came from WebCoreScriptCallFrame.
234         (-[WebScriptCallFrame dealloc]): Added a call to release the _private
235         ivar.
236         (-[WebScriptCallFrame _convertValueToObjcValue:]): Replaced calls to
237         _private with direct access of _private's ivars.
238         (-[WebScriptCallFrame caller]): Ditto.
239         (-[WebScriptCallFrame scopeChain]): Ditto.
240         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
241
242 2008-03-05  Adam Roben  <aroben@apple.com>
243
244         Move -_convertValueToObjcValue to WebScriptCallFrame
245
246         Reviewed by Darin.
247
248         * WebView/WebCoreScriptDebugger.h: Removed declaration of
249         -_convertValueToObjcValue.
250         * WebView/WebCoreScriptDebugger.mm: Removed -_convertValueToObjcValue.
251         * WebView/WebScriptDebugDelegate.mm:
252         (-[WebScriptCallFrame _convertValueToObjcValue:]): Added. Code came
253         from -[WebCoreScriptCallFrame _convertValueToObjcValue].
254         (-[WebScriptCallFrame scopeChain]): Changed to call
255         -_convertValueToObjcValue on self instead of _private.
256         (-[WebScriptCallFrame exception]): Ditto.
257         (-[WebScriptCallFrame evaluateWebScript:]): Ditto.
258
259 2008-03-05  Adam Roben  <aroben@apple.com>
260
261         Move -exception and -evaluateWebScript: to WebScriptCallFrame
262
263         Reviewed by Darin.
264
265         * WebView/WebCoreScriptDebugger.h: Removed declarations of -exception
266         and -evaluateWebScript:.
267         * WebView/WebCoreScriptDebugger.mm: Removed -exception and
268         -evaluateWebScript:.
269         * WebView/WebScriptDebugDelegate.mm:
270         (-[WebScriptCallFrame exception]): Added. Code came from
271         -[WebCoreScriptCallFrame exception].
272         (-[WebScriptCallFrame evaluateWebScript:]): Added. Code came from
273         -[WebCoreScriptCallFrame evaluateWebScript:].
274
275 2008-03-05  Adam Roben  <aroben@apple.com>
276
277         Move -scopeChain to WebScriptCallFrame
278
279         Reviewed by Darin.
280
281         * WebView/WebCoreScriptDebugger.h:
282           - Added declarations of -globalObject and -_convertValueToObjcValue:
283             to WebCoreScriptCallFrame
284           - Removed declaration of -scopeChain.
285         * WebView/WebCoreScriptDebugger.mm: Moved -_convertValueToObjcValue
286         within the main WebCoreScriptCallFrame implementation.
287         (-[WebCoreScriptCallFrame globalObject]): Added.
288         * WebView/WebScriptDebugDelegate.mm:
289         (-[WebScriptCallFrame scopeChain]): Added. Code came from
290         -[WebCoreScriptCallFrame scopeChain].
291
292 2008-03-05  Adam Roben  <aroben@apple.com>
293
294         Move -functionName from WebCoreScriptCallFrame to WebScriptCallFrame
295
296         Reviewed by Darin.
297
298         * WebView/WebCoreScriptDebugger.h:
299           - Removed #else case of #ifdef __cplusplus since this file is only
300             ever used by C++ Objective-C files
301           - Removed 'using KJS::ExecState' statement since we prefer not to
302             have using statements in header files
303           - Consequently prefixed uses of ExecState with KJS::
304           - Added declaration of toNSString method that takes a const
305             UString&
306           - Added declaration of -[WebCoreScriptCallFrame state]
307           - Removed declaration of -[WebCoreScriptCallFrame functionName]
308         * WebView/WebCoreScriptDebugger.mm:
309         (toNSString): Made this no longer static.
310         (-[WebCoreScriptCallFrame state]): Added.
311         * WebView/WebScriptDebugDelegate.mm:
312         (-[WebScriptCallFrame functionName]): Added. Code came from
313         -[WebCoreScriptCallFrame functionName], though I changed some nested
314         ifs into early returns.
315
316 2008-03-05  Adam Roben  <aroben@apple.com>
317
318         Move WebCoreScriptDebugger to WebKit
319
320         Reviewed by Darin.
321
322         * WebView/WebCoreScriptDebugger.h: Renamed from WebCore/page/mac/WebCoreScriptDebugger.h.
323         * WebView/WebCoreScriptDebugger.mm: Renamed from WebCore/page/mac/WebCoreScriptDebugger.mm.
324         (toNSString):
325         (toNSURL):
326         (WebCoreScriptDebuggerImp::WebCoreScriptDebuggerImp):
327         (WebCoreScriptDebuggerImp::sourceParsed):
328         (WebCoreScriptDebuggerImp::callEvent):
329         (WebCoreScriptDebuggerImp::atStatement):
330         (WebCoreScriptDebuggerImp::returnEvent):
331         (WebCoreScriptDebuggerImp::exception):
332         (+[WebCoreScriptDebugger initialize]):
333         (-[WebCoreScriptDebugger initWithDelegate:]):
334         (-[WebCoreScriptDebugger dealloc]):
335         (-[WebCoreScriptDebugger finalize]):
336         (-[WebCoreScriptDebugger delegate]):
337         (-[WebCoreScriptDebugger _enterFrame:]):
338         (-[WebCoreScriptDebugger _leaveFrame]):
339         (-[WebCoreScriptCallFrame _initWithGlobalObject:caller:state:]):
340         (-[WebCoreScriptCallFrame _setWrapper:]):
341         (-[WebCoreScriptCallFrame _convertValueToObjcValue:]):
342         (-[WebCoreScriptCallFrame dealloc]):
343         (-[WebCoreScriptCallFrame wrapper]):
344         (-[WebCoreScriptCallFrame caller]):
345         (-[WebCoreScriptCallFrame scopeChain]):
346         (-[WebCoreScriptCallFrame functionName]):
347         (-[WebCoreScriptCallFrame exception]):
348         (-[WebCoreScriptCallFrame evaluateWebScript:]):
349         * WebView/WebScriptDebugDelegate.mm: Updated header path.
350         * WebView/WebScriptDebugDelegatePrivate.h: Ditto.
351
352 2008-03-05  Anders Carlsson  <andersca@apple.com>
353
354         Reviewed by Geoff.
355
356         Include file changes.
357         
358         * Plugins/WebBaseNetscapePluginView.mm:
359         * Plugins/WebNetscapePluginPackage.m:
360
361 2008-03-04  Timothy Hatcher  <timothy@apple.com>
362
363         Reviewed by Darin Adler.
364
365         <rdar://problem/5720160> Browser windows "do nothing" while modal
366         dialog or menu is up due to run loop modes (or while scrolling)
367
368         Add new API that lets a WebView be scheduled with multiple runloops and modes.
369         This lets loading continue when in a nested runloop or in a different mode.
370
371         * Misc/WebKitVersionChecks.h: Add a new version define:
372         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES.
373         * WebView/WebView.mm:
374         (-[WebView _commonInitializationWithFrameName:groupName:]): Schedule in the main runloop and with
375         the default runloop mode if we are linked on an earlier WebKit version, use common modes otherwise.
376         (-[WebView scheduleInRunLoop:forMode:]): New API, that calls through to Page.
377         (-[WebView unscheduleFromRunLoop:forMode:]): Ditto.
378         * WebView/WebViewPrivate.h: Add the new pending API methods.
379
380 2008-03-04  Anders Carlsson  <andersca@apple.com>
381
382         Reviewed by Darin.
383
384         Fix crash that happens when trying to load a page with a Java applet.
385         
386         * WebCoreSupport/WebFrameLoaderClient.mm:
387         Don't release the names and values array - the kit method returns an autoreleased array.
388
389 2008-03-04  Darin Adler  <darin@apple.com>
390
391         Reviewed by Adam.
392
393         - fix 200+ failing regression tests
394         - fix http://bugs.webkit.org/show_bug.cgi?id=17668
395           Vertical scrollbar at slashdot.org is randomly not shown
396
397         * WebCoreSupport/WebFrameLoaderClient.mm:
398         (WebFrameLoaderClient::transitionToCommittedForNewPage): Changed the refcounting
399         code here to exactly match the way it was before it was moved from WebCore. I had
400         introduced a storage leak and that was causing problems with scroll bars!
401
402 2008-03-04  Darin Adler  <darin@apple.com>
403
404         Reviewed by Adam.
405
406         - remove WebCoreFrameBridge reapplyStyles method
407
408         * WebView/WebHTMLView.mm:
409         (-[WebHTMLView reapplyStyles]): Moved code to reapply styles here from the bridge.
410
411 2008-03-04  Darin Adler  <darin@apple.com>
412
413         Reviewed by Adam.
414
415         - eliminate WebCoreFrameBridge createFrameViewWithNSView
416
417         * WebCoreSupport/WebFrameLoaderClient.mm:
418         (WebFrameLoaderClient::transitionToCommittedForNewPage):
419         Moved code here from createFrameViewWithNSView.
420
421 2008-03-04  Darin Adler  <darin@apple.com>
422
423         Reviewed by Adam.
424
425         - removed WebCoreFrameBridge scrollOverflowInDirection
426
427         * WebView/WebFrameView.mm:
428         (-[WebFrameView _scrollOverflowInDirection:granularity:]): Changed to call
429         EventHandler directly instead of using the bridge.
430         (-[WebFrameView scrollToBeginningOfDocument:]): Updated to use WebCore enums instead
431         of the ones from the bridge.
432         (-[WebFrameView scrollToEndOfDocument:]): Ditto.
433         (-[WebFrameView _pageVertically:]): Ditto.
434         (-[WebFrameView _pageHorizontally:]): Ditto.
435         (-[WebFrameView _scrollLineVertically:]): Ditto.
436         (-[WebFrameView _scrollLineHorizontally:]): Ditto.
437
438 2008-03-04  Darin Adler  <darin@apple.com>
439
440         Reviewed by Adam.
441
442         - remove WebCoreFrameBridge installInFrame: method
443
444         * WebCoreSupport/WebFrameLoaderClient.mm:
445         (WebFrameLoaderClient::transitionToCommittedForNewPage): Call
446         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
447         * WebView/WebFrameView.mm:
448         (-[WebFrameView _install]): Added. Has code from -[WebCoreFrameBridge installInFrame:].
449         (-[WebFrameView _setCustomScrollViewClass:]): Used early return idiom so the entire
450         method isn't nested inside an if statement. Call
451         -[WebFrameView _install] instead of -[WebCoreFrameBridge installInFrame:].
452         * WebView/WebFrameViewInternal.h: Added declaration of _install method so it can be
453         used in WebFrameLoaderClient.mm.
454
455 2008-03-04  Darin Adler  <darin@apple.com>
456
457         Reviewed by Adam.
458
459         - remove WebCoreFrameBridge window method
460
461         * WebCoreSupport/WebFrameBridge.mm: Removed window method.
462
463 2008-03-04  Darin Adler  <darin@apple.com>
464
465         Reviewed by Adam.
466
467         - move code from WebFrameBridge into WebFrameLoaderClient
468
469         * WebCoreSupport/WebFrameBridge.h: Removed unused fields, changed frame name parameters
470         to use WebCore::String instead of NSString, add initSubframeWithOwnerElement declaration,
471         removed viewForPluginWithFrame, viewForJavaAppletWithFrame, createChildFrameNamed,
472         redirectDataToPlugin, determineObjectFromMIMEType, and windowObjectCleared methods.
473         * WebCoreSupport/WebFrameBridge.mm:
474         (-[WebFrameBridge finishInitializingWithPage:frameName:WebCore::frameView:ownerElement:]):
475         Changed to use WebCore::String.
476         (-[WebFrameBridge initMainFrameWithPage:frameName:WebCore::frameView:]): Ditto.
477         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:WebCore::frameView:]): Ditto.
478
479         * WebCoreSupport/WebFrameLoaderClient.mm:
480         (WebFrameLoaderClient::setOriginalURLForDownload): Removed some dead code I found here
481         and added a FIXME.
482         (WebFrameLoaderClient::createFrame): Moved the code from WebFrameBridge here.
483         (WebFrameLoaderClient::objectContentType): Ditto.
484         (parameterValue): Added.  Helper function, based on code originally in WebFrameBridge.
485         (pluginView): Ditto.
486         (WebFrameLoaderClient::createPlugin): Moved the code from WebFrameBridge here.
487
488 2008-03-04  Darin Adler  <darin@apple.com>
489
490         Reviewed by Adam.
491
492         - remove -[WebCoreFrameBridge dashboardRegionsChanged:]
493
494         * WebCoreSupport/WebChromeClient.h:
495         * WebCoreSupport/WebChromeClient.mm:
496         (WebChromeClient::dashboardRegionsChanged): Moved code here from the bridge.
497         The WebCore side now calls this only when there's an actual change.
498         * WebCoreSupport/WebFrameBridge.h: Removed lastDashboardRegions.
499         * WebCoreSupport/WebFrameBridge.mm:
500         (-[WebFrameBridge dealloc]): Removed code to release lastDashboardRegions.
501         Removed _compareDashboardRegions: and dashboardRegionsChanged: methods.
502
503 2008-03-04  Darin Adler  <darin@apple.com>
504
505         Reviewed by Adam.
506
507         - remove WebCoreFrameBridge issuePasteComand method
508
509         * WebCoreSupport/WebFrameBridge.mm: Removed issuePasteCommand method.
510         * WebView/WebHTMLViewInternal.h: Removed declaration of paste: method.
511
512 2008-03-03  Darin Adler  <darin@apple.com>
513
514         Reviewed by Adam.
515
516         - some "cleanup" on the path to removing WebCoreFrameBridge
517
518         * Storage/WebDatabaseManager.mm: Tweak includes.
519         * Storage/WebDatabaseTrackerClient.mm: Ditto.
520         * Storage/WebSecurityOrigin.mm: Ditto.
521         * Storage/WebSecurityOriginInternal.h: Ditto.
522
523         * WebView/WebFrame.mm:
524         (core): Changed to get rid of the requirement that WebKitEditableLinkBehavior exactly
525         match WebCore::EditableLinkBehavior.
526         * WebView/WebFrameInternal.h: Removed unused kit function.
527
528         * WebView/WebHTMLView.mm: Moved WebHTMLViewPrivate class in here.
529         * WebView/WebHTMLViewInternal.h: Moved WebHTMLVewPrivate class out of here.
530         * WebView/WebHTMLViewPrivate.h: Tweaked formatting and removed some unneeded declarations.
531
532         * WebView/WebPreferencesPrivate.h: Removed a no-longer-needed comment.
533
534 2008-03-01  Mark Rowe  <mrowe@apple.com>
535
536         Reviewed by Tim Hatcher.
537
538         Update Xcode configuration to support building debug and release from the mysterious future.
539
540         * Configurations/DebugRelease.xcconfig:
541
542 2008-02-29  Mark Rowe  <mrowe@apple.com>
543
544         Reviewed by Anders Carlsson.
545
546         Replace use of WKPathFromFont with implementation in terms of public API.
547
548         * WebCoreSupport/WebSystemInterface.m:
549         (InitWebCoreSystemInterface): Remove unused symbol.
550
551 2008-02-29  Mark Rowe  <mrowe@apple.com>
552
553         Reviewed by Oliver Hunt.
554
555         Fix spelling of "request" in name of WKNSURLProtocolClassForRequest.
556
557         * Misc/WebNSURLExtras.mm:
558         (-[NSURL _webkit_canonicalize]):
559         * WebKit.order:
560
561 2008-02-29  Mark Rowe  <mrowe@apple.com>
562
563         Reviewed by Oliver Hunt.
564
565         Don't use WKSupportsMultipartXMixedReplace on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest.
566
567         * WebCoreSupport/WebSystemInterface.m:
568         (InitWebCoreSystemInterface):
569
570 2008-02-29  Mark Rowe  <mrowe@apple.com>
571
572         Reviewed by Oliver Hunt.
573
574         Remove obsolete code that had been left intact to support users running WebKit with older versions of Safari.
575
576         * Misc/WebNSViewExtras.m:  Remove _web_superviewOfClass:stoppingAtClass:.
577         * Misc/WebNSWindowExtras.m:  Remove _webkit_displayThrottledWindows.
578         * Misc/WebSearchableTextView.m:  Remove selectionImageForcingWhiteText:.
579         * WebCoreSupport/WebImageRendererFactory.m:  Update comment to mention the last version of Safari that
580         requires this class.
581         * WebInspector/WebInspector.mm:  Remove sharedWebInspector and update comments to mention the last version
582         of Safari that calls other obsolete methods.
583         * WebView/WebDocumentPrivate.h:  Remove selectionImageForcingWhiteText:.
584         * WebView/WebHTMLView.mm:  Ditto.
585         * WebView/WebPDFView.mm:  Ditto.
586         * WebView/WebView.mm:  Update comment to mentoin the last version of Safari that requires the obsolete method.
587
588 2008-02-29  Mark Rowe  <mrowe@apple.com>
589
590         Rubber-stamped by Eric Seidel.
591
592         Remove unneeded includes of WebKitSystemInterface.h.
593
594         * History/WebHistoryItem.mm:
595         * Misc/WebNSViewExtras.m:
596         * WebCoreSupport/WebFrameLoaderClient.mm:
597         * WebView/WebDataSource.mm:
598         * WebView/WebPDFView.mm:
599
600 2008-02-29  Mark Rowe  <mrowe@apple.com>
601
602         Reviewed by Oliver Hunt and Oliver Hunt.
603
604         <rdar://problem/4753845> WebKit should use CGEventSourceSecondsSinceLastEventType in place of WKSecondsSinceLastInputEvent SPI.
605
606         * WebCoreSupport/WebSystemInterface.m:
607         (InitWebCoreSystemInterface):  Remove unused symbol.
608         * WebKit.order:  Ditto.
609
610 2008-02-28  Mark Rowe  <mrowe@apple.com>
611
612         Reviewed by Dave Hyatt.
613
614         Make use of new CGFont APIs on Leopard rather than making a WebKitSystemInterface call.
615
616         * WebCoreSupport/WebSystemInterface.m:
617         (InitWebCoreSystemInterface): Only initialize wkGetFontMetrics on Tiger.
618
619 2008-02-27  Brady Eidson  <beidson@apple.com>
620
621         Reviewed by Mark Rowe (code) and Darin (concept)
622
623         Much better fix for <rdar://problem/4930688> (see r19549)
624         Original fix for <rdar://problem/3947312> (and 14 dupes)
625         
626         Let me tell you a story:
627         A long time ago, in a cvs repository far, far away, loader code was almost all up in WebKit.
628         WebArchive code was intertwined with that code in bizarre and complex ways.
629         During the months long loader re-factoring where we pushed much loader code down into WebCore,
630         many portions of the WebKit loader were thinned out until they ceased to exist.  Others remained
631         with a sole purpose.
632
633         One such section of code whose lineage traces back from WebFrameLoaderClient to WebFrameLoader
634         to WebLoader was originally rooted in the method [WebLoader loadRequest:].  This method was the 
635         single entry point for almost all loading (network or web archives)
636
637         This method would check various headers and other fields on the NSURLRequest and NSURLResponse 
638         to make decisions about the load.  If the cache control fields were expired or other conditions 
639         in the headers were met, the load would be forced to go out to the network.
640
641         As the loader was moved and tweaked repeatedly, most of this code was pruned or re-factored.  
642         At some point, all that remained was the special cases for loading WebArchives.  
643         
644         Somewhere in the r16,000s, this remaining responsibility was noticed and related methods we renamed
645         to be WebArchive specific, further cementing the assumed design.
646
647         Problem is, the design was bad.  A WebArchive is meant to be a static snapshot of a WebPage at a
648         specific point in time.  Referring to the request to see if the resource should be reloaded seems
649         nonsensical, as does referring to the response headers to see if the resource is "expired".  In the 
650         context of loading a WebArchive, available data should *always* be loaded from the WebArchive, at least
651         during the initial load!
652
653         After discovering the secret to reproducing all of these bugs is both emptying our your Foundation 
654         cache and disconnecting your network, it was easy to reproduce the 16 individually reported cases 
655         that were all symptoms of this bug, and easy to verify that they are fixed with this patch.
656
657         * WebCoreSupport/WebFrameLoaderClient.h:
658         * WebCoreSupport/WebFrameLoaderClient.mm:
659         (WebFrameLoaderClient::willUseArchive): Do not call either form of "canUseArchivedResource()" that
660           inspect the request or response objects - We are loading from a WebArchive, and we should never
661           make the decision to go out to the network when we actually have the resource available.
662
663         * WebCoreSupport/WebSystemInterface.m:
664         (InitWebCoreSystemInterface):  Remove two methods that are no longer used anywhere in WebKit
665
666 2008-02-27  Matt Lilek  <webkit@mattlilek.com>
667
668         Reviewed by Adam Roben.
669
670         Bug 14348: Messing up the inspector by dragging an URL into it
671         http://bugs.webkit.org/show_bug.cgi?id=14348
672         <rdar://problem/5283620> and <rdar://problem/5712808>
673
674         * WebCoreSupport/WebInspectorClient.mm:
675         (-[WebInspectorWindowController init]): Remove duplicate preference setting.
676         (-[WebInspectorWindowController webView:dragDestinationActionMaskForDraggingInfo:]):
677
678 2008-02-25  Darin Adler  <darin@apple.com>
679
680         Reviewed by Adam.
681
682         * WebView/WebArchiver.mm:
683         (+[WebArchiver archiveSelectionInFrame:]): Use blankURL.
684         * WebView/WebFrame.mm:
685         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Avoid the
686         variable name URL to avoid clashing with the renamed KURL in the future. Also use
687         blankURL.
688         (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]): Ditto.
689         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]): Ditto.
690         (-[WebFrame loadHTMLString:baseURL:]): Ditto.
691         (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]): Ditto.
692
693 2008-02-24  Darin Adler  <darin@apple.com>
694
695         Reviewed by Sam.
696
697         - remove separate client calls for "standard" and "reload' history
698
699         * WebCoreSupport/WebFrameLoaderClient.h:
700         * WebCoreSupport/WebFrameLoaderClient.mm:
701         (WebFrameLoaderClient::updateGlobalHistory):
702
703 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
704
705         Reviewed by Darin.
706
707         Move basic threading support from WebCore to WTF.
708
709         * ForwardingHeaders/wtf/Threading.h: Added.
710         * ForwardingHeaders/wtf/Locker.h: Added.
711
712 2008-02-23  David Kilzer  <ddkilzer@apple.com>
713
714         Please clarify licensing for some files
715         <http://bugs.webkit.org/show_bug.cgi?id=14970>
716
717         Reviewed by Darin.
718
719         * Plugins/WebNetscapeDeprecatedFunctions.c: Updated copyright statement
720         and added Apple BSD-style license.
721         * Plugins/WebNetscapeDeprecatedFunctions.h: Ditto.
722
723 2008-02-22  John Sullivan  <sullivan@apple.com>
724
725         Reviewed by Adam Roben
726         
727         Reverted the changed from yesterday to add pasteAndMatchStyle:, as the existing
728         pasteAsPlainText: has the same behavior.
729
730         * WebView/WebHTMLView.mm:
731         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
732         (-[WebHTMLView readSelectionFromPasteboard:]):
733         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
734         (-[WebHTMLView pasteAsRichText:]):
735         (-[WebHTMLView paste:]):
736         * WebView/WebView.mm:
737         * WebView/WebViewPrivate.h:
738
739 2008-02-21  Anders Carlsson  <andersca@apple.com>
740
741         Reviewed by Sam.
742
743         Use BackForwardList::create instead.
744         
745         * History/WebBackForwardList.mm:
746         (-[WebBackForwardList init]):
747
748 2008-02-21  John Sullivan  <sullivan@apple.com>
749
750         Reviewed by Jessica Kahn
751         
752         support for pasteAndMatchStyle: command (see <rdar://problem/5723952>)
753
754         * WebView/WebHTMLView.mm:
755         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:matchStyle:]):
756         added matchStyle parameter, passed along to bridge (formerly always passed NO to bridge)
757         (-[WebHTMLView readSelectionFromPasteboard:]):
758         pass NO for new matchStyle parameter to match old behavior
759         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
760         validate pasteAndMatchStyle the same way as pasteAsRichText
761         (-[WebHTMLView pasteAndMatchStyle:]):
762         just like pasteAsRichText but passes YES for matchStyle
763         (-[WebHTMLView pasteAsRichText:]):
764         pass NO for new matchStyle parameter to match old behavior
765         (-[WebHTMLView paste:]):
766         ditto
767         
768         * WebView/WebView.mm:
769         added macro(pasteAndMatchStyle)
770         
771         * WebView/WebViewPrivate.h:
772         added pasteAndMatchStyle: to WebViewEditingActionsPendingPublic category
773
774 2008-02-20  Sam Weinig  <sam@webkit.org>
775
776         Reviewed by Darin and Geoff.
777
778         - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
779
780         * WebView/WebView.mm:
781         (-[WebView _preferencesChangedNotification:]): Added a call to Settings::setNeedsSiteSpecificQuirks.
782         There are currently no site-specific quirks on Mac, but we will propagate the state
783         to WebCore to avoid possible mistakes later.
784
785 2008-02-19  Anders Carlsson  <andersca@apple.com>
786
787         Reviewed by Darin.
788
789         Move back WebKit methods that were unused in WebCore.
790         
791         * Misc/WebNSURLExtras.mm:
792         (+[NSURL _web_URLWithData:]):
793         (+[NSURL _web_URLWithData:relativeToURL:]):
794         (-[NSURL _web_originalData]):
795         (-[NSURL _web_originalDataAsString]):
796         (-[NSURL _web_isEmpty]):
797         (-[NSURL _webkit_canonicalize]):
798         (-[NSURL _webkit_URLByRemovingComponent:]):
799         (-[NSURL _webkit_URLByRemovingFragment]):
800         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
801         (-[NSURL _webkit_isFileURL]):
802         (-[NSString _webkit_isFileURL]):
803         * WebCoreSupport/WebFrameLoaderClient.mm:
804         (WebFrameLoaderClient::setTitle):
805         * WebCoreSupport/WebSystemInterface.m:
806         (InitWebCoreSystemInterface):
807
808 2008-02-18  Darin Adler  <darin@apple.com>
809
810         Reviewed by Sam.
811
812         * Misc/WebNSAttributedStringExtras.mm:
813         (+[NSAttributedString _web_attributedStringFromRange:]): Eliminate use of
814         DeprecatedString.
815
816 2008-02-17  Sam Weinig  <sam@webkit.org>
817
818         Reviewed by Dan Bernstein.
819
820         Fix for http://bugs.webkit.org/show_bug.cgi?id=17365
821         document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
822
823         * MigrateHeaders.make: Migrate DOMProgressEvent.h and DOMTextPrivate.h which were
824         mistakenly not migrated.
825
826 2008-02-15  Dan Bernstein  <mitz@apple.com>
827
828         Reviewed by Alexey Proskuryakov.
829
830         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=17360
831           <rdar://problem/5743131> REGRESSION: mp4 file downloaded from server is downloaded as html
832
833         * WebView/WebDataSource.mm:
834         (+[WebDataSource _representationClassForMIMEType:]):
835         (-[WebDataSource _responseMIMEType]):
836         (-[WebDataSource subresources]):
837         (-[WebDataSource subresourceForURL:]):
838         * WebView/WebResource.mm:
839         (-[WebResource _initWithData:URL:response:]):
840         * WebView/WebResourcePrivate.h:
841
842 2008-02-15  Adam Roben  <aroben@apple.com>
843
844         Make WebKit's FEATURE_DEFINES match WebCore's
845
846         Reviewed by Mark.
847
848         * Configurations/WebKit.xcconfig:
849
850 2008-02-14  Darin Adler  <darin@apple.com>
851
852         Reviewed by Eric Seidel.
853
854         - updated for WebCore KURL changes
855
856         * History/WebHistoryItem.mm:
857         (-[WebHistoryItem URL]): Removed getNSURL call.
858         * Misc/WebElementDictionary.mm:
859         (-[WebElementDictionary _absoluteImageURL]): Ditto.
860         (-[WebElementDictionary _absoluteLinkURL]): Ditto.
861         * Misc/WebNSAttributedStringExtras.mm:
862         (fileWrapperForElement): Ditto.
863         (+[NSAttributedString _web_attributedStringFromRange:]): Ditto.
864         * Misc/WebNSURLExtras.mm:
865         (-[NSString _webkit_stringByReplacingValidPercentEscapes]): Updated
866         for function name change.
867         * WebCoreSupport/WebContextMenuClient.mm:
868         (WebContextMenuClient::downloadURL): Removed getNSURL call.
869         * WebCoreSupport/WebDragClient.mm:
870         (WebDragClient::createDragImageForLink): Ditto.
871         * WebCoreSupport/WebFrameLoaderClient.mm:
872         (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Ditto.
873         (WebFrameLoaderClient::startDownload): Ditto.
874         (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad): Ditto.
875         (WebFrameLoaderClient::updateGlobalHistoryForReload): Ditto.
876         (WebFrameLoaderClient::cancelledError): Ditto.
877         (WebFrameLoaderClient::blockedError): Ditto.
878         (WebFrameLoaderClient::cannotShowURLError): Ditto.
879         (WebFrameLoaderClient::interruptForPolicyChangeError): Ditto.
880         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto.
881         (WebFrameLoaderClient::fileDoesNotExistError): Ditto.
882         (WebFrameLoaderClient::willUseArchive): Ditto.
883         (WebFrameLoaderClient::setTitle): Ditto.
884         (WebFrameLoaderClient::actionDictionary): Ditto.
885         (WebFrameLoaderClient::createFrame): Ditto.
886         (WebFrameLoaderClient::objectContentType): Ditto.
887         (WebFrameLoaderClient::createPlugin): Ditto.
888         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
889         * WebView/WebDataSource.mm:
890         (-[WebDataSource _URL]): Ditto.
891         (-[WebDataSource _initWithDocumentLoader:]): Ditto.
892         (-[WebDataSource unreachableURL]): Ditto.
893         * WebView/WebHTMLView.mm:
894         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
895
896 2008-02-14  Stephanie Lewis  <slewis@apple.com>
897
898         Reviewed by Geoff.
899
900         Update order files.
901
902         * WebKit.order:
903
904 2008-02-14  Alexey Proskuryakov  <ap@webkit.org>
905
906         Reviewed by Adam Roben.
907
908         http://bugs.webkit.org/show_bug.cgi?id=17207
909         Database example doesn't work (requires not-yet-released Safari)
910
911         * WebCoreSupport/WebChromeClient.mm:
912         (WebChromeClient::exceededDatabaseQuota): Check Safari version, and allow 5 megabytes of storage
913         if it's too old.
914
915 2008-02-11  Darin Adler  <darin@apple.com>
916
917         - roll out fix for <rdar://problem/5726016> REGRESSION: Xcode News window renders
918           incorrectly due to visibility fix
919
920         Removed the Xcode-specific quirk at the request of some folks on the Xcode team.
921
922         * Misc/WebKitVersionChecks.h: Removed the constant.
923
924         * WebView/WebView.mm:
925         (-[WebView _needsXcodeVisibilityQuirk]): Removed.
926         (-[WebView _preferencesChangedNotification:]): Removed call to
927         setNeedsXcodeVisibilityQuirk.
928
929 2008-02-12  Anders Carlsson  <andersca@apple.com>
930
931         Reviewed by Mitz.
932
933         * WebCoreSupport/WebFrameBridge.mm:
934         * WebCoreSupport/WebViewFactory.mm:
935         (-[WebViewFactory imageTitleForFilename:size:]):
936         Move implementation from WebFrameBridge to WebViewFactory.
937
938 2008-02-11  Darin Adler  <darin@apple.com>
939
940         Reviewed by Mitz.
941
942         - fix <rdar://problem/5726016> REGRESSION: Xcode News window renders
943           incorrectly due to visibility fix
944
945         Added an Xcode-specific quirk.
946
947         * Misc/WebKitVersionChecks.h: Added a constant for the "linked on or after"
948         part of the check.
949
950         * WebView/WebView.mm:
951         (-[WebView _needsXcodeVisibilityQuirk]): Added.
952         (-[WebView _preferencesChangedNotification:]): Added a call to
953         setNeedsXcodeVisibilityQuirk based on _needsXcodeVisibilityQuirk.
954
955 2008-02-10  Darin Adler  <darin@apple.com>
956
957         - fix http://bugs.webkit.org/show_bug.cgi?id=17274
958           REGRESSION: User Agent string broken in r30119
959
960         * WebView/WebView.mm:
961         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]):
962         Fix wrong variable name. Doh!
963
964 2008-02-09  Darin Adler  <darin@apple.com>
965
966         Reviewed by Tim Hatcher.
967
968         - fix <rdar://problem/5725996> crash every time you open the Xcode documentation window
969
970         * WebView/WebView.mm:
971         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Work around a bug in the
972         garbage collector's Objective C++ support by not initializing a static to an object
973         that needs to be marked when running under GC.
974
975 2008-02-05  Dan Bernstein  <mitz@apple.com>
976
977         Reviewed by Darin Adler.
978
979         - WebKit part of <rdar://problem/5724303> Should implement writing direction shortcuts
980
981         The key bindings are Command-Control-left arrow and
982         Command-Control-right arrow. To match AppKit, the bindings are enabled
983         only when certain user defaults are set.
984
985         * WebView/WebHTMLView.mm:
986         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
987         (-[WebHTMLView toggleBaseWritingDirection:]): Changed to call
988         Frame::baseWritingDirectionForSelectionStart() and
989         Editor::setBaseWritingDirection() directly.
990         (-[WebHTMLView changeBaseWritingDirection:]): Ditto.
991         (writingDirectionKeyBindingsEnabled): Added.
992         (-[WebHTMLView _changeBaseWritingDirectionTo:]): Added this helper
993         method.
994         (-[WebHTMLView changeBaseWritingDirectionToLTR:]): Added.
995         (-[WebHTMLView changeBaseWritingDirectionToRTL:]): Added.
996         * WebView/WebView.mm:
997
998 2008-02-05  Mark Rowe  <mrowe@apple.com>
999
1000         Unreviewed build fix.
1001
1002         * WebView/WebView.mm: Add missing #import.
1003
1004 2008-02-05  Mark Rowe  <mrowe@apple.com>
1005
1006         Reviewed by Oliver Hunt.
1007
1008         Update versioning to support the mysterious future.
1009
1010         * Configurations/Version.xcconfig: Add SYSTEM_VERSION_PREFIX_1060.
1011
1012 2008-01-30  Justin Garcia  <justin.garcia@apple.com>
1013
1014         Reviewed by Darin Adler.
1015         
1016         <rdar://problem/5708115> REGRESSION: Words selected with a double click and copied won't paste into Mail
1017
1018         * WebView/WebHTMLView.mm:
1019         (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]): Brought 
1020         this back, it's used by Mail.
1021         (-[WebHTMLView _canSmartReplaceWithPasteboard:]): This WebInternal method is
1022         also used by Mail.  Moved to WebPrivate.
1023         * WebView/WebHTMLViewPrivate.h: Expose two methods that Mail uses here, so that we don't
1024         accidently remove them in the future.
1025
1026 2008-01-30  Mark Rowe  <mrowe@apple.com>
1027
1028         Reviewed by Oliver Hunt.
1029
1030         Move off deprecated NSTableView methods.
1031
1032         * WebView/WebHTMLView.mm:
1033         (-[WebTextCompleteController _buildUI]): Switch from -setDrawsGrid: to -setGridStyleMask:.
1034         (-[WebTextCompleteController _placePopupWindow:]): Switch from -selectRow:byExtendingSelection: to -selectRowIndexes:byExtendingSelection:.
1035         (-[WebTextCompleteController filterKeyDown:]): Ditto.
1036
1037 2008-01-26  Mark Rowe  <mrowe@apple.com>
1038
1039         Reviewed by Darin Adler.
1040
1041         Fix leaks seen after loading <http://www.funnyordie.com/videos/d70b5a11cb>.
1042
1043         * Misc/WebNSDataExtras.m:
1044         (-[NSString _web_capitalizeRFC822HeaderFieldName]): Transfer ownerhip of the allocated buffers
1045         to the new CFString so that they will be freed when no longer needed.
1046
1047 2008-01-26  Greg Bolsinga  <bolsinga@apple.com>
1048
1049         <rdar://problem/5708388> WebDashboardRegion.h duplicated between WebCore / WebKit
1050
1051         Reviewed by Darin.
1052
1053         * WebCoreSupport/WebDashboardRegion.h: Removed.
1054         * WebView/WebView.mm: Updated #import to use copy of WebDashboardRegion.h from WebCore.
1055
1056 2008-01-21  Darin Adler  <darin@apple.com>
1057
1058         Reviewed by John Sullivan.
1059
1060         - fix <rdar://problem/5644324> Delegate-less WebKit clients should have no databases
1061         - add a missing export of WebDatabaseExpectedSizeKey
1062         - implement deleteOrigin: and remove deleteDatabasesWithOrigin:
1063
1064         * Storage/WebDatabaseManager.mm:
1065         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Updated to check for a null
1066         name instead of calling isValid().
1067         (-[WebDatabaseManager deleteOrigin:]): Implemented.
1068         (WebKitInitializeDatabasesIfNecessary): Updated for name change.
1069
1070         * Storage/WebDatabaseManagerPrivate.h: Removed deleteDatabasesWithOrigin:.
1071
1072         * WebCoreSupport/WebChromeClient.h: Updated for changes to ChromeClient.
1073         * WebCoreSupport/WebChromeClient.mm:
1074         (WebChromeClient::exceededDatabaseQuota): Replaced the two different client functions
1075         we had before with a single one.
1076
1077         * WebKit.exp: Added missing export for WebDatabaseExpectedSizeKey.
1078
1079         * WebView/WebPreferenceKeysPrivate.h: Removed WebKitDefaultDatabaseQuotaKey.
1080         * WebView/WebPreferences.m:
1081         (+[WebPreferences initialize]): Removed the default for WebKitDefaultDatabaseQuotaKey.
1082         * WebView/WebPreferencesPrivate.h: Removed defaultDatabaseQuota and
1083         setDefaultDatabaseQuota:.
1084
1085         * WebView/WebUIDelegatePrivate.h: Replaced the two different database quota delegate
1086         methods we had before with a single one.
1087
1088         * WebView/WebView.mm:
1089         (-[WebView _preferencesChangedNotification:]): Removed the code to set the
1090         default database origin quota in WebCore::Settings based on WebPreferences.
1091
1092         * WebView/WebViewInternal.h: Removed delegate method dispatch functions for unusual
1093         types of parameters that the database UI delegate methods had before.
1094
1095 2008-01-20  Mark Rowe  <mrowe@apple.com>
1096
1097         Reviewed by Dan Bernstein.
1098
1099         Remove code bracketed by REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM as we are no longer
1100         interested in supporting Safari 2 with TOT WebKit.
1101
1102         * WebView/WebView.mm:
1103         (+[WebView initialize]):
1104
1105 2008-01-17  Timothy Hatcher  <timothy@apple.com>
1106
1107         Reviewed by Adam Roben.
1108
1109         <rdar://problem/5693558> REGRESSION (r29581): no form field focus rings
1110         and inactive text selection after loading a page
1111         Bug 16917: REGRESSION (r29581/2): Google Maps search box loses focused appearance
1112
1113         The problem was other frames were changing the FocusController's active
1114         status to false after the first responder frame set it to true. The last
1115         frame to call _updateActiveState would win.
1116
1117         * WebView/WebHTMLView.mm:
1118         (-[WebHTMLView _updateActiveState]): Only call page->focusController()->setActive()
1119         if the first responder is the current WebHTMLView or the WebFrameView.
1120         (-[WebHTMLView _web_firstResponderCausesFocusDisplay]): Removed, inlined code in _updateActiveState.
1121
1122 2008-01-18  Adam Roben  <aroben@apple.com>
1123
1124         Rename _updateActiveState to _updateFocusedAndActiveState
1125
1126         Also renamed any related methods/members similarly.
1127
1128         Reviewed by Adele.
1129
1130         * WebView/WebHTMLView.mm:
1131         (-[WebHTMLViewPrivate dealloc]):
1132         (-[WebHTMLView _cancelUpdateFocusedAndActiveStateTimer]):
1133         (-[WebHTMLView close]):
1134         (_updateFocusedAndActiveStateTimerCallback):
1135         (-[WebHTMLView viewWillMoveToWindow:]):
1136         (-[WebHTMLView viewDidMoveToWindow]):
1137         (-[WebHTMLView windowDidBecomeKey:]):
1138         (-[WebHTMLView windowDidResignKey:]):
1139         (-[WebHTMLView becomeFirstResponder]):
1140         (-[WebHTMLView resignFirstResponder]):
1141         * WebView/WebHTMLViewInternal.h:
1142         * WebView/WebHTMLViewPrivate.h:
1143
1144 2008-01-17  John Sullivan  <sullivan@apple.com>
1145
1146         Reviewed by Darin
1147         
1148         - fixed <rdar://problem/5692068> -1 WebFrameView world leaks reported after closing view source window
1149
1150         * WebView/WebFrameView.mm:
1151         (-[WebFrameView initWithCoder:]):
1152         override to bump the global WebFrameView count
1153
1154 2008-01-16  Adam Roben  <aroben@apple.com>
1155
1156         Updated for renames/removal of WebCore methods.
1157
1158         Reviewed by Darin.
1159
1160         * Plugins/WebPluginController.mm:
1161         (-[WebPluginController webPlugInContainerSelectionColor]): Changed to
1162         ask isFocusedAndActive directly, instead of going through the frame
1163         bridge.
1164         * WebView/WebHTMLView.mm:
1165         (-[WebHTMLView _updateActiveState]): Updated for method renames.
1166
1167 2008-01-16  John Sullivan  <sullivan@apple.com>
1168
1169         Reviewed by Adam and Dan
1170         
1171         - cleaned up some existing logging
1172
1173         * WebView/WebHTMLView.mm:
1174         (-[WebHTMLView setNeedsDisplay:]):
1175         add method name to log, use "YES" and "NO" instead of (int)flag
1176         (-[WebHTMLView setNeedsLayout:]):
1177         ditto
1178         (-[WebHTMLView setNeedsToApplyStyles:]):
1179         ditto
1180
1181 2008-01-15  Geoffrey Garen  <ggaren@apple.com>
1182
1183         Reviewed by Andre Boule.
1184
1185         Fixed <rdar://problem/5667627> [WebCache empty] implementation should
1186         not disable/enable the cache
1187         
1188         Toggle the cache model instead -- toggling disable/enable just causes
1189         the cache to forget about resources, not reclaim their memory.
1190
1191         * Misc/WebCache.mm:
1192         (+[WebCache empty]):
1193         * WebView/WebView.mm:
1194         * WebView/WebViewInternal.h:
1195
1196 2008-01-15  Adele Peterson  <adele@apple.com>
1197
1198         Reviewed by Adam and Antti.
1199
1200         WebKit part of fix for <rdar://problem/5619062> Add load progress indicator to video controls
1201
1202         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1203           Removed initialization for GetMediaControlBackgroundImageData.  Added initialization for DrawMediaSliderTrack.
1204
1205 2008-01-10  Geoffrey Garen  <ggaren@apple.com>
1206
1207         Reviewed by John Sullivan.
1208
1209         Fixed some world leak reports:
1210         * <rdar://problem/5669436> PLT complains about world leak of 1 JavaScript
1211         Interpreter after running cvs-base suite
1212
1213         * <rdar://problem/5669423> PLT complains about world leak if browser
1214         window is open when PLT starts
1215         
1216         These were both bugs in the reporting mechanism, so I took the
1217         opportunity to do some house cleaning there.
1218
1219         * Misc/WebCoreStatistics.h: Did a little renaming, to match
1220         JavaScriptCore better. I kept the methods with the old names around,
1221         though, because old versions of Safari need them.
1222
1223         * Misc/WebCoreStatistics.mm: Removed dependence on
1224         WebCore::JavaScriptStatistics, which is gone now. 
1225         
1226         These two methods are now distinct, for the sake of world leak reporting:
1227         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1228         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1229
1230 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
1231
1232         Not reviewed. Build fix.
1233         
1234         - Attempt to fix mac build.
1235
1236         * Storage/WebDatabaseManager.mm:
1237
1238 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
1239
1240         Reviewed by Sam.
1241
1242         - remove SecurityOriginData and fold its functionality into SecurityOrigin
1243
1244         * Storage/WebDatabaseManager.mm:
1245         (-[WebDatabaseManager origins]):
1246         (-[WebDatabaseManager databasesWithOrigin:]):
1247         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
1248         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
1249         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
1250         * Storage/WebDatabaseTrackerClient.h:
1251         * Storage/WebDatabaseTrackerClient.mm:
1252         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
1253         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
1254         * Storage/WebSecurityOrigin.mm:
1255         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1256         (-[WebSecurityOrigin protocol]):
1257         (-[WebSecurityOrigin domain]):
1258         (-[WebSecurityOrigin port]):
1259         (-[WebSecurityOrigin usage]):
1260         (-[WebSecurityOrigin quota]):
1261         (-[WebSecurityOrigin setQuota:]):
1262         (-[WebSecurityOrigin isEqual:]):
1263         (-[WebSecurityOrigin dealloc]):
1264         (-[WebSecurityOrigin finalize]):
1265         (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
1266         (-[WebSecurityOrigin _core]):
1267         * Storage/WebSecurityOriginInternal.h:
1268         * WebCoreSupport/WebChromeClient.h:
1269         * WebCoreSupport/WebChromeClient.mm:
1270         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
1271         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
1272
1273 2008-01-10  Sam Weinig  <sam@webkit.org>
1274
1275         Reviewed by Anders Carlsson.
1276
1277         Fixes: http://bugs.webkit.org/show_bug.cgi?id=16522
1278         <rdar://problem/5657355>
1279
1280         * Plugins/WebBaseNetscapePluginView.mm:
1281         (-[WebBaseNetscapePluginView loadPluginRequest:]): call findFrameForNavigation
1282         to ensure the shouldAllowNavigation check is made.
1283
1284 2008-01-07  Nikolas Zimmermann  <zimmermann@kde.org>
1285
1286         Reviewed by Mark.
1287
1288         Enable SVG_FONTS by default.
1289
1290         * Configurations/WebKit.xcconfig:
1291
1292 2008-01-07  Adele Peterson  <adele@apple.com>
1293
1294         Reviewed by Antti, Adam, and Mitz.
1295
1296         WebKit part of fix for 
1297         <rdar://problem/5619073> Updated look for <video> controls
1298         <rdar://problem/5619057> Add volume control to video controls
1299
1300         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1301
1302 2008-01-07  Dan Bernstein  <mitz@apple.com>
1303
1304         Reviewed by Dave Hyatt.
1305
1306         - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
1307
1308         * Misc/WebNSAttributedStringExtras.mm:
1309
1310 2008-01-03  Alexey Proskuryakov  <ap@webkit.org>
1311
1312         Reviewed by Darin.
1313
1314         <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController
1315
1316         * WebView/WebView.mm:
1317         (-[WebView _executeCoreCommandByName:value:]):
1318         * WebView/WebViewPrivate.h:
1319         Added an SPI to implement layoutTestController.execCommand.
1320
1321 2008-01-03  Kevin Decker  <kdecker@apple.com>
1322
1323         Reviewed by Darin.
1324
1325         Fixed: <rdar://problem/4106190> Include "Where from" metadata in drag-and-dropped images
1326         
1327         * Misc/WebNSFileManagerExtras.h:
1328         * Misc/WebNSFileManagerExtras.m:
1329         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Added new method. Uses WebKitSystemInterface to set
1330         "Where from:" metadata information.
1331         * WebView/WebHTMLView.mm:
1332         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Added "Where from:" metadata for drag and dropped images.
1333         
1334 2008-01-03  Alice Liu  <alice.liu@apple.com>
1335
1336         Reviewed by Darin.
1337
1338         This fixes pageup/down in iframes.  test for this is fast/frames/iframe-scroll-page-up-down.html
1339
1340         * WebView/WebHTMLView.mm:
1341         (-[WebHTMLView doCommandBySelector:]):
1342         Have the editor handle all the commands it supports instead of just text commands.
1343         If not handled by the editor, the webview will handle the command. 
1344
1345 2008-01-02  Kevin Decker  <kdecker@apple.com>
1346
1347         Reviewed by Darin.
1348         
1349         Fixed: <rdar://problem/5660603> QuickDraw plug-ins can cause a 100% reproducible assertion failure in AppKit (breaks Safari UI)
1350
1351         * Plugins/WebBaseNetscapePluginView.mm:
1352         (-[WebBaseNetscapePluginView updateAndSetWindow]): Simplified an early return for non-QuickDraw plug-ins and switched
1353         to using the more NSView friendly version of lockFocus, lockFocusIfCanDraw.
1354
1355 2008-01-01  David D. Kilzer  <ddkilzer@webkit.org>
1356
1357         Reviewed by Dan.
1358
1359         - fix http://bugs.webkit.org/show_bug.cgi?id=16700
1360           Fix -[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]
1361
1362         * DefaultDelegates/WebDefaultPolicyDelegate.m: Check return value of
1363         -[NSFileManager fileExistsAtPath:isDirectory:] before using the value
1364         of isDirectory.
1365
1366 2007-12-29  Nikolas Zimmermann  <zimmermann@kde.org>
1367
1368         Reviewed by Eric.
1369
1370         Add DOMSVGFontElement/DOMSVGGlyphElement/DOMSVGMissingGlyphElement to MigrateHeaders.make
1371
1372         * MigrateHeaders.make:
1373
1374 2007-12-25  Dan Bernstein  <mitz@apple.com>
1375
1376         Reviewed by Oliver Hunt.
1377
1378         - fix an assertion failure when pressing the num lock key
1379
1380         * WebView/WebHTMLView.mm:
1381         (-[WebHTMLView flagsChanged:]): Avoid passing key code 10 down to
1382         WebCore.
1383
1384 2007-12-20  Darin Adler  <darin@apple.com>
1385
1386         Reviewed by Oliver.
1387
1388         - fix <rdar://problem/5658787> Selector -[WebView insertLineBreak:] is not implemented
1389
1390         * WebView/WebView.mm: Added all selectors implemented by WebHTMLView to the list of
1391         selectors to forward here. The new ones are: changeBaseWritingDirection:, changeSpelling:,
1392         deleteToMark:, insertLineBreak:, moveParagraphBackwardAndModifySelection:,
1393         moveParagraphForwardAndModifySelection:, pageDownAndModifySelection:, pageUpAndModifySelection:,
1394         selectToMark:, setMark:, swapWithMark:, takeFindStringFromSelection:, toggleBaseWritingDirection:,
1395         and transpose:.
1396
1397 2007-12-20  Kevin Decker  <kdecker@apple.com>
1398
1399         Reviewed by Anders.
1400         
1401         Fixed: <rdar://problem/5638288> REGRESSION: Flash movies show up in other tabs above the page (16373)
1402
1403         * Plugins/WebBaseNetscapePluginView.mm:
1404         (-[WebBaseNetscapePluginView updateAndSetWindow]): QuickDraw plug-ins must manually be told when to stop
1405          writing to the window backing store. The problem was that change-set 28400 introduced an early return 
1406          which prevented this necessary operation. The fix is to limit the scope of the early return to CG and GL
1407          plug-ins and to tweak the needsFocus check to prevent an exception from occurring in QuickDraw-based plug-ins.
1408
1409 2007-12-19  Geoffrey Garen  <ggaren@apple.com>
1410
1411         Reviewed by Oliver Hunt.
1412
1413         Build fix.
1414
1415         * ForwardingHeaders/kjs/SymbolTable.h: Added.
1416         * ForwardingHeaders/wtf/VectorTraits.h: Added.
1417
1418 2007-12-16  Mark Rowe  <mrowe@apple.com>
1419
1420         Reviewed by Maciej Stachowiak.
1421
1422         Refactor Mac plugin stream code to use the shared NetscapePlugInStreamLoader implementation.
1423
1424         * Plugins/WebBaseNetscapePluginStream.h:
1425         * Plugins/WebNetscapePluginStream.h:
1426         * Plugins/WebNetscapePluginStream.mm:
1427         (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
1428         (-[WebNetscapePluginStream dealloc]):
1429         (-[WebNetscapePluginStream finalize]):
1430         * Plugins/WebPlugInStreamLoaderDelegate.h: Moved from WebCore.
1431         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h: Added.
1432         (WebNetscapePlugInStreamLoaderClient::WebNetscapePlugInStreamLoaderClient):
1433         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm: Added.
1434         (WebNetscapePlugInStreamLoaderClient::didReceiveResponse): Call through to the equivalent WebPlugInStreamLoaderDelegate method.
1435         (WebNetscapePlugInStreamLoaderClient::didReceiveData): Ditto.
1436         (WebNetscapePlugInStreamLoaderClient::didFail): Ditto.
1437         (WebNetscapePlugInStreamLoaderClient::didFinishLoading): Ditto.
1438
1439 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
1440
1441         Reviewed by Darin.
1442
1443         http://bugs.webkit.org/show_bug.cgi?id=14140
1444         <rdar://problem/5270958> REGRESSION: Complex system KeyBindings don't work properly
1445
1446         * WebView/WebHTMLView.mm:
1447         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): Made command replaying work
1448         when handling keypress, too.
1449         (-[WebHTMLView doCommandBySelector:]): Adapted for the new way to store commands in events.
1450         (-[WebHTMLView insertText:]): Append a command, not replace the whole existing vector. Also,
1451         restore the state for additional commands to be saved correctly.
1452
1453 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
1454
1455         <rdar://problem/5647272> Remove user agent string hack for flickr.com
1456
1457         Reviewed by Darin.
1458
1459         * WebView/WebView.mm:
1460         (-[WebView _userAgentForURL:]): Removed hack.
1461
1462 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
1463
1464         <rdar://problem/5647261> Remove user agent string hack for yahoo.com
1465
1466         Reviewed by Darin.
1467
1468         * WebView/WebView.mm:
1469         (-[WebView _userAgentForURL:]): Removed hack.
1470
1471 2007-12-14  Darin Adler  <darin@apple.com>
1472
1473         Reviewed by Brady.
1474
1475         - fix http://bugs.webkit.org/show_bug.cgi?id=16296
1476           <rdar://problem/5635641> -[WebFrameLoadDelegate didReceiveIcon:forFrame:] never called
1477
1478         * WebView/WebView.mm:
1479         (-[WebView setFrameLoadDelegate:]): Call [WebIconDatabase sharedIconDatabase] if the
1480         a didReceiveIcon method is present.
1481
1482 2007-12-14  Darin Adler  <darin@apple.com>
1483
1484         Reviewed by Alexey.
1485
1486         - Changed a few more editing operations to use WebCore instead of WebKit.
1487         - Removed some obsolete unused code.
1488
1489         * WebCoreSupport/WebFrameBridge.h: Moved declarations of methods that are both
1490         defined and used on the WebKit side to here. These no longer belong on the bridge
1491         and should be moved to the WebFrame class (or elsewhere).
1492         * WebCoreSupport/WebFrameBridge.mm: Removed some unused methods.
1493
1494         * WebView/WebFrameView.mm:
1495         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): Fix typo in comment.
1496
1497         * WebView/WebHTMLView.mm:
1498         (-[WebHTMLViewPrivate dealloc]): Removed unused firstResponderTextViewAtMouseDownTime.
1499         (-[WebHTMLViewPrivate clear]): Ditto.
1500         (-[WebHTMLView _setMouseDownEvent:]): Ditto.
1501         (commandNameForSelector): Added special cases for pageDown:, pageDownAndModifySelection:,
1502         pageUp:, and pageUpAndModifySelection:, since those names probably aren't specific enough
1503         to be used in WebCore (what AppKit calls scrollPageDown: vs. pageDown: needs to be
1504         disambiguated with the word "Move"). Added deleteBackward:,
1505         deleteBackwardByDecomposingPreviousCharacter:, deleteForward:, deleteToBeginningOfLine:,
1506         deleteToBeginningOfParagraph:, deleteToEndOfLine:, deleteToEndOfParagraph:, pageDown:,
1507         pageDownAndModifySelection:, pageUp:, pageUpAndModifySelection:, selectLine:,
1508         selectParagraph:, selectSentence:, and selectWord: to the list of commands that are
1509         forwarded to WebCore.
1510         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Eliminated the long list of
1511         operations that we forward to WebCore. Instead, look up any command that WebCore can
1512         handle, after any that we handle specially in WebHTMLView. Also fixed a bug where
1513         an item that's not a menu item with changeBaseWritingDirection:NSWritingDirectionNatural
1514         would end up enabled instead of disabled and streamlined the logic for toggleGrammarChecking:.
1515         (-[WebHTMLView mouseDown:]): Removed unused firstResponderTextViewAtMouseDownTime.
1516         (-[WebHTMLView becomeFirstResponder]): Removed unused willBecomeFirstResponderForNodeFocus.
1517         (-[WebHTMLView resignFirstResponder]): Ditto.
1518         (-[WebHTMLView checkSpelling:]): Took unneeded extra initialization of NSSpellChecker.
1519
1520         * WebView/WebHTMLViewInternal.h: Removed unused willBecomeFirstResponderForNodeFocus,
1521         firstResponderTextViewAtMouseDownTime, _textViewWasFirstResponderAtMouseDownTime: and
1522         _willMakeFirstResponderForNodeFocus.
1523
1524 2007-12-13  Alexey Proskuryakov  <ap@webkit.org>
1525
1526         Reviewed by Darin.
1527
1528         Turn on keyboard event processing quirks for feed views and old applications on Mac OS X.
1529
1530         * Misc/WebKitVersionChecks.h:
1531         * WebView/WebView.mm:
1532         (-[WebView _needsKeyboardEventHandlingQuirks]):
1533         (-[WebView _preferencesChangedNotification:]):
1534
1535 2007-12-12  Brady Eidson  <beidson@apple.com>
1536
1537         Reviewed by Sam Weinig
1538
1539         Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows)
1540
1541         * WebCoreSupport/WebCachedPagePlatformData.h: Added.
1542         (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes a WebDocumentView for later restoration
1543         (WebCachedPagePlatformData::clear):
1544         (WebCachedPagePlatformData::webDocumentView):
1545
1546         * WebCoreSupport/WebFrameLoaderClient.h:
1547         * WebCoreSupport/WebFrameLoaderClient.mm:
1548         (WebFrameLoaderClient::savePlatformDataToCachedPage):
1549         (WebFrameLoaderClient::transitionToCommittedFromCachedPage): Don't set the DocumentLoader to the Frame here, 
1550           because that is now done in WebCore.
1551         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1552
1553 2007-12-12  Mark Rowe  <mrowe@apple.com>
1554
1555         Reviewed by Dave Kilzer.
1556
1557         Remove abuse of projectDirPath from WebKit.xcodeproj to fix Production builds.
1558
1559         * Configurations/WebKit.xcconfig:
1560
1561 2007-12-11  Sam Weinig  <sam@webkit.org>
1562
1563         Reviewed by Darin Adler.
1564
1565         Scrub URL out of the tree in preparation for renaming KURL to URL.
1566
1567         * WebCoreSupport/WebFrameLoaderClient.mm:
1568         (WebFrameLoaderClient::actionDictionary):
1569         * WebView/WebDataSource.mm:
1570         (-[WebDataSource _URL]):
1571         * WebView/WebView.mm:
1572         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1573
1574 2007-12-11  Darin Adler  <darin@apple.com>
1575
1576         Reviewed by Geoff.
1577
1578         - change more editing commands to use WebCore::Editor
1579         - change to use the new WebCore::Editor::command() function
1580
1581         * WebView/WebHTMLView.mm: Changed alignCenter, alignJustified, alignLeft,
1582         alignRight, cut, copy, deleteToMark, indent, insertNewlineIgnoringFieldEditor,
1583         insertTabIgnoringFieldEditor, outdent, selectAll, selectToMark, setMark,
1584         subscript, superscript, swapWithMark, underline, unscript, yank, and yankAndSelect
1585         to use the "forward to WebCore" macro instead of having hand-written implementations.
1586         (kit): Added function to change a TriState to an AppKit-style tri-state value.
1587         (-[WebHTMLView coreCommandBySelector:]): Added. No longer converts case of the
1588         first character or copies the selector name, since the Editor commands are not case
1589         sensitive any more. Returns a command object.
1590         (-[WebHTMLView coreCommandByName:]): Added.
1591         (-[WebHTMLView executeCoreCommandBySelector:]): Renamed from callWebCoreCommand:,
1592         and changed to use the new coreCommandBySelector: method.
1593         (-[WebHTMLView executeCoreCommandByName:]): Added.
1594         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Changed all the
1595         methods that call through to WebCore to also use the state() and isEnabled()
1596         functions on the commands for the menu item state and user interface item enabling.
1597         (-[WebHTMLView _handleStyleKeyEquivalent:]): Use ToggleBold and ToggleItalic by
1598         name rather than having local methods for them; no need for methods with a single
1599         call site.
1600         (-[WebHTMLView insertParagraphSeparator:]): Use executeCoreCommandByName: rather
1601         than the deprecated execCommand().
1602         (-[WebHTMLView doCommandBySelector:]): Changed to use command().execute() rather
1603         than the deprecated execCommand().
1604         * WebView/WebHTMLViewInternal.h: Removed some unneeded method declarations.
1605
1606 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
1607
1608         Reviewed by Darin.
1609
1610         <rdar://problem/5535636>
1611         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
1612
1613         http://bugs.webkit.org/show_bug.cgi?id=13916
1614         JavaScript detects Tab as a character input on a textfield validation
1615
1616         * WebCoreSupport/WebEditorClient.h:
1617         Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
1618         Renamed handleInputMethodKeypress() to handleInputMethodKeydown().
1619         * WebCoreSupport/WebEditorClient.mm:
1620         (WebEditorClient::handleKeyboardEvent): This change makes sense only remotely, but it helped
1621         to get tests working. I guess Mac keyboard event handling needs further refactoring.
1622
1623         * WebView/WebHTMLView.mm:
1624         (selectorToCommandName): Convert AppKit editing selector name to Editor command name - extracted
1625         from callWebCoreCommand:.
1626         (_interceptEditingKeyEvent:shouldSaveCommand:): Insert text from keypress.
1627
1628         * WebView/WebPDFView.mm:
1629         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1630         Convert incoming platform KeyDown into RawKeyDown, as this is what the view is interested in.
1631
1632 2007-12-10  Brady Eidson  <beidson@apple.com>
1633
1634         Reviewed by John Sullivan
1635
1636         Fix for <rdar://problem/5640080> - Database UI delegate calls need to specify WebFrame
1637
1638         This is because a common UI case is to want to know the originating URL of a Database
1639
1640         * WebCoreSupport/WebChromeClient.mm:
1641         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
1642         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
1643
1644         * WebView/WebUIDelegatePrivate.h:
1645
1646         * WebView/WebView.mm:
1647         (CallDelegateReturningUnsignedLongLong):
1648         (CallUIDelegateReturningUnsignedLongLong):
1649         * WebView/WebViewInternal.h:
1650
1651 2007-12-10  Timothy Hatcher  <timothy@apple.com>
1652
1653         Reviewed by Mark Rowe.
1654
1655         <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
1656
1657         * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
1658           so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
1659
1660 2007-12-10  Kevin Decker  <kdecker@apple.com>
1661
1662         Reviewed by Darin.
1663
1664         Fixed: <rdar://problem/4290098> Right-mouse click on element doesn't call onmousedown handler
1665         
1666         * WebView/WebHTMLView.mm:
1667         (-[WebHTMLView menuForEvent:]): Match behavior of other browsers by sending an onmousedown event for right clicks.
1668
1669 2007-12-08  Oliver Hunt  <oliver@apple.com>
1670
1671         Reviewed by Sam W.
1672
1673         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
1674         
1675         Fixes <rdar://problem/5620249> Must disable SVG animation
1676         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
1677         
1678         Minor updates to the feature flags used.
1679
1680         * Configurations/WebKit.xcconfig:
1681         * DOM/WebDOMOperations.mm:
1682
1683 2007-12-07  Darin Adler  <darin@apple.com>
1684
1685         Reviewed by Kevin Decker and Tim Hatcher.
1686
1687         - speculative fix for <rdar://problem/5400159> CrashTracer: [USER] 726 crashes
1688           in Safari at com.apple.WebKit: -[WebHTMLView(WebPrivate) _updateMouseoverWithFakeEvent] + 389
1689
1690         * WebView/WebHTMLView.mm:
1691         (-[WebHTMLView _frameOrBoundsChanged]): Only schedule the mouseover timer if we are in a window
1692         and not closed. That's because viewDidMoveToWindow and close are the entry points for cancelling.
1693         (-[WebHTMLView close]): Add code to cancel both timers. Needed for the case where the entire
1694         window goes away, and the view is never removed from the window.
1695         (-[WebHTMLView viewDidMoveToWindow]): Don't do work if the view is closed.
1696
1697 2007-12-07  Darin Adler  <darin@apple.com>
1698
1699         Reviewed by Mitz.
1700
1701         - http://bugs.webkit.org/show_bug.cgi?id=15981
1702           speed up visited-link code a bit
1703
1704         * History/WebHistory.mm: Removed unused Latin-1 code path.
1705         (-[_WebCoreHistoryProvider containsURL:length:]): Updated for method name change.
1706
1707 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
1708
1709         Reviewed by Sam Weinig.
1710         
1711         Added a forwarding header, since we now #include nodes.h through some
1712         JavaScriptCore headers.
1713
1714         * ForwardingHeaders/wtf/ListRefPtr.h: Added.
1715
1716 2007-12-06  Brady Eidson  <beidson@apple.com>
1717
1718         Reviewed by Oliver's rubber stamp
1719
1720         Let's go ahead and call the correct UI Delegate method, shall we?
1721
1722         * WebCoreSupport/WebChromeClient.mm:
1723         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Call the correct UI delegate
1724
1725 2007-12-06  Adam Roben  <aroben@apple.com>
1726
1727         Remove some assertions we know can fire and replace them with a FIXME
1728
1729         Reviewed by Anders.
1730
1731         * WebCoreSupport/WebFrameLoaderClient.mm:
1732
1733 2007-12-06  Timothy Hatcher  <timothy@apple.com>
1734
1735         Change the ASSERT added for the previous fix. The ASSERT was firing for 10.5.0.
1736         Only assert if the major version is zero, since zero is handled in the other cases.
1737
1738         * WebView/WebView.mm:
1739         (callGestalt): Remove the ASSERT.
1740         (createMacOSXVersionString): ASSERT that major is not zero.
1741
1742 2007-12-06  Darin Adler  <darin@apple.com>
1743
1744         Reviewed by Tim Hatcher.
1745
1746         - fix <rdar://problem/5513394> No way to detect Tiger vs Leopard from Safari's user agent string
1747
1748         * WebView/WebView.mm:
1749         (callGestalt): Added.
1750         (createMacOSXVersionString): Added.
1751         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Added Mac OS X version string,
1752         right after the string "Mac OS X", but with underscores instead of dots to avoid the dreaded
1753         "4." problem (old libraries that think a "4." anywhere in the user agent means Netscape 4).
1754         (-[WebView _userAgentForURL:]): Fixed incorrect bug numbers.
1755
1756 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
1757
1758         Reviewed by Darin Adler.
1759
1760         Third step in refactoring JSGlobalObject: Moved data members and data
1761         member access from Interpreter to JSGlobalObject.
1762         
1763         * WebView/WebFrame.mm:
1764         (-[WebFrame _attachScriptDebugger]):
1765
1766 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
1767
1768         Reviewed by Darin.
1769
1770         - <rdar://5621435>
1771         - Security Fix. Instead of having it off by default, WebKit now must
1772         explicitly turn off local-resource restriction when needed for backwards
1773         coimpatibility reasons.
1774
1775         * WebView/WebView.mm:
1776         (-[WebView _commonInitializationWithFrameName:groupName:]):
1777
1778 2007-12-05  Brady Eidson  <beidson@apple.com>
1779
1780         Reviewed by Kevin Deckers rubberstamp
1781
1782         Disclose and export the Databases Directory defaults key
1783
1784         * Storage/WebDatabaseManager.mm:
1785         * Storage/WebDatabaseManagerPrivate.h:
1786         * WebKit.exp:
1787
1788 2007-12-04  Kevin Decker  <kdecker@apple.com>
1789
1790         Reviewed by Anders.
1791
1792         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
1793
1794         * WebCoreSupport/WebViewFactory.mm:
1795         (-[WebViewFactory pluginNameForMIMEType:]): Added.
1796
1797 2007-12-04  Brady Eidson  <beidson@apple.com>
1798
1799         Reviewed by Mark Rowe
1800
1801         Tweaked the way we typedef and cast these objc_msgSend calls
1802
1803         * WebView/WebView.mm:
1804         (CallDelegateReturningUnsignedLongLong):
1805
1806 2007-12-04  John Sullivan  <sullivan@apple.com>
1807
1808         Reviewed by Brady Eidson (with help from Mark Rowe)
1809         
1810         Fixed return values for unsigned-long-long delegate methods
1811
1812         * WebView/WebView.mm:
1813         (CallDelegateReturningUnsignedLongLong):
1814         redid the change that Brady did at home over the weekend but forgot to check in
1815
1816 2007-11-27  Adam Roben  <aroben@apple.com>
1817
1818         Remove -[WebFrameBridge setNeedsReapplyStyles]
1819
1820         This functionality is now WebCore's responsibility.
1821
1822         Reviewed by Hyatt.
1823
1824         * WebCoreSupport/WebFrameBridge.mm:
1825         * WebKit.order:
1826
1827 2007-12-04  John Sullivan  <sullivan@apple.com>
1828
1829         Reviewed by Darin
1830         
1831         Added deleteOrigin: SPI, which isn't fully implemented
1832
1833         * Storage/WebDatabaseManagerPrivate.h:
1834         * Storage/WebDatabaseManager.mm:
1835         (-[WebDatabaseManager deleteOrigin:]):
1836         just calls deleteDatabasesWithOrigin: for now, but needs to delete origin itself too
1837
1838 2007-12-04  Timothy Hatcher  <timothy@apple.com>
1839
1840         Reviewed by Mark Rowe.
1841
1842         Remove a check for early versions of Leopard CFNetwork now that
1843         Leopard has shipped.
1844
1845         * Misc/WebKitVersionChecks.h: Remove WEBKIT_FIRST_CFNETWORK_VERSION_WITH_LARGE_DISK_CACHE_FIX.
1846         * WebView/WebView.mm:
1847         (+[WebView _setCacheModel:]): Remove the early Leopard CFNetwork check.
1848
1849 2007-12-04  Kevin Decker  <kdecker@apple.com>
1850
1851         Reviewed by Darin.
1852
1853         Revised fix for: <rdar://problem/5586978> REGRESSION (Safari 2-3): WebKit sometimes doesn't invoke Flash's NPP_SetWindow function and causes a hang
1854
1855         This fix is exactly the same as chageset 28359 with the exception of an added early return in
1856         updateAndSetWindow to cover the additional case of when a plug-in isn't drawable.
1857         
1858         The CG-based Flash player would sometimes hang because (for CoreGraphics-based plug-ins) our code would
1859         only call into the NPP_SetWindow() function when we tell the plug-in to draw. This created havoc with 
1860         Flash because Flash expects the browser to call NPP_SetWindow() and provide a valid graphics context 
1861         regardless of whether or not it actually needs to draw. 
1862         
1863         * Plugins/WebBaseNetscapePluginView.mm:
1864         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): Removed an incorrect comment and toned
1865         down an ASSERT that was too strict. 
1866         (-[WebBaseNetscapePluginView updateAndSetWindow]): Removed an early return for CoreGraphics-based plug-ins
1867         which would sometimes altogether prevent updating the PortState and calling into a plug-ins NPP_SetWindow()
1868         function. Also tweaked a comment and added an early return if the plug-in can't draw.
1869
1870 2007-12-04  Darin Adler  <darin@apple.com>
1871
1872         Reviewed by Kevin Decker.
1873
1874         * WebCoreSupport/WebFrameLoaderClient.h: Removed obsolete privateBrowsingEnabled.
1875         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
1876         * WebKit.order: Ditto.
1877
1878 2007-12-03  Dan Bernstein  <mitz@apple.com>
1879
1880         Reviewed by Dave Hyatt.
1881
1882         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
1883
1884         * WebView/WebHTMLView.mm:
1885         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Removed the code
1886         that checked if the view had resized and sent the resize event, since
1887         FrameView sends resize events now.
1888         * WebView/WebHTMLViewInternal.h:
1889
1890 2007-12-03  Timothy Hatcher  <timothy@apple.com>
1891
1892         Reviewed by Darin.
1893
1894         Change WebViewGetResourceLoadDelegateImplementations and WebViewGetFrameLoadDelegateImplementations
1895         to return a pointer to the implementation struct instead of a copy of the struct. This changes
1896         all of the callers to dereference the pointer to access the struct fields.
1897
1898         * Plugins/WebNullPluginView.mm:
1899         (-[WebNullPluginView reportFailure]):
1900         * WebCoreSupport/WebFrameBridge.mm:
1901         * WebCoreSupport/WebFrameLoaderClient.mm:
1902         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1903         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1904         (WebFrameLoaderClient::dispatchWillSendRequest):
1905         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1906         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1907         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1908         (WebFrameLoaderClient::willCacheResponse):
1909         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1910         (WebFrameLoaderClient::dispatchDidFinishLoading):
1911         (WebFrameLoaderClient::dispatchDidFailLoading):
1912         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
1913         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1914         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
1915         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1916         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1917         (WebFrameLoaderClient::dispatchWillClose):
1918         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1919         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1920         (WebFrameLoaderClient::dispatchDidCommitLoad):
1921         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1922         (WebFrameLoaderClient::dispatchDidFailLoad):
1923         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
1924         (WebFrameLoaderClient::dispatchDidFinishLoad):
1925         (WebFrameLoaderClient::dispatchDidFirstLayout):
1926         * WebView/WebView.mm:
1927         (WebViewGetResourceLoadDelegateImplementations):
1928         (WebViewGetFrameLoadDelegateImplementations):
1929         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1930         * WebView/WebViewInternal.h:
1931
1932 2007-12-03  Timothy Hatcher  <timothy@apple.com>
1933
1934         Reviewed by Brady Eidson.
1935
1936         <rdar://problem/5539913> 188 crashes in WebViewGetFrameLoadDelegateImplementations
1937         <rdar://problem/5586095> CrashTracer: [USER] 5000+ crashes in Safari and Dashboard in dispatchDidFailLoading
1938         <rdar://problem/5607081> CrashTracer: [USER] 2150 crashes in Safari at com.apple.WebKit:
1939         WebViewGetResourceLoadDelegateImplementations + 28
1940
1941         * WebView/WebView.mm:
1942         (-[WebView _cacheResourceLoadDelegateImplementations]): If the delegate is nil, bzero the
1943         implementation cache. This just prevents us from calling getMethod() multiple times just to zero.
1944         (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
1945         (WebViewGetResourceLoadDelegateImplementations): Return a zeroed implementations struct
1946         if the WebView is nil. This fixes the crashes.
1947         (WebViewGetFrameLoadDelegateImplementations): Ditto.
1948
1949 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
1950
1951         Reviewed by Eric Seidel.
1952
1953         Updated to match the JavaScriptCore change to move virtual methods from
1954         Interpreter to JSGlobalObject.
1955
1956         * WebView/WebFrame.mm:
1957         (-[WebFrame globalContext]): Use the toRef function instead of manually
1958         casting.
1959
1960 2007-12-01  Brady Eidson  <beidson@apple.com>
1961
1962         Reviewed by Tim
1963
1964         Added a default database quota of 5mb to the default WebPreferences
1965
1966         * WebView/WebPreferences.m:
1967         (+[WebPreferences initialize]):
1968
1969 2007-11-30  John Sullivan  <sullivan@apple.com>
1970
1971         Reviewed by Geoff Garen
1972         
1973         Added another symbol for WebDatabaseManager clients
1974
1975         * WebKit.exp:
1976         added .objc_class_name_WebSecurityOrigin
1977
1978 2007-11-30  Brady Eidson  <beidson@apple.com>
1979
1980         Reviewed by Geoff
1981
1982         Add isEqual operator to WebSecurityOrigin
1983
1984         * Storage/WebSecurityOrigin.mm:
1985         (-[WebSecurityOrigin isEqual:]):
1986
1987 2007-11-30  John Sullivan  <sullivan@apple.com>
1988
1989         Reviewed by Darin
1990         
1991         Tweaks to newly-declared NSString * constants to make them usable from clients
1992
1993         * Storage/WebDatabaseManagerPrivate.h:
1994         * Storage/WebDatabaseManager.mm:
1995         removed "const" from new NSNotification names and userInfo keys; these generate compiler warnings when used
1996         
1997         * WebKit.exp:
1998         export new NSNotification names and userInfo keys so clients can use them
1999
2000 2007-11-29  Anders Carlsson  <andersca@apple.com>
2001
2002         Reviewed by John.
2003
2004         Rename WebKitShrinksStandaloneImagesToFitKey to WebKitShrinksStandaloneImagesToFit.
2005         
2006         This is safe to do because the preference is off by default and Safari 3, which is the only client that turns it on,
2007         is using the setter and not messing around with NSUserDefaults.
2008         
2009         * WebView/WebPreferenceKeysPrivate.h:
2010         * WebView/WebPreferences.m:
2011         (+[WebPreferences initialize]):
2012         (-[WebPreferences shrinksStandaloneImagesToFit]):
2013         (-[WebPreferences setShrinksStandaloneImagesToFit:]):
2014
2015 2007-11-29  Brady Eidson  <beidson@apple.com>
2016
2017         Reviewed by Anders
2018
2019         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
2020
2021         Hook up UI Delegate calls for the database engine feature and other small tweaks
2022
2023         * Storage/WebDatabaseManager.mm:
2024         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
2025         (-[WebDatabaseManager deleteDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
2026         * Storage/WebDatabaseManagerPrivate.h:
2027
2028         * Storage/WebDatabaseTrackerClient.h:
2029         * Storage/WebDatabaseTrackerClient.mm:
2030         (WebDatabaseTrackerClient::dispatchDidModifyDatabase): Renamed databaseName parameter to databaseIdentifier for clarity
2031
2032         * WebCoreSupport/WebChromeClient.h:
2033         * WebCoreSupport/WebChromeClient.mm:
2034         (WebChromeClient::requestQuotaIncreaseForNewDatabase): Call through to the UI Delegate
2035         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Ditto
2036
2037         * WebView/WebUIDelegatePrivate.h: Added the two UI Delegate methods
2038
2039         * WebView/WebView.mm:
2040         (CallDelegateReturningUnsignedLongLong):
2041         (CallUIDelegateReturningUnsignedLongLong):
2042         * WebView/WebViewInternal.h:
2043
2044 2007-11-28  Kevin McCullough  <kmccullough@apple.com>
2045
2046         Reviewed by Sam.
2047
2048         - Added recursive runloop guards.
2049
2050         * DefaultDelegates/WebScriptDebugServer.m:
2051         (-[WebScriptDebugServer suspendProcessIfPaused]):
2052
2053 2007-11-29  Mark Rowe  <mrowe@apple.com>
2054
2055         Reviewed by Oliver Hunt.
2056
2057         Fix an assertion failure seen on the layout tests, and when closing the window after
2058         visiting <http://www.coudal.com/losalamos/>.
2059
2060         * Plugins/WebBaseNetscapePluginStream.mm:
2061         (-[WebBaseNetscapePluginStream _destroyStream]): Unlink the file and close the file
2062         descriptor even when the stream is being destroyed without the load completing. This
2063         avoids leaking the path and file descriptor, and leaving the temporary file on disk.
2064
2065 2007-11-28  Adele Peterson  <adele@apple.com>
2066
2067         Reviewed by Darin.
2068
2069         Fix for <rdar://problem/5524216> CrashTracer: [USER] 496 crashes in Safari at com.apple.WebCore: WebCore::Frame::eventHandler const + 6
2070
2071         The CrashTracer shows a variety of crashes in different methods (including keyDown and keyUp). This change adds nil checks for the frame in 
2072         WebHTMLView to prevent future problems in other methods as well.
2073
2074         * WebView/WebHTMLView.mm:
2075         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2076         (-[WebHTMLView keyDown:]):
2077         (-[WebHTMLView keyUp:]):
2078         (-[WebHTMLView flagsChanged:]):
2079         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
2080         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
2081         (-[WebHTMLView checkSpelling:]):
2082         (-[WebHTMLView showGuessPanel:]):
2083         (-[WebHTMLView indent:]):
2084         (-[WebHTMLView outdent:]):
2085         (-[WebHTMLView paste:]):
2086         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2087         (-[WebHTMLView insertText:]):
2088         (-[WebHTMLView selectionTextRects]):
2089
2090 2007-11-28  Dan Bernstein  <mitz@apple.com>
2091
2092         Reviewed by Maciej Stachowiak.
2093
2094         - fix <rdar://problem/5596160> fast/events/objc-event-api.html fails when run alone (or first)
2095
2096         * WebView/WebHTMLView.mm:
2097         (-[WebHTMLView setDataSource:]): This method calls addMouseMovedObserver
2098         because addMouseMovedObserver returns early if the dataSource
2099         is not nil. But if the dataSource is already set (which happens when
2100         a WebHTMLView is being reused) then addMouseMovedObserver must not
2101         be called again.
2102
2103 2007-11-27  Anders Carlsson  <andersca@apple.com>
2104
2105         Reviewed by Brady.
2106
2107         * Storage/WebDatabaseManager.mm:
2108         * Storage/WebDatabaseManagerPrivate.h:
2109         * Storage/WebDatabaseTrackerClient.mm:
2110         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
2111         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
2112         * Storage/WebSecurityOrigin.mm:
2113         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
2114         * Storage/WebSecurityOriginInternal.h:
2115
2116 2007-11-27  Kevin Decker  <kdecker@apple.com>
2117
2118         Reviewed by Darin, landed by Anders.
2119
2120         Fixed: <rdar://problem/4610818> CrashTracer: 1533 crashes in Safari at com.macromedia.Flash Player.plugin: native_ShockwaveFlash_TCallLabel + 271131
2121
2122         The problem was that some Leopard users were still inadvertently using the old Flash 8 plug-in, even though Leopard
2123         shipped with Flash 9. To avoid loading an older version of a plug-in when a newer version is installed, the plug-in
2124         database will compare bundle versions and always load the latest version.
2125
2126         * Plugins/WebBasePluginPackage.h:
2127         * Plugins/WebBasePluginPackage.m:
2128         (-[WebBasePluginPackage versionNumber]): New method. CFBundleGetVersionNumber doesn't work with all possible versioning schemes,
2129         but we think for now it's good enough for us.
2130         * Plugins/WebPluginDatabase.m:
2131         (considerCandidate): Added a C utility function which compares the current plug-in against a candidate plug-in's version number.
2132         If both plug-ins have the same bundle ID and the candiate is newer, the current plug-in becomes the candidate.
2133         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): Calls the new considerCandidate() function.
2134
2135 2007-11-26  Timothy Hatcher  <timothy@apple.com>
2136
2137         Reviewed by Dave Hyatt.
2138
2139         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
2140
2141         * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey.
2142         * WebView/WebPreferences.m:
2143         (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES.
2144         (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value.
2145         (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value.
2146         * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:.
2147         * WebView/WebView.mm:
2148         (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled.
2149
2150 2007-11-26  Brady Eidson  <beidson@apple.com>
2151
2152         Reviewed by Mark Rowe
2153
2154         Provide API for setting the default storage quota per database origin
2155
2156         * Misc/WebNSDictionaryExtras.h:
2157         * Misc/WebNSDictionaryExtras.m:
2158         (-[NSMutableDictionary _webkit_setUnsignedLongLong:forKey:]): Helper for UINT64 preferences
2159
2160         * WebView/WebPreferenceKeysPrivate.h:
2161         * WebView/WebPreferences.m:
2162         (-[WebPreferences _unsignedLongLongValueForKey:]): Helper for UINT64 prefs
2163         (-[WebPreferences _setUnsignedLongLongValue:forKey:]): Ditto
2164         (-[WebPreferences defaultDatabaseQuota]):
2165         (-[WebPreferences setDefaultDatabaseQuota:]):
2166         * WebView/WebPreferencesPrivate.h:
2167
2168         * WebView/WebView.mm:
2169         (-[WebView _preferencesChangedNotification:]): Set the WebCore Settings version of the default storage pref
2170
2171 2007-11-26  Darin Adler  <darin@apple.com>
2172
2173         Reviewed by Adele.
2174
2175         - some middle-mouse-button-related fixes
2176
2177         These don't affect Safari since it maps the middle mouse button to the command key,
2178         but that might not always be the case for future versions.
2179
2180         * WebView/WebHTMLView.mm:
2181         (-[WebHTMLView otherMouseDown:]): Pass through middle mouse down events to WebCore.
2182         (-[WebHTMLView otherMouseDragged:]): Ditto, for drag events.
2183         (-[WebHTMLView otherMouseUp:]): Ditto, for up events.
2184
2185         * WebView/WebPolicyDelegate.h: Fixed inaccurate documentation of WebActionButtonKey.
2186
2187 2007-11-26  Anders Carlsson  <andersca@apple.com>
2188
2189         Reviewed by Brady.
2190
2191         Get rid of the WebSecurityOriginPrivate object and store 
2192         the WebCore::SecurityOriginData pointer in the _private field of
2193         the WebSecurityOrigin object instead.
2194         
2195         * Storage/WebDatabaseManager.mm:
2196         (-[WebDatabaseManager databasesWithOrigin:]):
2197         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
2198         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
2199         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2200         * Storage/WebSecurityOrigin.mm:
2201         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
2202         (-[WebSecurityOrigin protocol]):
2203         (-[WebSecurityOrigin domain]):
2204         (-[WebSecurityOrigin port]):
2205         (-[WebSecurityOrigin usage]):
2206         (-[WebSecurityOrigin quota]):
2207         (-[WebSecurityOrigin setQuota:]):
2208         (-[WebSecurityOrigin dealloc]):
2209         (-[WebSecurityOrigin finalize]):
2210         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
2211         (-[WebSecurityOrigin _core]):
2212         * Storage/WebSecurityOriginInternal.h:
2213
2214 2007-11-26  Timothy Hatcher  <timothy@apple.com>
2215
2216         Reviewed by Adam Roben.
2217
2218         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
2219         http://bugs.webkit.org/show_bug.cgi?id=16137
2220
2221         Create the Web Inspector window with the textured style. Set the content border
2222         thickness for the top of the window or the height of the toolbar. Also make the
2223         window's bottom corners square, since a normal textured window normally has
2224         rounded bottom corners.
2225
2226         * WebCoreSupport/WebInspectorClient.mm:
2227         (-[WebInspectorWindowController window]):
2228
2229 2007-11-24  Mark Rowe  <mrowe@apple.com>
2230
2231         Tiger build fix.
2232
2233         * Plugins/WebBaseNetscapePluginStream.mm:
2234         (CarbonPathFromPOSIXPath): Use WebCFAutorelease as this also works on Tiger.
2235
2236 2007-11-24  Mark Rowe  <mrowe@apple.com>
2237
2238         Reviewed by Tim Hatcher.
2239
2240         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
2241         http://bugs.webkit.org/show_bug.cgi?id=13705
2242
2243         Have NP_ASFILE and NP_ASFILEONLY streams write the data to disk as they receive it rather than
2244         dumping the data to disk in a single go when the stream has completed loading.  On a test case
2245         involving a 150MB Flash movie being streamed from a local web server this reduces memory consumption
2246         on page load from around 400MB to 22MB.
2247
2248         The only plugin I have found that uses NP_ASFILE or NP_ASFILEONLY on the Mac is our NetscapeMoviePlugin
2249         example code so the NP_ASFILE portion of this change has not had any testing with a real-world plugin.
2250
2251         * Plugins/WebBaseNetscapePluginStream.h:
2252         * Plugins/WebBaseNetscapePluginStream.mm:
2253         (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
2254         (-[WebBaseNetscapePluginStream dealloc]):
2255         (-[WebBaseNetscapePluginStream finalize]):
2256         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
2257         (-[WebBaseNetscapePluginStream _destroyStream]): Update to work with paths as NSStrings.
2258         (-[WebBaseNetscapePluginStream _deliverDataToFile:]): Open the file if it is not already open, and write any data
2259         to disk.
2260         (-[WebBaseNetscapePluginStream finishedLoading]): If the stream is NP_ASFILE or NP_ASFILEONLY we need to ensure
2261         that the file exists before _destroyStream passes it to the plugin.  Simulating the arrival of an empty data block
2262         ensure that the file will be created if it has not already.
2263         (-[WebBaseNetscapePluginStream receivedData:]):
2264         (CarbonPathFromPOSIXPath):
2265         * Plugins/WebBaseNetscapePluginView.mm:
2266         (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]): Data is dealt with incrementally so there's no need to pass
2267         it to finishedLoading.
2268         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Ditto.
2269
2270 2007-11-23  Oliver Hunt  <oliver@apple.com>
2271
2272         Reviewed by Mark Rowe.
2273         
2274         Fixed <rdar://problem/3759190> allow input methods the option of processing mouse events themselves
2275
2276         * WebView/WebHTMLView.mm:
2277         (-[WebHTMLView mouseDown:]):
2278
2279 2007-11-22  Dan Bernstein  <mitz@apple.com>
2280
2281         Reviewed by Antti Koivisto.
2282
2283         - http://bugs.webkit.org/show_bug.cgi?id=15811
2284           WebKit plug-ins can re-enter WebKit under attach()
2285           <rdar://problem/5577978>
2286
2287         * Plugins/WebNullPluginView.mm:
2288         (-[WebNullPluginView viewDidMoveToWindow]): Removed workaround for the
2289         above bug that added as part of fixing
2290         <http://bugs.webkit.org/show_bug.cgi?id=15804>.
2291
2292 2007-11-21  Mark Rowe  <mrowe@apple.com>
2293
2294         Reviewed by Eric.
2295
2296         Fix WebKit to build without warnings under GCC 4.2.
2297
2298         * Configurations/Base.xcconfig:
2299
2300 2007-11-21  Mark Rowe  <mrowe@apple.com>
2301
2302         Reviewed by Tim Hatcher.
2303
2304         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
2305
2306         Update format strings to use format specifiers that match the argument types.
2307
2308         * Misc/WebGraphicsExtras.c:
2309         (WebConvertBGRAToARGB):
2310
2311 2007-11-19  Brady Eidson <beidson@apple.com>
2312
2313         Reviewed by Maciej
2314
2315         Finished hooking up the WebKit API for database management.
2316         Most of the API is actually implemented in WebCore and some of those methods might
2317         only be stubs for now.
2318
2319         * Storage/WebDatabaseManager.mm:
2320         (-[WebDatabaseManager origins]): Call through to the WebCore tracker and construct an API result
2321         (-[WebDatabaseManager databasesWithOrigin:]): Ditto
2322         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Ditto
2323
2324         * Storage/WebSecurityOrigin.mm:
2325         (-[WebSecurityOrigin usage]): Call through to WebCore
2326         (-[WebSecurityOrigin quota]): Ditto
2327         (-[WebSecurityOrigin setQuota:]): Ditto
2328         (-[WebSecurityOrigin _core]): Get WebCore version of this object
2329         * Storage/WebSecurityOriginInternal.h:
2330
2331 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2332
2333         Reviewed by Mark Rowe.
2334
2335         Bug 13470: i18n: The Web Inspector is not localizable
2336         http://bugs.webkit.org/show_bug.cgi?id=13470
2337
2338         Implement the localizedStringsURL() client method to return the
2339         localized URL of InspectorLocalizedStrings.js in WebCore.
2340
2341         * WebCoreSupport/WebInspectorClient.h: Added localizedStringsURL.
2342         * WebCoreSupport/WebInspectorClient.mm:
2343         (WebInspectorClient::localizedStringsURL): Added.
2344         (WebInspectorClient::updateWindowTitle): Localized the window title.
2345         (-[WebInspectorWindowController init]): Remove a FIXME that dosen't make sense anymore.
2346         (-[WebInspectorWindowController initWithInspectedWebView:]): Code style cleanup.
2347
2348 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
2349
2350         Reviewed by Darin.
2351
2352         http://bugs.webkit.org/show_bug.cgi?id=15969
2353         Eliminate Editor::deleteRange()
2354
2355         * WebView/WebHTMLView.mm:
2356         (+[WebHTMLView initialize]):
2357         (-[WebHTMLView yank:]):
2358         (-[WebHTMLView yankAndSelect:]):
2359         (-[WebHTMLView setMark:]):
2360         (-[WebHTMLView deleteToMark:]):
2361         (-[WebHTMLView selectToMark:]):
2362         (-[WebHTMLView swapWithMark:]):
2363         Pushed all kill ring methods to WebCore. They were guilty of using Editor::deleteRange()!
2364
2365 2007-11-16  Mark Rowe  <mrowe@apple.com>
2366
2367         Reviewed by Tim Hatcher.
2368
2369         Build WebCore as a sub-framework of WebKit in all configurations.
2370
2371         * Configurations/WebKit.xcconfig:
2372
2373 2007-11-16  John Sullivan  <sullivan@apple.com>
2374
2375         Reviewed by Brady
2376
2377         * WebKit.exp:
2378         Exported some new database-related symbols
2379
2380 2007-11-16  Brady Eidson  <beidson@apple.com>
2381
2382         Reviewed by John
2383
2384         Database management API tweaks
2385
2386         Fleshed out "WebSecurityOrigin" to be the API object representing an origin.  This relieves some
2387         burden off WebDatabaseManager and allows usage/quota operations on the SecurityOrigin object itself
2388
2389         Also added a new subdirectory for Storage related API - Why are we afraid to add new directories to
2390         the WebKit tree?
2391
2392         * Misc/WebSecurityOrigin.mm: Removed.
2393         * Misc/WebSecurityOriginInternal.h: Removed.
2394         * Misc/WebSecurityOriginPrivate.h: Removed.
2395
2396         * Storage/WebDatabaseManager.mm: Work in terms of WebSecurityOrigin
2397         * Storage/WebDatabaseManagerPrivate.h:
2398
2399         * Storage/WebSecurityOrigin.mm: Added.
2400         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
2401         (-[WebSecurityOriginPrivate initWithWebCoreSecurityOrigin:]):
2402         (-[WebSecurityOriginPrivate finalize]):
2403         (-[WebSecurityOriginPrivate dealloc]):
2404         (-[WebSecurityOrigin initWithProtocol:domain:]):
2405         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
2406         (-[WebSecurityOrigin protocol]):
2407         (-[WebSecurityOrigin domain]):
2408         (-[WebSecurityOrigin port]):
2409         (-[WebSecurityOrigin usage]): 
2410         (-[WebSecurityOrigin quota]):
2411         (-[WebSecurityOrigin setQuota:]): Clients will set quotas on the WebSecurityOrigin object itself
2412         (-[WebSecurityOrigin dealloc]):
2413         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
2414         * Storage/WebSecurityOriginInternal.h: Added.
2415         * Storage/WebSecurityOriginPrivate.h: Added.
2416
2417 2007-11-15  Brady Eidson  <beidson@apple.com>
2418
2419         Reviewed by John
2420
2421         Stubbing out everything required for a WebKit API for databases
2422
2423         These interfaces seem to provide everything we need for UI and management at the browser level
2424
2425         * Misc/WebDatabaseManager.h: Removed.
2426         * Misc/WebDatabaseManager.mm: Removed.
2427         * Misc/WebDatabaseManagerPrivate.h: Removed.
2428
2429         * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
2430           (protocol, domain, and port)
2431         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
2432         (-[WebSecurityOriginPrivate dealloc]):
2433         (-[WebSecurityOrigin initWithProtocol:domain:]):
2434         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
2435         (-[WebSecurityOrigin protocol]):
2436         (-[WebSecurityOrigin domain]):
2437         (-[WebSecurityOrigin port]):
2438         (-[WebSecurityOrigin dealloc]):
2439         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
2440         * Misc/WebSecurityOriginInternal.h: Added.
2441         * Misc/WebSecurityOriginPrivate.h: Added.
2442
2443         * Storage/WebDatabaseManager.mm: Added.
2444         (+[WebDatabaseManager sharedWebDatabaseManager]):
2445         (-[WebDatabaseManager origins]):  Get a list of all origins currently tracked
2446         (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
2447         (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
2448         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
2449         (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
2450         (-[WebDatabaseManager deleteAllDatabases]):
2451         (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
2452         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2453         * Storage/WebDatabaseManagerPrivate.h: Added.
2454         * Storage/WebDatabaseManagerInternal.h: Added.
2455         (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
2456
2457         * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
2458         * Storage/WebDatabaseTrackerClient.mm: Added.
2459         (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
2460         (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
2461         (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
2462         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
2463         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
2464
2465         * WebView/WebView.mm:
2466         (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
2467           Database-related things here
2468
2469 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
2470
2471         Reviewed by Anders Carlsson.
2472         
2473         Renamed Shared to RefCounted.
2474
2475         * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
2476         * ForwardingHeaders/wtf/Shared.h: Removed.
2477         * WebCoreSupport/WebContextMenuClient.h:
2478
2479 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
2480
2481         Reviewed by Sam Weinig.
2482
2483         Moved Shared.h into wtf so it could be used in more places.
2484
2485         * ChangeLog:
2486         * WebCoreSupport/WebContextMenuClient.h:
2487
2488 2007-11-13  John Sullivan  <sullivan@apple.com>
2489
2490         Reviewed by Darin.
2491
2492         removed recently-added PreferredType concept; we found a better way to do what
2493         ths was accomplishing
2494
2495         * WebCoreSupport/WebChromeClient.mm:
2496         (WebChromeClient::createWindow):
2497         removed use of PreferredType
2498
2499 2007-11-13  John Sullivan  <sullivan@apple.com>
2500
2501         Reviewed by Dan Bernstein.
2502         
2503         - fixed <rdar://problem/5567954> REGRESSION (Safari 2-3): Autofill no longer automatically fills in 
2504         form fields other than the one you're typing into
2505
2506         * WebCoreSupport/WebEditorClient.mm:
2507         (selectorForKeyEvent):
2508         correct the key identifier strings for Tab and Esc; these were updated in WebCore as part of r21445
2509         but didn't get updated here.
2510
2511 2007-11-12  Josh Aas  <joshmoz@gmail.com>
2512
2513         Reviewed by Darin.
2514
2515         - http://bugs.webkit.org/show_bug.cgi?id=15946
2516           add NPPValue NPPVpluginDrawingModel (Mozilla bug 403418 compat)
2517
2518         * Plugins/WebBaseNetscapePluginView.mm:
2519         (-[WebBaseNetscapePluginView setVariable:value:]):
2520
2521 2007-11-12  Alexey Proskuryakov  <ap@webkit.org>
2522
2523         Reviewed by Darin.
2524
2525         http://bugs.webkit.org/show_bug.cgi?id=15954
2526         Move DOM Selection operations out of SelectionController
2527
2528         * WebView/WebHTMLView.mm:
2529         (-[WebHTMLView _expandSelectionToGranularity:]):
2530         (-[WebHTMLView selectToMark:]):
2531         (-[WebHTMLView swapWithMark:]):
2532         * WebView/WebView.mm:
2533         (-[WebView setSelectedDOMRange:affinity:]):
2534         Adapted for SelectionController::setSelectedRange() now returning a bool.
2535
2536 2007-11-12  Oliver Hunt  <oliver@apple.com>
2537
2538         Reviewed by Darin and Geoff.
2539
2540         <rdar://problem/5522011> The content of the password field of 
2541         Safari is displayed by reconversion.
2542
2543         Some input methods (notably Kotoeri) can incorrectly provide 
2544         access to the raw text of a password field.  To work around 
2545         this we forcefully override the inputContext whenever a password
2546         field is active.
2547
2548         * WebView/WebHTMLView.mm:
2549         (-[WebHTMLView inputContext]):
2550
2551 2007-11-12  John Sullivan  <sullivan@apple.com>
2552
2553         Reviewed by Tim Hatcher
2554         
2555         - speculative fix for <rdar://problem/5509989> CrashTracer: [USER] 1 crash in Safari at com.apple.WebKit: 
2556         -[WebPDFView(FileInternal) _updatePreferencesSoon] + 56
2557         
2558         The crash is probably due to messaging a dealloc'ed dataSource ivar. The dataSource ivar isn't retained
2559         by this class, but should be. (It is retained by WebHTMLView, e.g.).
2560
2561         * WebView/WebPDFView.mm:
2562         (-[WebPDFView dealloc]):
2563         release dataSource ivar
2564         (-[WebPDFView setDataSource:]):
2565         retain dataSource ivar
2566
2567 2007-11-09  Tristan O'Tierney  <tristan@apple.com>
2568
2569         Reviewed by Timothy Hatcher.
2570         
2571         This patch is for the WebKit side of <rdar://problem/5591115>.
2572         We need a way to tell context menu navigations, such as "Open in New Window"
2573         to override any sort of browser preference for tab based navigation.
2574
2575         * WebCoreSupport/WebChromeClient.mm:
2576         (WebChromeClient::createWindow):
2577         Pass up the new preferredType parameter as a string.
2578         
2579 2007-11-09  Timothy Hatcher  <timothy@apple.com>
2580
2581         Reviewed by John.
2582
2583         <rdar://problem/5103720> REGRESSION: [WebView stringByEvaluatingJavaScriptFromString:] fails if "return" is used
2584
2585         Extend the linked on or after check to every application when a script passed to
2586         stringByEvaluatingJavaScriptFromString: has a return statement. Before the check
2587         was limited to VitalSource Bookshelf, but other developers are running into this.
2588
2589         * Misc/WebKitVersionChecks.h: Add the WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK define.
2590         * WebView/WebDocumentLoaderMac.mm:
2591         (needsDataLoadWorkaround): Use WEBKIT_FIRST_VERSION_WITHOUT_ADOBE_INSTALLER_QUIRK sicne the
2592           WebKitLinkedOnOrAfter check here was about the Adobe installer, not VitalSource.
2593         * WebView/WebView.mm:
2594         (-[WebView stringByEvaluatingJavaScriptFromString:]): Remove the bundle ID check and use
2595           WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK for the WebKitLinkedOnOrAfter call.
2596
2597 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
2598
2599         Build Fix.
2600
2601         * WebCoreSupport/WebFrameLoaderClient.h:
2602         * WebCoreSupport/WebFrameLoaderClient.mm:
2603         (WebFrameLoaderClient::windowObjectCleared):
2604
2605 2007-11-07  Darin Adler  <darin@apple.com>
2606
2607         Reviewed by Steve.
2608
2609         - removed some unused WebCore bridge methods
2610
2611         * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
2612
2613         * WebCoreSupport/WebFrameLoaderClient.mm:
2614         (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
2615         using the bridge object.
2616
2617 2007-11-06  Mark Rowe  <mrowe@apple.com>
2618
2619         Rubber-stamped by Dave Kilzer.
2620
2621         Move Mac files from WebKit into WebKit/mac.
2622
2623         * Carbon: Copied from WebKit/Carbon.
2624         * ChangeLog: Copied from WebKit/ChangeLog.
2625         * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03.
2626         * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09.
2627         * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14.
2628         * Configurations: Copied from WebKit/Configurations.
2629         * DOM: Copied from WebKit/DOM.
2630         * DefaultDelegates: Copied from WebKit/DefaultDelegates.
2631         * ForwardingHeaders: Copied from WebKit/ForwardingHeaders.
2632         * History: Copied from WebKit/History.
2633         * Info.plist: Copied from WebKit/Info.plist.
2634         * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make.
2635         * Misc: Copied from WebKit/Misc.
2636         * Panels: Copied from WebKit/Panels.
2637         * Plugins: Copied from WebKit/Plugins.
2638         * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt.
2639         * Resources: Copied from WebKit/Resources.
2640         * WebCoreSupport: Copied from WebKit/WebCoreSupport.
2641         * WebInspector: Copied from WebKit/WebInspector.
2642         * WebKit.exp: Copied from WebKit/WebKit.exp.
2643         * WebKit.order: Copied from WebKit/WebKit.order.
2644         * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h.
2645         * WebView: Copied from WebKit/WebView.
2646         * icu: Copied from WebKit/icu.
2647
2648 2007-11-06  Alexey Proskuryakov  <ap@webkit.org>
2649
2650         Reviewed by Darin.
2651
2652         http://bugs.webkit.org/show_bug.cgi?id=15847
2653         Some editing cleanup
2654
2655         No change in functionality.
2656
2657         * WebView/WebHTMLView.mm:
2658         (-[WebHTMLView deleteToEndOfLine:]):
2659         (-[WebHTMLView deleteToEndOfParagraph:]):
2660         WebCore had a duplicate of the same logic already. We are passing a boundary value to
2661         a function that expects granularity, this may need to be straightened out in the future.
2662
2663 2007-11-05  John Sullivan  <sullivan@apple.com>
2664
2665         * WebView/WebView.mm:
2666         (-[WebView _searchWithSpotlightFromMenu:]):
2667
2668         Teeny style tweak to test svn access on other machine
2669
2670 2007-11-05  John Sullivan  <sullivan@apple.com>
2671
2672         * WebView/WebView.mm:
2673         (-[WebView computedStyleForElement:pseudoElement:]):
2674         
2675         Teeny style tweak to test svn access
2676
2677 2007-11-02  Tristan O'Tierney  <tristan@apple.com>
2678
2679         Reviewed by Darin Adler.
2680
2681         * DefaultDelegates/WebDefaultUIDelegate.m:
2682         (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
2683         Forward the UI delegate to call webView:createWebViewWithRequest: if
2684         this method doesn't exist.
2685         
2686         * WebCoreSupport/WebFrameLoaderClient.mm:
2687         (WebFrameLoaderClient::dispatchCreatePage):
2688         * Plugins/WebBaseNetscapePluginView.mm:
2689         (-[WebBaseNetscapePluginView loadPluginRequest:]):
2690         * WebView/WebView.mm:
2691         (-[WebView _openNewWindowWithRequest:]):
2692         Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
2693         
2694         * WebCoreSupport/WebChromeClient.h:
2695         * WebCoreSupport/WebChromeClient.mm:
2696         (WebChromeClient::createWindow):
2697         Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
2698         Removed createModalDialog to use new createWindow function.
2699         
2700         * WebView/WebUIDelegatePrivate.h:
2701         Added new webView:createWebViewWithRequest:windowFeatures: method.
2702
2703 2007-11-05  Geoffrey Garen  <ggaren@apple.com>
2704
2705         Reviewed by Darin Adler.
2706         
2707         http://bugs.webkit.org/show_bug.cgi?id=15835
2708
2709         Small adaptations to new KJS::List class.
2710
2711         * ForwardingHeaders/kjs/value.h: Added.
2712
2713 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
2714
2715         Sort files(...); sections of Xcode project files.
2716
2717         Rubber-stamped by Darin.
2718
2719         * WebKit.xcodeproj/project.pbxproj:
2720
2721 2007-11-02  Antti Koivisto  <antti@apple.com>
2722
2723         Reviewed by Darin.
2724         
2725         Add method to enable video composition.
2726
2727         * WebCoreSupport/WebSystemInterface.m:
2728         (InitWebCoreSystemInterface):
2729
2730 2007-11-02  Darin Adler  <darin@apple.com>
2731
2732         Reviewed by Mitz.
2733
2734         - fix problem I ran into while doing some testing on Mac for
2735           <rdar://problem/5530185> WebKit does not show <object>
2736           fallback content when both URL and MIME type is omitted
2737
2738         I don't know how to reproduce this failure in DumpRenderTree, so there is no
2739         regression test.
2740
2741         * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including
2742         the didSendError local variable. Instead we just set the error to nil once
2743         we've sent it.
2744         * Plugins/WebNullPluginView.mm:
2745         (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that
2746         the null plug-in image code is separate from the rest of the function and
2747         so that the whole thing is not inside an if statement. Also don't hold a
2748         reference to the DOM element if there is no error to report.
2749         (-[WebNullPluginView reportFailure]): Added. Does the actual delegate
2750         callback. Happens back at the top level of the run loop so it doesn't
2751         fire deep inside layout. Also wrote this so that it is guaranteed not to
2752         reenter and so that it can handle the case where the delegate destroys
2753         the world (including this object). NOTE: This is not a real, general
2754         solution to the problem of plug-ins that do work inside layout. We will need
2755         a more general fix that works for other plug-ins, and we'll track that with
2756         a separate bug report.
2757         (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code;
2758         changed so it just does a performSelector:afterDelay:0.
2759
2760 2007-11-02  Mark Rowe  <mrowe@apple.com>
2761
2762         Reviewed by Darin Adler.
2763
2764         Fix http://bugs.webkit.org/show_bug.cgi?id=15780
2765         Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
2766
2767         * WebCoreSupport/WebFrameLoaderClient.mm:
2768         (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
2769         in the page coordinate system rather than the client area coordinate system.
2770
2771 2007-11-01  Dan Bernstein  <mitz@apple.com>
2772
2773         Reviewed by Oliver Hunt.
2774
2775         - fix an assertion failure when Command-Tabbing out of Safari
2776
2777         * WebView/WebHTMLView.mm:
2778         (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to
2779         WebCore.
2780
2781 2007-11-01  Justin Garcia  <justin.garcia@apple.com>
2782
2783         Reviewed by Oliver Hunt.
2784         
2785         <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
2786         
2787         No need to match style when pasting plain text, since the fragment we build for plain text
2788         won't have any style information on it.
2789
2790         * WebView/WebHTMLView.mm:
2791         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no
2792         longer a need to know whether this function chosePlaintext.
2793         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
2794         (-[WebHTMLView _documentFragmentFromPasteboard:]):
2795
2796 2007-10-31  Timothy Hatcher  <timothy@apple.com>
2797
2798         Reviewed by John Sullivan.
2799
2800         Move the developer extras preference to WebPreferences.
2801
2802         * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey
2803         * WebView/WebPreferences.m:
2804         (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO.
2805         (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras
2806           and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey.
2807         (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey.
2808         * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:.
2809         * WebView/WebView.mm:
2810         (+[WebView _developerExtrasEnabled]): Removed.
2811         (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled.
2812         * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled.
2813
2814 2007-10-30  David D. Kilzer  <ddkilzer@webkit.org>
2815
2816         Generated files missing from WebCore's Xcode project file
2817         <http://bugs.webkit.org/show_bug.cgi?id=15406>
2818
2819         Reviewed by Darin.
2820
2821         Added the following private header files to MigrateHeaders.make:
2822
2823         - DOMCSSStyleSheetPrivate.h
2824         - DOMEventPrivate.h
2825         - DOMHTMLCollectionPrivate.h
2826         - DOMHTMLEmbedElementPrivate.h
2827         - DOMHTMLIFrameElementPrivate.h
2828         - DOMHTMLObjectElementPrivate.h
2829         - DOMHTMLSelectElementPrivate.h
2830
2831         * MigrateHeaders.make:
2832
2833 2007-10-29  Antti Koivisto  <antti@apple.com>
2834
2835         Reviewed by Maciej.
2836         
2837         Some SPIs for media support.
2838
2839         * WebCoreSupport/WebSystemInterface.m:
2840         (InitWebCoreSystemInterface):
2841
2842 2007-10-29  Timothy Hatcher  <timothy@apple.com>
2843
2844         Reviewed by John Sullivan.
2845
2846         Various semi-related changes:
2847         - A WebView can now be asked for it's WebInspector. There is one
2848           WebInspector per WebView. 
2849         - Refactor the WebInspector class and move obsolete methods to
2850           a special category.
2851         - Add new WebInspector methods to show, hide and show the
2852           console/timeline panels.
2853         - Add an isDisabled method to WebCache.
2854         - Allow WebLocalizableStrings.h to be used in C files.
2855
2856         * Misc/WebCache.h: Add isDisabled.
2857         * Misc/WebCache.mm:
2858         (+[WebCache isDisabled]): New method.
2859
2860         * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files.
2861
2862         * WebCoreSupport/WebInspectorClient.mm:
2863         (-[WebInspectorWindowController showWindow:]): Call super if already visible
2864           so the window will be ordered front.
2865         (-[WebInspectorWindowController showWebInspector:]): Method used by menu items,
2866           so they are enabled and work when the Inspector window is key.
2867         (-[WebInspectorWindowController showErrorConsole:]): Ditto.
2868         (-[WebInspectorWindowController showNetworkTimeline:]): Ditto.
2869
2870         * WebInspector/WebInspector.h: Add and remove methods.
2871         * WebInspector/WebInspector.mm:
2872         (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced.
2873           Clears the _webView pointer.
2874         (-[WebInspector show:]): Calls thru to the Page's InspectorController.
2875         (-[WebInspector showConsole:]): Ditto.
2876         (-[WebInspector showTimeline:]): Ditto.
2877         (-[WebInspector close:]): Ditto.
2878         (-[WebInspector attach:]): Ditto.
2879         (-[WebInspector detach:]): Ditto.
2880         (+[WebInspector sharedWebInspector]): Moved to the obsolete category.
2881         (+[WebInspector webInspector]): Ditto.
2882         (-[WebInspector setWebFrame:]): Ditto.
2883         (-[WebInspector window]): Ditto.
2884         (-[WebInspector showWindow:]): Ditto.
2885
2886         * WebView/WebView.mm:
2887         (-[WebViewPrivate dealloc]): Release the WebInspector.
2888         (-[WebView _close]): Call webViewClosed on the WebInspector.
2889         (-[WebView inspector]): Create a WebInspector if needed and return it.
2890         * WebView/WebViewPrivate.h: Add the inspector method.
2891
2892 2007-10-30  Adele Peterson  <adele@apple.com>
2893
2894         Reviewed by Darin.
2895
2896         WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
2897         <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
2898
2899         * WebView/WebHTMLView.mm:
2900         (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
2901         (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
2902         (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
2903
2904 2007-10-27  Mark Ambachtsheer  <mark.a@apple.com>
2905
2906         Reviewed by Darin.
2907
2908         Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at 
2909         (0, 0) the clipping rectangle is not correct.
2910         Added the origin to the window clip rectangle coordinates to account for plugins that
2911         don't originate at (0,0); affects code for offscreen GWorlds only.
2912
2913         * Plugins/WebBaseNetscapePluginView.mm:
2914         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2915
2916 2007-10-26  Adele Peterson  <adele@apple.com>
2917
2918         Reviewed by Oliver.
2919
2920         Adding WebKitSystemInterface support for the caps lock indicator
2921
2922         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2923
2924 2007-10-25  David Hyatt  <hyatt@apple.com>
2925
2926         Fix for bug 15672, backgrounds don't tile properly inside transforms.  This patch fixes tiling
2927         of backgrounds inside CSS transforms and also of HTML content with background images inside SVG
2928         transforms.
2929
2930         Reviewed by aroben and mmitz
2931
2932         * WebCoreSupport/WebSystemInterface.m:
2933         (InitWebCoreSystemInterface):
2934         * WebKit.xcodeproj/project.pbxproj:
2935
2936 2007-10-25  John Sullivan  <sullivan@apple.com>
2937
2938         Reviewed by Tim Hatcher
2939         
2940         Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it
2941         always does, when available.
2942
2943         * WebView/WebPreferencesPrivate.h:
2944         removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with
2945         a comment that says that they can be removed when no longer needed. That time is now.
2946
2947         * WebView/WebPreferences.m:
2948         (+[WebPreferences initialize]):
2949         removed WebKitUsePDFPreviewViewPreferenceKey
2950         (-[WebPreferences _usePDFPreviewView]):
2951         removed
2952         (-[WebPreferences _setUsePDFPreviewView:]):
2953         removed
2954
2955         * WebView/WebPDFView.mm:
2956         (-[WebPDFView initWithFrame:]):
2957         don't check _usePDFPreviewView
2958         
2959         * WebView/WebPreferenceKeysPrivate.h:
2960         removed WebKitUsePDFPreviewViewPreferenceKey
2961         
2962 2007-10-24  Timothy Hatcher  <timothy@apple.com>
2963
2964         Reviewed by Mark Rowe.
2965
2966         <rdar://problem/5069711> OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard
2967
2968         Use the WebKitSystemInterface that matches the system version.
2969
2970         * Configurations/DebugRelease.xcconfig:
2971         * WebKit.xcodeproj/project.pbxproj:
2972
2973 2007-10-24  Brady Eidson  <beidson@apple.com>
2974
2975         Reviewed by Anders
2976
2977         <rdar://problem/5554130> DatabaseTracker.o has a global initializer
2978
2979         * Misc/WebDatabaseManager.mm:
2980         (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
2981
2982 2007-10-23  Mark Rowe  <mrowe@apple.com>
2983
2984         Build fix for Eric's build fix in r26916.
2985
2986         * MigrateHeaders.make:
2987
2988 2007-10-22  Eric Seidel  <eric@webkit.org>
2989
2990         Reviewed by Maciej.
2991
2992         * MigrateHeaders.make: copy over font-face related DOM headers
2993
2994 2007-10-22  Andrew Wellington  <proton@wiretapped.net>
2995
2996         Reviewed by Mark Rowe.
2997         
2998         Fix for local database support after r26879
2999         Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
3000
3001         * Configurations/WebKit.xcconfig:
3002
3003 2007-10-19  Brady Eidson <beidson@apple.com>
3004
3005         Reviewed by Tim Hatcher
3006
3007         Added support for Chrome prompts required by the Storage API
3008         Added support API for future managing of databases from the WebKit client
3009         Added preference and initialization for the databases path
3010
3011         * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
3012           remove the current available databases
3013         * Misc/WebDatabaseManager.mm: Added.
3014         (+[WebDatabaseManager origins]):
3015         (+[WebDatabaseManager databasesWithOrigin:]):
3016         (+[WebDatabaseManager deleteAllDatabases]):
3017         (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
3018         (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
3019         (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
3020         * Misc/WebDatabaseManagerPrivate.h: Added.
3021
3022         * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for 
3023           an origin exceeding its size limit
3024         * WebCoreSupport/WebChromeClient.mm:
3025         (WebChromeClient::runDatabaseSizeLimitPrompt):
3026         * WebKit.xcodeproj/project.pbxproj:
3027         * WebView/WebUIDelegate.h:
3028
3029         * WebView/WebView.mm:
3030         (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
3031         * WebView/WebViewInternal.h:
3032
3033 2007-10-19  John Sullivan  <sullivan@apple.com>
3034
3035         Reviewed by Tim Hatcher
3036         
3037         - fixed <rdar://problem/5540325> REGRESSION (2.0.4-3): History menu looks odd after clearing history
3038
3039         * History/WebHistory.mm:
3040         (-[WebHistoryPrivate removeAllItems]):
3041         This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition
3042         to the other places where it's cleared.
3043
3044 2007-10-18  Dan Bernstein  <mitz@apple.com>
3045
3046         Tiger build fix.
3047
3048         * WebView/WebDataSource.mm:
3049         (-[WebDataSource _MIMETypeOfResponse:]):
3050
3051 2007-10-18  Dan Bernstein  <mitz@apple.com>
3052
3053         Reviewed by Adam Roben.
3054
3055         - fix <rdar://problem/5313523>
3056         REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard
3057
3058         * WebCoreSupport/WebFrameLoaderClient.mm:
3059         (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType.
3060         * WebView/WebDataSource.mm:
3061         (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around
3062         <rdar://problem/5321972> by testing for the case of an NSHTTPURLResponse
3063         with a MIMEType of application/octet-stream and a Content-Type header
3064         starting with text/plain and returning text/plain as the MIME type in
3065         that case.
3066         (-[WebDataSource _responseMIMEType]): Added. Used to get the correct
3067         response MIME type.
3068         (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType.
3069         (-[WebDataSource _makeRepresentation]): Ditto.
3070         (-[WebDataSource mainResource]): Ditto.
3071         (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and
3072         pass the MIME type explicitly.
3073         (-[WebDataSource subresourceForURL:]): Ditto.
3074         * WebView/WebDataSourcePrivate.h:
3075         * WebView/WebFrameView.mm:
3076         (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use
3077         _responseMIMEType.
3078         * WebView/WebResource.mm:
3079         (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this
3080         method to take a MIME type instead of extracting it from the response,
3081         so that WebDataSource could pass the correct MIME type.
3082         * WebView/WebResourcePrivate.h:
3083
3084 2007-10-17  Darin Adler  <darin@apple.com>
3085
3086         Reviewed by Mark Rowe.
3087
3088         - fix <rdar://problem/5183775> Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers]
3089
3090         * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
3091         Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object.
3092         It's safe to do that for functions that return integers or pointers, but not structures.
3093
3094 2007-10-16  David Kilzer  <ddkilzer@apple.com>
3095
3096         Reviewed by Timothy.
3097
3098         <rdar://problem/5544354> Wrong delegate method called in
3099         WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
3100
3101         * WebCoreSupport/WebFrameLoaderClient.mm:
3102         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name.
3103
3104 2007-10-16  Darin Adler  <darin@apple.com>
3105
3106         Reviewed by Adele.
3107
3108         - moved transpose command implementation into WebCore
3109
3110         * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
3111
3112 2007-10-16  Darin Adler  <darin@apple.com>
3113
3114         Reviewed by Maciej and Geoff (and looked over by Eric).
3115
3116         - http://bugs.webkit.org/show_bug.cgi?id=15519
3117           eliminate use of <ctype.h> for processing ASCII
3118
3119         * ForwardingHeaders/wtf/ASCIICType.h: Added.
3120         * ForwardingHeaders/wtf/DisallowCType.h: Added.
3121
3122         * WebKitPrefix.h: Include DisallowCType.h.
3123
3124         * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower.
3125         * WebView/WebHTMLView.mm:
3126         (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper.
3127         (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes,
3128         instead of using ispunct.
3129
3130 2007-10-16  John Sullivan  <sullivan@apple.com>
3131
3132         Reviewed by Adam Roben
3133         
3134         Cleaned up localizable strings
3135
3136         * English.lproj/Localizable.strings:
3137         updated
3138         * StringsNotToBeLocalized.txt:
3139         updated
3140         * WebKit.xcodeproj/project.pbxproj:
3141         StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
3142
3143 2007-10-15  Kevin Decker  <kdecker@apple.com>
3144
3145         Reviewed by Darin Adler.
3146         
3147         Fixed: <rdar://problem/5520541> REGRESSION: Broken image when forwarding certain email on Tiger
3148         
3149         * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
3150         too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
3151         that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
3152         load during first layout and not attach time. For this plug-in, loading at first layout is 
3153         expected and is consistent with Safari 2 behavior.
3154
3155 2007-10-15  John Sullivan  <sullivan@apple.com>
3156
3157         Reviewed by Geoff Garen
3158         
3159         Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
3160
3161         I made the following changes:
3162         - replaced NS_DURING with @try, and added opening brace if there wasn't one
3163         - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
3164         - removed NS_ENDHANDLER, and added a closing brace if there wasn't one
3165         - in a couple of places, fixed indentation therein
3166
3167         * Misc/WebIconDatabase.mm:
3168         (objectFromPathForKey):
3169         * WebView/WebHTMLView.mm:
3170         (-[WebHTMLView drawSingleRect:]):
3171         (-[WebHTMLView beginDocument]):
3172         (-[WebHTMLView deleteToMark:]):
3173         * WebView/WebView.mm:
3174         (-[WebView initWithCoder:]):
3175
3176 == Rolled over to ChangeLog-2007-10-14 ==