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