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