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