Reviewed by Darin.
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2008-01-03  Alice Liu  <alice.liu@apple.com>
2
3         Reviewed by Darin.
4
5         This fixes pageup/down in iframes.  test for this is fast/frames/iframe-scroll-page-up-down.html
6
7         * WebView/WebHTMLView.mm:
8         (-[WebHTMLView doCommandBySelector:]):
9         Have the editor handle all the commands it supports instead of just text commands.
10         If not handled by the editor, the webview will handle the command. 
11
12 2008-01-02  Kevin Decker  <kdecker@apple.com>
13
14         Reviewed by Darin.
15         
16         Fixed: <rdar://problem/5660603> QuickDraw plug-ins can cause a 100% reproducible assertion failure in AppKit (breaks Safari UI)
17
18         * Plugins/WebBaseNetscapePluginView.mm:
19         (-[WebBaseNetscapePluginView updateAndSetWindow]): Simplified an early return for non-QuickDraw plug-ins and switched
20         to using the more NSView friendly version of lockFocus, lockFocusIfCanDraw.
21
22 2008-01-01  David D. Kilzer  <ddkilzer@webkit.org>
23
24         Reviewed by Dan.
25
26         - fix http://bugs.webkit.org/show_bug.cgi?id=16700
27           Fix -[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]
28
29         * DefaultDelegates/WebDefaultPolicyDelegate.m: Check return value of
30         -[NSFileManager fileExistsAtPath:isDirectory:] before using the value
31         of isDirectory.
32
33 2007-12-29  Nikolas Zimmermann  <zimmermann@kde.org>
34
35         Reviewed by Eric.
36
37         Add DOMSVGFontElement/DOMSVGGlyphElement/DOMSVGMissingGlyphElement to MigrateHeaders.make
38
39         * MigrateHeaders.make:
40
41 2007-12-25  Dan Bernstein  <mitz@apple.com>
42
43         Reviewed by Oliver Hunt.
44
45         - fix an assertion failure when pressing the num lock key
46
47         * WebView/WebHTMLView.mm:
48         (-[WebHTMLView flagsChanged:]): Avoid passing key code 10 down to
49         WebCore.
50
51 2007-12-20  Darin Adler  <darin@apple.com>
52
53         Reviewed by Oliver.
54
55         - fix <rdar://problem/5658787> Selector -[WebView insertLineBreak:] is not implemented
56
57         * WebView/WebView.mm: Added all selectors implemented by WebHTMLView to the list of
58         selectors to forward here. The new ones are: changeBaseWritingDirection:, changeSpelling:,
59         deleteToMark:, insertLineBreak:, moveParagraphBackwardAndModifySelection:,
60         moveParagraphForwardAndModifySelection:, pageDownAndModifySelection:, pageUpAndModifySelection:,
61         selectToMark:, setMark:, swapWithMark:, takeFindStringFromSelection:, toggleBaseWritingDirection:,
62         and transpose:.
63
64 2007-12-20  Kevin Decker  <kdecker@apple.com>
65
66         Reviewed by Anders.
67         
68         Fixed: <rdar://problem/5638288> REGRESSION: Flash movies show up in other tabs above the page (16373)
69
70         * Plugins/WebBaseNetscapePluginView.mm:
71         (-[WebBaseNetscapePluginView updateAndSetWindow]): QuickDraw plug-ins must manually be told when to stop
72          writing to the window backing store. The problem was that change-set 28400 introduced an early return 
73          which prevented this necessary operation. The fix is to limit the scope of the early return to CG and GL
74          plug-ins and to tweak the needsFocus check to prevent an exception from occurring in QuickDraw-based plug-ins.
75
76 2007-12-19  Geoffrey Garen  <ggaren@apple.com>
77
78         Reviewed by Oliver Hunt.
79
80         Build fix.
81
82         * ForwardingHeaders/kjs/SymbolTable.h: Added.
83         * ForwardingHeaders/wtf/VectorTraits.h: Added.
84
85 2007-12-16  Mark Rowe  <mrowe@apple.com>
86
87         Reviewed by Maciej Stachowiak.
88
89         Refactor Mac plugin stream code to use the shared NetscapePlugInStreamLoader implementation.
90
91         * Plugins/WebBaseNetscapePluginStream.h:
92         * Plugins/WebNetscapePluginStream.h:
93         * Plugins/WebNetscapePluginStream.mm:
94         (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
95         (-[WebNetscapePluginStream dealloc]):
96         (-[WebNetscapePluginStream finalize]):
97         * Plugins/WebPlugInStreamLoaderDelegate.h: Moved from WebCore.
98         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h: Added.
99         (WebNetscapePlugInStreamLoaderClient::WebNetscapePlugInStreamLoaderClient):
100         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm: Added.
101         (WebNetscapePlugInStreamLoaderClient::didReceiveResponse): Call through to the equivalent WebPlugInStreamLoaderDelegate method.
102         (WebNetscapePlugInStreamLoaderClient::didReceiveData): Ditto.
103         (WebNetscapePlugInStreamLoaderClient::didFail): Ditto.
104         (WebNetscapePlugInStreamLoaderClient::didFinishLoading): Ditto.
105
106 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
107
108         Reviewed by Darin.
109
110         http://bugs.webkit.org/show_bug.cgi?id=14140
111         <rdar://problem/5270958> REGRESSION: Complex system KeyBindings don't work properly
112
113         * WebView/WebHTMLView.mm:
114         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): Made command replaying work
115         when handling keypress, too.
116         (-[WebHTMLView doCommandBySelector:]): Adapted for the new way to store commands in events.
117         (-[WebHTMLView insertText:]): Append a command, not replace the whole existing vector. Also,
118         restore the state for additional commands to be saved correctly.
119
120 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
121
122         <rdar://problem/5647272> Remove user agent string hack for flickr.com
123
124         Reviewed by Darin.
125
126         * WebView/WebView.mm:
127         (-[WebView _userAgentForURL:]): Removed hack.
128
129 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
130
131         <rdar://problem/5647261> Remove user agent string hack for yahoo.com
132
133         Reviewed by Darin.
134
135         * WebView/WebView.mm:
136         (-[WebView _userAgentForURL:]): Removed hack.
137
138 2007-12-14  Darin Adler  <darin@apple.com>
139
140         Reviewed by Brady.
141
142         - fix http://bugs.webkit.org/show_bug.cgi?id=16296
143           <rdar://problem/5635641> -[WebFrameLoadDelegate didReceiveIcon:forFrame:] never called
144
145         * WebView/WebView.mm:
146         (-[WebView setFrameLoadDelegate:]): Call [WebIconDatabase sharedIconDatabase] if the
147         a didReceiveIcon method is present.
148
149 2007-12-14  Darin Adler  <darin@apple.com>
150
151         Reviewed by Alexey.
152
153         - Changed a few more editing operations to use WebCore instead of WebKit.
154         - Removed some obsolete unused code.
155
156         * WebCoreSupport/WebFrameBridge.h: Moved declarations of methods that are both
157         defined and used on the WebKit side to here. These no longer belong on the bridge
158         and should be moved to the WebFrame class (or elsewhere).
159         * WebCoreSupport/WebFrameBridge.mm: Removed some unused methods.
160
161         * WebView/WebFrameView.mm:
162         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): Fix typo in comment.
163
164         * WebView/WebHTMLView.mm:
165         (-[WebHTMLViewPrivate dealloc]): Removed unused firstResponderTextViewAtMouseDownTime.
166         (-[WebHTMLViewPrivate clear]): Ditto.
167         (-[WebHTMLView _setMouseDownEvent:]): Ditto.
168         (commandNameForSelector): Added special cases for pageDown:, pageDownAndModifySelection:,
169         pageUp:, and pageUpAndModifySelection:, since those names probably aren't specific enough
170         to be used in WebCore (what AppKit calls scrollPageDown: vs. pageDown: needs to be
171         disambiguated with the word "Move"). Added deleteBackward:,
172         deleteBackwardByDecomposingPreviousCharacter:, deleteForward:, deleteToBeginningOfLine:,
173         deleteToBeginningOfParagraph:, deleteToEndOfLine:, deleteToEndOfParagraph:, pageDown:,
174         pageDownAndModifySelection:, pageUp:, pageUpAndModifySelection:, selectLine:,
175         selectParagraph:, selectSentence:, and selectWord: to the list of commands that are
176         forwarded to WebCore.
177         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Eliminated the long list of
178         operations that we forward to WebCore. Instead, look up any command that WebCore can
179         handle, after any that we handle specially in WebHTMLView. Also fixed a bug where
180         an item that's not a menu item with changeBaseWritingDirection:NSWritingDirectionNatural
181         would end up enabled instead of disabled and streamlined the logic for toggleGrammarChecking:.
182         (-[WebHTMLView mouseDown:]): Removed unused firstResponderTextViewAtMouseDownTime.
183         (-[WebHTMLView becomeFirstResponder]): Removed unused willBecomeFirstResponderForNodeFocus.
184         (-[WebHTMLView resignFirstResponder]): Ditto.
185         (-[WebHTMLView checkSpelling:]): Took unneeded extra initialization of NSSpellChecker.
186
187         * WebView/WebHTMLViewInternal.h: Removed unused willBecomeFirstResponderForNodeFocus,
188         firstResponderTextViewAtMouseDownTime, _textViewWasFirstResponderAtMouseDownTime: and
189         _willMakeFirstResponderForNodeFocus.
190
191 2007-12-13  Alexey Proskuryakov  <ap@webkit.org>
192
193         Reviewed by Darin.
194
195         Turn on keyboard event processing quirks for feed views and old applications on Mac OS X.
196
197         * Misc/WebKitVersionChecks.h:
198         * WebView/WebView.mm:
199         (-[WebView _needsKeyboardEventHandlingQuirks]):
200         (-[WebView _preferencesChangedNotification:]):
201
202 2007-12-12  Brady Eidson  <beidson@apple.com>
203
204         Reviewed by Sam Weinig
205
206         Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows)
207
208         * WebCoreSupport/WebCachedPagePlatformData.h: Added.
209         (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes a WebDocumentView for later restoration
210         (WebCachedPagePlatformData::clear):
211         (WebCachedPagePlatformData::webDocumentView):
212
213         * WebCoreSupport/WebFrameLoaderClient.h:
214         * WebCoreSupport/WebFrameLoaderClient.mm:
215         (WebFrameLoaderClient::savePlatformDataToCachedPage):
216         (WebFrameLoaderClient::transitionToCommittedFromCachedPage): Don't set the DocumentLoader to the Frame here, 
217           because that is now done in WebCore.
218         (WebFrameLoaderClient::transitionToCommittedForNewPage):
219
220 2007-12-12  Mark Rowe  <mrowe@apple.com>
221
222         Reviewed by Dave Kilzer.
223
224         Remove abuse of projectDirPath from WebKit.xcodeproj to fix Production builds.
225
226         * Configurations/WebKit.xcconfig:
227
228 2007-12-11  Sam Weinig  <sam@webkit.org>
229
230         Reviewed by Darin Adler.
231
232         Scrub URL out of the tree in preparation for renaming KURL to URL.
233
234         * WebCoreSupport/WebFrameLoaderClient.mm:
235         (WebFrameLoaderClient::actionDictionary):
236         * WebView/WebDataSource.mm:
237         (-[WebDataSource _URL]):
238         * WebView/WebView.mm:
239         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
240
241 2007-12-11  Darin Adler  <darin@apple.com>
242
243         Reviewed by Geoff.
244
245         - change more editing commands to use WebCore::Editor
246         - change to use the new WebCore::Editor::command() function
247
248         * WebView/WebHTMLView.mm: Changed alignCenter, alignJustified, alignLeft,
249         alignRight, cut, copy, deleteToMark, indent, insertNewlineIgnoringFieldEditor,
250         insertTabIgnoringFieldEditor, outdent, selectAll, selectToMark, setMark,
251         subscript, superscript, swapWithMark, underline, unscript, yank, and yankAndSelect
252         to use the "forward to WebCore" macro instead of having hand-written implementations.
253         (kit): Added function to change a TriState to an AppKit-style tri-state value.
254         (-[WebHTMLView coreCommandBySelector:]): Added. No longer converts case of the
255         first character or copies the selector name, since the Editor commands are not case
256         sensitive any more. Returns a command object.
257         (-[WebHTMLView coreCommandByName:]): Added.
258         (-[WebHTMLView executeCoreCommandBySelector:]): Renamed from callWebCoreCommand:,
259         and changed to use the new coreCommandBySelector: method.
260         (-[WebHTMLView executeCoreCommandByName:]): Added.
261         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Changed all the
262         methods that call through to WebCore to also use the state() and isEnabled()
263         functions on the commands for the menu item state and user interface item enabling.
264         (-[WebHTMLView _handleStyleKeyEquivalent:]): Use ToggleBold and ToggleItalic by
265         name rather than having local methods for them; no need for methods with a single
266         call site.
267         (-[WebHTMLView insertParagraphSeparator:]): Use executeCoreCommandByName: rather
268         than the deprecated execCommand().
269         (-[WebHTMLView doCommandBySelector:]): Changed to use command().execute() rather
270         than the deprecated execCommand().
271         * WebView/WebHTMLViewInternal.h: Removed some unneeded method declarations.
272
273 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
274
275         Reviewed by Darin.
276
277         <rdar://problem/5535636>
278         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
279
280         http://bugs.webkit.org/show_bug.cgi?id=13916
281         JavaScript detects Tab as a character input on a textfield validation
282
283         * WebCoreSupport/WebEditorClient.h:
284         Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
285         Renamed handleInputMethodKeypress() to handleInputMethodKeydown().
286         * WebCoreSupport/WebEditorClient.mm:
287         (WebEditorClient::handleKeyboardEvent): This change makes sense only remotely, but it helped
288         to get tests working. I guess Mac keyboard event handling needs further refactoring.
289
290         * WebView/WebHTMLView.mm:
291         (selectorToCommandName): Convert AppKit editing selector name to Editor command name - extracted
292         from callWebCoreCommand:.
293         (_interceptEditingKeyEvent:shouldSaveCommand:): Insert text from keypress.
294
295         * WebView/WebPDFView.mm:
296         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
297         Convert incoming platform KeyDown into RawKeyDown, as this is what the view is interested in.
298
299 2007-12-10  Brady Eidson  <beidson@apple.com>
300
301         Reviewed by John Sullivan
302
303         Fix for <rdar://problem/5640080> - Database UI delegate calls need to specify WebFrame
304
305         This is because a common UI case is to want to know the originating URL of a Database
306
307         * WebCoreSupport/WebChromeClient.mm:
308         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
309         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
310
311         * WebView/WebUIDelegatePrivate.h:
312
313         * WebView/WebView.mm:
314         (CallDelegateReturningUnsignedLongLong):
315         (CallUIDelegateReturningUnsignedLongLong):
316         * WebView/WebViewInternal.h:
317
318 2007-12-10  Timothy Hatcher  <timothy@apple.com>
319
320         Reviewed by Mark Rowe.
321
322         <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
323
324         * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
325           so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
326
327 2007-12-10  Kevin Decker  <kdecker@apple.com>
328
329         Reviewed by Darin.
330
331         Fixed: <rdar://problem/4290098> Right-mouse click on element doesn't call onmousedown handler
332         
333         * WebView/WebHTMLView.mm:
334         (-[WebHTMLView menuForEvent:]): Match behavior of other browsers by sending an onmousedown event for right clicks.
335
336 2007-12-08  Oliver Hunt  <oliver@apple.com>
337
338         Reviewed by Sam W.
339
340         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
341         
342         Fixes <rdar://problem/5620249> Must disable SVG animation
343         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
344         
345         Minor updates to the feature flags used.
346
347         * Configurations/WebKit.xcconfig:
348         * DOM/WebDOMOperations.mm:
349
350 2007-12-07  Darin Adler  <darin@apple.com>
351
352         Reviewed by Kevin Decker and Tim Hatcher.
353
354         - speculative fix for <rdar://problem/5400159> CrashTracer: [USER] 726 crashes
355           in Safari at com.apple.WebKit: -[WebHTMLView(WebPrivate) _updateMouseoverWithFakeEvent] + 389
356
357         * WebView/WebHTMLView.mm:
358         (-[WebHTMLView _frameOrBoundsChanged]): Only schedule the mouseover timer if we are in a window
359         and not closed. That's because viewDidMoveToWindow and close are the entry points for cancelling.
360         (-[WebHTMLView close]): Add code to cancel both timers. Needed for the case where the entire
361         window goes away, and the view is never removed from the window.
362         (-[WebHTMLView viewDidMoveToWindow]): Don't do work if the view is closed.
363
364 2007-12-07  Darin Adler  <darin@apple.com>
365
366         Reviewed by Mitz.
367
368         - http://bugs.webkit.org/show_bug.cgi?id=15981
369           speed up visited-link code a bit
370
371         * History/WebHistory.mm: Removed unused Latin-1 code path.
372         (-[_WebCoreHistoryProvider containsURL:length:]): Updated for method name change.
373
374 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
375
376         Reviewed by Sam Weinig.
377         
378         Added a forwarding header, since we now #include nodes.h through some
379         JavaScriptCore headers.
380
381         * ForwardingHeaders/wtf/ListRefPtr.h: Added.
382
383 2007-12-06  Brady Eidson  <beidson@apple.com>
384
385         Reviewed by Oliver's rubber stamp
386
387         Let's go ahead and call the correct UI Delegate method, shall we?
388
389         * WebCoreSupport/WebChromeClient.mm:
390         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Call the correct UI delegate
391
392 2007-12-06  Adam Roben  <aroben@apple.com>
393
394         Remove some assertions we know can fire and replace them with a FIXME
395
396         Reviewed by Anders.
397
398         * WebCoreSupport/WebFrameLoaderClient.mm:
399
400 2007-12-06  Timothy Hatcher  <timothy@apple.com>
401
402         Change the ASSERT added for the previous fix. The ASSERT was firing for 10.5.0.
403         Only assert if the major version is zero, since zero is handled in the other cases.
404
405         * WebView/WebView.mm:
406         (callGestalt): Remove the ASSERT.
407         (createMacOSXVersionString): ASSERT that major is not zero.
408
409 2007-12-06  Darin Adler  <darin@apple.com>
410
411         Reviewed by Tim Hatcher.
412
413         - fix <rdar://problem/5513394> No way to detect Tiger vs Leopard from Safari's user agent string
414
415         * WebView/WebView.mm:
416         (callGestalt): Added.
417         (createMacOSXVersionString): Added.
418         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Added Mac OS X version string,
419         right after the string "Mac OS X", but with underscores instead of dots to avoid the dreaded
420         "4." problem (old libraries that think a "4." anywhere in the user agent means Netscape 4).
421         (-[WebView _userAgentForURL:]): Fixed incorrect bug numbers.
422
423 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
424
425         Reviewed by Darin Adler.
426
427         Third step in refactoring JSGlobalObject: Moved data members and data
428         member access from Interpreter to JSGlobalObject.
429         
430         * WebView/WebFrame.mm:
431         (-[WebFrame _attachScriptDebugger]):
432
433 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
434
435         Reviewed by Darin.
436
437         - <rdar://5621435>
438         - Security Fix. Instead of having it off by default, WebKit now must
439         explicitly turn off local-resource restriction when needed for backwards
440         coimpatibility reasons.
441
442         * WebView/WebView.mm:
443         (-[WebView _commonInitializationWithFrameName:groupName:]):
444
445 2007-12-05  Brady Eidson  <beidson@apple.com>
446
447         Reviewed by Kevin Deckers rubberstamp
448
449         Disclose and export the Databases Directory defaults key
450
451         * Storage/WebDatabaseManager.mm:
452         * Storage/WebDatabaseManagerPrivate.h:
453         * WebKit.exp:
454
455 2007-12-04  Kevin Decker  <kdecker@apple.com>
456
457         Reviewed by Anders.
458
459         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
460
461         * WebCoreSupport/WebViewFactory.mm:
462         (-[WebViewFactory pluginNameForMIMEType:]): Added.
463
464 2007-12-04  Brady Eidson  <beidson@apple.com>
465
466         Reviewed by Mark Rowe
467
468         Tweaked the way we typedef and cast these objc_msgSend calls
469
470         * WebView/WebView.mm:
471         (CallDelegateReturningUnsignedLongLong):
472
473 2007-12-04  John Sullivan  <sullivan@apple.com>
474
475         Reviewed by Brady Eidson (with help from Mark Rowe)
476         
477         Fixed return values for unsigned-long-long delegate methods
478
479         * WebView/WebView.mm:
480         (CallDelegateReturningUnsignedLongLong):
481         redid the change that Brady did at home over the weekend but forgot to check in
482
483 2007-11-27  Adam Roben  <aroben@apple.com>
484
485         Remove -[WebFrameBridge setNeedsReapplyStyles]
486
487         This functionality is now WebCore's responsibility.
488
489         Reviewed by Hyatt.
490
491         * WebCoreSupport/WebFrameBridge.mm:
492         * WebKit.order:
493
494 2007-12-04  John Sullivan  <sullivan@apple.com>
495
496         Reviewed by Darin
497         
498         Added deleteOrigin: SPI, which isn't fully implemented
499
500         * Storage/WebDatabaseManagerPrivate.h:
501         * Storage/WebDatabaseManager.mm:
502         (-[WebDatabaseManager deleteOrigin:]):
503         just calls deleteDatabasesWithOrigin: for now, but needs to delete origin itself too
504
505 2007-12-04  Timothy Hatcher  <timothy@apple.com>
506
507         Reviewed by Mark Rowe.
508
509         Remove a check for early versions of Leopard CFNetwork now that
510         Leopard has shipped.
511
512         * Misc/WebKitVersionChecks.h: Remove WEBKIT_FIRST_CFNETWORK_VERSION_WITH_LARGE_DISK_CACHE_FIX.
513         * WebView/WebView.mm:
514         (+[WebView _setCacheModel:]): Remove the early Leopard CFNetwork check.
515
516 2007-12-04  Kevin Decker  <kdecker@apple.com>
517
518         Reviewed by Darin.
519
520         Revised fix for: <rdar://problem/5586978> REGRESSION (Safari 2-3): WebKit sometimes doesn't invoke Flash's NPP_SetWindow function and causes a hang
521
522         This fix is exactly the same as chageset 28359 with the exception of an added early return in
523         updateAndSetWindow to cover the additional case of when a plug-in isn't drawable.
524         
525         The CG-based Flash player would sometimes hang because (for CoreGraphics-based plug-ins) our code would
526         only call into the NPP_SetWindow() function when we tell the plug-in to draw. This created havoc with 
527         Flash because Flash expects the browser to call NPP_SetWindow() and provide a valid graphics context 
528         regardless of whether or not it actually needs to draw. 
529         
530         * Plugins/WebBaseNetscapePluginView.mm:
531         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): Removed an incorrect comment and toned
532         down an ASSERT that was too strict. 
533         (-[WebBaseNetscapePluginView updateAndSetWindow]): Removed an early return for CoreGraphics-based plug-ins
534         which would sometimes altogether prevent updating the PortState and calling into a plug-ins NPP_SetWindow()
535         function. Also tweaked a comment and added an early return if the plug-in can't draw.
536
537 2007-12-04  Darin Adler  <darin@apple.com>
538
539         Reviewed by Kevin Decker.
540
541         * WebCoreSupport/WebFrameLoaderClient.h: Removed obsolete privateBrowsingEnabled.
542         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
543         * WebKit.order: Ditto.
544
545 2007-12-03  Dan Bernstein  <mitz@apple.com>
546
547         Reviewed by Dave Hyatt.
548
549         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
550
551         * WebView/WebHTMLView.mm:
552         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Removed the code
553         that checked if the view had resized and sent the resize event, since
554         FrameView sends resize events now.
555         * WebView/WebHTMLViewInternal.h:
556
557 2007-12-03  Timothy Hatcher  <timothy@apple.com>
558
559         Reviewed by Darin.
560
561         Change WebViewGetResourceLoadDelegateImplementations and WebViewGetFrameLoadDelegateImplementations
562         to return a pointer to the implementation struct instead of a copy of the struct. This changes
563         all of the callers to dereference the pointer to access the struct fields.
564
565         * Plugins/WebNullPluginView.mm:
566         (-[WebNullPluginView reportFailure]):
567         * WebCoreSupport/WebFrameBridge.mm:
568         * WebCoreSupport/WebFrameLoaderClient.mm:
569         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
570         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
571         (WebFrameLoaderClient::dispatchWillSendRequest):
572         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
573         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
574         (WebFrameLoaderClient::dispatchDidReceiveResponse):
575         (WebFrameLoaderClient::willCacheResponse):
576         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
577         (WebFrameLoaderClient::dispatchDidFinishLoading):
578         (WebFrameLoaderClient::dispatchDidFailLoading):
579         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
580         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
581         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
582         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
583         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
584         (WebFrameLoaderClient::dispatchWillClose):
585         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
586         (WebFrameLoaderClient::dispatchDidReceiveTitle):
587         (WebFrameLoaderClient::dispatchDidCommitLoad):
588         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
589         (WebFrameLoaderClient::dispatchDidFailLoad):
590         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
591         (WebFrameLoaderClient::dispatchDidFinishLoad):
592         (WebFrameLoaderClient::dispatchDidFirstLayout):
593         * WebView/WebView.mm:
594         (WebViewGetResourceLoadDelegateImplementations):
595         (WebViewGetFrameLoadDelegateImplementations):
596         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
597         * WebView/WebViewInternal.h:
598
599 2007-12-03  Timothy Hatcher  <timothy@apple.com>
600
601         Reviewed by Brady Eidson.
602
603         <rdar://problem/5539913> 188 crashes in WebViewGetFrameLoadDelegateImplementations
604         <rdar://problem/5586095> CrashTracer: [USER] 5000+ crashes in Safari and Dashboard in dispatchDidFailLoading
605         <rdar://problem/5607081> CrashTracer: [USER] 2150 crashes in Safari at com.apple.WebKit:
606         WebViewGetResourceLoadDelegateImplementations + 28
607
608         * WebView/WebView.mm:
609         (-[WebView _cacheResourceLoadDelegateImplementations]): If the delegate is nil, bzero the
610         implementation cache. This just prevents us from calling getMethod() multiple times just to zero.
611         (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
612         (WebViewGetResourceLoadDelegateImplementations): Return a zeroed implementations struct
613         if the WebView is nil. This fixes the crashes.
614         (WebViewGetFrameLoadDelegateImplementations): Ditto.
615
616 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
617
618         Reviewed by Eric Seidel.
619
620         Updated to match the JavaScriptCore change to move virtual methods from
621         Interpreter to JSGlobalObject.
622
623         * WebView/WebFrame.mm:
624         (-[WebFrame globalContext]): Use the toRef function instead of manually
625         casting.
626
627 2007-12-01  Brady Eidson  <beidson@apple.com>
628
629         Reviewed by Tim
630
631         Added a default database quota of 5mb to the default WebPreferences
632
633         * WebView/WebPreferences.m:
634         (+[WebPreferences initialize]):
635
636 2007-11-30  John Sullivan  <sullivan@apple.com>
637
638         Reviewed by Geoff Garen
639         
640         Added another symbol for WebDatabaseManager clients
641
642         * WebKit.exp:
643         added .objc_class_name_WebSecurityOrigin
644
645 2007-11-30  Brady Eidson  <beidson@apple.com>
646
647         Reviewed by Geoff
648
649         Add isEqual operator to WebSecurityOrigin
650
651         * Storage/WebSecurityOrigin.mm:
652         (-[WebSecurityOrigin isEqual:]):
653
654 2007-11-30  John Sullivan  <sullivan@apple.com>
655
656         Reviewed by Darin
657         
658         Tweaks to newly-declared NSString * constants to make them usable from clients
659
660         * Storage/WebDatabaseManagerPrivate.h:
661         * Storage/WebDatabaseManager.mm:
662         removed "const" from new NSNotification names and userInfo keys; these generate compiler warnings when used
663         
664         * WebKit.exp:
665         export new NSNotification names and userInfo keys so clients can use them
666
667 2007-11-29  Anders Carlsson  <andersca@apple.com>
668
669         Reviewed by John.
670
671         Rename WebKitShrinksStandaloneImagesToFitKey to WebKitShrinksStandaloneImagesToFit.
672         
673         This is safe to do because the preference is off by default and Safari 3, which is the only client that turns it on,
674         is using the setter and not messing around with NSUserDefaults.
675         
676         * WebView/WebPreferenceKeysPrivate.h:
677         * WebView/WebPreferences.m:
678         (+[WebPreferences initialize]):
679         (-[WebPreferences shrinksStandaloneImagesToFit]):
680         (-[WebPreferences setShrinksStandaloneImagesToFit:]):
681
682 2007-11-29  Brady Eidson  <beidson@apple.com>
683
684         Reviewed by Anders
685
686         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
687
688         Hook up UI Delegate calls for the database engine feature and other small tweaks
689
690         * Storage/WebDatabaseManager.mm:
691         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
692         (-[WebDatabaseManager deleteDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
693         * Storage/WebDatabaseManagerPrivate.h:
694
695         * Storage/WebDatabaseTrackerClient.h:
696         * Storage/WebDatabaseTrackerClient.mm:
697         (WebDatabaseTrackerClient::dispatchDidModifyDatabase): Renamed databaseName parameter to databaseIdentifier for clarity
698
699         * WebCoreSupport/WebChromeClient.h:
700         * WebCoreSupport/WebChromeClient.mm:
701         (WebChromeClient::requestQuotaIncreaseForNewDatabase): Call through to the UI Delegate
702         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Ditto
703
704         * WebView/WebUIDelegatePrivate.h: Added the two UI Delegate methods
705
706         * WebView/WebView.mm:
707         (CallDelegateReturningUnsignedLongLong):
708         (CallUIDelegateReturningUnsignedLongLong):
709         * WebView/WebViewInternal.h:
710
711 2007-11-28  Kevin McCullough  <kmccullough@apple.com>
712
713         Reviewed by Sam.
714
715         - Added recursive runloop guards.
716
717         * DefaultDelegates/WebScriptDebugServer.m:
718         (-[WebScriptDebugServer suspendProcessIfPaused]):
719
720 2007-11-29  Mark Rowe  <mrowe@apple.com>
721
722         Reviewed by Oliver Hunt.
723
724         Fix an assertion failure seen on the layout tests, and when closing the window after
725         visiting <http://www.coudal.com/losalamos/>.
726
727         * Plugins/WebBaseNetscapePluginStream.mm:
728         (-[WebBaseNetscapePluginStream _destroyStream]): Unlink the file and close the file
729         descriptor even when the stream is being destroyed without the load completing. This
730         avoids leaking the path and file descriptor, and leaving the temporary file on disk.
731
732 2007-11-28  Adele Peterson  <adele@apple.com>
733
734         Reviewed by Darin.
735
736         Fix for <rdar://problem/5524216> CrashTracer: [USER] 496 crashes in Safari at com.apple.WebCore: WebCore::Frame::eventHandler const + 6
737
738         The CrashTracer shows a variety of crashes in different methods (including keyDown and keyUp). This change adds nil checks for the frame in 
739         WebHTMLView to prevent future problems in other methods as well.
740
741         * WebView/WebHTMLView.mm:
742         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
743         (-[WebHTMLView keyDown:]):
744         (-[WebHTMLView keyUp:]):
745         (-[WebHTMLView flagsChanged:]):
746         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
747         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
748         (-[WebHTMLView checkSpelling:]):
749         (-[WebHTMLView showGuessPanel:]):
750         (-[WebHTMLView indent:]):
751         (-[WebHTMLView outdent:]):
752         (-[WebHTMLView paste:]):
753         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
754         (-[WebHTMLView insertText:]):
755         (-[WebHTMLView selectionTextRects]):
756
757 2007-11-28  Dan Bernstein  <mitz@apple.com>
758
759         Reviewed by Maciej Stachowiak.
760
761         - fix <rdar://problem/5596160> fast/events/objc-event-api.html fails when run alone (or first)
762
763         * WebView/WebHTMLView.mm:
764         (-[WebHTMLView setDataSource:]): This method calls addMouseMovedObserver
765         because addMouseMovedObserver returns early if the dataSource
766         is not nil. But if the dataSource is already set (which happens when
767         a WebHTMLView is being reused) then addMouseMovedObserver must not
768         be called again.
769
770 2007-11-27  Anders Carlsson  <andersca@apple.com>
771
772         Reviewed by Brady.
773
774         * Storage/WebDatabaseManager.mm:
775         * Storage/WebDatabaseManagerPrivate.h:
776         * Storage/WebDatabaseTrackerClient.mm:
777         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
778         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
779         * Storage/WebSecurityOrigin.mm:
780         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
781         * Storage/WebSecurityOriginInternal.h:
782
783 2007-11-27  Kevin Decker  <kdecker@apple.com>
784
785         Reviewed by Darin, landed by Anders.
786
787         Fixed: <rdar://problem/4610818> CrashTracer: 1533 crashes in Safari at com.macromedia.Flash Player.plugin: native_ShockwaveFlash_TCallLabel + 271131
788
789         The problem was that some Leopard users were still inadvertently using the old Flash 8 plug-in, even though Leopard
790         shipped with Flash 9. To avoid loading an older version of a plug-in when a newer version is installed, the plug-in
791         database will compare bundle versions and always load the latest version.
792
793         * Plugins/WebBasePluginPackage.h:
794         * Plugins/WebBasePluginPackage.m:
795         (-[WebBasePluginPackage versionNumber]): New method. CFBundleGetVersionNumber doesn't work with all possible versioning schemes,
796         but we think for now it's good enough for us.
797         * Plugins/WebPluginDatabase.m:
798         (considerCandidate): Added a C utility function which compares the current plug-in against a candidate plug-in's version number.
799         If both plug-ins have the same bundle ID and the candiate is newer, the current plug-in becomes the candidate.
800         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): Calls the new considerCandidate() function.
801
802 2007-11-26  Timothy Hatcher  <timothy@apple.com>
803
804         Reviewed by Dave Hyatt.
805
806         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
807
808         * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey.
809         * WebView/WebPreferences.m:
810         (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES.
811         (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value.
812         (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value.
813         * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:.
814         * WebView/WebView.mm:
815         (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled.
816
817 2007-11-26  Brady Eidson  <beidson@apple.com>
818
819         Reviewed by Mark Rowe
820
821         Provide API for setting the default storage quota per database origin
822
823         * Misc/WebNSDictionaryExtras.h:
824         * Misc/WebNSDictionaryExtras.m:
825         (-[NSMutableDictionary _webkit_setUnsignedLongLong:forKey:]): Helper for UINT64 preferences
826
827         * WebView/WebPreferenceKeysPrivate.h:
828         * WebView/WebPreferences.m:
829         (-[WebPreferences _unsignedLongLongValueForKey:]): Helper for UINT64 prefs
830         (-[WebPreferences _setUnsignedLongLongValue:forKey:]): Ditto
831         (-[WebPreferences defaultDatabaseQuota]):
832         (-[WebPreferences setDefaultDatabaseQuota:]):
833         * WebView/WebPreferencesPrivate.h:
834
835         * WebView/WebView.mm:
836         (-[WebView _preferencesChangedNotification:]): Set the WebCore Settings version of the default storage pref
837
838 2007-11-26  Darin Adler  <darin@apple.com>
839
840         Reviewed by Adele.
841
842         - some middle-mouse-button-related fixes
843
844         These don't affect Safari since it maps the middle mouse button to the command key,
845         but that might not always be the case for future versions.
846
847         * WebView/WebHTMLView.mm:
848         (-[WebHTMLView otherMouseDown:]): Pass through middle mouse down events to WebCore.
849         (-[WebHTMLView otherMouseDragged:]): Ditto, for drag events.
850         (-[WebHTMLView otherMouseUp:]): Ditto, for up events.
851
852         * WebView/WebPolicyDelegate.h: Fixed inaccurate documentation of WebActionButtonKey.
853
854 2007-11-26  Anders Carlsson  <andersca@apple.com>
855
856         Reviewed by Brady.
857
858         Get rid of the WebSecurityOriginPrivate object and store 
859         the WebCore::SecurityOriginData pointer in the _private field of
860         the WebSecurityOrigin object instead.
861         
862         * Storage/WebDatabaseManager.mm:
863         (-[WebDatabaseManager databasesWithOrigin:]):
864         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
865         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
866         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
867         * Storage/WebSecurityOrigin.mm:
868         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
869         (-[WebSecurityOrigin protocol]):
870         (-[WebSecurityOrigin domain]):
871         (-[WebSecurityOrigin port]):
872         (-[WebSecurityOrigin usage]):
873         (-[WebSecurityOrigin quota]):
874         (-[WebSecurityOrigin setQuota:]):
875         (-[WebSecurityOrigin dealloc]):
876         (-[WebSecurityOrigin finalize]):
877         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
878         (-[WebSecurityOrigin _core]):
879         * Storage/WebSecurityOriginInternal.h:
880
881 2007-11-26  Timothy Hatcher  <timothy@apple.com>
882
883         Reviewed by Adam Roben.
884
885         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
886         http://bugs.webkit.org/show_bug.cgi?id=16137
887
888         Create the Web Inspector window with the textured style. Set the content border
889         thickness for the top of the window or the height of the toolbar. Also make the
890         window's bottom corners square, since a normal textured window normally has
891         rounded bottom corners.
892
893         * WebCoreSupport/WebInspectorClient.mm:
894         (-[WebInspectorWindowController window]):
895
896 2007-11-24  Mark Rowe  <mrowe@apple.com>
897
898         Tiger build fix.
899
900         * Plugins/WebBaseNetscapePluginStream.mm:
901         (CarbonPathFromPOSIXPath): Use WebCFAutorelease as this also works on Tiger.
902
903 2007-11-24  Mark Rowe  <mrowe@apple.com>
904
905         Reviewed by Tim Hatcher.
906
907         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
908         http://bugs.webkit.org/show_bug.cgi?id=13705
909
910         Have NP_ASFILE and NP_ASFILEONLY streams write the data to disk as they receive it rather than
911         dumping the data to disk in a single go when the stream has completed loading.  On a test case
912         involving a 150MB Flash movie being streamed from a local web server this reduces memory consumption
913         on page load from around 400MB to 22MB.
914
915         The only plugin I have found that uses NP_ASFILE or NP_ASFILEONLY on the Mac is our NetscapeMoviePlugin
916         example code so the NP_ASFILE portion of this change has not had any testing with a real-world plugin.
917
918         * Plugins/WebBaseNetscapePluginStream.h:
919         * Plugins/WebBaseNetscapePluginStream.mm:
920         (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
921         (-[WebBaseNetscapePluginStream dealloc]):
922         (-[WebBaseNetscapePluginStream finalize]):
923         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
924         (-[WebBaseNetscapePluginStream _destroyStream]): Update to work with paths as NSStrings.
925         (-[WebBaseNetscapePluginStream _deliverDataToFile:]): Open the file if it is not already open, and write any data
926         to disk.
927         (-[WebBaseNetscapePluginStream finishedLoading]): If the stream is NP_ASFILE or NP_ASFILEONLY we need to ensure
928         that the file exists before _destroyStream passes it to the plugin.  Simulating the arrival of an empty data block
929         ensure that the file will be created if it has not already.
930         (-[WebBaseNetscapePluginStream receivedData:]):
931         (CarbonPathFromPOSIXPath):
932         * Plugins/WebBaseNetscapePluginView.mm:
933         (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]): Data is dealt with incrementally so there's no need to pass
934         it to finishedLoading.
935         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Ditto.
936
937 2007-11-23  Oliver Hunt  <oliver@apple.com>
938
939         Reviewed by Mark Rowe.
940         
941         Fixed <rdar://problem/3759190> allow input methods the option of processing mouse events themselves
942
943         * WebView/WebHTMLView.mm:
944         (-[WebHTMLView mouseDown:]):
945
946 2007-11-22  Dan Bernstein  <mitz@apple.com>
947
948         Reviewed by Antti Koivisto.
949
950         - http://bugs.webkit.org/show_bug.cgi?id=15811
951           WebKit plug-ins can re-enter WebKit under attach()
952           <rdar://problem/5577978>
953
954         * Plugins/WebNullPluginView.mm:
955         (-[WebNullPluginView viewDidMoveToWindow]): Removed workaround for the
956         above bug that added as part of fixing
957         <http://bugs.webkit.org/show_bug.cgi?id=15804>.
958
959 2007-11-21  Mark Rowe  <mrowe@apple.com>
960
961         Reviewed by Eric.
962
963         Fix WebKit to build without warnings under GCC 4.2.
964
965         * Configurations/Base.xcconfig:
966
967 2007-11-21  Mark Rowe  <mrowe@apple.com>
968
969         Reviewed by Tim Hatcher.
970
971         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
972
973         Update format strings to use format specifiers that match the argument types.
974
975         * Misc/WebGraphicsExtras.c:
976         (WebConvertBGRAToARGB):
977
978 2007-11-19  Brady Eidson <beidson@apple.com>
979
980         Reviewed by Maciej
981
982         Finished hooking up the WebKit API for database management.
983         Most of the API is actually implemented in WebCore and some of those methods might
984         only be stubs for now.
985
986         * Storage/WebDatabaseManager.mm:
987         (-[WebDatabaseManager origins]): Call through to the WebCore tracker and construct an API result
988         (-[WebDatabaseManager databasesWithOrigin:]): Ditto
989         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Ditto
990
991         * Storage/WebSecurityOrigin.mm:
992         (-[WebSecurityOrigin usage]): Call through to WebCore
993         (-[WebSecurityOrigin quota]): Ditto
994         (-[WebSecurityOrigin setQuota:]): Ditto
995         (-[WebSecurityOrigin _core]): Get WebCore version of this object
996         * Storage/WebSecurityOriginInternal.h:
997
998 2007-11-17  Timothy Hatcher  <timothy@apple.com>
999
1000         Reviewed by Mark Rowe.
1001
1002         Bug 13470: i18n: The Web Inspector is not localizable
1003         http://bugs.webkit.org/show_bug.cgi?id=13470
1004
1005         Implement the localizedStringsURL() client method to return the
1006         localized URL of InspectorLocalizedStrings.js in WebCore.
1007
1008         * WebCoreSupport/WebInspectorClient.h: Added localizedStringsURL.
1009         * WebCoreSupport/WebInspectorClient.mm:
1010         (WebInspectorClient::localizedStringsURL): Added.
1011         (WebInspectorClient::updateWindowTitle): Localized the window title.
1012         (-[WebInspectorWindowController init]): Remove a FIXME that dosen't make sense anymore.
1013         (-[WebInspectorWindowController initWithInspectedWebView:]): Code style cleanup.
1014
1015 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
1016
1017         Reviewed by Darin.
1018
1019         http://bugs.webkit.org/show_bug.cgi?id=15969
1020         Eliminate Editor::deleteRange()
1021
1022         * WebView/WebHTMLView.mm:
1023         (+[WebHTMLView initialize]):
1024         (-[WebHTMLView yank:]):
1025         (-[WebHTMLView yankAndSelect:]):
1026         (-[WebHTMLView setMark:]):
1027         (-[WebHTMLView deleteToMark:]):
1028         (-[WebHTMLView selectToMark:]):
1029         (-[WebHTMLView swapWithMark:]):
1030         Pushed all kill ring methods to WebCore. They were guilty of using Editor::deleteRange()!
1031
1032 2007-11-16  Mark Rowe  <mrowe@apple.com>
1033
1034         Reviewed by Tim Hatcher.
1035
1036         Build WebCore as a sub-framework of WebKit in all configurations.
1037
1038         * Configurations/WebKit.xcconfig:
1039
1040 2007-11-16  John Sullivan  <sullivan@apple.com>
1041
1042         Reviewed by Brady
1043
1044         * WebKit.exp:
1045         Exported some new database-related symbols
1046
1047 2007-11-16  Brady Eidson  <beidson@apple.com>
1048
1049         Reviewed by John
1050
1051         Database management API tweaks
1052
1053         Fleshed out "WebSecurityOrigin" to be the API object representing an origin.  This relieves some
1054         burden off WebDatabaseManager and allows usage/quota operations on the SecurityOrigin object itself
1055
1056         Also added a new subdirectory for Storage related API - Why are we afraid to add new directories to
1057         the WebKit tree?
1058
1059         * Misc/WebSecurityOrigin.mm: Removed.
1060         * Misc/WebSecurityOriginInternal.h: Removed.
1061         * Misc/WebSecurityOriginPrivate.h: Removed.
1062
1063         * Storage/WebDatabaseManager.mm: Work in terms of WebSecurityOrigin
1064         * Storage/WebDatabaseManagerPrivate.h:
1065
1066         * Storage/WebSecurityOrigin.mm: Added.
1067         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
1068         (-[WebSecurityOriginPrivate initWithWebCoreSecurityOrigin:]):
1069         (-[WebSecurityOriginPrivate finalize]):
1070         (-[WebSecurityOriginPrivate dealloc]):
1071         (-[WebSecurityOrigin initWithProtocol:domain:]):
1072         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1073         (-[WebSecurityOrigin protocol]):
1074         (-[WebSecurityOrigin domain]):
1075         (-[WebSecurityOrigin port]):
1076         (-[WebSecurityOrigin usage]): 
1077         (-[WebSecurityOrigin quota]):
1078         (-[WebSecurityOrigin setQuota:]): Clients will set quotas on the WebSecurityOrigin object itself
1079         (-[WebSecurityOrigin dealloc]):
1080         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
1081         * Storage/WebSecurityOriginInternal.h: Added.
1082         * Storage/WebSecurityOriginPrivate.h: Added.
1083
1084 2007-11-15  Brady Eidson  <beidson@apple.com>
1085
1086         Reviewed by John
1087
1088         Stubbing out everything required for a WebKit API for databases
1089
1090         These interfaces seem to provide everything we need for UI and management at the browser level
1091
1092         * Misc/WebDatabaseManager.h: Removed.
1093         * Misc/WebDatabaseManager.mm: Removed.
1094         * Misc/WebDatabaseManagerPrivate.h: Removed.
1095
1096         * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
1097           (protocol, domain, and port)
1098         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
1099         (-[WebSecurityOriginPrivate dealloc]):
1100         (-[WebSecurityOrigin initWithProtocol:domain:]):
1101         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1102         (-[WebSecurityOrigin protocol]):
1103         (-[WebSecurityOrigin domain]):
1104         (-[WebSecurityOrigin port]):
1105         (-[WebSecurityOrigin dealloc]):
1106         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
1107         * Misc/WebSecurityOriginInternal.h: Added.
1108         * Misc/WebSecurityOriginPrivate.h: Added.
1109
1110         * Storage/WebDatabaseManager.mm: Added.
1111         (+[WebDatabaseManager sharedWebDatabaseManager]):
1112         (-[WebDatabaseManager origins]):  Get a list of all origins currently tracked
1113         (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
1114         (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
1115         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
1116         (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
1117         (-[WebDatabaseManager deleteAllDatabases]):
1118         (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
1119         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
1120         * Storage/WebDatabaseManagerPrivate.h: Added.
1121         * Storage/WebDatabaseManagerInternal.h: Added.
1122         (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
1123
1124         * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
1125         * Storage/WebDatabaseTrackerClient.mm: Added.
1126         (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
1127         (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
1128         (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
1129         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
1130         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
1131
1132         * WebView/WebView.mm:
1133         (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
1134           Database-related things here
1135
1136 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
1137
1138         Reviewed by Anders Carlsson.
1139         
1140         Renamed Shared to RefCounted.
1141
1142         * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
1143         * ForwardingHeaders/wtf/Shared.h: Removed.
1144         * WebCoreSupport/WebContextMenuClient.h:
1145
1146 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
1147
1148         Reviewed by Sam Weinig.
1149
1150         Moved Shared.h into wtf so it could be used in more places.
1151
1152         * ChangeLog:
1153         * WebCoreSupport/WebContextMenuClient.h:
1154
1155 2007-11-13  John Sullivan  <sullivan@apple.com>
1156
1157         Reviewed by Darin.
1158
1159         removed recently-added PreferredType concept; we found a better way to do what
1160         ths was accomplishing
1161
1162         * WebCoreSupport/WebChromeClient.mm:
1163         (WebChromeClient::createWindow):
1164         removed use of PreferredType
1165
1166 2007-11-13  John Sullivan  <sullivan@apple.com>
1167
1168         Reviewed by Dan Bernstein.
1169         
1170         - fixed <rdar://problem/5567954> REGRESSION (Safari 2-3): Autofill no longer automatically fills in 
1171         form fields other than the one you're typing into
1172
1173         * WebCoreSupport/WebEditorClient.mm:
1174         (selectorForKeyEvent):
1175         correct the key identifier strings for Tab and Esc; these were updated in WebCore as part of r21445
1176         but didn't get updated here.
1177
1178 2007-11-12  Josh Aas  <joshmoz@gmail.com>
1179
1180         Reviewed by Darin.
1181
1182         - http://bugs.webkit.org/show_bug.cgi?id=15946
1183           add NPPValue NPPVpluginDrawingModel (Mozilla bug 403418 compat)
1184
1185         * Plugins/WebBaseNetscapePluginView.mm:
1186         (-[WebBaseNetscapePluginView setVariable:value:]):
1187
1188 2007-11-12  Alexey Proskuryakov  <ap@webkit.org>
1189
1190         Reviewed by Darin.
1191
1192         http://bugs.webkit.org/show_bug.cgi?id=15954
1193         Move DOM Selection operations out of SelectionController
1194
1195         * WebView/WebHTMLView.mm:
1196         (-[WebHTMLView _expandSelectionToGranularity:]):
1197         (-[WebHTMLView selectToMark:]):
1198         (-[WebHTMLView swapWithMark:]):
1199         * WebView/WebView.mm:
1200         (-[WebView setSelectedDOMRange:affinity:]):
1201         Adapted for SelectionController::setSelectedRange() now returning a bool.
1202
1203 2007-11-12  Oliver Hunt  <oliver@apple.com>
1204
1205         Reviewed by Darin and Geoff.
1206
1207         <rdar://problem/5522011> The content of the password field of 
1208         Safari is displayed by reconversion.
1209
1210         Some input methods (notably Kotoeri) can incorrectly provide 
1211         access to the raw text of a password field.  To work around 
1212         this we forcefully override the inputContext whenever a password
1213         field is active.
1214
1215         * WebView/WebHTMLView.mm:
1216         (-[WebHTMLView inputContext]):
1217
1218 2007-11-12  John Sullivan  <sullivan@apple.com>
1219
1220         Reviewed by Tim Hatcher
1221         
1222         - speculative fix for <rdar://problem/5509989> CrashTracer: [USER] 1 crash in Safari at com.apple.WebKit: 
1223         -[WebPDFView(FileInternal) _updatePreferencesSoon] + 56
1224         
1225         The crash is probably due to messaging a dealloc'ed dataSource ivar. The dataSource ivar isn't retained
1226         by this class, but should be. (It is retained by WebHTMLView, e.g.).
1227
1228         * WebView/WebPDFView.mm:
1229         (-[WebPDFView dealloc]):
1230         release dataSource ivar
1231         (-[WebPDFView setDataSource:]):
1232         retain dataSource ivar
1233
1234 2007-11-09  Tristan O'Tierney  <tristan@apple.com>
1235
1236         Reviewed by Timothy Hatcher.
1237         
1238         This patch is for the WebKit side of <rdar://problem/5591115>.
1239         We need a way to tell context menu navigations, such as "Open in New Window"
1240         to override any sort of browser preference for tab based navigation.
1241
1242         * WebCoreSupport/WebChromeClient.mm:
1243         (WebChromeClient::createWindow):
1244         Pass up the new preferredType parameter as a string.
1245         
1246 2007-11-09  Timothy Hatcher  <timothy@apple.com>
1247
1248         Reviewed by John.
1249
1250         <rdar://problem/5103720> REGRESSION: [WebView stringByEvaluatingJavaScriptFromString:] fails if "return" is used
1251
1252         Extend the linked on or after check to every application when a script passed to
1253         stringByEvaluatingJavaScriptFromString: has a return statement. Before the check
1254         was limited to VitalSource Bookshelf, but other developers are running into this.
1255
1256         * Misc/WebKitVersionChecks.h: Add the WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK define.
1257         * WebView/WebDocumentLoaderMac.mm:
1258         (needsDataLoadWorkaround): Use WEBKIT_FIRST_VERSION_WITHOUT_ADOBE_INSTALLER_QUIRK sicne the
1259           WebKitLinkedOnOrAfter check here was about the Adobe installer, not VitalSource.
1260         * WebView/WebView.mm:
1261         (-[WebView stringByEvaluatingJavaScriptFromString:]): Remove the bundle ID check and use
1262           WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK for the WebKitLinkedOnOrAfter call.
1263
1264 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
1265
1266         Build Fix.
1267
1268         * WebCoreSupport/WebFrameLoaderClient.h:
1269         * WebCoreSupport/WebFrameLoaderClient.mm:
1270         (WebFrameLoaderClient::windowObjectCleared):
1271
1272 2007-11-07  Darin Adler  <darin@apple.com>
1273
1274         Reviewed by Steve.
1275
1276         - removed some unused WebCore bridge methods
1277
1278         * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
1279
1280         * WebCoreSupport/WebFrameLoaderClient.mm:
1281         (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
1282         using the bridge object.
1283
1284 2007-11-06  Mark Rowe  <mrowe@apple.com>
1285
1286         Rubber-stamped by Dave Kilzer.
1287
1288         Move Mac files from WebKit into WebKit/mac.
1289
1290         * Carbon: Copied from WebKit/Carbon.
1291         * ChangeLog: Copied from WebKit/ChangeLog.
1292         * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03.
1293         * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09.
1294         * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14.
1295         * Configurations: Copied from WebKit/Configurations.
1296         * DOM: Copied from WebKit/DOM.
1297         * DefaultDelegates: Copied from WebKit/DefaultDelegates.
1298         * ForwardingHeaders: Copied from WebKit/ForwardingHeaders.
1299         * History: Copied from WebKit/History.
1300         * Info.plist: Copied from WebKit/Info.plist.
1301         * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make.
1302         * Misc: Copied from WebKit/Misc.
1303         * Panels: Copied from WebKit/Panels.
1304         * Plugins: Copied from WebKit/Plugins.
1305         * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt.
1306         * Resources: Copied from WebKit/Resources.
1307         * WebCoreSupport: Copied from WebKit/WebCoreSupport.
1308         * WebInspector: Copied from WebKit/WebInspector.
1309         * WebKit.exp: Copied from WebKit/WebKit.exp.
1310         * WebKit.order: Copied from WebKit/WebKit.order.
1311         * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h.
1312         * WebView: Copied from WebKit/WebView.
1313         * icu: Copied from WebKit/icu.
1314
1315 2007-11-06  Alexey Proskuryakov  <ap@webkit.org>
1316
1317         Reviewed by Darin.
1318
1319         http://bugs.webkit.org/show_bug.cgi?id=15847
1320         Some editing cleanup
1321
1322         No change in functionality.
1323
1324         * WebView/WebHTMLView.mm:
1325         (-[WebHTMLView deleteToEndOfLine:]):
1326         (-[WebHTMLView deleteToEndOfParagraph:]):
1327         WebCore had a duplicate of the same logic already. We are passing a boundary value to
1328         a function that expects granularity, this may need to be straightened out in the future.
1329
1330 2007-11-05  John Sullivan  <sullivan@apple.com>
1331
1332         * WebView/WebView.mm:
1333         (-[WebView _searchWithSpotlightFromMenu:]):
1334
1335         Teeny style tweak to test svn access on other machine
1336
1337 2007-11-05  John Sullivan  <sullivan@apple.com>
1338
1339         * WebView/WebView.mm:
1340         (-[WebView computedStyleForElement:pseudoElement:]):
1341         
1342         Teeny style tweak to test svn access
1343
1344 2007-11-02  Tristan O'Tierney  <tristan@apple.com>
1345
1346         Reviewed by Darin Adler.
1347
1348         * DefaultDelegates/WebDefaultUIDelegate.m:
1349         (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
1350         Forward the UI delegate to call webView:createWebViewWithRequest: if
1351         this method doesn't exist.
1352         
1353         * WebCoreSupport/WebFrameLoaderClient.mm:
1354         (WebFrameLoaderClient::dispatchCreatePage):
1355         * Plugins/WebBaseNetscapePluginView.mm:
1356         (-[WebBaseNetscapePluginView loadPluginRequest:]):
1357         * WebView/WebView.mm:
1358         (-[WebView _openNewWindowWithRequest:]):
1359         Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
1360         
1361         * WebCoreSupport/WebChromeClient.h:
1362         * WebCoreSupport/WebChromeClient.mm:
1363         (WebChromeClient::createWindow):
1364         Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
1365         Removed createModalDialog to use new createWindow function.
1366         
1367         * WebView/WebUIDelegatePrivate.h:
1368         Added new webView:createWebViewWithRequest:windowFeatures: method.
1369
1370 2007-11-05  Geoffrey Garen  <ggaren@apple.com>
1371
1372         Reviewed by Darin Adler.
1373         
1374         http://bugs.webkit.org/show_bug.cgi?id=15835
1375
1376         Small adaptations to new KJS::List class.
1377
1378         * ForwardingHeaders/kjs/value.h: Added.
1379
1380 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
1381
1382         Sort files(...); sections of Xcode project files.
1383
1384         Rubber-stamped by Darin.
1385
1386         * WebKit.xcodeproj/project.pbxproj:
1387
1388 2007-11-02  Antti Koivisto  <antti@apple.com>
1389
1390         Reviewed by Darin.
1391         
1392         Add method to enable video composition.
1393
1394         * WebCoreSupport/WebSystemInterface.m:
1395         (InitWebCoreSystemInterface):
1396
1397 2007-11-02  Darin Adler  <darin@apple.com>
1398
1399         Reviewed by Mitz.
1400
1401         - fix problem I ran into while doing some testing on Mac for
1402           <rdar://problem/5530185> WebKit does not show <object>
1403           fallback content when both URL and MIME type is omitted
1404
1405         I don't know how to reproduce this failure in DumpRenderTree, so there is no
1406         regression test.
1407
1408         * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including
1409         the didSendError local variable. Instead we just set the error to nil once
1410         we've sent it.
1411         * Plugins/WebNullPluginView.mm:
1412         (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that
1413         the null plug-in image code is separate from the rest of the function and
1414         so that the whole thing is not inside an if statement. Also don't hold a
1415         reference to the DOM element if there is no error to report.
1416         (-[WebNullPluginView reportFailure]): Added. Does the actual delegate
1417         callback. Happens back at the top level of the run loop so it doesn't
1418         fire deep inside layout. Also wrote this so that it is guaranteed not to
1419         reenter and so that it can handle the case where the delegate destroys
1420         the world (including this object). NOTE: This is not a real, general
1421         solution to the problem of plug-ins that do work inside layout. We will need
1422         a more general fix that works for other plug-ins, and we'll track that with
1423         a separate bug report.
1424         (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code;
1425         changed so it just does a performSelector:afterDelay:0.
1426
1427 2007-11-02  Mark Rowe  <mrowe@apple.com>
1428
1429         Reviewed by Darin Adler.
1430
1431         Fix http://bugs.webkit.org/show_bug.cgi?id=15780
1432         Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
1433
1434         * WebCoreSupport/WebFrameLoaderClient.mm:
1435         (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
1436         in the page coordinate system rather than the client area coordinate system.
1437
1438 2007-11-01  Dan Bernstein  <mitz@apple.com>
1439
1440         Reviewed by Oliver Hunt.
1441
1442         - fix an assertion failure when Command-Tabbing out of Safari
1443
1444         * WebView/WebHTMLView.mm:
1445         (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to
1446         WebCore.
1447
1448 2007-11-01  Justin Garcia  <justin.garcia@apple.com>
1449
1450         Reviewed by Oliver Hunt.
1451         
1452         <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
1453         
1454         No need to match style when pasting plain text, since the fragment we build for plain text
1455         won't have any style information on it.
1456
1457         * WebView/WebHTMLView.mm:
1458         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no
1459         longer a need to know whether this function chosePlaintext.
1460         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
1461         (-[WebHTMLView _documentFragmentFromPasteboard:]):
1462
1463 2007-10-31  Timothy Hatcher  <timothy@apple.com>
1464
1465         Reviewed by John Sullivan.
1466
1467         Move the developer extras preference to WebPreferences.
1468
1469         * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey
1470         * WebView/WebPreferences.m:
1471         (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO.
1472         (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras
1473           and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey.
1474         (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey.
1475         * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:.
1476         * WebView/WebView.mm:
1477         (+[WebView _developerExtrasEnabled]): Removed.
1478         (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled.
1479         * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled.
1480
1481 2007-10-30  David D. Kilzer  <ddkilzer@webkit.org>
1482
1483         Generated files missing from WebCore's Xcode project file
1484         <http://bugs.webkit.org/show_bug.cgi?id=15406>
1485
1486         Reviewed by Darin.
1487
1488         Added the following private header files to MigrateHeaders.make:
1489
1490         - DOMCSSStyleSheetPrivate.h
1491         - DOMEventPrivate.h
1492         - DOMHTMLCollectionPrivate.h
1493         - DOMHTMLEmbedElementPrivate.h
1494         - DOMHTMLIFrameElementPrivate.h
1495         - DOMHTMLObjectElementPrivate.h
1496         - DOMHTMLSelectElementPrivate.h
1497
1498         * MigrateHeaders.make:
1499
1500 2007-10-29  Antti Koivisto  <antti@apple.com>
1501
1502         Reviewed by Maciej.
1503         
1504         Some SPIs for media support.
1505
1506         * WebCoreSupport/WebSystemInterface.m:
1507         (InitWebCoreSystemInterface):
1508
1509 2007-10-29  Timothy Hatcher  <timothy@apple.com>
1510
1511         Reviewed by John Sullivan.
1512
1513         Various semi-related changes:
1514         - A WebView can now be asked for it's WebInspector. There is one
1515           WebInspector per WebView. 
1516         - Refactor the WebInspector class and move obsolete methods to
1517           a special category.
1518         - Add new WebInspector methods to show, hide and show the
1519           console/timeline panels.
1520         - Add an isDisabled method to WebCache.
1521         - Allow WebLocalizableStrings.h to be used in C files.
1522
1523         * Misc/WebCache.h: Add isDisabled.
1524         * Misc/WebCache.mm:
1525         (+[WebCache isDisabled]): New method.
1526
1527         * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files.
1528
1529         * WebCoreSupport/WebInspectorClient.mm:
1530         (-[WebInspectorWindowController showWindow:]): Call super if already visible
1531           so the window will be ordered front.
1532         (-[WebInspectorWindowController showWebInspector:]): Method used by menu items,
1533           so they are enabled and work when the Inspector window is key.
1534         (-[WebInspectorWindowController showErrorConsole:]): Ditto.
1535         (-[WebInspectorWindowController showNetworkTimeline:]): Ditto.
1536
1537         * WebInspector/WebInspector.h: Add and remove methods.
1538         * WebInspector/WebInspector.mm:
1539         (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced.
1540           Clears the _webView pointer.
1541         (-[WebInspector show:]): Calls thru to the Page's InspectorController.
1542         (-[WebInspector showConsole:]): Ditto.
1543         (-[WebInspector showTimeline:]): Ditto.
1544         (-[WebInspector close:]): Ditto.
1545         (-[WebInspector attach:]): Ditto.
1546         (-[WebInspector detach:]): Ditto.
1547         (+[WebInspector sharedWebInspector]): Moved to the obsolete category.
1548         (+[WebInspector webInspector]): Ditto.
1549         (-[WebInspector setWebFrame:]): Ditto.
1550         (-[WebInspector window]): Ditto.
1551         (-[WebInspector showWindow:]): Ditto.
1552
1553         * WebView/WebView.mm:
1554         (-[WebViewPrivate dealloc]): Release the WebInspector.
1555         (-[WebView _close]): Call webViewClosed on the WebInspector.
1556         (-[WebView inspector]): Create a WebInspector if needed and return it.
1557         * WebView/WebViewPrivate.h: Add the inspector method.
1558
1559 2007-10-30  Adele Peterson  <adele@apple.com>
1560
1561         Reviewed by Darin.
1562
1563         WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
1564         <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
1565
1566         * WebView/WebHTMLView.mm:
1567         (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
1568         (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
1569         (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
1570
1571 2007-10-27  Mark Ambachtsheer  <mark.a@apple.com>
1572
1573         Reviewed by Darin.
1574
1575         Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at 
1576         (0, 0) the clipping rectangle is not correct.
1577         Added the origin to the window clip rectangle coordinates to account for plugins that
1578         don't originate at (0,0); affects code for offscreen GWorlds only.
1579
1580         * Plugins/WebBaseNetscapePluginView.mm:
1581         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1582
1583 2007-10-26  Adele Peterson  <adele@apple.com>
1584
1585         Reviewed by Oliver.
1586
1587         Adding WebKitSystemInterface support for the caps lock indicator
1588
1589         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1590
1591 2007-10-25  David Hyatt  <hyatt@apple.com>
1592
1593         Fix for bug 15672, backgrounds don't tile properly inside transforms.  This patch fixes tiling
1594         of backgrounds inside CSS transforms and also of HTML content with background images inside SVG
1595         transforms.
1596
1597         Reviewed by aroben and mmitz
1598
1599         * WebCoreSupport/WebSystemInterface.m:
1600         (InitWebCoreSystemInterface):
1601         * WebKit.xcodeproj/project.pbxproj:
1602
1603 2007-10-25  John Sullivan  <sullivan@apple.com>
1604
1605         Reviewed by Tim Hatcher
1606         
1607         Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it
1608         always does, when available.
1609
1610         * WebView/WebPreferencesPrivate.h:
1611         removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with
1612         a comment that says that they can be removed when no longer needed. That time is now.
1613
1614         * WebView/WebPreferences.m:
1615         (+[WebPreferences initialize]):
1616         removed WebKitUsePDFPreviewViewPreferenceKey
1617         (-[WebPreferences _usePDFPreviewView]):
1618         removed
1619         (-[WebPreferences _setUsePDFPreviewView:]):
1620         removed
1621
1622         * WebView/WebPDFView.mm:
1623         (-[WebPDFView initWithFrame:]):
1624         don't check _usePDFPreviewView
1625         
1626         * WebView/WebPreferenceKeysPrivate.h:
1627         removed WebKitUsePDFPreviewViewPreferenceKey
1628         
1629 2007-10-24  Timothy Hatcher  <timothy@apple.com>
1630
1631         Reviewed by Mark Rowe.
1632
1633         <rdar://problem/5069711> OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard
1634
1635         Use the WebKitSystemInterface that matches the system version.
1636
1637         * Configurations/DebugRelease.xcconfig:
1638         * WebKit.xcodeproj/project.pbxproj:
1639
1640 2007-10-24  Brady Eidson  <beidson@apple.com>
1641
1642         Reviewed by Anders
1643
1644         <rdar://problem/5554130> DatabaseTracker.o has a global initializer
1645
1646         * Misc/WebDatabaseManager.mm:
1647         (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
1648
1649 2007-10-23  Mark Rowe  <mrowe@apple.com>
1650
1651         Build fix for Eric's build fix in r26916.
1652
1653         * MigrateHeaders.make:
1654
1655 2007-10-22  Eric Seidel  <eric@webkit.org>
1656
1657         Reviewed by Maciej.
1658
1659         * MigrateHeaders.make: copy over font-face related DOM headers
1660
1661 2007-10-22  Andrew Wellington  <proton@wiretapped.net>
1662
1663         Reviewed by Mark Rowe.
1664         
1665         Fix for local database support after r26879
1666         Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
1667
1668         * Configurations/WebKit.xcconfig:
1669
1670 2007-10-19  Brady Eidson <beidson@apple.com>
1671
1672         Reviewed by Tim Hatcher
1673
1674         Added support for Chrome prompts required by the Storage API
1675         Added support API for future managing of databases from the WebKit client
1676         Added preference and initialization for the databases path
1677
1678         * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
1679           remove the current available databases
1680         * Misc/WebDatabaseManager.mm: Added.
1681         (+[WebDatabaseManager origins]):
1682         (+[WebDatabaseManager databasesWithOrigin:]):
1683         (+[WebDatabaseManager deleteAllDatabases]):
1684         (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
1685         (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
1686         (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
1687         * Misc/WebDatabaseManagerPrivate.h: Added.
1688
1689         * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for 
1690           an origin exceeding its size limit
1691         * WebCoreSupport/WebChromeClient.mm:
1692         (WebChromeClient::runDatabaseSizeLimitPrompt):
1693         * WebKit.xcodeproj/project.pbxproj:
1694         * WebView/WebUIDelegate.h:
1695
1696         * WebView/WebView.mm:
1697         (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
1698         * WebView/WebViewInternal.h:
1699
1700 2007-10-19  John Sullivan  <sullivan@apple.com>
1701
1702         Reviewed by Tim Hatcher
1703         
1704         - fixed <rdar://problem/5540325> REGRESSION (2.0.4-3): History menu looks odd after clearing history
1705
1706         * History/WebHistory.mm:
1707         (-[WebHistoryPrivate removeAllItems]):
1708         This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition
1709         to the other places where it's cleared.
1710
1711 2007-10-18  Dan Bernstein  <mitz@apple.com>
1712
1713         Tiger build fix.
1714
1715         * WebView/WebDataSource.mm:
1716         (-[WebDataSource _MIMETypeOfResponse:]):
1717
1718 2007-10-18  Dan Bernstein  <mitz@apple.com>
1719
1720         Reviewed by Adam Roben.
1721
1722         - fix <rdar://problem/5313523>
1723         REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard
1724
1725         * WebCoreSupport/WebFrameLoaderClient.mm:
1726         (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType.
1727         * WebView/WebDataSource.mm:
1728         (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around
1729         <rdar://problem/5321972> by testing for the case of an NSHTTPURLResponse
1730         with a MIMEType of application/octet-stream and a Content-Type header
1731         starting with text/plain and returning text/plain as the MIME type in
1732         that case.
1733         (-[WebDataSource _responseMIMEType]): Added. Used to get the correct
1734         response MIME type.
1735         (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType.
1736         (-[WebDataSource _makeRepresentation]): Ditto.
1737         (-[WebDataSource mainResource]): Ditto.
1738         (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and
1739         pass the MIME type explicitly.
1740         (-[WebDataSource subresourceForURL:]): Ditto.
1741         * WebView/WebDataSourcePrivate.h:
1742         * WebView/WebFrameView.mm:
1743         (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use
1744         _responseMIMEType.
1745         * WebView/WebResource.mm:
1746         (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this
1747         method to take a MIME type instead of extracting it from the response,
1748         so that WebDataSource could pass the correct MIME type.
1749         * WebView/WebResourcePrivate.h:
1750
1751 2007-10-17  Darin Adler  <darin@apple.com>
1752
1753         Reviewed by Mark Rowe.
1754
1755         - fix <rdar://problem/5183775> Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers]
1756
1757         * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
1758         Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object.
1759         It's safe to do that for functions that return integers or pointers, but not structures.
1760
1761 2007-10-16  David Kilzer  <ddkilzer@apple.com>
1762
1763         Reviewed by Timothy.
1764
1765         <rdar://problem/5544354> Wrong delegate method called in
1766         WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
1767
1768         * WebCoreSupport/WebFrameLoaderClient.mm:
1769         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name.
1770
1771 2007-10-16  Darin Adler  <darin@apple.com>
1772
1773         Reviewed by Adele.
1774
1775         - moved transpose command implementation into WebCore
1776
1777         * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
1778
1779 2007-10-16  Darin Adler  <darin@apple.com>
1780
1781         Reviewed by Maciej and Geoff (and looked over by Eric).
1782
1783         - http://bugs.webkit.org/show_bug.cgi?id=15519
1784           eliminate use of <ctype.h> for processing ASCII
1785
1786         * ForwardingHeaders/wtf/ASCIICType.h: Added.
1787         * ForwardingHeaders/wtf/DisallowCType.h: Added.
1788
1789         * WebKitPrefix.h: Include DisallowCType.h.
1790
1791         * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower.
1792         * WebView/WebHTMLView.mm:
1793         (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper.
1794         (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes,
1795         instead of using ispunct.
1796
1797 2007-10-16  John Sullivan  <sullivan@apple.com>
1798
1799         Reviewed by Adam Roben
1800         
1801         Cleaned up localizable strings
1802
1803         * English.lproj/Localizable.strings:
1804         updated
1805         * StringsNotToBeLocalized.txt:
1806         updated
1807         * WebKit.xcodeproj/project.pbxproj:
1808         StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
1809
1810 2007-10-15  Kevin Decker  <kdecker@apple.com>
1811
1812         Reviewed by Darin Adler.
1813         
1814         Fixed: <rdar://problem/5520541> REGRESSION: Broken image when forwarding certain email on Tiger
1815         
1816         * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
1817         too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
1818         that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
1819         load during first layout and not attach time. For this plug-in, loading at first layout is 
1820         expected and is consistent with Safari 2 behavior.
1821
1822 2007-10-15  John Sullivan  <sullivan@apple.com>
1823
1824         Reviewed by Geoff Garen
1825         
1826         Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
1827
1828         I made the following changes:
1829         - replaced NS_DURING with @try, and added opening brace if there wasn't one
1830         - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
1831         - removed NS_ENDHANDLER, and added a closing brace if there wasn't one
1832         - in a couple of places, fixed indentation therein
1833
1834         * Misc/WebIconDatabase.mm:
1835         (objectFromPathForKey):
1836         * WebView/WebHTMLView.mm:
1837         (-[WebHTMLView drawSingleRect:]):
1838         (-[WebHTMLView beginDocument]):
1839         (-[WebHTMLView deleteToMark:]):
1840         * WebView/WebView.mm:
1841         (-[WebView initWithCoder:]):
1842
1843 == Rolled over to ChangeLog-2007-10-14 ==