9fb89094f7eb4b2b5e8800caf92d713f3524a20c
[WebKit-https.git] / WebKit / win / ChangeLog
1 2009-04-21  Jon Honeycutt  <jhoneycutt@apple.com>
2
3         Allow the UI delegate to control cursor-setting.
4
5         Reviewed by Ada Chan.
6
7         * Interfaces/IWebUIDelegatePrivate.idl:
8         Added a function to the IWebUIDelegatePrivate5 interface.
9
10         * WebCoreSupport/WebChromeClient.cpp:
11         (WebChromeClient::setCursor):
12         Try to call the UI delegate's webViewSetCursor() method. If it fails,
13         fall back to calling SetCursor() with the passed cursor.
14
15         * WebCoreSupport/WebChromeClient.h:
16
17         * WebView.cpp:
18         (WebViewWndProc):
19         Call the Chrome's setCursor() method with the last set cursor.
20
21 2009-04-21  Dan Bernstein  <mitz@apple.com>
22
23         Reviewed by Jon Honeycutt.
24
25         - Windows part of fixing <rdar://problem/6755137> Action dictionary for
26           policy decision is missing keys when full-page zoom is used
27
28         * WebActionPropertyBag.cpp:
29         (WebActionPropertyBag::Read): Use absoluteLocation() instead of
30         clientX() and clientY(), which are adjusted for zoom.
31
32 2009-04-21  Dan Bernstein  <mitz@apple.com>
33
34         Reviewed by Jon Honeycutt.
35
36         - implement DOMNode::nodeName()
37
38         * DOMCoreClasses.cpp:
39         (DOMNode::nodeName):
40
41 2009-04-21  Steve Falkenburg  <sfalken@apple.com>
42
43         Minor clean-ups to WebKitCreateInstance change.
44         
45         Reviewed by Jon Honeycutt.
46
47         * WebKitCOMAPI.cpp:
48         (classFactory):
49         (WebKitCreateInstance):
50
51 2009-04-21  Steve Falkenburg  <sfalken@apple.com>
52
53         Add registry-free CoCreateInstance API for WebKit clients: WebKitCreateInstance.
54
55         Manifest-based registry-free COM continues to work for clients that have embedded
56         manifests with isolated COM information.
57         
58         Reviewed by Adam Roben.
59
60         * WebKit.vcproj/WebKit.def: Added WebKitCreateInstance.
61         * WebKit.vcproj/WebKit.vcproj: Link against rpcrt4.dll for UUID hashing.
62         * WebKit.vcproj/WebKit_debug.def: Added WebKitCreateInstance.
63         * WebKitCOMAPI.cpp: Added.
64         (CLSIDHash::hash):
65         (CLSIDHash::equal):
66         (CLSIDHashTraits::constructDeletedValue):
67         (CLSIDHashTraits::isDeletedValue):
68         (classFactory):
69         (WebKitCreateInstance): New API.
70         * WebKitCOMAPI.h: Added.
71
72 2009-04-21  Adam Roben  <aroben@apple.com>
73
74         Rename JavaScriptCore_debug.dll to JavaScriptCore.dll in the Debug
75         configuration
76
77         This matches the naming scheme for WebKit.dll, and will be necessary
78         once Safari links against JavaScriptCore.dll. This change also causes
79         run-safari not to fail (because the launcher printed by FindSafari was
80         always looking for JavaScriptCore.dll, never
81         JavaScriptCore_debug.dll).
82
83         Part of Bug 25305: can't run safari or drt on windows
84         <https://bugs.webkit.org/show_bug.cgi?id=25305>
85
86         Reviewed by Steve Falkenburg and Sam Weinig.
87
88         * WebKit.vcproj/WebKit.vcproj: Use $(WebKitDLLConfigSuffix) for naming
89         JavaScriptCore.{dll,lib}.
90
91 2009-04-20  Adam Roben  <aroben@apple.com>
92
93         Build fix
94
95         * MemoryStream.cpp:
96         (MemoryStream::Clone): Fix typo introduced when implementing
97         suggestions from patch review.
98
99 2009-04-20  Adam Roben  <aroben@apple.com>
100
101         First part of <rdar://6395825> It takes over 20 sec to launch Safari
102         with 500KB history file
103
104         This ports the changes that were made to WebKit/mac's WebHistory
105         implementation in r25275 to WebKit/win. WebHistory now stores a
106         HashMap from CFAbsoluteTime (stored as int64_t) to CFArray of
107         IWebHistoryItem*. The HashMap lets us look up the CFArray for a
108         particular day's history in constant time rather than linear time. The
109         precise reasons why we store the CFAbsoluteTime as an int64_t are lost
110         to the mists of time, but it is likely because these CFAbsoluteTimes
111         never have a decimal part, and integer comparisons are faster than
112         floating-point comparisons, so storing them as int64_t should improve
113         performance without losing precision. We also now use a binary search
114         instead of a linear search when determining the index at which to
115         insert a WebHistoryItem into its day's CFArray.
116
117         This patch reduces the time needed to load a 100,000-item
118         History.plist from ~15 seconds to ~7.5 seconds. Further improvements
119         could likely be made by reducing the number of string conversions,
120         reducing calls to CFTimeZone functions, and removing all the
121         WebHistoryItemsAdded notifications that are sent (Mac doesn't send any
122         while loading history).
123
124         Reviewed by Darin Adler.
125
126         * WebHistory.cpp:
127         (WebHistoryWriter::WebHistoryWriter): Changed to take a
128         DateToEntriesMap instead of a CFArrayRef. Initialize m_dateKeys to
129         contain the keys from m_entriesByDate in ascending order.
130         (WebHistoryWriter::writeHistoryItems): Now loops through m_dateKeys in
131         reverse order and gets the entries array from the DateToEntriesMap.
132         (WebHistory::WebHistory): Removed code to initialize
133         m_datesWithEntries (which has been removed) and m_entriesByDate (which
134         has been converted to a HashMap).
135         (WebHistory::removeAllItems): Clear out m_entriesByDate and
136         m_orderedLastVisitedDays.
137         (WebHistory::orderedLastVisitedDays): If we don't already have a
138         cached m_orderedLastVisitedDays array, create one by converting the
139         keys from m_entriesByDate to DATEs and sorting them in descending
140         order. Then copy m_orderedLastVisitedDays to the output buffer.
141         (WebHistory::orderedItemsLastVisitedOnDay): Updated to use findKey
142         instead of findIndex and to treat m_entriesByDate as a HashMap.
143         Now that the items in each day's CFArray are stored in descending
144         order (newest to oldest), we don't have to reverse them when filling
145         in the output buffer. (The old comment about putting the items in
146         oldest-to-newest order was incorrect -- it was putting them in
147         newest-to-oldest order.)
148
149         (WebHistory::addItemToDateCaches):
150         (WebHistory::removeItemFromDateCaches):
151         Changed to use findKey instead of findIndex and to treat
152         m_entriesByDate as a HashMap. If we're adding a key to or removing a
153         key from m_entriesByDate, also clear m_orderedLastVisitedDays so that
154         we will regenerate it for the current set of keys the next time it is
155         needed.
156
157         (timeIntervalForBeginningOfDay): Added. Returns the CFAbsoluteTime
158         that corresponds to the beginning of the day in which the passed-in
159         DATE occurs.
160         (WebHistory::findKey): Returns the key used in m_entriesByDate to
161         store the CFArray that should contain the IWebHistoryItem that
162         corresponds to the passed-in DATE. Replaces findIndex.
163         (WebHistory::insertItem): Changed to treat m_entriesByDate as a
164         HashMap rather than a CFArray. We now optimize for inserting at the
165         beginning and end of the array, and use a binary rather than linear
166         search when inserting into the middle of the array.
167         (WebHistory::data): Changed to treat m_entriesByDate as a HashMap.
168
169         * WebHistory.h: Changed m_entriesByDate to a DateToEntriesMap, removed
170         m_datesWithEntries, added m_orderedLastVisitedDays.
171
172 2009-04-20  Adam Roben  <aroben@apple.com>
173
174         Change MemoryStream::createInstance to return a COMPtr
175
176         Part of Bug 25294: All WebKit/win classes should return COMPtrs from
177         their static constructor members
178         <https://bugs.webkit.org/show_bug.cgi?id=25294>
179
180         Reviewed by Darin Adler.
181
182         * MemoryStream.cpp:
183         (MemoryStream::createInstance): Changed to return a COMPtr.
184         (MemoryStream::Clone): Updated for createInstance change.
185         * MemoryStream.h: Changed createInstance to return a COMPtr.
186
187         * WebArchive.cpp:
188         (WebArchive::data):
189         * WebCoreSupport/EmbeddedWidget.cpp:
190         (EmbeddedWidget::didReceiveData):
191         * WebDataSource.cpp:
192         (WebDataSource::data):
193         * WebHistory.cpp:
194         (WebHistory::data):
195         * WebIconFetcher.cpp:
196         (WebIconFetcherClient::finishedFetchingIcon):
197         * WebResource.cpp:
198         (WebResource::createInstance):
199         Updated for changes to MemoryStream::createInstance.
200
201 2009-04-20  Adam Roben  <aroben@apple.com>
202
203         Fix Bug 25295: Remove WebKit/win code that was used for Drosera
204         support
205
206         <https://bugs.webkit.org/show_bug.cgi?id=25295>
207
208         Reviewed by Sam Weinig.
209
210         * ForEachCoClass.h: Removed WebScriptDebugServer.
211
212         * Interfaces/WebKit.idl: Removed WebScriptDebugServer and references
213         to removed IDL files.
214
215         * WebKit.vcproj/Interfaces.vcproj:
216         * WebKit.vcproj/WebKit.vcproj:
217         Removed IDL and source files for IWebScriptCallFrame,
218         IWebScriptDebugListener, IWebScriptDebugServer, WebScriptCallFrame,
219         and WebScriptDebugServer.
220
221         * WebCoreSupport/WebFrameLoaderClient.cpp:
222         * WebKitClassFactory.cpp:
223         * WebKitDLL.cpp:
224         Removed #includes of WebScriptDebugServer.h.
225
226         * Interfaces/IWebScriptCallFrame.idl: Removed.
227         * Interfaces/IWebScriptDebugListener.idl: Removed.
228         * Interfaces/IWebScriptDebugServer.idl: Removed.
229         * WebScriptCallFrame.cpp: Removed.
230         * WebScriptCallFrame.h: Removed.
231         * WebScriptDebugServer.cpp: Removed.
232         * WebScriptDebugServer.h: Removed.
233
234 2009-04-20  Steve Falkenburg  <sfalken@apple.com>
235
236         Separate JavaScriptCore.dll from WebKit.dll.
237         Slight performance improvement or no change on benchmarks.
238         
239         Allows us to break a circular dependency between CFNetwork and WebKit on Windows,
240         and simplifies standalone JavaScriptCore builds.
241
242         Reviewed by Oliver Hunt.
243
244         * WebKit.vcproj/WebKit.def: Mark JavaScriptCore re-exports as deprecated.
245         * WebKit.vcproj/WebKit.vcproj: Link against JavaScriptCore.dll
246         * WebKit.vcproj/WebKit_debug.def: Mark JavaScriptCore re-exports as deprecated.
247
248 2009-04-17  Ada Chan  <adachan@apple.com>
249
250         <rdar://problem/6803905> Lots of ASSERTs firing when trying to clear history
251
252         Reviewed by Steve Falkenburg.
253
254         * WebHistory.cpp:
255         (WebHistory::data): Return null if there are no history items.
256
257 2009-04-17  Ada Chan  <adachan@apple.com>
258
259         - Fix a leak in WebHistoryItem::children() by adopting the created instance of WebHistoryItem.
260         - Remove the unnecessary call to QueryInterface() which is not related to the leak.
261
262         Reviewed by Adam Roben.
263
264         * WebHistoryItem.cpp:
265         (WebHistoryItem::children):
266
267 2009-04-17  Ada Chan  <adachan@apple.com>
268
269         Fix a leak in WebHistory::data().
270
271         Reviewed by Adam Roben.
272
273         * WebHistory.cpp:
274         (WebHistory::data):
275
276 2009-04-16  Alice Liu  <alice.liu@apple.com>
277
278         Reviewed by Mark Rowe.
279
280         Fix for heavy leakage of WebURLResponses seen during the stress test 
281
282         * WebCoreSupport/WebFrameLoaderClient.cpp:
283         (WebFrameLoaderClient::shouldCacheResponse):
284
285 2009-04-16  Xan Lopez  <xlopez@igalia.com>
286
287         Unreviewed build fix.
288
289         * WebView.cpp:
290
291 2009-04-16  Xan Lopez  <xlopez@igalia.com>
292
293         Reviewed by Sam Weinig.
294
295         https://bugs.webkit.org/show_bug.cgi?id=25241
296         Remove superfluous NotImplemented.h includes
297
298         * WebDownloadCFNet.cpp:
299         * WebURLAuthenticationChallengeSender.cpp:
300         * WebView.cpp:
301
302 2009-04-14  Adam Roben  <aroben@apple.com>
303
304         Remove support for profile-guided optimization on Windows
305
306         Rubber-stamped by Steve Falkenburg.
307
308         * WebKit.vcproj/WebKit.vcproj: Removed the Release_PGOInstrument and
309         Release_PGOOptimize configurations.
310
311 2009-04-13  Adam Roben  <aroben@apple.com>
312
313         Windows part 2 of <rdar://5438063> Saving history containing 100,000
314         entries causes pauses of 2s while browsing
315
316         Reviewed by Brady Eidson.
317
318         * Interfaces/IWebHistoryPrivate.idl: Added data, analagous to
319         WebKit/mac's -[WebHistory _data] method.
320
321         * WebHistory.cpp:
322         (WebHistory::saveHistoryGuts): Changed to call data() to get the data for
323         saving.
324         (WebHistory::data): Added. Returns the data for saving as an IStream.
325         (WebHistory::data): Added. Returns the data for saving as a CFDataRef.
326
327         * WebHistory.h: Added data.
328
329 2009-04-10  Steve Falkenburg  <sfalken@apple.com>
330
331         <rdar://problem/6676024> REGRESSION (PB-40B1): Safari crashes on launch on tablet PC
332         
333         r21436 changed the semantics of AXObjectCache::get() to not create
334         objects on demand. Changing this get() call into a getOrCreate() call
335         fixes the crash.
336         
337         Rubber stamped by Jon Honeycutt.
338
339         * AccessibleDocument.cpp:
340         (AccessibleDocument::AccessibleDocument):
341
342 2009-04-10  Adam Roben  <aroben@apple.com>
343
344         Add our invidual IDL files back to Interfaces.vcproj, but disable them
345
346         This allows the IDL files to be found in Solution Explorer.
347
348         Rubber-stamped in advance by Steve Falkenburg.
349
350         * WebKit.vcproj/Interfaces.vcproj:
351
352 2009-04-09  Adam Roben  <aroben@apple.com>
353
354         Windows part 1 of <rdar://problem/5438063> Saving history containing
355         100,000 entries causes pauses of 2s while browsing
356
357         Use HistoryPropertyListWriter to implement IWebHistory::saveToURL.
358
359         Reviewed by Darin Adler.
360
361         * WebHistory.cpp:
362         (WebHistoryWriter::WebHistoryWriter): Added.
363         (WebHistoryWriter::writeHistoryItems): Added. Loop backwards through
364         the entries for each date, and pass the corresponding
365         WebCore::HistoryItem to writeHistoryItem.
366         (WebHistory::saveHistoryGuts): Use WebHistoryWriter to serialize
367         m_entriesByDate, then write the serialized data to disk using
368         CFWriteStream.
369
370         * WebHistory.h: Removed datesArray.
371
372 2009-04-08  Adam Roben  <aroben@apple.com>
373
374         Fix security/block-test-no-port.html on Windows
375
376         Reviewed by Beth Dakin.
377
378         * WebMutableURLRequest.cpp:
379         (WebMutableURLRequest::mainDocumentURL): Return the ResourceRequest's
380         mainDocumentURL, not its URL.
381
382 2009-04-01  Darin Adler  <darin@apple.com>
383
384         Reviewed by Geoff Garen.
385
386         Bug 22378: Crash submitting a form when parsing an XHTML document
387         https://bugs.webkit.org/show_bug.cgi?id=22378
388         rdar://problem/6388377
389
390         * WebFrame.cpp:
391         (WebFrame::dispatchWillSubmitForm): Updated for the new
392         textFieldValues function in FormState.
393
394 2009-03-30  Adam Roben  <aroben@apple.com>
395
396         Build fixes after recent FrameLoader changes
397
398         * WebCoreSupport/WebContextMenuClient.cpp:
399         (WebContextMenuClient::searchWithGoogle): Updated to match
400         urlSelected's current signature. We pass true for the userGesture
401         parameter, since the user must have selected this item from the
402         context menu.
403
404         * WebCoreSupport/WebFrameLoaderClient.cpp: Removed
405         loadURLIntoChildFrame.
406         (WebFrameLoaderClient::createFrame): Changed to call
407         FrameLoader::loadURLIntoChildFrame. This probably should have been
408         done way back around r31281 when that function was added.
409
410         * WebCoreSupport/WebFrameLoaderClient.h: Removed
411         loadURLIntoChildFrame.
412
413 2009-03-27  Adam Roben  <aroben@apple.com>
414
415         Don't include substitute data URLs in global history redirect chains
416
417         <rdar://6690169>
418
419         Reviewed by Darin Adler.
420
421         * WebCoreSupport/WebFrameLoaderClient.cpp:
422         (WebFrameLoaderClient::updateGlobalHistory): Don't call
423         updateGlobalHistoryRedirectLinks. FrameLoader calls this for us now.
424         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
425         Added an assertion to help catch cases where we might be adding a
426         substitute data URL into a redirect chain.
427
428 2009-03-26  Dan Bernstein  <mitz@apple.com>
429
430         Reviewed by Adam Roben.
431
432         - add close() to the WebView API.
433
434         * Interfaces/IWebView.idl:
435         * WebView.cpp:
436         (WebView::close):
437         * WebView.h:
438
439 2009-03-24  Brent Fulgham  <bfulgham@webkit.org>
440
441         Reviewed by Adam Roben.
442
443         https://bugs.webkit.org/show_bug.cgi?id=24779
444         Conditionalize CFNetwork-specific code in WebView to permit
445         support for other network backends.
446
447         * WebView.cpp:
448         (WebView::setCacheModel): Add CFNETWORK check around CFNetwork
449         specific cache implementation.
450         (updateSharedSettingsFromPreferencesIfNeeded): Add CFNETWORK
451         check around use of CFHTTPCookie code.
452
453 2009-03-23  Sam Weinig  <sam@webkit.org>
454
455         Reviewed by Dan Bernstein.
456
457         Fix for <rdar://problem/6140966>
458         Empty Caches does not clear the Cross-site XMLHttpRequest preflight cache
459
460         * WebCache.cpp:
461         (WebCache::empty): Also add application cache emptying to match the mac.
462
463 2009-03-18  Steve Falkenburg  <sfalken@apple.com>
464
465         Add webViewClosing to private UI delegate.
466
467         Reviewed by Adam Roben.
468
469         * Interfaces/IWebUIDelegatePrivate.idl:
470         * Interfaces/WebKit.idl:
471         * WebView.cpp:
472         (WebView::close):
473
474 2009-03-17  Dan Bernstein  <mitz@apple.com>
475
476         Reviewed by Adam Roben.
477
478         - WebKit part of adding a mechanism for controlling the caching of
479           responses through WebFrameLoaderClient
480
481         * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added the
482         IWebResourceLoadDelegatePrivate3 interface, containing the new
483         delegate method shouldCacheResponse().
484
485         * Interfaces/IWebURLRequest.idl: Added the isEqual() method.
486
487         * WebCoreSupport/WebFrameLoaderClient.cpp:
488         (WebFrameLoaderClient::shouldCacheResponse): Implemented this new
489         FrameLoaderDelegate method by calling through to the resource load
490         delegate, if it implements shouldCacheResponse(), and returning true
491         otherwise.
492
493         * WebCoreSupport/WebFrameLoaderClient.h:
494
495         * WebMutableURLRequest.cpp:
496         (WebMutableURLRequest::isEqual): Added.
497         (WebMutableURLRequest::setValue): Implemented.
498
499         * WebMutableURLRequest.h: Declared isEqual().
500
501 2009-03-16  Darin Adler  <darin@apple.com>
502
503         Reviewed by Dan Bernstein.
504
505         <rdar://problem/6577174> Rename the text directionality submenus to “Paragraph Direction” and “Selection Direction”
506
507         For now, change only the localized strings, not the terminology in the code.
508
509         * WebCoreLocalizedStrings.cpp:
510         (WebCore::contextMenuItemTagWritingDirectionMenu): Changed string here.
511         (WebCore::contextMenuItemTagTextDirectionMenu): And here.
512
513 2009-03-16  Adam Roben  <aroben@apple.com>
514
515         Add IWebFramePrivate::isDisplayingStandaloneImage
516
517         This uses the same logic that -[WebFrame _isDisplayingStandaloneImage]
518         uses.
519
520         Reviewed by Darin Adler.
521
522         * Interfaces/IWebFramePrivate.idl: Added isDisplayingStandaloneImage.
523
524         * WebFrame.cpp:
525         (WebFrame::isDisplayingStandaloneImage): Added. Returns true if our
526         Document is an image document.
527
528         * WebFrame.h: Added isDisplayingStandaloneImage.
529
530 2009-03-12  Peter Kasting  <pkasting@google.com>
531
532         Reviewed by Darin Fisher.
533
534         https://bugs.webkit.org/show_bug.cgi?id=24502
535         Make horizontal scrolling on Windows always go the correct direction.
536
537         * WebView.cpp:
538         (WebView::mouseWheel):
539         (WebViewWndProc):
540         * WebView.h:
541
542 2009-03-12  Adam Roben  <aroben@apple.com>
543
544         Implement DOMHTMLDocument::title
545
546         Reviewed by Dan Bernstein.
547
548         * DOMHTMLClasses.cpp:
549         (DOMHTMLDocument::title): Call through to WebCore::Document (with
550         obligatory COM error checking/type conversions).
551
552 2009-03-11  Adam Roben  <aroben@apple.com>
553
554         Export functions needed by ThreadSpecific from WebKit
555
556         Reviewed by John Sullivan.
557
558         * WebKit.vcproj/WebKit.def:
559         * WebKit.vcproj/WebKit_debug.def:
560         Export WTF::tlsKeyCount and WTF::tlsKeys.
561
562 2009-03-10  Steve Falkenburg  <sfalken@apple.com>
563
564         <rdar://problem/6662167> When clicking in Top Sites search field, WebHistory::findIndex fails causing crash in BookmarksSearcher::collectHistorySearchResults
565         
566         Round CFAbsoluteDates to the nearest second when converting to/from the Windows DATE format.
567         
568         This corrects for inaccuracies introduced by round-tripping between DATE (day based) and CFAbsoluteDate (second based).
569         The WebKit COM API on Windows uses DATE, while our history storage uses CFAbsoluteTime. This could lead to WebKit
570         saying there was browsing history for a particular day, and then return no history items when we requested a
571         list of sites visited that day.        
572         
573         Reviewed by Ada Chan.
574
575         * MarshallingHelpers.cpp:
576         (MarshallingHelpers::DATEToCFAbsoluteTime):
577         (MarshallingHelpers::CFAbsoluteTimeToDATE):
578
579 2009-03-08  Mark Rowe  <mrowe@apple.com>
580
581         Reviewed by Oliver Hunt.
582
583         Split ScrollAlignment and ScrollBehavior out of RenderLayer.h so that
584         Frame.h no longer needs to include it.  This cuts the size of the symbols
585         for a debug build by around 3%.
586
587         * WebView.cpp:
588         (WebView::centerSelectionInVisibleArea):
589
590 2009-03-07  Dan Bernstein  <mitz@apple.com>
591
592         Reviewed by Mark Rowe.
593
594         - WebKit part of removing build-time and run-time support for legacy
595           versions of CFNetwork and Core Graphics
596
597         * WebView.cpp:
598         (WebView::setCacheModel):
599
600 2009-03-04  Adam Barth  <abath@webkit.org>
601
602         Reviewed by Alexey Proskuryakov.
603
604         https://bugs.webkit.org/show_bug.cgi?id=24356
605
606         Fix WebKit style for allowUniversalAccessFromFileURLs.
607
608         * Interfaces/IWebPreferencesPrivate.idl:
609         * WebPreferenceKeysPrivate.h:
610         * WebPreferences.cpp:
611         (WebPreferences::initializeDefaultSettings):
612         (WebPreferences::allowUniversalAccessFromFileURLs):
613         (WebPreferences::setAllowUniversalAccessFromFileURLs):
614         * WebPreferences.h:
615         * WebView.cpp:
616         (WebView::notifyPreferencesChanged):
617
618 2009-02-27  Adam Barth  <abarth@webkit.org>
619
620         Reviewed by Eric Seidel.
621
622         Add a preference to reduce the power of file:// URLs.
623
624         * Interfaces/IWebPreferencesPrivate.idl:
625         * WebPreferenceKeysPrivate.h:
626         * WebPreferences.cpp:
627         (WebPreferences::initializeDefaultSettings):
628         (WebPreferences::allowUniversalAccessFromFileUrls):
629         (WebPreferences::setAllowUniversalAccessFromFileUrls):
630         * WebPreferences.h:
631         * WebView.cpp:
632         (WebView::notifyPreferencesChanged):
633
634 2009-02-19  Alexey Proskuryakov  <ap@webkit.org>
635
636         Reviewed by Darin Adler.
637
638         https://bugs.webkit.org/show_bug.cgi?id=24024
639         REGRESSION (r39845): Assertion failure in -[WebHistoryItem dictionaryRepresentation] when
640         archiving a submission to about:blank
641
642         I don't know how to make an automated test for this bug.
643
644         * WebHistory.cpp: (WebHistory::visitedURL): Account for the fact that HTTP method may be
645         non-empty for non-HTTP requests.
646
647 2009-02-25  Andreia Gaita  <shana@jitted.com>
648
649         Reviewed by Alp Toker.
650
651         Update Win def files with recent JavaScriptCore API additions.
652
653         * WebKit.vcproj/WebKit.def:
654         * WebKit.vcproj/WebKit_Cairo.def:
655         * WebKit.vcproj/WebKit_debug.def:
656
657 2009-02-24  Sam Weinig  <sam@webkit.org>
658
659         Reviewed by Geoffrey Garen.
660
661         Related to <rdar://problem/6590295>
662         Allow disabling javascript: urls.
663
664         * Interfaces/IWebViewPrivate.idl:
665         * WebView.cpp:
666         (WebView::setJavaScriptURLsAreAllowed):
667         * WebView.h:
668
669 2009-02-24  Adam Roben  <aroben@apple.com>
670
671         Windows build fix
672
673         * WebKit.vcproj/WebKit.def:
674         * WebKit.vcproj/WebKit_debug.def:
675         Export WTF::ThreadCondition::timedWait.
676
677 2009-02-12  Brady Eidson  <beidson@apple.com>
678
679         Reviewed by Kevin Decker
680
681         <rdar://problem/6582180> - Wrong HTTP method applied to history item.
682
683         * WebCoreSupport/WebFrameLoaderClient.cpp:
684         (WebFrameLoaderClient::updateGlobalHistory): Check the original request, not any
685           redirected request.
686
687 2009-02-11  Brady Eidson  <beidson@apple.com>
688
689         Fix my last checkin for more effect.
690
691         * WebHistoryItem.cpp:
692         (WebHistoryItem::initFromDictionaryRepresentation):
693
694 2009-02-11  Adam Roben  <aroben@apple.com>
695
696         Windows fix for Bug 22239: Implement missing animation & transition
697         APIs on LayoutTestController for non-mac platforms
698
699         <https://bugs.webkit.org/show_bug.cgi?id=22239>
700
701         Reviewed by Simon Fraser.
702
703         * Interfaces/IWebFramePrivate.idl: Added pauseAnimation,
704         pauseTransition, and numberOfActiveAnimations.
705
706         * WebFrame.cpp:
707         (WebFrame::pauseAnimation):
708         (WebFrame::pauseTransition):
709         (WebFrame::numberOfActiveAnimation):
710         Added. These all call through to AnimationController.
711
712         * WebFrame.h: Added pauseAnimation, pauseTransition, and
713         numberOfActiveAnimations.
714
715 2009-02-11  Brady Eidson  <beidson@apple.com>
716
717         Reviewed by Mark Rowe
718
719         <rdar://problem/6570573> Some visit counts in History.plist have insanely high values, can roll over to negative
720
721         Remove the item from the date caches before registering the visit.  Otherwise it might not be successfully removed 
722         and when we add it back later it will exist in the list twice.  This will cause the entry to be written out twice,
723         which would lead to doubling (or more!) the visit count on next launch when these multiple items are merged.
724
725         * WebHistory.cpp:
726         (WebHistory::loadHistoryGutsFromURL):
727         (WebHistory::addItems):
728         (WebHistory::addItem): Add a mode that allows the entry being added to be discarded if an entry for the URL already 
729           exists.  Use that mode when reading the History.plist so only the most recent entry for a given URL will be used.
730         (WebHistory::visitedURL): Swap the removeItemFromDateCaches and visitedWithTitle calls.
731         * WebHistory.h:
732
733         * WebHistoryItem.cpp:
734         (WebHistoryItem::initFromDictionaryRepresentation):  Add the negative-visit-count-correction-logic as implemented
735           for Mac in http://trac.webkit.org/changeset/40851.
736
737 2009-02-11  Dimitri Dupuis-latour  <dupuislatour@apple.com>
738
739         Stub out WebInspectorClient::hiddenPanels.
740
741         Reviewed by Timothy Hatcher.
742
743         * WebCoreSupport/WebInspectorClient.cpp:
744         (WebInspectorClient::hiddenPanels):
745         * WebCoreSupport/WebInspectorClient.h:
746
747 2009-02-11  Adam Roben  <aroben@apple.com>
748
749         Don't release the shared WebHistory instance on quit
750
751         This matches Mac, and prevents a race condition when the process exits
752         that depends on the order in which global destructors are invoked.
753
754         Reviewed by Alexey Proskuryakov.
755
756         * WebHistory.cpp:
757         (sharedHistoryStorage): Changed to use DEFINE_STATIC_LOCAL so the
758         destructor is never called.
759
760 2009-02-10  Adam Roben  <aroben@apple.com>
761
762         Fix recursive WebView destruction when running DumpRenderTree
763
764         DumpRenderTree would call DestroyWindow on a WebView's host window,
765         which would send a WM_DESTROY message to the WebView's window. Inside
766         the WebView's WndProc, we would hold a ref to the WebView, then call
767         close() and revokeDragDrop(), which would release all remaining
768         references to the WebView other than the ref we held in the WndProc.
769         When the WndProc exited, the final ref to the WebView would be
770         released, invoking WebView's destructor. At this point,
771         IsWindow(m_viewWindow) would return true, since we were still in the
772         process of handling WM_DESTROY, so we would call DestroyWindow on the
773         WebView's window again, re-entering the WndProc and re-reffing the
774         WebView, leading to recursive destruction.
775
776         Reviewed by Alexey Proskuryakov.
777
778         * WebView.cpp:
779         (WebView::~WebView): Don't call DestroyWindow if our window is already
780         being destroyed.
781         (WebViewWndProc): Only hold an extra ref to the WebView when we're not
782         being destroyed.
783
784 2009-02-06  Adam Roben  <aroben@apple.com>
785
786         Build fix
787
788         Reviewed by Sam Weinig.
789
790         * WebCoreSupport/WebFrameLoaderClient.cpp: Added missing #include.
791         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Removed
792         incorrect .get(), and changed to use the new overload of
793         WebHistory::itemForURLString.
794
795         * WebHistory.cpp:
796         (WebHistory::itemForURLString): Made this const.
797         (WebHistory::itemForURLString): Added an overload that takes a
798         WebCore::String and returns the IWebHistoryItem instead of using an
799         out parameter.
800
801         * WebHistory.h: Added public overload of itemForURLString.
802
803         * WebView.cpp:
804         (WebView::prepareCandidateWindow):
805         (WebView::onIMERequestCharPosition):
806         (WebView::onIMERequestReconvertString):
807         Updated for toRange -> toNormalizedRange rename.
808
809 2009-02-06  Geoffrey Garen  <ggaren@apple.com>
810
811         Reviewed by Sam Weinig.
812
813         Part III of <rdar://problem/6552272>.
814         
815         Refactored to use the redirect data WebCore makes available, instead of
816         tracking loading state in WebKit.
817         
818         * WebCoreSupport/WebFrameLoaderClient.cpp:
819         (WebFrameLoaderClient::updateGlobalHistory):
820         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
821         * WebCoreSupport/WebFrameLoaderClient.h:
822         * WebHistory.cpp:
823         (WebHistory::visitedURL):
824         * WebHistory.h:
825
826 2009-02-06  Dan Bernstein  <mitz@apple.com>
827
828         Reviewed by Anders Carlsson.
829
830         - fix an assertion failure in Vector::at() beneath
831           WebHistoryItem::dictionaryRepresentation.
832
833         * WebHistoryItem.cpp:
834         (WebHistoryItem::dictionaryRepresentation): Give the numbers vector initial
835         size. Also reduced the inline capacity of the vector used for weekly visit
836         counts to 5, which is the expected maximum size.
837
838 2009-02-06  Brent Fulgham  <bfulgham@webkit.org>
839
840         Build fix.  
841
842         * WebKit.vcproj/WebKit.vcproj: Re-enable missing file in Release
843           target of Cairo.
844
845 2009-02-06  Maciej Stachowiak  <mjs@apple.com>
846
847         Rubber stamped by Dan Bernstein.
848
849         - fix obvious problem in previous commit (|| used instead of &&)
850
851         * WebHistoryItem.cpp:
852         (WebHistoryItem::initFromDictionaryRepresentation):
853
854 2009-02-05  Maciej Stachowiak  <mjs@apple.com> and Brady Eidson  <beidson@apple.com>
855
856         Reviewed by Dan Bernstein and Geoff Garen..
857
858         - WebKit code to track per-day and per-week visit counts in history
859
860         For now this data is only exposed via SPI for performance reasons.
861
862         * Interfaces/IWebHistoryItemPrivate.idl: Added new interface.
863         * WebHistory.cpp:
864         (WebHistory::visitedURL): Use new recordInitialVisit method.
865         * WebHistoryItem.cpp:
866         (WebHistoryItem::initFromDictionaryRepresentation): Add parsing support
867         for new data.
868         (WebHistoryItem::dictionaryRepresentation): Add saving support for
869         new data.
870         (WebHistoryItem::getDailyVisitCounts): SPI accessor.
871         (WebHistoryItem::getWeeklyVisitCounts): SPI accessor.
872         (WebHistoryItem::recordInitialVisit): Tell WebCore to record an initial visit.
873         * WebHistoryItem.h:
874
875 2009-02-05  Brent Fulgham  <bfulgham@webkit.org>
876
877         Reviewed by Sam Weinig <sam@webkit.org>
878
879         Build fix.  Update file for recently removed EventTargetNodeCast.
880         * DOMCoreClasses.cpp:
881         (DOMNode::dispatchEvent):
882
883 2009-02-05  Aaron Boodman  <aa@chromium.org>
884
885         Reviewed by Dave Hyatt.
886
887         https://bugs.webkit.org/show_bug.cgi?id=23708
888         Adds documentElementAvailable() callback to FrameLoaderClient.
889
890         * WebFrame.cpp:
891         (WebFrame::documentElementAvailable):
892         Stub out documentElementAvailable()
893         * WebFrame.h:
894         Ditto.
895
896 2009-02-04  Geoffrey Garen  <ggaren@apple.com>
897
898         Build fix.
899
900         * WebHistory.cpp:
901         (WebHistory::visitedURL):
902
903 2009-02-04  Geoffrey Garen  <ggaren@apple.com>
904
905         Reviewed by Mark Rowe.
906         
907         Part I of <rdar://problem/6552272>.
908
909         Clear the redirectURLs entry when first visiting a site, so sites that
910         only redirect you the first time you visit them can later learn that
911         they don't redirect.
912
913         * WebHistory.cpp:
914         (WebHistory::visitedURL):
915
916 2009-02-03  Geoffrey Garen  <ggaren@apple.com>
917
918         Build fix.
919
920         * WebHistory.cpp:
921         (WebHistory::visitedURL):
922
923 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
924
925         Build fix.
926
927         * WebHistory.cpp:
928         (WebHistory::visitedURL):
929
930 2009-02-02  Hiroaki Nakamura <hnakamur@gmail.com>
931
932         Reviewed by Adam Roben.
933
934         Fixes https://bugs.webkit.org/show_bug.cgi?id=15813
935         Modify pre-build step to properly handle the errorlevel
936         shell command.
937
938         * WebKit.vcproj/WebKit.vcproj: Change errorlevel handling
939         for all targets so prefast is only enabled in builds
940         where /analyze is available.
941
942 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
943
944         Reviewed by Sam Weinig.
945
946         Track redirects in global history.
947
948         * Interfaces/IWebFramePrivate.idl: Updated for WebCore rename.
949
950         * WebCoreSupport/WebFrameLoaderClient.cpp:
951         (WebFrameLoaderClient::updateGlobalHistory):
952         (WebFrameLoaderClient::updateGlobalHistoryForRedirectWithoutHistoryItem):
953         Store redirect information in global history.
954
955         (WebFrameLoaderClient::loadURLIntoChild): Updated for extra parameter.
956
957         * WebCoreSupport/WebFrameLoaderClient.h: See above.
958
959         * WebFrame.cpp:
960         (WebFrame::loadRequest):
961         (WebFrame::loadData): Updated for extra parameter.
962
963         * WebHistory.cpp:
964         (WebHistory::visitedURL):
965         (WebHistory::visitedURLForRedirectWithoutHistoryItem): Store redirect
966         information in global history.
967
968         * WebHistory.h: See above.
969
970 2009-02-02  Brady Eidson  <beidson@apple.com>
971
972         Reviewed by Dan Bernstein
973
974         Transition Windows WebHistory to using the same "update already existing History Items" technique that Mac does.
975
976         * Interfaces/IWebHistoryItemPrivate.idl:
977         * WebCoreSupport/WebFrameLoaderClient.cpp:
978         (WebFrameLoaderClient::updateGlobalHistory):
979
980         * WebHistory.cpp:
981         (WebHistory::visitedURL):
982         * WebHistory.h:
983
984         * WebHistoryItem.cpp:
985         (WebHistoryItem::visitedWithTitle):
986         * WebHistoryItem.h:
987
988 2009-02-02  Anders Carlsson  <andersca@apple.com>
989
990         Fix build.
991         
992         * WebCoreSupport/WebFrameLoaderClient.cpp:
993         (WebFrameLoaderClient::createPlugin):
994         * WebCoreSupport/WebFrameLoaderClient.h:
995
996 2009-02-02  Anders Carlsson  <andersca@apple.com>
997
998         Reviewed by Dan Bernstein.
999
1000         Update for changes to WebCore.
1001
1002         * WebFrame.cpp:
1003         (WebFrame::createJavaAppletWidget):
1004         * WebFrame.h:
1005
1006 2009-02-02  Holger Hans Peter Freyther  <zecke@selfish.org>
1007
1008         Reviewed by Darin Adler.
1009
1010         Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView
1011
1012         https://bugs.webkit.org/show_bug.cgi?id=23428
1013
1014         FrameView::forceLayout could be killed but the comment might
1015         contain a value over the the plain FrameView::layout...
1016
1017         Adjust the WebCore/WebKit consumers of these methods.
1018
1019         * WebCoreSupport/WebFrameLoaderClient.cpp:
1020         (WebFrameLoaderClient::forceLayout):
1021
1022 2009-01-31  Matt Lilek  <webkit@mattlilek.com>
1023
1024         Not reviewed, build fixes.
1025
1026         * WebCoreSupport/WebContextMenuClient.cpp:
1027         (WebContextMenuClient::searchWithGoogle):
1028         * WebFrame.cpp:
1029         (WebFrame::setInPrintingMode):
1030         (WebFrame::isFrameSet):
1031         * WebView.cpp:
1032         (WebView::notifyPreferencesChanged):
1033
1034 2009-01-30  Adam Barth  <abarth@webkit.org>
1035
1036         Reviewed by Sam Weinig.
1037
1038         Add a pref to disable web security.
1039
1040         * Interfaces/IWebPreferencesPrivate.idl:
1041         * WebPreferenceKeysPrivate.h:
1042         * WebPreferences.cpp:
1043         (WebPreferences::initializeDefaultSettings):
1044         (WebPreferences::isWebSecurityEnabled):
1045         (WebPreferences::setWebSecurityEnabled):
1046         * WebPreferences.h:
1047         * WebView.cpp:
1048         (WebView::notifyPreferencesChanged):
1049
1050 2009-01-30  Geoffrey Garen  <ggaren@apple.com>
1051
1052         Build fix.
1053
1054         * Interfaces/IWebFramePrivate.idl:
1055         * WebCoreSupport/WebFrameLoaderClient.cpp:
1056         (WebFrameLoaderClient::loadURLIntoChild):
1057
1058 2009-01-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1059
1060         Reviewed by Simon Hausmann.
1061
1062         Kill FrameLoaderClient.cpp, move the code over to Frame::createView
1063
1064         FrameLoaderClient is supposed to be an interface, move the
1065         to be shared code to Frame which is a controller and is
1066         allowed to create a FrameView.
1067
1068         * WebCoreSupport/WebFrameLoaderClient.cpp:
1069         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1070
1071 2009-01-30  Brady Eidson  <beidson@apple.com>
1072
1073         Reviewed by Sam Weinig
1074
1075         Remove FrameLoaderClient code that is now handled by FrameLoader itself
1076
1077         * WebFrame.cpp:
1078         (WebFrame::frameLoadCompleted):
1079
1080 2009-01-29  Sam Weinig  <sam@webkit.org>
1081
1082         Fix Windows build
1083
1084         * WebHistoryItem.cpp:
1085         (WebHistoryItem::initFromDictionaryRepresentation):
1086
1087 2009-01-29  Sam Weinig  <sam@webkit.org>
1088
1089         Reviewed by Anders Carlsson.
1090
1091         Second step in tracking the urls a HistoryItem was redirected through
1092         Add SPI to access the array of redirect urls associated with a HistoryItem.
1093
1094         * Interfaces/IWebHistoryItemPrivate.idl:
1095         * WebHistoryItem.cpp:
1096         (WebHistoryItem::dictionaryRepresentation):
1097         (WebHistoryItem::redirectURLs):
1098         * WebHistoryItem.h:
1099
1100 2009-01-29  Sam Weinig  <sam@webkit.org>
1101
1102         Reviewed by Mark Rowe.
1103
1104         First step in tracking the urls a HistoryItem was redirected through.
1105
1106         * WebHistoryItem.cpp:
1107         (WebHistoryItem::initFromDictionaryRepresentation):
1108         (WebHistoryItem::dictionaryRepresentation):
1109
1110 2009-01-29  Adam Roben  <aroben@apple.com>
1111
1112         Fix Bug 23623: Windowed Flash instances aren't captured when a WebView
1113         receives a WM_PRINTCLIENT message
1114
1115         <https://bugs.webkit.org/show_bug.cgi?id=23623>
1116         <rdar://problem/6513921>
1117         <rdar://problem/6536874>
1118
1119         Reviewed by Darin Adler.
1120
1121         * WebFrame.cpp:
1122         (WebFrame::paintDocumentRectToContext):
1123         (WebFrame::spoolPages):
1124         Call GraphicsContext::setShouldIncludeChildWindows so that child
1125         windows will be painted into the GraphicsContext rather than painted
1126         directly to the screen.
1127
1128         * WebView.cpp:
1129         (WebView::updateBackingStore): Added a windowsToPaint parameter, which
1130         we pass along to paintIntoBackingStore.
1131
1132         (WebView::paint): Tell updateBackingStore to paint child windows if
1133         we're not painting to the screen.
1134
1135         (WebView::paintIntoBackingStore): Added a windowsToPaint paramter,
1136         which we use to tell our GraphicsContext whether or not to include
1137         child windows.
1138
1139         * WebView.h: Added windowsToPaint parameters to paintIntoBackingStore
1140         and updateBackingStore (which I also made private).
1141
1142 2009-01-29  Adam Roben  <aroben@apple.com>
1143
1144         Build fix after r40353
1145
1146         * WebCoreSupport/WebFrameLoaderClient.cpp:
1147         (WebFrameLoaderClient::loadURLIntoChild): Removed the check for
1148         FrameLoadTypeReloadAllowingStaleData.
1149
1150 2009-01-28  Geoffrey Garen  <ggaren@apple.com>
1151
1152         Reviewed by Sam Weinig.
1153
1154         Updated for WebCore rename.
1155         
1156         * WebView.cpp:
1157         (WebView::setCustomTextEncodingName):
1158
1159 2009-01-27  Brady Eidson  <beidson@apple.com>
1160
1161         Reviewed by Dan Bernstein
1162
1163         Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage
1164
1165         * WebCoreSupport/WebFrameLoaderClient.cpp:
1166         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
1167         (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
1168         * WebCoreSupport/WebFrameLoaderClient.h:
1169
1170         * WebFrame.cpp:
1171         * WebFrame.h:
1172
1173 2009-01-26  Adam Roben  <aroben@apple.com>
1174
1175         Fix an assertion failure when Safari loads an error page
1176
1177         Reviewed by Alexey Proskuryakov.
1178
1179         * WebFrame.cpp:
1180         (WebFrame::loadData): Use the two-argument version of KURL and
1181         MarshallingHelpers::BSTRToKURL, for reasons mentioned in r40248.
1182
1183 2009-01-26  Adam Roben  <aroben@apple.com>
1184
1185         Fix an assertion on launch in KURL::KURL
1186
1187         All URL strings passed in to the WebKit API need to be passed to
1188         MarshallingHelpers::BSTRToKURL so that they may be properly parsed.
1189
1190         Reviewed by Alexey Proskuryakov.
1191
1192         * MarshallingHelpers.cpp:
1193         (MarshallingHelpers::BSTRToKURL): Changed to use the two-argument
1194         constructor for KURL so that the strings will be parsed rather than
1195         assumed to be in the correct encoding/form.
1196
1197         * WebResource.cpp:
1198         (WebResource::initWithData):
1199         * WebURLResponse.cpp:
1200         (WebURLResponse::initWithURL):
1201         * WebView.cpp:
1202         (WebView::userAgentForURL):
1203         (WebView::copyURL):
1204         Changed to use MarshallingHelpers::BSTRToKURL instead of trying to do
1205         the work manually.
1206
1207 2009-01-25  Darin Adler  <darin@apple.com>
1208
1209         Try to fix Windows build.
1210
1211         * WebView.cpp: Added FloatQuad.h.
1212
1213 2009-01-23  Brent Fulgham  <bfulgham@webkit.org>
1214
1215         Reviewed by Darin Adler
1216
1217         https://bugs.webkit.org/show_bug.cgi?id=23492
1218         Exclude calls to WebKitSystemInterface functions when not
1219         using CoreGraphics.
1220
1221         * WebPreferences.cpp:
1222         (WebPreferences::setFontSmoothing): 
1223         (WebPreferences::setFontSmoothingContrast):
1224         * WebTextRenderer.cpp:
1225         (WebTextRenderer::registerPrivateFont):
1226
1227 2009-01-23  Brady Eidson  <beidson@apple.com>
1228
1229         Rubberstamped by Darin Adler
1230
1231         Rename CachedPagePlatformData to CachedFramePlatformData to more accurately reflect its true role.
1232
1233         * WebCachedFramePlatformData.h: Copied from WebKit/win/WebCachedPagePlatformData.h.
1234         (WebCachedFramePlatformData::WebCachedFramePlatformData):
1235         * WebCachedPagePlatformData.h: Removed.
1236
1237         * WebCoreSupport/WebFrameLoaderClient.cpp:
1238         (WebFrameLoaderClient::savePlatformDataToCachedPage):
1239
1240         * WebKit.vcproj/WebKit.vcproj:
1241
1242 2009-01-22  Eric Roman  <eroman@chromium.org>
1243
1244         Reviewed by Eric Seidel.
1245
1246         https://bugs.webkit.org/show_bug.cgi?id=20806
1247         Deprecate RSSFeedReferrer() and setRSSFeedReferrer().
1248
1249         * WebHistoryItem.cpp:
1250         (WebHistoryItem::RSSFeedReferrer):
1251         (WebHistoryItem::setRSSFeedReferrer):
1252
1253 2009-01-19  Sam Weinig  <sam@webkit.org>
1254
1255         Rubber-stamped by Gavin Barraclough.
1256
1257         Remove temporary operator-> from JSValuePtr.
1258
1259         * WebScriptCallFrame.cpp:
1260         (WebScriptCallFrame::jsValueToString):
1261         * WebView.cpp:
1262         (WebView::stringByEvaluatingJavaScriptFromString):
1263
1264 2009-01-19  Adam Roben  <aroben@apple.com>
1265
1266         Windows build fix
1267
1268         * DOMCoreClasses.cpp: Replaced "using namespace WebCore" with
1269         individual using directives for each type we need from that namespace,
1270         to avoid conflicts between DOMObject and WebCore::DOMObject.
1271         (DOMElement::font): Added a now-needed WebCore::.
1272
1273 2009-01-17  Steve Falkenburg  <sfalken@apple.com>
1274
1275         Build fix.
1276
1277         * WebCoreSupport/WebDragClient.cpp:
1278         (WebDragClient::createDragImageForLink):
1279
1280 2009-01-17  David Hyatt  <hyatt@apple.com>
1281
1282         Eliminate dependencies on backslashAsCurrencySymbol from WebKit.
1283
1284         Reviewed by Oliver Hunt
1285
1286         * WebFrame.cpp:
1287         (WebFrame::selectedString):
1288
1289 2009-01-16  Steve Falkenburg  <sfalken@apple.com>
1290
1291         <rdar://problem/6502511> Safari crashes if it's running while the desktop theme is changed.
1292         
1293         This was caused by mismatched ENABLE definitions across WebCore and WebKit.
1294         
1295         Several virtual methods were added to RenderTheme.h, conditionalized by ENABLE(VIDEO).
1296         In addition to adding ENABLE_VIDEO to WebKit, this change also adds ENABLE_DATABASE and ENABLE_ICONDATABASE
1297         to Windows WebCore/WebKit, and adds ENABLE_WORKERS, and several ENABLE_SVG_ flags to WebKit on Windows.
1298         Our Windows ENABLE flags now match Mac.
1299         
1300         Reviewed by Adele Peterson.
1301
1302         * WebKit.vcproj/WebKit.vcproj:
1303
1304 2009-01-15  Adele Peterson  <adele@apple.com>
1305
1306         Reviewed by Darin Adler.
1307         
1308         Fix for https://bugs.webkit.org/show_bug.cgi?id=21799
1309         <rdar://problem/6310684> Crash in dumpFramesAsText() when running http/tests/security/cross-origin-xsl-BLOCKED.html
1310         
1311         Return S_OK or E_FAIL based on the result from CreateInstance.
1312         This was causing DumpRenderTree to not realize it had just gotten a null documentElement.
1313         
1314         * DOMCoreClasses.cpp: Made all functions that return the result of CreateInstance consistent.
1315         (DOMNode::parentNode):
1316         (DOMNode::ownerDocument):
1317         (DOMNodeList::item):
1318         (DOMDocument::documentElement):
1319         (DOMDocument::createElement):
1320         (DOMDocument::getElementsByTagName):
1321         (DOMDocument::getElementsByTagNameNS):
1322         (DOMDocument::getElementById):
1323         (DOMDocument::getComputedStyle):
1324         (DOMDocument::createEvent):
1325         (DOMElement::style):
1326
1327 2009-01-14  Adele Peterson  <adele@apple.com>
1328
1329         Reviewed by Darin Adler.
1330
1331         Fix for https://bugs.webkit.org/show_bug.cgi?id=23335
1332         <rdar://problem/6247650> Update <input type="search"> for RenderThemeWin
1333         
1334         Added artwork.
1335         
1336         * WebKit.vcproj/WebKit.rc:
1337         * WebKit.vcproj/WebKit.vcproj:
1338         * WebKit.vcproj/resource.h:
1339         * WebKit.vcproj/searchCancel.png: Added.
1340         * WebKit.vcproj/searchCancelPressed.png: Added.
1341         * WebKit.vcproj/searchMagnifier.png: Added.
1342         * WebKit.vcproj/searchMagnifierResults.png: Added.
1343         * WebKitDLL.cpp:(loadResourceIntoBuffer):
1344
1345 2009-01-14  Dan Bernstein  <mitz@apple.com>
1346
1347         Reviewed by John Sullivan.
1348
1349         - update copyright
1350
1351         * WebKit.resources/Info.plist:
1352         * WebKit.vcproj/WebKit.rc:
1353
1354 2009-01-13  Steve Falkenburg  <sfalken@apple.com>
1355
1356         Build fix.
1357
1358         * WebScriptCallFrame.cpp:
1359         (WebScriptCallFrame::jsValueToString):
1360
1361 2009-01-12  Brady Eidson  <beidson@apple.com>
1362
1363         Reviewed by Dan Bernstein
1364         
1365         <rdar://problem/6490446> - Crash when going back to a cached page
1366
1367         * WebCoreSupport/WebFrameLoaderClient.cpp:
1368         (WebFrameLoaderClient::savePlatformDataToCachedPage):  ENABLE(CFNETWORK) needed to be USE(CFNETWORK)
1369
1370 2009-01-12  Brady Eidson  <beidson@apple.com>
1371
1372         Reviewed by Darin Adler
1373
1374         <rdar://problem/6468274> - Track Non-get requests in global history
1375
1376         * WebCoreSupport/WebFrameLoaderClient.cpp:
1377         (WebFrameLoaderClient::updateGlobalHistory):
1378
1379         * WebHistory.cpp:
1380         (WebHistory::addItem):
1381         * WebHistory.h:
1382
1383         * Interfaces/IWebHistoryItemPrivate.idl:
1384         * WebHistoryItem.cpp:
1385         (WebHistoryItem::initFromDictionaryRepresentation):
1386         (WebHistoryItem::dictionaryRepresentation):
1387         (WebHistoryItem::lastVisitWasHTTPNonGet):
1388         (WebHistoryItem::setLastVisitWasHTTPNonGet):
1389         * WebHistoryItem.h:
1390
1391 2009-01-12  Julien Chaffraix  <jchaffraix@pleyo.com>
1392
1393         Reviewed by Darin Adler.
1394
1395         Bug 22861: Turn the FontCache into a singleton
1396         https://bugs.webkit.org/show_bug.cgi?id=22861
1397
1398         * WebCoreStatistics.cpp:
1399         (WebCoreStatistics::cachedFontDataCount):
1400         (WebCoreStatistics::cachedFontDataInactiveCount):
1401         (WebCoreStatistics::purgeInactiveFontData):
1402         Redirected all the static calls to the global FontCache
1403         instance.
1404
1405 2009-01-11  Dmitry Titov  <dimich@chromium.org>
1406
1407         Reviewed by Darin Adler.
1408
1409         https://bugs.webkit.org/show_bug.cgi?id=23207
1410         Moved currentTime() to from WebCore to WTF.
1411
1412         * WebDownload.cpp: a different header file included.
1413         * WebDropSource.cpp: a different header file included.
1414
1415 2009-01-09  Darin Adler  <darin@apple.com>
1416
1417         Reviewed by Jon Honeycutt.
1418
1419         Bug 22913: REGRESSION: Space bar doesn't scroll on windows
1420         https://bugs.webkit.org/show_bug.cgi?id=22913
1421         rdar://problem/6479834
1422
1423         * WebView.cpp:
1424         (WebView::keyPress): Removed code to handle space bar here; put it in
1425         WebCore instead.
1426
1427 2009-01-09  Brent Fulgham  <bfulgham@gmail.com>
1428
1429         Reviewed by Adam Roben.
1430
1431         Fixes: http://bugs.webkit.org/show_bug.cgi?id=23092
1432         Separate CFNetwork-specific code in WebKit.dll into separate
1433         implementation files. Create cURL stub files to be populated
1434         with new implementation in a future bug report. 
1435
1436         * WebCookieManager.cpp: Move CFNetwork-specific routines to
1437           the new WebCookieManagerCFNet.cpp file.
1438         (WebCookieManager::Release):
1439         * WebCookieManagerCFNet.cpp: Copied from WebCookieManager.cpp.
1440         (WebCookieManager::cookieStorage):
1441         * WebCookieManagerCurl.cpp: Added.
1442         (WebCookieManager::cookieStorage):
1443         (WebCookieManager::setCookieStorage):
1444         * WebCoreSupport/WebFrameLoaderClient.cpp: Conditionalize two
1445           methods in this file.
1446         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1447         (WebFrameLoaderClient::savePlatformDataToCachedPage):
1448         * WebDownload.cpp: Move CFNetwork-specific logic to the new
1449           WebDownloadCFNet.cpp
1450         (WebDownload::bundleExtension):
1451         (WebDownload::bundleMagicNumber):
1452         (WebDownload::bundlePathForTargetPath):
1453         (WebDownload::extractResumeDataFromBundle): Made static class method
1454           so it could be used in WebDownload.cpp and WebDownloadCFNet.cpp
1455         (WebDownload::appendResumeDataToBundle): Made static class method
1456           so it could be used in WebDownload.cpp and WebDownloadCFNet.cpp
1457         * WebDownload.h:
1458         * WebDownloadCFNet.cpp: Copied from WebDownload.cpp.
1459         (WebDownload::initToResumeWithBundle):
1460         (WebDownload::setDestination):
1461         (didFailCallback):
1462         * WebDownloadCurl.cpp: Added.
1463         (WebDownload::init):
1464         (WebDownload::initWithRequest):
1465         (WebDownload::initToResumeWithBundle):
1466         (WebDownload::start):
1467         (WebDownload::cancel):
1468         (WebDownload::cancelForResume):
1469         (WebDownload::deletesFileUponFailure):
1470         (WebDownload::setDeletesFileUponFailure):
1471         (WebDownload::setDestination):
1472         (WebDownload::cancelAuthenticationChallenge):
1473         (WebDownload::continueWithoutCredentialForAuthenticationChallenge):
1474         (WebDownload::useCredential):
1475         * WebKit.vcproj/WebKit.vcproj: Modify Apple targets to exclude the
1476           new cURL files. Modify Cairo targets to exclude CFNet files.
1477         * WebMutableURLRequest.cpp: Conditionalize the single method
1478           with a CFNetwork-speicic call.
1479         (WebMutableURLRequest::mutableCopy):
1480         * WebURLAuthenticationChallenge.cpp: Conditionalize one line that
1481           causes build problems for cURL. This will be removed later.
1482         (WebURLAuthenticationChallenge::initWithProtectionSpace):
1483         * WebURLAuthenticationChallengeSender.cpp:
1484         * WebURLAuthenticationChallengeSenderCFNet.cpp: Copied from WebURLAuthenticationChallengeSender.cpp.
1485         (WebURLAuthenticationChallengeSender::useCredential):
1486         * WebURLAuthenticationChallengeSenderCurl.cpp: Added.
1487         (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge):
1488         (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge):
1489         (WebURLAuthenticationChallengeSender::useCredential):
1490         * WebURLResponse.cpp: Exclude WebKitSystemInterface when compiling
1491           for the cURL target.
1492
1493 2009-01-09  Alexey Proskuryakov  <ap@webkit.org>
1494
1495         Reviewed by Darin Adler.
1496
1497         Fix many appcache tests on Windows by making synchronous XMLHttpRequest throw on cache miss.
1498
1499         * WebFrame.cpp: (WebFrame::cannotShowURLError): Implement, so that synchronous XHR can
1500         raise exceptions, as needed for AppCache tests. I do not know why this error was not
1501         implemented.
1502
1503 2009-01-09  Darin Adler  <darin@apple.com>
1504
1505         Reviewed and landed by Adele Peterson.
1506
1507         Bug 23160: add setMemoryCacheClientCallsEnabled SPI so Safari can be faster with activity window closed
1508         https://bugs.webkit.org/show_bug.cgi?id=23160
1509
1510         * Interfaces/IWebViewPrivate.idl: Added setMemoryCacheDelegateCallsEnabled.
1511         * WebView.cpp:
1512         (WebView::setMemoryCacheDelegateCallsEnabled): Ditto.
1513         * WebView.h: Ditto.
1514
1515 2009-01-08  Dan Bernstein  <mitz@apple.com>
1516
1517         Reviewed by Adam Roben.
1518
1519         - WebPreferences changes to support Core Graphics native glyph drawing
1520
1521         * Interfaces/IWebPreferencesPrivate.idl: Added font smoothing contrast
1522         getter and setter.
1523         * WebPreferenceKeysPrivate.h: Added
1524         WebKitFontSmoothingContrastPreferenceKey.
1525         * WebPreferences.cpp:
1526         (WebPreferences::initializeDefaultSettings): Initialized
1527         WebKitFontSmoothingContrastPreferenceKey to 2.
1528         (WebPreferences::setFloatValue): Added.
1529         (WebPreferences::setFontSmoothing): Changed to map
1530         FontSmoothingTypeWindows to FontSmoothingTypeMedium.
1531         (WebPreferences::fontSmoothingContrast): Added.
1532         (WebPreferences::setFontSmoothingContrast): Added. Calls
1533         wkSetFontSmoothingContrast().
1534         * WebPreferences.h:
1535
1536 2009-01-08  Steve Falkenburg  <sfalken@apple.com>
1537
1538         <rdar://problem/6474244> REGRESSION(39561-39603): Heap corruption when saving passwords?
1539         
1540         Reviewed by Adam Roben.
1541
1542         * WebView.cpp:
1543         (WebViewWndProc): Hold a ref to the WebView inside the WNDPROC, since it could go away in an event handler.
1544
1545 2009-01-07  Jon Honeycutt  <jhoneycutt@apple.com>
1546
1547         Fix a crash with querying a WebView for its global history item when
1548         its associated Page has no global history item.
1549
1550         Reviewed by Dan Bernstein.
1551
1552         * WebView.cpp:
1553         (WebView::globalHistoryItem): If the Page has no global history item,
1554         report 0.
1555
1556 2009-01-06  Adam Roben  <aroben@apple.com>
1557
1558         Fix Bug 22262: Clicking close ("X") button in docked Web Inspector
1559         clears Web Inspector but doesn't close it
1560
1561         <https://bugs.webkit.org/show_bug.cgi?id=22262>
1562         <rdar://problem/6371873>
1563
1564         Reviewed by Darin Adler.
1565
1566         * WebCoreSupport/WebInspectorClient.cpp:
1567         (WebInspectorClient::WebInspectorClient): Initialize new member.
1568         (WebInspectorClient::showWindow): Moved code from here to
1569         showWindowWithoutNotifications.
1570         (WebInspectorClient::closeWindow): Moved code from here to
1571         closeWindowWithoutNotifications.
1572
1573         (WebInspectorClient::attachWindow):
1574         (WebInspectorClient::detachWindow):
1575         Record whether or not we should be attached, then close and reopen the
1576         window without notifying the InspectorController. Code that was in
1577         these functions moved to showWindowWithoutNotifications and
1578         closeWindowWithoutNotifications, respectively.
1579
1580         (WebInspectorClient::closeWindowWithoutNotifications): Added. Code
1581         came from closeWindow and detachWindow.
1582         (WebInspectorClient::showWindowWithoutNotifications): Added. Code came
1583         from showWindow and attachWindow.
1584
1585         * WebCoreSupport/WebInspectorClient.h: Added
1586         {close,show}WindowWithoutNotifications and m_shouldAttachWhenShown.
1587
1588 2009-01-06  Anders Carlsson  <andersca@apple.com>
1589
1590         Reviewed by Sam Weinig.
1591
1592         Add a way for application to provide custom, full frame, views for certain MIME types.
1593         
1594         * Interfaces/IWebEmbeddedView.idl:
1595         Add loading related methods.
1596         
1597         * Interfaces/IWebViewPrivate.idl:
1598         Add new registerEmbeddedViewMIMEType method.
1599         
1600         * WebCoreSupport/EmbeddedWidget.cpp:
1601         (EmbeddedWidget::didReceiveResponse):
1602         (EmbeddedWidget::didReceiveData):
1603         (EmbeddedWidget::didFinishLoading):
1604         (EmbeddedWidget::didFail):
1605         Implement these and call the IEmbeddedView methods.
1606         
1607         * WebCoreSupport/EmbeddedWidget.h:
1608         Inherit from PluginManualLoader.
1609         
1610         * WebCoreSupport/WebFrameLoaderClient.cpp:
1611         (WebFrameLoaderClient::redirectDataToPlugin):
1612         Handle the case where the widget is an EnbeddedWidget.
1613         
1614         (WebFrameLoaderClient::shouldUsePluginDocument):
1615         Have this call WebView::shouldUseEmbeddedView.
1616         
1617         * WebView.cpp:
1618         (WebView::canShowMIMEType):
1619         Have this call WebView::shouldUseEmbeddedView.
1620         
1621         (WebView::registerEmbeddedViewMIMEType):
1622         Add the MIME type to the set.
1623         
1624         (WebView::shouldUseEmbeddedView):
1625         Given a MIME type, returns whether an embedded view should be used or not.
1626         
1627 2009-01-06  David Kilzer  <ddkilzer@apple.com>
1628
1629         BUILD FIX (r39641): Try to fix WebIconDatabase build errors #4
1630
1631         * WebIconDatabase.cpp:
1632         (WebIconDatabase::isEnabled): Added 'WebIconDatabase::' to method
1633         signature.  (Another copy-paste error.)
1634         (WebIconDatabase::setEnabled): Ditto.
1635         * WebIconDatabase.h:
1636         (WebIconDatabase::startUpIconDatabase): Make private again.
1637         (WebIconDatabase::shutDownIconDatabase): Ditto.
1638
1639 2009-01-06  David Kilzer  <ddkilzer@apple.com>
1640
1641         BUILD FIX (r39641): Try to fix build errors #3
1642
1643         Try to fix the following (more specific) build errors:
1644
1645             WebIconDatabase.cpp
1646             ..\WebIconDatabase.cpp(255) : error C2248: 'WebIconDatabase::shutDownIconDatabase' : cannot access private member declared in class 'WebIconDatabase'
1647                     ...\webkit\win\WebIconDatabase.h(61) : see declaration of 'WebIconDatabase::shutDownIconDatabase'
1648                     ...\webkit\win\WebIconDatabase.h(51) : see declaration of 'WebIconDatabase'
1649             ..\WebIconDatabase.cpp(255) : error C2352: 'WebIconDatabase::shutDownIconDatabase' : illegal call of non-static member function
1650                     ...\webkit\win\WebIconDatabase.h(61) : see declaration of 'WebIconDatabase::shutDownIconDatabase'
1651             ..\WebIconDatabase.cpp(258) : error C2248: 'WebIconDatabase::startUpIconDatabase' : cannot access private member declared in class 'WebIconDatabase'
1652                     ...\webkit\win\WebIconDatabase.h(60) : see declaration of 'WebIconDatabase::startUpIconDatabase'
1653                     ...\webkit\win\WebIconDatabase.h(51) : see declaration of 'WebIconDatabase'
1654             ..\WebIconDatabase.cpp(258) : error C2352: 'WebIconDatabase::startUpIconDatabase' : illegal call of non-static member function
1655                     ...\webkit\win\WebIconDatabase.h(60) : see declaration of 'WebIconDatabase::startUpIconDatabase'
1656
1657         * WebIconDatabase.cpp:
1658         (setEnabled): Get instance of shared WebIconDatabase, then call
1659         startUp/shutDown methods on it.
1660         * WebIconDatabase.h:
1661         (WebIconDatabase::startUpIconDatabase): Make protected again.
1662         (WebIconDatabase::shutDownIconDatabase): Ditto.
1663
1664 2009-01-06  David Kilzer  <ddkilzer@apple.com>
1665
1666         BUILD FIX (r39641): Try to fix build errors again
1667
1668         Try to fix the following build errors:
1669
1670             WebIconDatabase.cpp
1671             ..\WebIconDatabase.cpp(255) : error C3861: 'shutDownIconDatabase': identifier not found
1672             ..\WebIconDatabase.cpp(258) : error C3861: 'startUpIconDatabase': identifier not found
1673
1674         * WebIconDatabase.cpp:
1675         (setEnabled): Add class prefix to startUpIconDatabase() and
1676         shutDownIconDatabase().
1677         * WebIconDatabase.h:
1678         (WebIconDatabase::startUpIconDatabase): Make private again.
1679         (WebIconDatabase::shutDownIconDatabase): Ditto.
1680
1681 2009-01-06  David Kilzer  <ddkilzer@apple.com>
1682
1683         BUILD FIX (r39641): Try to fix build error
1684
1685         Try to fix the following build errors:
1686
1687             WebIconDatabase.cpp
1688             ..\WebIconDatabase.cpp(255) : error C3861: 'shutDownIconDatabase': identifier not found
1689             ..\WebIconDatabase.cpp(258) : error C3861: 'startUpIconDatabase': identifier not found
1690
1691         * WebIconDatabase.h:
1692         (WebIconDatabase::startUpIconDatabase): Make protected.
1693         (WebIconDatabase::shutDownIconDatabase): Ditto.
1694
1695 2009-01-06  David Kilzer  <ddkilzer@apple.com>
1696
1697         BUILD FIX (r39641): Fix more silly errors
1698
1699         Fixes the following compilation errors:
1700
1701             WebIconDatabase.cpp
1702             ..\WebIconDatabase.cpp(85) : error C2065: 'standardPrefs' : undeclared identifier
1703             ..\WebIconDatabase.cpp(85) : error C2227: left of '->iconDatabaseLocation' must point to class/struct/union/generic type
1704                     type is ''unknown-type''
1705             ..\WebIconDatabase.cpp(241) : error C2575: 'isEnabled' : only member functions and bases can be virtual
1706             ..\WebIconDatabase.cpp(248) : error C2575: 'setEnabled' : only member functions and bases can be virtual
1707             ..\WebIconDatabase.cpp(253) : error C3861: 'shutDownIconDatabase': identifier not found
1708             ..\WebIconDatabase.cpp(256) : error C3861: 'startUpIconDatabase': identifier not found
1709
1710         * WebIconDatabase.cpp:
1711         (WebIconDatabase::startUpIconDatabase): Redeclare standardPrefs
1712         since this was in init() but not in this method after it was
1713         extracted from init().
1714         (isEnabled): Don't use "virtual" in method implementation
1715         (silly copy-paste error).
1716         (setEnabled): Ditto.
1717
1718 2009-01-06  David Kilzer  <ddkilzer@apple.com>
1719
1720         BUILD FIX (r39641): Remove STDMETHODCALLTYPE from method declarations in IWebIconDatabase.idl
1721
1722         * Interfaces/IWebIconDatabase.idl: Removed "STDMETHODCALLTYPE"
1723         from silly copy-paste error in two method declarations.
1724
1725 2009-01-05  David Kilzer  <ddkilzer@apple.com>
1726
1727         Add API to enable, disable and check state of WebIconDatabase
1728
1729         Reviewed by Darin Adler & Timothy Hatcher.
1730
1731         Add WebIconDatabase::isEnabled() and WebIconDatabase::setEnabled()
1732         API to make it possible to enable, disable and check the state of
1733         the icon database.
1734
1735         * Interfaces/IWebIconDatabase.idl: Declared isEnabled() and
1736         setEnabled() methods.
1737         * WebIconDatabase.cpp:
1738         (WebIconDatabase::init): Extracted code into startUpIconDatabase().
1739         (WebIconDatabase::startUpIconDatabase): Added.  Extracted from
1740         init().
1741         (WebIconDatabase::shutDownIconDatabase): Added.  Method is empty
1742         since there is nothing to do yet on Windows.
1743         (isEnabled): Added.
1744         (setEnabled): Added.
1745         * WebIconDatabase.h: Added method declarations.
1746
1747 2009-01-05  Anders Carlsson  <andersca@apple.com>
1748
1749         Reviewed by Jon Honeycutt.
1750
1751         Pass more information in the property bag passed to embeddedViewWithArguments.
1752         
1753         * Interfaces/IWebUIDelegatePrivate.idl:
1754         Declare new keys.
1755         
1756         * WebCoreSupport/WebFrameLoaderClient.cpp:
1757         (WebFrameLoaderClient::createPlugin):
1758         Pass the base URL, MIME type and the containing element to embeddedViewWithArguments.
1759
1760 2009-01-05  Anders Carlsson  <andersca@apple.com>
1761
1762         Reviewed by Darin Adler, Jon Honeycutt.
1763
1764         Add a templatized COMVariant constructor so we can make COMVariants out of
1765         everything that has a COMVariantSetter specialization.
1766         
1767         Add a COMVariantSetter specialization for COMVariant.
1768         
1769         * COMVariantSetter.h:
1770         (COMVariant::COMVariant):
1771
1772 2009-01-05  Brent Fulgham  <bfulgham@gmail.com>
1773
1774         Reviewed by Oliver Hunt.
1775
1776         Fixes: https://bugs.webkit.org/show_bug.cgi?id=23027
1777
1778         Removes the WebKitGraphics files from the Cairo build, as well
1779         as excluding their link definitions.  These are not used outside
1780         of Safari, and should not be part of the 'Redistributable API.'
1781
1782         * WebKit.vcproj/WebKit.vcproj:  Update *_Cairo targets to exclude
1783           the WebKitGraphics.cpp/.h files.
1784         * WebKit.vcproj/WebKit_Cairo.def: Added.  File without Safari
1785           link definitions.
1786         * WebKit.vcproj/WebKit_Cairo_debug.def: Added.  File without Safari
1787           link definitions.
1788
1789 2009-01-05  Anders Carlsson  <andersca@apple.com>
1790
1791         Reviewed by Jon Honeycutt.
1792
1793         Add a simple, memory managed, wrapper around a VARIANT struuct.
1794         
1795         * COMVariantSetter.h:
1796         (COMVariant::COMVariant):
1797         (COMVariant::~COMVariant):
1798         (COMVariant::operator=):
1799         (COMVariant::copyTo):
1800         (COMVariant::variantType):
1801
1802 2009-01-05  Adele Peterson  <adele@apple.com>
1803
1804         Windows build fix.
1805
1806         * WebCoreSupport/WebChromeClient.cpp:
1807
1808 2009-01-05  Anders Carlsson  <andersca@apple.com>
1809
1810         Reviewed by Adam Roben.
1811
1812         Make it possible to have per value variant types.
1813         
1814         * COMPropertyBag.h:
1815         (::Read):
1816         Call variantType here, passing in the value.
1817         
1818         (::GetPropertyInfo):
1819         Ditto.
1820         
1821         * COMVariantSetter.h:
1822         (COMVariantSetterBase::variantType):
1823         Add COMVariantSetterBase, whose variantType implementation just returns the
1824         VariantType variable. Make all existing classes inherit from COMVariantSetterBase.
1825
1826 2009-01-05  Adam Treat  <adam.treat@torchmobile.com>
1827
1828         Fix win build
1829
1830         * WebCoreSupport/WebChromeClient.h:
1831
1832 2009-01-05  Adam Treat  <adam.treat@torchmobile.com>
1833
1834         Reviewed by George Staikos.
1835
1836         Build fix for contentsSizeChanged
1837
1838         * WebCoreSupport/WebChromeClient.cpp:
1839         (WebChromeClient::contentsSizeChanged):
1840         * WebCoreSupport/WebChromeClient.h:
1841
1842 2009-01-05  Anders Carlsson  <andersca@apple.com> 
1843
1844         Reviewed by Kevin Decker.
1845
1846         Use the ManualLoader class instead of assuming that the manual loader
1847         is a plug-in view.
1848         
1849         * WebCoreSupport/WebFrameLoaderClient.cpp:
1850         (WebFrameLoaderClient::WebFrameLoaderClient):
1851         (WebFrameLoaderClient::setMainDocumentError):
1852         (WebFrameLoaderClient::committedLoad):
1853         (WebFrameLoaderClient::finishedLoading):
1854         (WebFrameLoaderClient::redirectDataToPlugin):
1855         * WebCoreSupport/WebFrameLoaderClient.h:
1856
1857 2009-01-04  Adam Treat  <adam.treat@torchmobile.com>
1858
1859         Reviewed by George Staikos.
1860
1861         Make the apple windows port build with the new fixedLayoutSize feature
1862
1863         * WebCoreSupport/WebFrameLoaderClient.cpp:
1864         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1865
1866 2008-12-20  Dan Bernstein  <mitz@apple.com>
1867
1868         Reviewed by Ada Chan.
1869
1870         - expose the new allItems() method via a new IWebHistoryPrivate
1871           interface
1872
1873         * Interfaces/IWebHistoryPrivate.idl: Added.
1874         * Interfaces/WebKit.idl: Added IWebHistoryPrivate.idl.
1875         * WebHistory.cpp:
1876         (WebHistory::QueryInterface): Added IWebHistoryPrivate.
1877         (WebHistory::allItems):
1878         * WebHistory.h:
1879
1880 2008-12-19  Geoffrey Garen  <ggaren@apple.com>
1881
1882         Build fix.
1883
1884         * WebHistory.cpp:
1885         (WebHistory::allItems):
1886
1887 2008-12-19  Geoffrey Garen  <ggaren@apple.com>
1888
1889         Reviewed by Darin Adler, Adele Peterson, Brady Eidson.
1890         
1891         Added SPI for getting an unsorted vector of all items in history.
1892         
1893         * WebHistory.cpp:
1894         (WebHistory::orderedItemsLastVisitedOnDay):
1895         (WebHistory::allItems):
1896         * WebHistory.h:
1897
1898 2008-12-18  Dan Bernstein  <mitz@apple.com>
1899
1900         Reviewed by Sam Weinig.
1901
1902         - implement FrameLoaderClient::shouldUseCredentialStorage() by calling
1903           a new resource load delegae method.
1904
1905         * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added
1906         a ne interface, IWebResourceLoadDelegatePrivate2, including a new
1907         method, shouldUseCredentialStorage().
1908         * WebCoreSupport/WebFrameLoaderClient.cpp:
1909         (WebFrameLoaderClient::shouldUseCredentialStorage): Added. Calls the
1910         delegate method. If the method is unimplemented, returns true for
1911         backwards compatibility.
1912         * WebCoreSupport/WebFrameLoaderClient.h:
1913
1914 2008-12-18  Sam Weinig  <sam@webkit.org>
1915
1916         Reviewed by John Sullivan.
1917
1918         Implement FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() by calling
1919         a new private frame load delegate method.
1920
1921         * Interfaces/IWebFrameLoadDelegatePrivate.idl:
1922         * WebCoreSupport/WebFrameLoaderClient.cpp:
1923         (WebFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
1924         * WebCoreSupport/WebFrameLoaderClient.h:
1925
1926 2008-12-16  Steve Falkenburg  <sfalken@apple.com>
1927
1928         Windows build fix.
1929         
1930         Reviewed by Stephanie Lewis.
1931
1932         * COMPropertyBag.h:
1933         (::createInstance):
1934         (::adopt):
1935         (::QueryInterface):
1936         (::AddRef):
1937         (::Release):
1938         (::Read):
1939         (::Write):
1940         (::CountProperties):
1941         (::GetPropertyInfo):
1942         (::LoadObject):
1943         * WebURLResponse.cpp:
1944         (WebURLResponse::allHeaderFields):
1945
1946 2008-12-16  Stephanie Lewis  <slewis@apple.com>
1947
1948         Another Windows Build Fix.
1949
1950         * WebURLResponse.cpp:
1951         (WebURLResponse::allHeaderFields):
1952
1953 2008-12-14  Dan Bernstein  <mitz@apple.com>
1954
1955         Reviewed by Darin Adler.
1956
1957         - Windows equivalent of <rdar://problem/3258561>
1958           WebHistoryAllItemsRemovedNotification should add items to userInfo
1959
1960         * WebHistory.cpp:
1961         (WebHistory::removeAllItems): Changed to create an array of all items
1962         and send it in the notification.
1963
1964 2008-12-12  Brent Fulgham  <bfulgham@gmail.com>
1965
1966         Reviewed by Oliver Hunt.
1967
1968         Fixes: https://bugs.webkit.org/show_bug.cgi?id=22805
1969
1970         Provides implementation of image drag for Windows Cairo back-end.
1971         Switch to generic PlatformGraphicsContext data type, rather than
1972         specific use of CoreGraphics types.
1973
1974         * WebCoreSupport/WebDragClient.cpp:
1975         (WebDragClient::createDragImageForLink): Revise calls to use more
1976         generic PlatformGraphicsContext data types and calls for better
1977         portability.
1978
1979 2008-12-12  Steve Falkenburg  <sfalken@apple.com>
1980
1981         Update Windows cache sizes to match recent Mac change.
1982         
1983         Reviewed by Stephanie Lewis, Sam Weinig.
1984
1985         * WebView.cpp:
1986         (WebView::setCacheModel):
1987
1988 2008-12-12  Tor Arne Vestbø  <tavestbo@trolltech.com>
1989
1990         Rubber-stamped by Oliver Hunt.
1991
1992         Remove mutables from EmbeddedWidget
1993
1994         We can do this now that frameRectsChanged() is no longer const
1995
1996         * WebCoreSupport/EmbeddedWidget.h:
1997
1998 2008-12-11  Cameron Zwarich  <zwarich@apple.com>
1999
2000         Rubber-stamped by Mark Rowe.
2001
2002         Roll out r39212 due to assertion failures during layout tests, multiple
2003         layout test failures, memory leaks, and obvious incorrectness.
2004
2005         * Interfaces/IWebPreferencesPrivate.idl:
2006         * WebPreferenceKeysPrivate.h:
2007         * WebPreferences.cpp:
2008         * WebPreferences.h:
2009
2010 2008-12-10  Glenn Wilson  <gwilson@google.com>
2011
2012         Reviewed by Adam Roben.
2013
2014         Added support for overriding default preferences per-test.
2015         https://bugs.webkit.org/show_bug.cgi?id=20534
2016         Two new methods were added: resetToDefaults and overridePreference.
2017
2018         * Interfaces/IWebPreferencesPrivate.idl: new method signatures
2019         * WebPreferenceKeysPrivate.h: added new key for internal state
2020         * WebPreferences.cpp: added new methods
2021         (WebPreferences::overridePreference): new method
2022         (WebPreferences::resetToDefaults): new method
2023         * WebPreferences.h: new method signatures
2024
2025 2008-12-08  Tor Arne Vestbø  <tavestbo@trolltech.com>
2026
2027         Reviewed by Darin Adler and Holger Freyther.
2028
2029         Make Widget::frameRectsChanged() and overrides non-const
2030
2031         This will hopefully allow us to get rid of some of the mutables in
2032         the classes that react to the callback by changing their own state.
2033
2034         * WebCoreSupport/EmbeddedWidget.cpp:
2035         (EmbeddedWidget::frameRectsChanged):
2036         * WebCoreSupport/EmbeddedWidget.h:
2037
2038 2008-12-09  Brett Wilson  <brettw@chromium.org>
2039
2040         Reviewed by Dave Hyatt.
2041
2042         https://bugs.webkit.org/show_bug.cgi?id=22177
2043
2044         Add a callback on ChromeClient that the state of form elements on
2045         the page has changed. This is to allow clients implementing session
2046         saving to know when the current state is dirty.
2047
2048         * WebCoreSupport/WebChromeClient.h:
2049         (WebChromeClient::formStateDidChange):
2050
2051 ks2008-12-08  Dan Bernstein  <mitz@apple.com>
2052
2053         Reviewed by Adam Roben.
2054
2055         - Fix nightly builds
2056
2057         * Interfaces/IWebViewPrivate.idl: Moved globalHistoryItem() to the end,
2058         so that it comes after all methods used by Safari 3.2.1.
2059
2060 2008-12-08  Dan Bernstein  <mitz@apple.com>
2061
2062         Reviewed by John Sullivan.
2063
2064         - WebKit/win part of tracking the global history item for a WebView
2065
2066         * Interfaces/IWebViewPrivate.idl: Declared globalHistoryItem()
2067         * WebView.cpp:
2068         (WebView::globalHistoryItem): Added. Gets the page's global history
2069         item.
2070         * WebView.h:
2071
2072 2008-12-06  Simon Fraser  <simon.fraser@apple.com>
2073
2074         Reviewed by Dave Hyatt
2075
2076         https://bugs.webkit.org/show_bug.cgi?id=15671
2077
2078         Renderer::caretRect() is now localCaretRect(), which needs
2079         converting to absolute coordinates (taking transforms into account).
2080
2081         * WebView.cpp:
2082         (WebView::handleContextMenuEvent):
2083
2084 2008-12-05  Darin Adler  <darin@apple.com>
2085
2086         Reviewed by Alexey Proskuryakov.
2087
2088         - fix https://bugs.webkit.org/show_bug.cgi?id=22674
2089           Webkit r39005 does not start, an entry point not found
2090
2091         * WebView.cpp:
2092         (findCFNetworkModule): Added.
2093         (findCopySharedURLCacheFunction): Added.
2094         (WebView::setCacheModel): Call CFURLCacheCopySharedURLCache via dynamic loading
2095         instead of compiling based on which version of CFNetwork headers are present.
2096
2097 2008-12-04  Steve Falkenburg  <sfalken@apple.com>
2098
2099         Implement IPropertyBag2::Read.
2100         Fill in dwType for IPropertyBag2::GetPropertyInfo (we always use PROPBAG2_TYPE_DATA).
2101         https://bugs.webkit.org/show_bug.cgi?id=22659
2102         
2103         This fixes <rdar://problem/6419127> REGRESSION: Forms autocomplete is broken for "other forms"
2104         
2105         Reviewed by Ada Chan, Alice Liu.
2106
2107         * COMPropertyBag.h:
2108         (::Read): Implemented.
2109         (::GetPropertyInfo): Set dwType to PROPBAG2_TYPE_DATA.
2110
2111 2008-12-02  Adam Roben  <aroben@apple.com>
2112
2113         Export new-ish JSCore convenience constructor functions
2114
2115         Reviewed by Jon Honeycutt.
2116
2117         * WebKit.vcproj/WebKit.def:
2118         * WebKit.vcproj/WebKit_debug.def:
2119         Export JSObjectMakeArray, JSObjectMakeDate, and JSObjectMakeRegExp.
2120         Remove duplicate export of JSObjectMakeFunction.
2121
2122 2008-12-02  Michael Moss  <mmoss@chromium.org>
2123
2124         Reviewed by Eric Seidel.
2125
2126         - Fix http/tests/navigation/reload-subframe-*frame.html on Windows.
2127         https://bugs.webkit.org/show_bug.cgi?id=20926
2128
2129         Change 31264 fixed this on Mac (since moved to WebCore/loader/FrameLoader.cpp), but was never ported to Windows.
2130
2131         * WebCoreSupport/WebFrameLoaderClient.cpp:
2132         (WebFrameLoaderClient::loadURLIntoChild):
2133
2134 2008-12-01  Steve Falkenburg  <sfalken@apple.com>
2135
2136         Implement renderedImage for Windows.
2137         https://bugs.webkit.org/show_bug.cgi?25648
2138         
2139         Reviewed by Adam Roben.
2140
2141         * DOMCoreClasses.cpp:
2142         (DOMElement::renderedImage):
2143         * DOMCoreClasses.h:
2144         * Interfaces/DOMPrivate.idl:
2145
2146 2008-12-01  Eric Seidel  <eric@webkit.org>
2147
2148         Reviewed by Adam Roben.
2149
2150         NULL-check documentFrameView() and topDocumentFrameView() it's possible
2151         for either of these methods to return NULL, and this was seen to cause
2152         crashes in Chromium.
2153         https://bugs.webkit.org/show_bug.cgi?id=22572
2154
2155         * AccessibleBase.cpp:
2156         (AccessibleBase::get_accParent):
2157         (AccessibleBase::accLocation):
2158         (AccessibleBase::accHitTest):
2159
2160 2008-11-30  Antti Koivisto  <antti@apple.com>
2161
2162         Another Windows build fix.
2163
2164         * WebCoreStatistics.cpp:
2165         (WebCoreStatistics::javaScriptObjectsCount):
2166
2167 2008-11-30  Antti Koivisto  <antti@apple.com>
2168
2169         Windows build fix.
2170
2171         * WebJavaScriptCollector.cpp:
2172         (WebJavaScriptCollector::objectCount):
2173
2174 2008-11-29  Brent Fulgham  <bfulgham@gmail.com>
2175
2176         Reviewed by Alexey Proskuryakov.
2177
2178         Remove Visual Studio project dependencies on non-redistributable
2179         components in the Debug_Cairo and Release_Cairo build targets.
2180         See https://bugs.webkit.org/show_bug.cgi?id=22527
2181
2182         * WebKit.vcproj/WebKit.vcproj:
2183         * WebKit.vcproj/WebKit.sln: Instruct Cairo builds to not bother
2184           building the unused QuickTime support library.
2185
2186 2008-11-24  Glenn Wilson  <gwilson@chromium.org>
2187
2188         Reviewed by Alexey Proskuryakov.
2189
2190         http://bugs.webkit.org/show_bug.cgi?id=15643
2191
2192         Added API support for the "trailing whitespace" work-around.  This includes an APIs
2193         to get and set the state of this configuration variable.
2194
2195         * Interfaces/IWebView.idl:
2196         * WebCoreSupport/WebEditorClient.cpp:
2197         (WebEditorClient::selectTrailingWhitespaceEnabled):
2198         * WebCoreSupport/WebEditorClient.h:
2199         * WebView.cpp:
2200         (WebView::WebView):
2201         (WebView::setSelectTrailingWhitespaceEnabled):
2202         (WebView::selectTrailingWhitespaceEnabled):
2203         * WebView.h:
2204
2205 2008-11-24  Darin Adler  <darin@apple.com>
2206
2207         Reviewed by Dan Bernstein.
2208
2209         - https://bugs.webkit.org/show_bug.cgi?id=22470
2210           remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
2211
2212         * WebCoreSupport/WebFrameLoaderClient.cpp:
2213         (WebFrameLoaderClient::updateGlobalHistory): Get the URL from the
2214         DocumentLoader, just as we do the title and the failure flag.
2215         * WebCoreSupport/WebFrameLoaderClient.h: Remove argument.
2216
2217 2008-11-24  Darin Adler  <darin@apple.com>
2218
2219         Reviewed by Dan Bernstein.
2220
2221         - finish https://bugs.webkit.org/show_bug.cgi?id=22295
2222           track which history items are from page load failures
2223
2224         Last time around I did this only for the back/forward list and missed the
2225         global history list.
2226
2227         * Interfaces/IWebHistoryItemPrivate.idl: Added setLastVisitWasFailure.
2228
2229         * WebCoreSupport/WebFrameLoaderClient.cpp:
2230         (WebFrameLoaderClient::updateGlobalHistory): Added code to check for failure
2231         and pass the argument in to WebHistory.
2232
2233         * WebHistory.cpp: (WebHistory::addItem): Added wasFailure argument.
2234         Set the flag on the newly created history item.
2235         * WebHistory.h: Ditto.
2236
2237         * WebHistoryItem.cpp:
2238         (WebHistoryItem::setLastVisitWasFailure): Added.
2239         * WebHistoryItem.h: Ditto.
2240
2241 2008-11-24  Simon Fraser  <simon.fraser@apple.com>
2242
2243         Fix call to Frame::selectionBounds in Windows build.
2244
2245         * WebView.cpp:
2246         (WebView::selectionRect):
2247
2248 2008-11-21  Dimitri Glazkov  <dglazkov@chromium.org>
2249
2250         Reviewed by Alexey Proskuryakov.
2251
2252         Debug WebKit crashes on launch because of threading not being initialized early enough.
2253
2254         * WebKitClassFactory.cpp: (WebKitClassFactory::WebKitClassFactory):
2255         Call JSC::InitializeThreading().
2256
2257 2008-11-19  Darin Fisher  <darin@chromium.org>
2258
2259         Reviewed by Geoff Garen.
2260
2261         https://bugs.webkit.org/show_bug.cgi?id=22345
2262         Define ScriptValue as a thin container for a JSC::Value*.
2263
2264         * WebView.cpp:
2265         (WebView::stringByEvaluatingJavaScriptFromString):
2266
2267 2008-11-19  Adele Peterson  <adele@apple.com>
2268
2269         Reviewed by Darin Adler.
2270
2271         For transparent views, clear the dirty rect instead of painting it white.
2272         
2273         * WebView.cpp: (WebView::paintIntoBackingStore):
2274
2275 2008-11-18  Adele Peterson  <adele@apple.com>
2276
2277         Reverting last change.  I just realized it causes the view to never get cleared out.
2278
2279         * WebView.cpp: (WebView::paintIntoBackingStore):
2280
2281 2008-11-18  Adele Peterson  <adele@apple.com>
2282
2283         Reviewed by John Sullivan.
2284
2285         Don't fill the view with white if its transparent.
2286         
2287         * WebView.cpp: (WebView::paintIntoBackingStore):
2288
2289 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
2290
2291         Try to fix the Windows build. It is view and not webView.
2292
2293         * WebCoreSupport/WebFrameLoaderClient.cpp:
2294         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2295
2296 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
2297
2298         Reviewed by Simon Hausmann.
2299
2300         Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
2301
2302         After Hyatt's work on Widget and ScrollView there is little difference
2303         between the implementation of Qt, Gtk+ and Win. In fact any kind of
2304         difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
2305         port and the Qt port has at least one of them left.
2306
2307         The only difference between the implementations is in getting the the
2308         IntSize for the new FrameView, the background color to be applied and
2309         eventually some post processing.
2310
2311         Unify the implementations by providing a static helper function that
2312         takes a Frame, IntSize, color and transparency bit and calling it from
2313         the Gtk+, the Qt and the Windows port.
2314
2315         * WebCoreSupport/WebFrameLoaderClient.cpp:
2316         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2317
2318 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
2319
2320         Reviewed by Simon Hausmann.
2321
2322         https://bugs.webkit.org/show_bug.cgi?id=22056
2323
2324         Move setting the background color and transparency from WebKit/win
2325         to WebCore. This allows WebKit/win, WebKit/Qt and WebKit/Gtk+
2326         to share this code.
2327
2328         * WebFrame.cpp:
2329         (WebFrame::updateBackground):
2330
2331 2008-11-16  Geoffrey Garen  <ggaren@apple.com>
2332
2333         Not reviewed.
2334         
2335         Try to fix Windows build.
2336
2337         * WebCoreSupport/WebFrameLoaderClient.cpp:
2338
2339 2008-11-16  Darin Adler  <darin@apple.com>
2340
2341         Reviewed by Dan Bernstein.
2342
2343         - https://bugs.webkit.org/show_bug.cgi?id=22295
2344           track which history items are from page load failures
2345
2346         * Interfaces/IWebHistoryItemPrivate.idl: Added lastVisitWasFailure function.
2347
2348         * WebHistoryItem.cpp:
2349         (WebHistoryItem::initFromDictionaryRepresentation): Set the lastVisitWasFailure
2350         flag in the history item if the dictionary had an entry for lastVisitWasFailureKey.
2351         (WebHistoryItem::dictionaryRepresentation): Set the lastVisitWasFailureKey key
2352         in the dictionary if the history item had the lastVisitWasFailure flag.
2353         (WebHistoryItem::lastVisitWasFailure): Added.
2354
2355         * WebHistoryItem.h: Added lastVisitWasFailure function.
2356
2357 2008-11-15  Geoffrey Garen  <ggaren@apple.com>
2358
2359         Reviewed by Sam Weinig.
2360         
2361         Updated for JavaScriptCore renames.
2362
2363         * WebScriptCallFrame.cpp:
2364         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
2365
2366 2008-11-14  Dan Bernstein  <mitz@apple.com>
2367
2368         - try to fix the Windows build
2369
2370         * WebCoreLocalizedStrings.cpp:
2371         (WebCore::contextMenuItemTagTextDirectionMenu): Added.
2372
2373 2008-11-13  Adam Roben  <aroben@apple.com>
2374
2375         Fix Bug 22244: Webkit nightly builds crash with Safari 3.2
2376
2377         <https://bugs.webkit.org/show_bug.cgi?id=22244>
2378
2379         r36652 added IWebViewPrivate::clearMainFrameName into the middle of
2380         the IWebViewPrivate interface, which modifies the part of the
2381         IWebViewPrivate vtable that Safari 3.2 relies on.
2382
2383         Reviewed by Dan Bernstein.
2384
2385         * Interfaces/IWebViewPrivate.idl: Move clearMainFrameName to the end
2386         of the interface.
2387
2388 2008-11-11  Dan Bernstein  <mitz@apple.com>
2389
2390         Reviewed by Adam Roben.
2391
2392         WebKit/win part of adding a master volume control for media elements in a WebView
2393         * Interfaces/IWebViewPrivate.idl: Added setMediaVolume() and
2394         mediaVolume().
2395         * WebView.cpp:
2396         (WebView::setMediaVolume): Added.
2397         (WebView::mediaVolume): Added.
2398         * WebView.h:
2399
2400 2008-11-10  Adam Roben  <aroben@apple.com>
2401
2402         Fix Bug 22158: Would like to turn on WebCore logging channels via an
2403         environment variable
2404
2405         <https://bugs.webkit.org/show_bug.cgi?id=22158>
2406
2407         Reviewed by Anders Carlsson.
2408
2409         * WebView.cpp:
2410         (WebView::initWithFrame): Call WebCore's
2411         InitializeLoggingChannelsIfNecessary.
2412
2413 2008-11-08  Dan Bernstein  <mitz@apple.com>
2414
2415         Reviewed by Darin Adler.
2416
2417         - WebKit/win part of adding WebPreferences for controlling databases and local storage
2418
2419         * Interfaces/IWebPreferencesPrivate.idl: Declared setDatabasesEnabled,
2420         databasesEnabled, setLocalStorageEnabled and localStorageEnabled.
2421         * WebPreferenceKeysPrivate.h: Added WebKitDatabasesEnabledPreferenceKey
2422         and WebKitLocalStorageEnabledPreferenceKey.
2423         * WebPreferences.cpp:
2424         (WebPreferences::initializeDefaultSettings): Made databases and local
2425         storage enabled by default.
2426         (WebPreferences::setDatabasesEnabled): Added.
2427         (WebPreferences::databasesEnabled): Added.
2428         (WebPreferences::setLocalStorageEnabled): Added.
2429         (WebPreferences::localStorageEnabled): Added.
2430         * WebPreferences.h:
2431         * WebView.cpp:
2432         (WebView::notifyPreferencesChanged): Transfer the databases and local
2433         storage preferences to WebCore settings.
2434
2435 2008-11-06  John Sullivan  <sullivan@apple.com>
2436     
2437         Eliminated one of the two booleans tracking whether zoom was text-only, to avoid future problems.
2438     
2439         Reviewed by Adam Roben
2440
2441         * WebView.h:
2442         removed m_zoomMultiplierIsTextOnly
2443         
2444         * WebView.cpp:
2445         (WebView::WebView):
2446         removed initialization of m_zoomMultiplierIsTextOnly
2447         (WebView::setZoomMultiplier):
2448         use m_page->settings()->setZoomsTextOnly() instead of setting m_zoomMultiplierIsTextOnly
2449         (WebView::zoomMultiplier):
2450         use m_page->settings()->zoomsTextOnly() instead of reading m_zoomMultiplierIsTextOnly
2451
2452 2008-11-06  Adele Peterson  <adele@apple.com>
2453
2454         Reviewed by Adam Roben.
2455
2456         Add support for a WebKitZoomsTextOnly preference.
2457
2458         * Interfaces/IWebPreferences.idl:
2459         * WebPreferenceKeysPrivate.h:
2460         * WebPreferences.cpp:
2461         (WebPreferences::setZoomsTextOnly):
2462         (WebPreferences::zoomsTextOnly):
2463         * WebPreferences.h:
2464
2465         * WebView.cpp:
2466         (WebView::canMakeTextLarger): Consider the zoomsTextOnly setting when computing this.
2467         (WebView::makeTextLarger): ditto.
2468         (WebView::canMakeTextSmaller): ditto.
2469         (WebView::makeTextSmaller): ditto.
2470         (WebView::canMakeTextStandardSize): 
2471         Don't consider the setting in this case since we need to reset both text zoom and page zoom regardless of the setting.
2472         (WebView::makeTextStandardSize):
2473         (WebView::notifyPreferencesChanged): Set the WebCore settings to match the WebPreference for WebKitZoomsTextOnly.
2474
2475 2008-11-05  Dan Bernstein  <mitz@apple.com>
2476
2477         Reviewed by John Sullivan.
2478
2479         - make the {protocol,proxyType} argument of
2480           WebURLProtectionSpace::initWith{Proxy}Host actually work and fix
2481           assertion failures.
2482
2483         * WebURLProtectionSpace.cpp:
2484         (WebURLProtectionSpace::initWithHost): The BString comparisons were
2485         applying the BString==BSTR operator to a right hand side that was
2486         actually a WCHAR string. Fixed by using BStrings on both sides.
2487         (WebURLProtectionSpace::initWithProxyHost): Ditto.
2488
2489 2008-11-01  Alexey Proskuryakov  <ap@webkit.org>
2490
2491         Reviewed by Darin Adler.
2492
2493         https://bugs.webkit.org/show_bug.cgi?id=22030
2494         Make EventNames usable from multiple threads
2495
2496         * WebView.cpp: (WebView::interpretKeyEvent): Access event names via eventNames() function.
2497
2498 2008-11-03  Cameron Zwarich  <zwarich@apple.com>
2499
2500         Rubber-stamped by Maciej Stachowiak.
2501
2502         Move more files into the runtime subdirectory of JavaScriptCore.
2503
2504         * WebJavaScriptCollector.cpp:
2505
2506 2008-11-03  Dan Bernstein  <mitz@apple.com>
2507
2508         Reviewed by Steve Falkenburg.
2509
2510         - implement WebMutableURLRequest::setHTTPShouldHandleCookies()
2511         - add and implement WebMutableURLRequest::mutableCopy()
2512
2513         * Interfaces/IWebURLRequest.idl:
2514         * WebMutableURLRequest.cpp:
2515         (WebMutableURLRequest::setHTTPShouldHandleCookies):
2516         (WebMutableURLRequest::mutableCopy):
2517         * WebMutableURLRequest.h:
2518
2519 2008-10-31  Dan Bernstein  <mitz@apple.com>
2520
2521         Reviewed by John Sullivan.
2522
2523         - WebKit/win part of <rdar://problem/6334641> Add WebView SPI for disabling document.cookie
2524
2525         * Interfaces/IWebViewPrivate.idl:
2526         * WebView.cpp:
2527         (WebView::setCookieEnabled):
2528         (WebView::cookieEnabled):
2529         * WebView.h:
2530
2531 2008-10-31  Adele Peterson  <adele@apple.com>
2532
2533         Reviewed by Darin Adler.
2534
2535         WebKit Windows part of fix for <rdar://problem/5839256> FILE CONTROL: multi-file upload.
2536         https://bugs.webkit.org/show_bug.cgi?id=22008
2537         
2538         * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::runOpenPanel): 
2539         Add support for mulitple file selection.
2540
2541 2008-10-31  Darin Adler  <darin@apple.com>
2542
2543         - try to fix build
2544
2545         * WebView.cpp:
2546         (WebView::setCacheModel): Roll out the part of my last change
2547         that involved no longer using wkCopyFoundationCacheDirectory.
2548
2549 2008-10-30  Darin Adler  <darin@apple.com>
2550
2551         Reviewed by Sam Weinig.
2552
2553         - https://bugs.webkit.org/show_bug.cgi?id=21986
2554           <rdar://problem/6294285> adopt CFURLCopySharedURLCache
2555
2556         * WebView.cpp:
2557         (WebView::setCacheModel): Use CFURLCopySharedURLCache if present.
2558
2559 2008-10-30  Dan Bernstein  <mitz@apple.com>
2560
2561         Reviewed by Sam Weinig.
2562
2563         - export WTFReportAssertionFailureWithMessage()
2564
2565         * WebKit.vcproj/WebKit_debug.def:
2566
2567 2008-10-29  Steve Falkenburg  <sfalken@apple.com>
2568
2569         <rdar://problem/6326563> Crash on launch
2570         
2571         For Windows, export explicit functions rather than exporting data for atomicallyInitializedStaticMutex.
2572         
2573         Exporting data from a DLL on Windows requires specifying __declspec(dllimport) in the header used by
2574         callers, but __declspec(dllexport) when defined in the DLL implementation. By instead exporting
2575         the explicit lock/unlock functions, we can avoid this.
2576         
2577         Fixes a crash on launch, since we were previously erroneously exporting atomicallyInitializedStaticMutex as a function.
2578         
2579         Reviewed by Darin Adler.
2580
2581         * WebKit.vcproj/WebKit.def:
2582         * WebKit.vcproj/WebKit_debug.def:
2583
2584 2008-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
2585
2586         Export atomicallyInitializedStaticMutex.
2587
2588         Rubber-stamped by Steve Falkenburg.
2589
2590         * WebKit.vcproj/WebKit.def:
2591         * WebKit.vcproj/WebKit_debug.def:
2592
2593 2008-10-28  Cameron Zwarich  <zwarich@apple.com>
2594
2595         Reviewed by Mark Rowe.
2596
2597         Move ForwardingHeaders to their correct location after the creation of
2598         the runtime directory in JavaScriptCore.
2599
2600         * WebScriptCallFrame.h:
2601
2602 2008-10-28  Adele Peterson  <adele@apple.com>
2603
2604         Reviewed by John Sullivan.
2605
2606         Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
2607         "files" string for multifile uploads needs to be localized
2608
2609         * WebCoreLocalizedStrings.cpp: (multipleFileUploadText):
2610
2611 2008-10-28  Adele Peterson  <adele@apple.com>
2612
2613         Reviewed by Sam Weinig. 
2614
2615         * English.lproj: Removed.
2616         * English.lproj/Localizable.strings: Removed.
2617         * WebKit.vcproj/WebKit.vcproj: Updated to use Localizable.strings in the top directory, to share with the Mac.
2618
2619 2008-10-28  Timothy Hatcher  <timothy@apple.com>
2620
2621         Add IWebInspector methods to enable the profiler.
2622
2623         https://bugs.webkit.org/show_bug.cgi?id=21927
2624
2625         <rdar://problem/6211578> Make the JavaScript profiler opt-in, so it does
2626         not slow down JavaScript all the time
2627
2628         Reviewed by Darin Adler and Kevin McCullough.
2629
2630         * WebInspector.cpp:
2631         (WebInspector::isJavaScriptProfilingEnabled): Added. Calls InspectorController::profilerEnabled.
2632         (WebInspector::setJavaScriptProfilingEnabled): Added. Call InspectorController's disableProfiler
2633         or enableProfiler methods.
2634         * WebInspector.h:
2635
2636 2008-10-27  Timothy Hatcher  <timothy@apple.com>
2637
2638         Rename a few methods related to attaching and detaching the debugger.
2639
2640         * Rename attachDebugger to enableDebugger.
2641         * Rename detachDebugger to disableDebugger.
2642         * Rename the debuggerAttached getter to debuggerEnabled.
2643
2644         Reviewed by Darin Adler.
2645
2646         * WebInspector.cpp:
2647         (WebInspector::isDebuggingJavaScript):
2648         (WebInspector::toggleDebuggingJavaScript):
2649
2650 2008-10-24  Sam Weinig  <sam@webkit.org>
2651
2652         Yet another windows build fix.
2653
2654         * WebCoreSupport/WebChromeClient.cpp:
2655
2656 2008-10-24  Sam Weinig  <sam@webkit.org>
2657
2658         Another windows build fix.
2659
2660         * WebCoreSupport/WebChromeClient.cpp:
2661
2662 2008-10-24  Sam Weinig  <sam@webkit.org>
2663
2664         Reviewed by Dan Bernstein.
2665
2666         Fix https://bugs.webkit.org/show_bug.cgi?id=21759
2667         Layering violation: FileChooser should not depend on Document/Frame/Page
2668
2669         * WebCoreSupport/WebChromeClient.cpp:
2670         (WebChromeClient::runOpenPanel):
2671         * WebCoreSupport/WebChromeClient.h:
2672
2673 2008-10-24  Timothy Hatcher  <timothy@apple.com>
2674
2675         Implement new InspectorClient methods to work with Settings.
2676
2677         https://bugs.webkit.org/show_bug.cgi?id=21856
2678
2679         Reviewed by Adam Roben.
2680
2681         * WebKit.vcproj/WebKit.vcproj: Add the new InspectorClientCF.cpp file.
2682         * WebCoreSupport/WebInspectorClient.h: Add the new methods.
2683
2684 2008-10-24  Darin Adler  <darin@apple.com>
2685
2686         - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
2687
2688         * WebScriptCallFrame.cpp:
2689         (WebScriptCallFrame::jsValueToString):
2690         (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString):
2691         (WebScriptCallFrame::valueForVariable):
2692         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
2693         * WebScriptCallFrame.h:
2694         * WebView.cpp:
2695         (WebView::stringByEvaluatingJavaScriptFromString):
2696         Use JSValue* instead of JSValuePtr.
2697
2698 2008-10-22  Brent Fulgham  <bfulgham@gmail.com>
2699
2700         Correct build regressions in Cairo port for Windows.
2701         http://bugs.webkit.org/show_bug.cgi?id=21724
2702
2703         Reviewed by Adam Roben.
2704
2705         * WebView.cpp:
2706         (WebView::notifyPreferencesChanged): Don't try to call
2707         setShouldPaintNativeControls when SafariTheme support is disabled, as
2708         that function doesn't exist in that case.
2709
2710 2008-10-22  Brady Eidson  <beidson@apple.com>
2711
2712         Reviewed by Adam Roben
2713         
2714         Move elementDoesAutoComplete() to IWebFramePrivate so it is exposed for DRT to use
2715
2716         * Interfaces/IWebFramePrivate.idl:
2717         
2718         * WebFrame.cpp:
2719         (WebFrame::elementDoesAutoComplete):
2720         * WebFrame.h:
2721         
2722         * WebHTMLRepresentation.cpp:
2723         (WebHTMLRepresentation::elementDoesAutoComplete):
2724
2725 2008-10-20  Sam Weinig  <sam@webkit.org>
2726
2727         Reviewed by Anders Carlsson.
2728
2729         Remove FrameLoaderClient::detachedFromParent4.  It is no longer used by any port.
2730
2731         * WebFrame.cpp:
2732         * WebFrame.h:
2733
2734 2008-10-19  Darin Adler  <darin@apple.com>
2735
2736         Reviewed by Oliver Hunt.
2737
2738         - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
2739           improve performance by eliminating JSValue as a base class for JSCell
2740
2741         Remove most uses of JSValue, which will be removed in a future patch.
2742
2743         * WebScriptCallFrame.cpp:
2744         (WebScriptCallFrame::jsValueToString): Use JSValuePtr.
2745         (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): Ditto.
2746         (WebScriptCallFrame::valueForVariable): Put more code inside and ifdef.
2747         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): Ditto.
2748         * WebScriptCallFrame.h: Use JSValuePtr.
2749
2750         * WebView.cpp:
2751         (WebView::stringByEvaluatingJavaScriptFromString): Use JSValuePtr.
2752
2753 2008-10-18  Dan Bernstein  <mitz@apple.com>
2754
2755         - build fix
2756
2757         * WebScriptCallFrame.cpp:
2758         (WebScriptCallFrame::jsValueToString):
2759
2760 2008-10-18  Dan Bernstein  <mitz@apple.com>
2761
2762         Reviewed by Sam Weinig.
2763
2764         - WebKit/win part of https://bugs.webkit.org/show_bug.cgi?id=21736
2765           Long-dead decoded image data make up for most of the object cache's memory use over time
2766
2767         * WebView.cpp:
2768         (WebView::setCacheModel): In the primary web browser model,
2769         set the cache's dead decoded data deletion interval to 60 seconds.
2770
2771 2008-10-16  Kevin McCullough  <kmccullough@apple.com>
2772
2773         Reviewed by Steve Falkenburg.
2774
2775         <rdar://problem/6292718>
2776         Implement a standard way to get the UA given an application name.
2777
2778         * Interfaces/IWebViewPrivate.idl:
2779         * WebView.cpp:
2780         (WebView::standardUserAgentWithApplicationName):
2781         * WebView.h:
2782
2783 2008-10-17  Dan Bernstein  <mitz@apple.com>
2784
2785         Reviewed by Sam Weinig.
2786
2787         - export WTF::initializeOnMainThread()
2788
2789         * WebKit.vcproj/WebKit.def:
2790         * WebKit.vcproj/WebKit_debug.def:
2791
2792 2008-10-15  Geoffrey Garen  <ggaren@apple.com>
2793
2794         Reviewed by Cameron Zwarich.
2795
2796         Fixed https://bugs.webkit.org/show_bug.cgi?id=21345
2797         Start the debugger without reloading the inspected page
2798
2799         * WebInspector.cpp:
2800         (WebInspector::toggleDebuggingJavaScript): Updated for rename.
2801
2802 2008-10-15  Adam Roben  <aroben@apple.com>
2803
2804         Export WTF::Mutex::tryLock
2805
2806         * WebKit.vcproj/WebKit.def:
2807         * WebKit.vcproj/WebKit_debug.def:
2808
2809 2008-10-14  Jon Honeycutt  <jhoneycutt@apple.com>
2810
2811         Export currentThread.
2812
2813         Rubber-stamped by Dan Bernstein.
2814
2815         * WebKit.vcproj/WebKit.def:
2816         * WebKit.vcproj/WebKit_debug.def:
2817
2818 2008-10-13  Steve Falkenburg  <sfalken@apple.com>
2819
2820         Reorder methods to preserve compatibility.
2821         
2822         Rubber stamped by Oliver Hunt.
2823
2824         * Interfaces/IWebViewPrivate.idl:
2825
2826 2008-10-11  Dan Bernstein  <mitz@apple.com>
2827
2828         Reviewed by Sam Weinig.
2829
2830         - add SPI for forcing the complex text code path to be used for all text
2831
2832         * Interfaces/IWebViewPrivate.idl:
2833         * WebView.cpp:
2834         (WebView::setAlwaysUsesComplexTextCodePath):
2835         (WebView::alwaysUsesComplexTextCodePath):
2836         * WebView.h:
2837
2838 2008-10-10  Ada Chan  <adachan@apple.com>
2839
2840         Bug 21526: The hashmap webPreferencesInstances in WebPreferences.cpp can 
2841         potentially hold onto stale instances of WebPreferences
2842         https://bugs.webkit.org/show_bug.cgi?id=21526
2843         
2844         webPreferencesInstances now keeps a reference to all the instances it holds.
2845         Fix up callers of WebPreferences::removeReferenceForIdentifier() to call 
2846         it after they have released their references to the WebPreferences objects.
2847
2848         Reviewed by Adam Roben.
2849
2850         * WebPreferences.cpp:
2851         (WebPreferences::getInstanceForIdentifier):
2852         (WebPreferences::removeReferenceForIdentifier):
2853         * WebView.cpp:
2854         (WebView::close):
2855         (WebView::setPreferences):
2856
2857 2008-10-06  David Hyatt  <hyatt@apple.com>
2858
2859         Enable viewless Mac WebKit to paint some basic pages.
2860         
2861         Reviewed by Sam Weinig
2862
2863         * WebCoreSupport/WebFrameLoaderClient.cpp:
2864         (WebFrameLoaderClient::createFrame):
2865         * WebCoreSupport/WebFrameLoaderClient.h:
2866
2867 2008-10-03  David Hyatt  <hyatt@apple.com>
2868
2869         https://bugs.webkit.org/show_bug.cgi?id=21340
2870         
2871         Remove "containingWindow()/setContainingWindow()" from Widget.  HostWindow covers this now.
2872         
2873         Reviewed by Dan Bernstein & Darin Adler
2874
2875         * WebCoreSupport/WebFrameLoaderClient.cpp:
2876         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2877         * WebScrollBar.cpp:
2878         (WebScrollBar::WebScrollBar):
2879         (WebScrollBar::init):
2880         (WebScrollBar::invalidateScrollbarRect):
2881         * WebScrollBar.h:
2882
2883 2008-10-03  David Hyatt  <hyatt@apple.com>
2884
2885          Remove addToDirtyRegion.
2886         
2887          Reviewed by Oliver Hunt
2888
2889         * WebCoreSupport/WebChromeClient.cpp:
2890
2891 2008-10-02  David Hyatt  <hyatt@apple.com>
2892
2893         https://bugs.webkit.org/show_bug.cgi?id=21328
2894         
2895         Make widget invalidation more cross-platform.
2896         
2897         (1) Make invalidateRect a pure virtual function on Widget.  All leaf widgets must now implement this function.
2898         
2899         (2) Scrollbars now send invalidations through the ScrollbarClient.  windowClipRect on ScrollbarClient has been removed and replaced with this invalidation call.
2900         This allows all scrollbar invalidations to go through the render tree so that transforms and reflections will be respected.
2901         
2902         (3) Plugins now have the native window invalidation code for windowed plugins.  Windowless plugins do a repaintRectangle on the plugin's renderer.
2903         
2904         (4) FrameViews now do a repaintRectangle on their owner element's renderer.
2905
2906         Reviewed by Sam Weinig
2907
2908         * WebCoreSupport/EmbeddedWidget.cpp:
2909         (EmbeddedWidget::invalidateRect):
2910         * WebCoreSupport/EmbeddedWidget.h:
2911         * WebScrollBar.cpp:
2912         (WebScrollBar::invalidateScrollbarRect):
2913         * WebScrollBar.h:
2914
2915 2008-10-02  Darin Adler  <darin@apple.com>
2916
2917         - https://bugs.webkit.org/show_bug.cgi?id=21321
2918           Bug 21321: speed up JavaScriptCore by inlining Heap in JSGlobalData
2919
2920         * WebCoreStatistics.cpp:
2921         (WebCoreStatistics::javaScriptObjectsCount): Use heap. instead of heap-> to
2922         work with the heap.
2923         (WebCoreStatistics::javaScriptGlobalObjectsCount): Ditto.
2924         (WebCoreStatistics::javaScriptProtectedObjectsCount): Ditto.
2925         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): Ditto.
2926         (WebCoreStatistics::javaScriptProtectedObjectTypeCounts): Ditto.
2927         * WebJavaScriptCollector.cpp:
2928         (WebJavaScriptCollector::objectCount): Ditto.
2929
2930 2008-10-02  Dave Hyatt  <hyatt@apple.com>
2931
2932         https://bugs.webkit.org/show_bug.cgi?id=21316
2933
2934         Reviewed by Adele
2935        
2936         * WebCoreSupport/WebFrameLoaderClient.cpp:
2937         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2938
2939 2008-10-02  David Hyatt  <hyatt@apple.com>
2940
2941         https://bugs.webkit.org/show_bug.cgi?id=21314
2942         
2943         Make scrollBackingStore cross-platform.
2944
2945         Reviewed by Sam Weinig
2946
2947         * WebCoreSupport/WebChromeClient.cpp:
2948         (WebChromeClient::repaint):
2949         (WebChromeClient::scroll):
2950         * WebCoreSupport/WebChromeClient.h:
2951         * WebView.cpp:
2952         (WebView::repaint):
2953         * WebView.h:
2954
2955 2008-10-01  David Hyatt  <hyatt@apple.com>
2956
2957         https://bugs.webkit.org/show_bug.cgi?id=21298
2958         
2959         Make updateScrollbars cross-platform.  For now a stubbed out scrollContents function is invoked to do the scrolling of the backing store.  Next patch
2960         will make that cross-platform.  
2961         
2962         The ScrollView now implements ScrollbarClient, which means that there was a clash of windowClipRect methods from the
2963         multiple inheritance.  For now I solved this by adding a Scrollbar* to the ScrollbarClient version of the method, but longer term
2964         windowClipRect is going to be removed from ScrollbarClient (when Widget invalidation gets rewritten).
2965
2966         Reviewed by Sam Weinig
2967
2968         * WebScrollBar.cpp:
2969         (WebScrollBar::windowClipRect):
2970         * WebScrollBar.h:
2971
2972 2008-10-01  David Hyatt  <hyatt@apple.com>
2973         
2974         https://bugs.webkit.org/show_bug.cgi?id=21282
2975         
2976         Make contentsToScreen/screenToContents cross-platform.  Only implemented by Mac/Win right now.
2977         
2978         Reviewed by Adam Roben
2979
2980         * WebCoreSupport/WebChromeClient.cpp:
2981         (WebChromeClient::windowToScreen):
2982         (WebChromeClient::screenToWindow):
2983         * WebCoreSupport/WebChromeClient.h:
2984
2985 2008-09-30   Dave Hyatt  <hyatt@apple.com>
2986
2987         https://bugs.webkit.org/show_bug.cgi?id=21269
2988   
2989         This patch makes the ScrollView::paint method cross-platform.  The paint method calls the base class
2990         Widget paint on platforms with native widgets (Mac and wx).  Otherwise it calls a virtual function,
2991         paintContents, to paint the ScrollView's contents, and then it paints each of the two scrollbars and
2992         the scrollbar corner.
2993         
2994         The scrollbar themes are now responsible for painting scrollbar corners.  At the moment ScrollbarThemeWin still
2995         paints white (which is incorrect), so a future patch will actually implement proper native scroll corner painting
2996         for Windows.
2997         
2998         paintContents is implemented by FrameView, and replaces Frame::paint.  All of the FramePrivate member
2999         variables used by Frame::paint have moved to FrameViewPrivate instead.  All callers of Frame::paint have
3000         been patched to use FrameView::paintContents instead.
3001         
3002         Reviewed by Darin Adler
3003
3004         * WebFrame.cpp:
3005         (WebFrame::paintDocumentRectToContext):
3006         (WebFrame::spoolPages):
3007
3008 2008-09-30  Dave Hyatt  <hyatt@apple.com>
3009
3010         http://bugs.webkit.org/show_bug.cgi?id=21250
3011         
3012         Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
3013         repaints up through the ChromeClient.
3014
3015         Reviewed by Darin Adler
3016
3017         * WebCoreSupport/WebChromeClient.cpp:
3018         (WebChromeClient::repaint):
3019         * WebCoreSupport/WebChromeClient.h:
3020         * WebView.cpp:
3021         (WebView::repaint):
3022         * WebView.h:
3023
3024 2008-09-29  Dan Bernstein  <mitz@apple.com>
3025
3026         Reviewed by Adam Roben.
3027
3028         - WebKit/win part of fixing <rdar://problem/6247906> REGRESSION (r19500): Crash on quit beneath CloseThemeData
3029
3030         * WebKitDLL.cpp:
3031         (DllMain): Call RenderThemeWin::setWebKitIsBeingUnloaded() when WebKit
3032         is being unloaded.
3033
3034 2008-09-27  David Hyatt  <hyatt@apple.com>
3035
3036         Land the frameGeometry->frameRect changes that I forgot to land in WebKit.
3037
3038         * Interfaces/IWebScrollBarPrivate.idl:
3039         * WebCoreSupport/EmbeddedWidget.cpp:
3040         (EmbeddedWidget::setFrameRect):
3041         (EmbeddedWidget::frameRectsChanged):
3042         * WebCoreSupport/EmbeddedWidget.h:
3043         * WebScrollBar.cpp:
3044         (WebScrollBar::setRect):
3045         (WebScrollBar::frameRect):
3046         * WebScrollBar.h:
3047
3048 2008-09-27  Anders Carlsson  <andersca@apple.com>
3049
3050         Fix build.
3051
3052         * WebCoreSupport/EmbeddedWidget.cpp:
3053         (EmbeddedWidget::setFrameRect):
3054         (EmbeddedWidget::frameRectsChanged):
3055         * WebCoreSupport/EmbeddedWidget.h:
3056         * WebScrollBar.cpp:
3057         (WebScrollBar::setRect):
3058         (WebScrollBar::frameGeometry):
3059
3060 2008-09-26  David Kilzer  <ddkilzer@apple.com>
3061
3062         Speculative Windows build fix with XSLT disabled
3063
3064         Reviewed by Alexey.
3065
3066         * WebCache.cpp:
3067         (WebCache::statistics): Populate xslStyleSheet statistics with
3068         zeros if XSLT is disabled.
3069
3070 2008-09-24  Matt Lilek  <webkit@mattlilek.com>
3071
3072         Reviewed by Darin Adler.
3073
3074         Bug 20999: Inspector hover to select does not work properly on Windows
3075         https://bugs.webkit.org/show_bug.cgi?id=20999
3076         <rdar://problem/6236524>
3077
3078         * WebNodeHighlight.cpp:
3079         (WebNodeHighlight::show):
3080
3081 2008-09-24  Darin Adler  <darin@apple.com>
3082
3083         * English.lproj/Localizable.strings: Updated for recent changes.
3084
3085 2008-09-22  Alice Liu  <alice.liu@apple.com>
3086
3087         Added record-memory-win.vcproj tool to the solution
3088
3089         Reviewed by Steve Falkenburg.
3090
3091         * WebKit.vcproj/WebKit.sln:
3092
3093 2008-09-20  Darin Adler  <darin@apple.com>
3094
3095         - fix build
3096
3097         * WebCoreSupport/WebChromeClient.cpp:
3098         (WebChromeClient::paintCustomScrollbar): Tweaked constant names to make this
3099         compile, but it may not be working correctly. Hyatt should do the real fix.
3100
3101 2008-09-19  Alice Liu  <alice.liu@apple.com>
3102
3103         Fix crash when submitting form at bugreport.apple.com rdar://6234126
3104
3105         Reviewed by Mark Rowe.
3106
3107         * COMPropertyBag.h:
3108         (::GetPropertyInfo):
3109         correct mis-use of comma operator
3110
3111 2008-09-18  Mark Rowe  <mrowe@apple.com>
3112
3113         Reviewed by Dan Bernstein.
3114
3115         Add SPI to WebView to allow DRT to clear the main frame's name between tests.
3116
3117         * Interfaces/IWebViewPrivate.idl:
3118         * WebView.cpp:
3119         (WebView::clearMainFrameName):
3120         * WebView.h:
3121
3122 2008-09-16  Alp Toker  <alp@nuanti.com>
3123
3124         Suggested by Dave Hyatt.
3125
3126         Build fix and cleanup. Rename ScrollBar to Scrollbar.
3127
3128         * WebScrollBar.cpp:
3129         * WebScrollBar.h:
3130
3131 2008-09-16  David Hyatt  <hyatt@apple.com>
3132
3133         Eliminate PlatformScrollbar.
3134
3135         Reviewed by Sam Weinig
3136
3137         * WebScrollBar.cpp:
3138         (WebScrollBar::init):
3139         * WebScrollBar.h:
3140
3141 2008-09-15  Chris Fleizach  <cfleizach@apple.com>
3142
3143         Reviewed by Darin Adler, Beth Dakin
3144
3145         Support strings for AXLists
3146
3147         * WebCoreLocalizedStrings.cpp:
3148         (WebCore::AXDefinitionListTermText):
3149         (WebCore::AXDefinitionListDefinitionText):
3150
3151 2008-09-13  Dave Hyatt  <hyatt@apple.com>
3152
3153         Add ScrollbarTheme to the build.
3154         
3155         Reviewed by Sam Weinig
3156
3157         * WebScrollBar.cpp:
3158         (WebScrollBar::requestedWidth):
3159         (WebScrollBar::requestedHeight):
3160
3161 2008-09-13  Dave Hyatt  <hyatt@apple.com>
3162
3163         More scrollbar refactoring.
3164         
3165         Reviewed by Sam Weinig
3166
3167         * WebScrollBar.h:
3168
3169 2008-09-08  Adam Roben  <aroben@apple.com>
3170
3171         Respect the font smoothing preference when drawing via WebKitGraphics
3172
3173         Reviewed by Dave Hyatt.
3174
3175         * WebKitGraphics.cpp:
3176         (makeFont): Check the font smoothing preference and update the
3177         FontDescription's rendering mode based on it.
3178
3179 2008-09-08  Steve Falkenburg  <sfalken@apple.com>
3180
3181         Another Windows nightly build fix.
3182         
3183         Remove non-production versions of CLSIDs since we'll use registry free COM with
3184         an embedded manifest now in all cases to find COM classes.
3185         
3186         Reviewed by Sam Weinig.
3187
3188         * ForEachCoClass.cpp:
3189         (setUseOpenSourceWebKit): Remove COM registration code.
3190         * Interfaces/WebKit.idl: Remove non-production COM classes
3191
3192 2008-09-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
3193
3194         Reviewed by Maciej Stachowiak.
3195
3196         Bug 20704: Replace the KJS namespace
3197         <https://bugs.webkit.org/show_bug.cgi?id=20704>
3198
3199         Rename the KJS namespace to JSC.
3200
3201         * WebCoreStatistics.cpp:
3202         * WebJavaScriptCollector.cpp:
3203         * WebScriptCallFrame.cpp:
3204         (WebScriptCallFrame::jsValueToString):
3205         * WebScriptCallFrame.h:
3206         (WebScriptCallFrame::state):
3207         * WebView.cpp:
3208         (WebView::WebView):
3209         (WebView::stringByEvaluatingJavaScriptFromString):
3210
3211 2008-09-05  Dave Hyatt  <hyatt@apple.com>
3212
3213         Add support for runtime switchability of the Aqua look and the native look on Windows.
3214         Make RenderThemeWin compile by default even when USE(SAFARI_THEME) is set.
3215
3216         Reviewed by Adam Roben
3217
3218         * Interfaces/IWebPreferencesPrivate.idl:
3219         * WebPreferenceKeysPrivate.h:
3220         * WebPreferences.cpp:
3221         (WebPreferences::initializeDefaultSettings):
3222         (WebPreferences::shouldPaintNativeControls):
3223         (WebPreferences::setShouldPaintNativeControls):
3224         * WebPreferences.h:
3225         * WebView.cpp:
3226         (WebView::notifyPreferencesChanged):
3227
3228 2008-09-04  Adam Roben  <aroben@apple.com>
3229
3230         Make JavaScriptCoreGenerated build first instead of WTF
3231
3232         JavaScriptCoreGenerated does some setup work that we want to happen
3233         before WTF builds.
3234
3235         * WebKit.vcproj/WebKit.sln: Reversed the dependencies of WTF and
3236         JavaScriptCoreGenerated.
3237
3238 2008-08-30  Sam Weinig  <sam@webkit.org>
3239
3240         Reviewed by Dan Bernstein.
3241
3242         Add WebView SPI to defer loading callbacks.
3243
3244         * Interfaces/IWebViewPrivate.idl:
3245         * WebView.cpp:
3246         (WebView::setDefersCallbacks):
3247         (WebView::defersCallbacks):
3248         * WebView.h:
3249
3250 2008-08-28  Adele Peterson  <adele@apple.com>
3251
3252         Build fix.
3253
3254         * WebIconDatabase.cpp: (WebIconDatabase::getOrCreateDefaultIconBitmap):
3255
3256 2008-08-28  Holger Hans Peter Freyther  <zecke@selfish.org>
3257
3258         Rubber-stamped by Darin Adler.
3259
3260         https://bugs.webkit.org/show_bug.cgi?id=17261
3261
3262         Remove the urlIcon.png from the project and the resource file. Remove
3263         the usage of this icon from WebKitDLL.cpp and change WebIconDatabase
3264         to get the icon from the IconDatabase code which is using a version of
3265         the icon that is compiled into the code.
3266
3267         * WebIconDatabase.cpp:
3268         (WebIconDatabase::getOrCreateDefaultIconBitmap): Use the icon from the
3269         IconDatabase.cpp
3270         * WebKit.vcproj/WebKit.rc: Remove urlIcon.cpp
3271         * WebKit.vcproj/urlIcon.png: Removed.
3272         * WebKitDLL.cpp:
3273         (loadResourceIntoBuffer): Remove "urlIcon"
3274
3275 2008-08-27  Alice Liu  <alice.liu@apple.com>
3276
3277         Add interface for obtaining JS object counts broken down by type
3278
3279         Reviewed by Steve Falkenburg.
3280
3281         * Interfaces/IWebCoreStatistics.idl:
3282         * WebCoreStatistics.cpp:
3283         (WebCoreStatistics::javaScriptProtectedObjectTypeCounts):
3284         * WebCoreStatistics.h:
3285
3286 2008-08-27  Ada Chan  <adachan@apple.com>
3287
3288         Fixed build.
3289
3290         * WebFrame.cpp:
3291         (WebFrame::pluginWillHandleLoadError):
3292
3293 2008-08-27  Brady Eidson  <beidson@apple.com>
3294
3295         Reviewed by Anders
3296
3297         <rdar://problem/6134133> - Crash when loading large movie as a standalone document
3298
3299         * WebFrame.cpp:
3300         (WebFrame::pluginWillHandleLoadError):
3301         * WebFrame.h:
3302
3303 2008-08-26  Alice Liu  <alice.liu@apple.com>
3304
3305         Implement COMPropertyBag::GetPropertyInfo
3306         and a variant setter for type int
3307
3308         Reviewed by Anders Carlsson.
3309
3310         * COMPropertyBag.h:
3311         (::GetPropertyInfo):
3312         * COMVariantSetter.h:
3313
3314 2008-08-25  Adam Roben  <aroben@apple.com>
3315
3316         Fix an assertion when showing the Web Inspector
3317
3318         Reviewed by Kevin McCullough.
3319
3320         * WebCoreSupport/WebInspectorClient.cpp:
3321         (WebInspectorClient::attachWindow):
3322         (WebInspectorClient::detachWindow):
3323         Recent code changes have caused these functions to get called even
3324         when the window is already attached/detached, respectively. Handle
3325         this case gracefully instead of asserting something that is no longer
3326         true.
3327
3328 2008-08-24  Beth Dakin  <bdakin@apple.com>
3329
3330         Reviewed by John Sullivan.
3331
3332         Provide the excludeFromTextSearch SPI on Windows as well.
3333
3334         * Interfaces/IWebFrame.idl:
3335         * WebFrame.cpp:
3336         (WebFrame::setExcludeFromTextSearch):
3337         * WebFrame.h:
3338
3339 2008-08-24  Jon Honeycutt  <jhoneycutt@apple.com>
3340
3341         Cannot get the focused accessible object from the root object.
3342
3343         AccessibleBase::get_AccFocus() checks whether the focused object is a
3344         child of the current object, but 
3345         http://msdn.microsoft.com/en-us/library/ms696150(VS.85).aspx states that
3346         the result is the object itself, if it has focus, or a child object of
3347         the active window, not a child of the object.
3348
3349         Reviewed by Sam Weinig.
3350
3351         * AccessibleBase.cpp:
3352         (AccessibleBase::get_accFocus): Don't check whether the focused object
3353         is our child.
3354
3355 2008-08-18  Jon Honeycutt  <jhoneycutt@apple.com>
3356
3357         Add SPI to make a Windows WebView transparent.
3358
3359         Reviewed by Dan Bernstein.
3360
3361         * Interfaces/IWebViewPrivate.idl:
3362         * WebCoreSupport/WebFrameLoaderClient.cpp:
3363         (WebFrameLoaderClient::transitionToCommittedForNewPage): Call
3364         updateBackground() when a new frame is attached, matching the Mac.
3365         * WebFrame.cpp:
3366         (WebFrame::updateBackground): Propagate WebView transparency to ourself
3367         and our child frames.
3368         * WebFrame.h:
3369         * WebView.cpp:
3370         (WebView::WebView):
3371         (WebView::paintIntoBackingStore): Pass m_transparent when creating a
3372         GraphicsContext, so the context will be created with an alpha channel.
3373         (WebView::setTransparent):
3374         (WebView::transparent):
3375         * WebView.h:
3376
3377 2008-08-12  Jon Honeycutt  <jhoneycutt@apple.com>
3378
3379         Add SPI to get a handle to the WebView's backing store bitmap.
3380
3381         Reviewed by Dan Bernstein.
3382
3383         * Interfaces/IWebViewPrivate.idl:
3384         * WebView.cpp:
3385         (WebView::backingStore):
3386         * WebView.h:
3387
3388 2008-08-21 Jonas Klink <klinktech@gmail.com>
3389
3390         Reviewed by Jon Honeycutt.
3391
3392         Fix https://bugs.webkit.org/show_bug.cgi?id=20231
3393         Bug 20231: accNavigate: no screen element found in the specified direction should return S_FALSE
3394
3395         Per <http://msdn.microsoft.com/en-us/library/ms696145(VS.85).aspx>, we should return S_FALSE
3396         from accNavigate if no screen element is found in the specified direction.
3397
3398         * AccessibleBase.cpp:
3399         (AccessibleBase::accNavigate):
3400
3401 2008-08-21 Jonas Klink <klinktech@gmail.com>
3402
3403         Reviewed by Jon Honeycutt.
3404
3405         Fix http://bugs.webkit.org/show_bug.cgi?id=20230
3406         Bug 20230: get_accState should be testing state on childObj
3407
3408         Also initializes output parameter action to 0 in get_accDefaultAction.
3409
3410         * AccessibleBase.cpp:
3411         (AccessibleBase::get_accState):
3412         (AccessibleBase::get_accDefaultAction):
3413
3414 2008-08-20  Maxime Britto  <britto@apple.com>
3415
3416         Reviewed by Ada Chan.
3417
3418         rdar://5259746
3419         Mouse events are sent to page while resizing window (affects Gmail)
3420         In the WebView, if the MouseEvent is located in the resize corner, we send it back to the UIDelegate and early return.
3421
3422         * Interfaces/IWebUIDelegatePrivate.idl: Add a new method to the UIDelegate to send the resize message
3423         * WebView.cpp:
3424         (WebView::handleMouseEvent): If the mouse event is in the resize corner and our UIDelegate supports the message it sends the new message and early returns
3425
3426 2008-08-19  Alexey Proskuryakov  <ap@webkit.org>
3427
3428         Reviewed by Geoff Garen.
3429
3430         Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
3431
3432         * WebCoreStatistics.cpp:
3433         (WebCoreStatistics::javaScriptObjectsCount):
3434         (WebCoreStatistics::javaScriptGlobalObjectsCount):
3435         (WebCoreStatistics::javaScriptProtectedObjectsCount):
3436         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3437         * WebJavaScriptCollector.cpp:
3438         (WebJavaScriptCollector::objectCount):
3439         * WebScriptCallFrame.cpp:
3440         (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString):
3441         * WebView.cpp:
3442         (WebView::stringByEvaluatingJavaScriptFromString):
3443
3444 2008-08-19  Steve Falkenburg  <sfalken@apple.com>
3445
3446         Fix build.
3447
3448         * WebScriptCallFrame.cpp:
3449         (WebScriptCallFrame::jsValueToString):
3450
3451 2008-08-14  Steve Falkenburg  <sfalken@apple.com>
3452
3453         Update cache capacities to match values used on Mac.
3454         
3455         Reviewed by Dan Bernstein.
3456
3457         * WebView.cpp:
3458         (WebView::setCacheModel):
3459
3460 2008-08-14  Sam Weinig  <sam@webkit.org>
3461
3462         Reviewed by Jon Honeycutt.
3463
3464         Add WebView SPI to set HTMLTokenizer yielding parameters.
3465
3466         * Interfaces/IWebViewPrivate.idl:
3467         * WebView.cpp:
3468         (WebView::setCustomHTMLTokenizerTimeDelay):
3469         (WebView::setCustomHTMLTokenizerChunkSize):
3470         * WebView.h:
3471
3472 2008-08-13  Eric Seidel  <eric@webkit.org>
3473
3474         Attempt to fix the windows build, not review.
3475
3476         * WebIconDatabase.cpp:
3477         (WebIconDatabase::getOrCreateDefaultIconBitmap):
3478
3479 2008-08-13  Ada Chan  <adachan@apple.com>
3480
3481         Implemented DOMHTMLElement::idName() and WebFrame::frameElement().
3482         Added IWebFrame::paintDocumentRectToContext() so we can paint a frame's
3483         content into a device context.  Changed WebView::paintDocumentRectToContext()
3484         to call that WebFrame method.
3485
3486         Reviewed by Adam Roben.
3487
3488         * DOMHTMLClasses.cpp:
3489         (DOMHTMLElement::idName):
3490         * Interfaces/IWebFramePrivate.idl:
3491         * WebFrame.cpp:
3492         (WebFrame::paintDocumentRectToContext):
3493         (WebFrame::frameElement):
3494         * WebFrame.h:
3495         * WebView.cpp:
3496         (WebView::paintDocumentRectToContext):
3497
3498 2008-08-12  Timothy Hatcher  <timothy@apple.com>
3499
3500         Add a stub for InspectorClient::setAttachedWindowHeight.
3501
3502         * WebCoreSupport/WebInspectorClient.cpp:
3503         (WebInspectorClient::setAttachedWindowHeight): Add a FIXME to implement this.
3504         * WebCoreSupport/WebInspectorClient.h:
3505
3506 2008-08-12  Adam Roben  <aroben@apple.com>
3507
3508         Export WTFLog in Debug builds
3509
3510         Reviewed by John Sullivan.
3511
3512         * WebKit.vcproj/WebKit_debug.def:
3513
3514 2008-08-07  Steve Falkenburg  <sfalken@apple.com>
3515
3516         Delete backing stores before 5 second WM_TIMER fires if more than 2 are already queued.
3517         
3518         WM_TIMER-based timers can be starved if enough other events are keeping
3519         our message loop busy. This change prevents many backing store deletes from stacking
3520         up in this case.
3521         
3522         Reviewed by Geoff Garen.
3523
3524         * WebView.cpp:
3525         (WebView::deleteBackingStore):
3526         (WebView::deleteBackingStoreSoon):
3527         (WebView::cancelDeleteBackingStoreSoon):
3528
3529 2008-08-05  Ada Chan  <adachan@apple.com>
3530
3531         Add a getter for CFURLRequestRef in WebMutableURLRequest.
3532
3533         Reviewed by Anders Carlsson.
3534
3535         * Interfaces/IWebMutableURLRequestPrivate.idl:
3536         * WebMutableURLRequest.cpp:
3537         (WebMutableURLRequest::cfRequest):
3538         * WebMutableURLRequest.h:
3539
3540 2008-08-05  Steve Falkenburg  <sfalken@apple.com>
3541
3542         Don't invalidate a WebView in the process of being closed when prefs change.
3543         
3544         Reviewed by Ada Chan.
3545
3546         * WebView.cpp:
3547         (WebView::notifyPreferencesChanged):
3548
3549 2008-08-04  Alice Liu  <alice.liu@apple.com>
3550
3551         Reviewed by Steve Falkenburg.
3552
3553         Fix CFDictionary leak
3554
3555         * CFDictionaryPropertyBag.cpp:
3556         (CFDictionaryPropertyBag::Write):
3557         m_dictionary is a RetainPtr and should adopt the CF type created
3558
3559 2008-08-02  Maxime Britto  <britto@apple.com>
3560
3561         Reviewed by Eric Seidel.
3562       
3563         These icons are copies from the resizers in WebCore/Ressources
3564
3565         * ChangeLog:
3566         * WebKit.vcproj/WebKit.rc:
3567         * WebKit.vcproj/panEastCursor.png: Added.
3568         * WebKit.vcproj/panNorthCursor.png: Added.
3569         * WebKit.vcproj/panNorthEastCursor.png: Added.
3570         * WebKit.vcproj/panNorthWestCursor.png: Added.
3571         * WebKit.vcproj/panSouthCursor.png: Added.
3572         * WebKit.vcproj/panSouthEastCursor.png: Added.
3573         * WebKit.vcproj/panSouthWestCursor.png: Added.
3574         * WebKit.vcproj/panWestCursor.png: Added.
3575         * WebKit.vcproj/resource.h:
3576         * WebKitDLL.cpp:
3577         (loadResourceIntoBuffer):
3578
3579 2008-08-01  Beth Dakin  <bdakin@apple.com>
3580
3581         Reviewed by Adam Roben.
3582
3583         Fix for <rdar://problem/6119382> Need to hook up WebFrame's 
3584         disconnected frame API on Windows.
3585
3586         * Interfaces/IWebFrame.idl:
3587         * WebFrame.cpp:
3588         (WebFrame::setIsDisconnected):
3589         * WebFrame.h:
3590
3591 2008-08-01  Adam Roben  <aroben@apple.com>
3592
3593         Fix <rdar://6118733> REGRESSION (r35502): Crash when submitting any
3594         form
3595
3596         Reviewed by Darin Adler.
3597
3598         * COMPropertyBag.h:
3599         (COMPropertyBag::QueryInterface): Cast to an appropriate type before
3600         assigning into ppvObject.
3601
3602 2008-07-31  Anders Carlsson  <andersca@apple.com>
3603
3604         Reviewed by Adam.
3605
3606         Get rid of FormValuesPropertyBag and use COMPropertyBag instead.
3607         
3608         * COMPropertyBag.h:
3609         Implement parts of IPropertyBag2. 
3610         Currently just one method (CountProperties) is implemented.
3611         
3612         * WebCoreSupport/FormValuesPropertyBag.cpp: Removed.
3613         * WebCoreSupport/FormValuesPropertyBag.h: Removed.
3614       
3615         * WebFrame.cpp:
3616         (WebFrame::dispatchWillSubmitForm):
3617         Create a COMPropertyBag instead.
3618         
3619         * WebKit.vcproj/WebKit.vcproj:
3620
3621 2008-07-31  Anders Carlsson  <andersca@apple.com>
3622
3623         Reviewed by Jon.
3624         
3625         Tweak the names.
3626
3627         * WebCoreSupport/WebFrameLoaderClient.cpp:
3628         (WebFrameLoaderClient::createPlugin):
3629
3630 2008-07-31  Anders Carlsson  <andersca@apple.com>
3631
3632         Reviewed by Jon.
3633
3634         <rdar://problem/5826110>
3635         
3636         Add a way for WebKit clients to embed custom content in web pages.
3637         
3638         * Interfaces/IWebEmbeddedView.idl: Added.
3639         New interface which an embedded view must implement.
3640         
3641         * Interfaces/IWebUIDelegatePrivate.idl:
3642         Add new UI delegate method for creating an embedded view.
3643         
3644         * Interfaces/WebKit.idl:
3645         Include IWebEmbeddedView.idl.
3646         
3647         * WebCoreSupport/EmbeddedWidget.cpp: Added.
3648         * WebCoreSupport/EmbeddedWidget.h: Added.
3649         Add EmbeddedWidget, a widget subclass which can hold an IWebEmbeddedView.
3650         
3651         * WebCoreSupport/WebFrameLoaderClient.cpp:
3652         (WebFrameLoaderClient::createPlugin):
3653         Check if the UI delegate wants to create an embedded view.
3654         
3655         * WebKit.vcproj/WebKit.vcproj:
3656         Add EmbeddedWidget.{cpp|h}
3657
3658 2008-07-31  Alexey Proskuryakov  <ap@webkit.org>
3659
3660         Rubber-stamped by Maciej.
3661
3662         Eliminate JSLock (it was already disabled, removing the stub implementaion and all
3663         call sites now).
3664
3665         * WebCoreStatistics.cpp:
3666         (WebCoreStatistics::javaScriptObjectsCount):
3667         (WebCoreStatistics::javaScriptGlobalObjectsCount):
3668         (WebCoreStatistics::javaScriptProtectedObjectsCount):
3669         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3670         * WebJavaScriptCollector.cpp:
3671         (WebJavaScriptCollector::objectCount):
3672         * WebScriptCallFrame.cpp:
3673         (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString):
3674         * WebView.cpp:
3675         (WebView::stringByEvaluatingJavaScriptFromString):
3676
3677 2008-07-31  Jon Honeycutt  <jhoneycutt@apple.com>
3678
3679         Windows build fix.
3680
3681         * WebURLResponse.cpp:
3682
3683 2008-07-30  Mark Rowe  <mrowe@apple.com>
3684
3685         Windows build fix.
3686
3687         * WebURLResponse.cpp:  Don't include a header file that we just deleted.
3688
3689 2008-07-30  Anders Carlsson  <andersca@apple.com>
3690
3691         Reviewed by Mitz.
3692
3693         Use a COMPropertyBag instead of the HTTPHeaderPropertyBag.
3694         
3695         * HTTPHeaderPropertyBag.cpp: Removed.
3696         * HTTPHeaderPropertyBag.h: Removed.
3697         * WebURLResponse.cpp:
3698         (WebURLResponse::allHeaderFields):
3699
3700 2008-07-30  Anders Carlsson  <andersca@apple.com>
3701
3702         Fix copyright years.
3703         
3704         * COMPropertyBag.h:
3705         * COMVariantSetter.h:
3706
3707 2008-07-30  Anders Carlsson  <andersca@apple.com>
3708
3709         Reviewed by Sam.
3710
3711         More property bag work.
3712         
3713         * COMPropertyBag.h:
3714         (COMPropertyBag::COMPropertyBag):        
3715         (::adopt):
3716         (::Read):
3717         * COMVariantSetter.h:
3718         (COMIUnknownVariantSetter::setVariant):
3719
3720 2008-07-30  Anders Carlsson  <andersca@apple.com>
3721
3722         Reviewed by Sam.
3723
3724         Add COMPropertyBag, a simple template class that implements the IPropertyBag interface. All
3725         property bag values must be of the same type.
3726         
3727         The COMVariantSetter helpers are now in COMVariantSetter.h
3728         
3729         * COMEnumVariant.h:
3730         * COMPropertyBag.h: Added.
3731         * COMVariantSetter.h: Added.
3732         * WebKit.vcproj/WebKit.vcproj:
3733         
3734 2008-07-30  Alice Liu  <alice.liu@apple.com>
3735
3736         Reviewed by Adam Roben.
3737
3738         Adding logging of COM class names and counts to facilitate
3739         investigating memory issues.
3740
3741         * Interfaces/IWebKitStatistics.idl:
3742         * WebKitDLL.cpp:
3743         * WebKitDLL.h:
3744         * WebKitStatistics.cpp:
3745         (WebKitStatistics::comClassNameCounts):
3746         * WebKitStatistics.h:
3747
3748 2008-07-29  Alice Liu  <alice.liu@apple.com>
3749
3750         Reviewed by Geoff Garen.
3751
3752         Fix WebDocumentLoader leak on Windows.
3753
3754         * WebCoreSupport/WebFrameLoaderClient.cpp:
3755         (WebFrameLoaderClient::createDocumentLoader):
3756         * WebDocumentLoader.cpp:
3757         (WebDocumentLoader::create):
3758         * WebDocumentLoader.h:
3759
3760 2008-07-29  Adam Roben  <aroben@apple.com>
3761
3762         Export detachThread
3763
3764         Reviewed by Geoff Garen.
3765
3766         * WebKit.vcproj/WebKit.def:
3767         * WebKit.vcproj/WebKit_debug.def:
3768
3769 2008-07-29  Adam Roben  <aroben@apple.com>
3770
3771         Export the new version of createThread
3772
3773         Reviewed by Anders Carlsson.
3774
3775         * WebKit.vcproj/WebKit.def:
3776         * WebKit.vcproj/WebKit_debug.def:
3777         Also moved the old version of createThread into the deprecated
3778         section.
3779
3780 2008-07-26  Matt Lilek  <webkit@mattlilek.com>
3781
3782         Reviewed by Geoff Garen.
3783
3784         Changes to accommodate newly named/signatured loading methods in WebCore.
3785
3786         * WebCoreSupport/WebContextMenuClient.cpp:
3787         (WebContextMenuClient::searchWithGoogle):
3788         * WebCoreSupport/WebFrameLoaderClient.cpp:
3789         (WebFrameLoaderClient::loadURLIntoChild):
3790
3791 2008-07-25  Adam Roben  <aroben@apple.com>
3792
3793         Try to fix the Windows build bot
3794
3795         * WebKit.vcproj/WebKit.sln: Linearize the project dependencies. Each
3796         project now depends only on the project that should immediately
3797         precede it in the build. For the frameworks, this order makes sense.
3798         For the applications built on top of the frameworks, the order is
3799         arbitrary (but roughly follows the applications' complexity).
3800
3801 2008-07-17  Adele Peterson  <adele@apple.com>
3802
3803         Reviewed by Adam.
3804
3805         WebKit part of fix for <rdar://problem/5698672>  Add drawing callback for a WebKit app to draw its own scrollbars
3806         
3807         Added a setting so an application can tell WebKit its going to draw custom scrollbars.  Also added delegate methods for the actual painting.
3808         
3809         * Interfaces/IWebPreferences.idl:  Added setShouldPaintCustomScrollbars and shouldPaintCustomScrollbars.
3810         * Interfaces/IWebScrollBarPrivate.idl: Moved types to WebScrollbarTypes.idl
3811         * Interfaces/IWebUIDelegate.idl: Added WebUIDelegate4 with new delegate methods, paintCustomScrollbar and paintCustomScrollCorner
3812         * Interfaces/WebKit.idl: Include new WebScrollbarTypes.idl
3813         * Interfaces/WebScrollbarTypes.idl: Added. Has types that the new delegate methods use.
3814         * WebCoreSupport/WebChromeClient.cpp:
3815         (WebChromeClient::paintCustomScrollbar): Added. Calls new delegate method and converts between WebCore types and types exported in WebScrollbarTypes.idl
3816         (WebChromeClient::paintCustomScrollCorner): Added. Calls new delegate method.
3817         (WebChromeClient::uiDelegate4): Added.
3818         * WebCoreSupport/WebChromeClient.h:
3819         * WebPreferenceKeysPrivate.h: Added WebKitPaintCustomScrollbarsPreferenceKey
3820         * WebPreferences.cpp:
3821         (WebPreferences::): Added.
3822         (WebPreferences::shouldPaintCustomScrollbars): Added.
3823         * WebPreferences.h:
3824         * WebView.cpp: (WebView::notifyPreferencesChanged):
3825
3826 2008-07-15  Adam Roben  <aroben@apple.com>
3827
3828         Add WebKit[Set]ShouldUseFontSmoothing functions
3829
3830         <rdar://6059127>
3831
3832         Reviewed by John Sullivan.
3833
3834         * WebKit.vcproj/WebKit.def:
3835         * WebKit.vcproj/WebKit_debug.def:
3836         Export the new functions.
3837         * WebKitGraphics.cpp:
3838         (WebKitSetShouldUseFontSmoothing):
3839         (WebKitShouldUseFontSmoothing):
3840         Call through to the relevant WebCore functions.
3841         * WebKitGraphics.h:
3842
3843 2008-07-14  Steve Falkenburg  <sfalken@apple.com>
3844
3845         Don't include autoversion.h in WebKitDLL.cpp.
3846         autoversion.h changes for every build, so we don't want to include it unless necessary.        
3847
3848         Rubber stamped by Ada Chan.
3849
3850         * WebKitDLL.cpp:
3851
3852 2008-07-14  Adam Roben  <aroben@apple.com>
3853
3854         Windows build fix
3855
3856         * WebJavaScriptCollector.cpp:
3857         (WebJavaScriptCollector::objectCount): Updated to match
3858         -[WebCoreStatistics javaScriptsObjectCount].
3859
3860 2008-07-14  Alexey Proskuryakov  <ap@webkit.org>
3861
3862         Reviewed by Geoff Garen.
3863
3864         Eliminate per-thread JavaScript global data instance support and make arbitrary
3865         global data/global object combinations possible.
3866
3867         * WebCoreStatistics.cpp:
3868         (WebCoreStatistics::javaScriptObjectsCount):
3869         (WebCoreStatistics::javaScriptGlobalObjectsCount):
3870         (WebCoreStatistics::javaScriptProtectedObjectsCount):
3871         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3872         Ask WebCore for its instance of JSGlobalData, now that it is not in per-thread storage.
3873
3874 2008-07-11  Steve Falkenburg  <sfalken@apple.com>
3875
3876         Build fix.
3877
3878         * WebKit.vcproj/WebKit.vcproj:
3879
3880 2008-07-10  Steve Falkenburg  <sfalken@apple.com>
3881
3882         Build fix.
3883
3884         * WebKit.vcproj/Interfaces.vcproj:
3885
3886 2008-07-10  Adam Roben  <aroben@apple.com>
3887
3888         Windows build fix
3889
3890         * WebKit.vcproj/resource.h: Revert some changes that VS made to this
3891         file in r35083.
3892
3893 2008-07-09  Maxime Britto  <britto@apple.com>
3894
3895         Reviewed by Adele.
3896        
3897         Added the panning icon in the ressources.
3898         Its name is compass.png to make a difference with moveCursor.png (from the WebCore ressources)
3899
3900         * ChangeLog:
3901         * WebKit.vcproj/WebKit.rc:
3902         * WebKit.vcproj/panIcon.png: Added.
3903         * WebKit.vcproj/resource.h:
3904         * WebKitDLL.cpp: Declared the new ressource with the name "panIcon"
3905         (loadResourceIntoBuffer):
3906
3907 2008-07-02  Dan Bernstein  <mitz@apple.com>
3908
3909         - try to fix the Windows build
3910
3911         * WebScriptCallFrame.cpp:
3912
3913 2008-07-01  Alexey Proskuryakov  <ap@webkit.org>
3914
3915         Reviewed by Darin Adler.
3916
3917         Disable JSLock for per-thread contexts.
3918
3919         * WebCoreStatistics.cpp:
3920         (WebCoreStatistics::javaScriptObjectsCount):
3921         (WebCoreStatistics::javaScriptGlobalObjectsCount):
3922         (WebCoreStatistics::javaScriptProtectedObjectsCount):
3923         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3924         * WebScriptCallFrame.cpp:
3925         (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString):
3926         * WebView.cpp:
3927         (WebView::stringByEvaluatingJavaScriptFromString):
3928         Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
3929         Include JSLock.h, as it is no longer brought in implicitly.
3930
3931 2008-06-27  Adam Roben  <aroben@apple.com>
3932
3933         Change WebKitGraphics truncation functions to return the length of the
3934         truncated string
3935
3936         Reviewed by Darin Adler.
3937
3938         * WebKitGraphics.cpp:
3939         (CenterTruncateStringToWidth):
3940         (RightTruncateStringToWidth):
3941         Return the length.
3942         * WebKitGraphics.h:
3943         The truncation functions now return an unsigned int that is the length
3944         of the truncated string. The whole file has been marked extern "C" to
3945         keep the symbols for these functions from changing (which would break
3946         nightly builds).
3947
3948 2008-06-19  Alexey Proskuryakov  <ap@webkit.org>
3949
3950         Windows build fix.
3951
3952         * WebJavaScriptCollector.cpp: Added a missing include.
3953
3954 2008-06-17  Alexey Proskuryakov  <ap@webkit.org>
3955
3956         Reviewed by Darin Adler.
3957
3958         Prepare JavaScript heap for being per-thread.
3959
3960         * WebCoreStatistics.cpp:
3961         (WebCoreStatistics::javaScriptObjectsCount):
3962         (WebCoreStatistics::javaScriptGlobalObjectsCount):
3963         (WebCoreStatistics::javaScriptProtectedObjectsCount):
3964         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3965         * WebJavaScriptCollector.cpp:
3966         (WebJavaScriptCollector::objectCount):
3967         Use JSGlobalData::threadInstance()->heap instead of static Collector calls.
3968
3969         * WebScriptCallFrame.cpp:
3970         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): Pass ExecState* where
3971         now required.
3972
3973 2008-06-16  Alexey Proskuryakov  <ap@webkit.org>
3974
3975         Trying to fix Windows build.
3976
3977         * WebScriptCallFrame.cpp:
3978         (WebScriptCallFrame::variableNames):
3979         (WebScriptCallFrame::valueForVariable):
3980         Give ExecState to functions that now take it.
3981
3982 2008-06-16  Adam Roben  <aroben@apple.com>
3983
3984         Windows build fix
3985
3986         * WebScriptCallFrame.cpp: Fixed a header name.
3987
3988 2008-06-15  Darin Adler  <darin@apple.com>
3989
3990         - give Frame object functions shorter names: scriptProxy() -> script(),
3991           selectionController() -> selection(), animationController() -> animation()
3992
3993         * WebFrame.cpp:
3994         (WebFrame::globalContext):
3995         (WebFrame::windowObjectCleared):
3996         * WebView.cpp:
3997         (WebView::handleContextMenuEvent):
3998         (WebViewWndProc):
3999         (WebView::updateFocusedAndActiveState):
4000         (WebView::hasSelectedRange):
4001         (WebView::replaceSelectionWithText):
4002         (WebView::clearSelection):
4003         (WebView::prepareCandidateWindow):
4004         (WebView::onIMERequestCharPosition):
4005         (WebView::onIMERequestReconvertString):
4006
4007 2008-06-15  Darin Adler  <darin@apple.com>
4008
4009         - rename KJS::List to KJS::ArgList
4010
4011         * WebScriptCallFrame.cpp:
4012         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
4013
4014 2008-06-15  Darin Adler  <darin@apple.com>
4015
4016         - new names for a few key JavaScriptCore files
4017
4018         * WebView.cpp:
4019
4020 2008-06-15  Darin Adler  <darin@apple.com>
4021
4022         Rubber stamped by Sam.
4023
4024         - use JS prefix and simpler names for basic JavaScriptCore types,
4025           to complement JSValue and JSObject
4026
4027         * WebScriptCallFrame.cpp:
4028         (WebScriptCallFrame::functionName):
4029
4030 2008-06-15  Maciej Stachowiak  <mjs@apple.com>
4031
4032         Rubber stamped by Oliver.
4033         
4034         - fix WebKit solution for testkjs --> jsc rename
4035
4036         * WebKit.vcproj/WebKit.sln:
4037
4038 2008-06-14  Darin Adler  <darin@apple.com>
4039
4040         Rubber stamped by Sam.
4041
4042         - new names for kjs_binding.h and kjs_proxy.h
4043
4044         * WebFrame.cpp:
4045
4046 2008-06-14  Darin Adler  <darin@apple.com>
4047
4048         Rubber stamped by Sam.
4049
4050         - renamed HTMLGenericFormElement to HTMLFormControlElement
4051
4052         * WebFrame.cpp:
4053         (WebFrame::elementWithName):
4054         (WebFrame::controlsInForm):
4055
4056 2008-06-14  Darin Adler  <darin@apple.com>
4057
4058         - try to fix Windows build, again
4059
4060         * WebFrame.cpp:
4061         (WebFrame::dispatchDecidePolicyForNewWindowAction): Fix arguments. Pass form.
4062         (WebFrame::dispatchDecidePolicyForNavigationAction): Ditto.
4063         * WebFrame.h: Fix arguments.
4064
4065 2008-06-14  Darin Adler  <darin@apple.com>
4066
4067         - try to fix Windows build
4068
4069         * WebActionPropertyBag.cpp:
4070         (WebActionPropertyBag::Read): Use IDOMNode, not IHTMLFormElement.
4071         * WebFrame.h: Added missing FormState arguments.
4072         * WebScrollBar.cpp:
4073         (WebScrollBar::init): Use create instead of new.
4074
4075 2008-06-14  Darin Adler  <darin@apple.com>
4076
4077         Reviewed by Sam.
4078
4079         - more of https://bugs.webkit.org/show_bug.cgi?id=17257
4080           start ref counts at 1 instead of 0 for speed
4081
4082         * WebCoreSupport/WebFrameLoaderClient.cpp:
4083         (WebFrameLoaderClient::createFrame): Remove now-obsolete adoptRef that was balanced by
4084         a ref call inside the Frame constructor. The lifetime rules for Frame are now the
4085         conventional ones without a special case.
4086
4087         * WebFrame.cpp:
4088         (WebFrame::init): Renamed function from initWithWebFrameView and removed the unused
4089         IWebFrameView argument (every caller was passing 0). Also changed this to return the
4090         WebCore Frame object, which is needed to straighten out the lifetime and ownership
4091         issues.
4092         * WebFrame.h: Ditto.
4093
4094         * WebView.cpp:
4095         (WebView::initWithFrame): Changed to call new init function and use the return value.
4096
4097 2008-06-13  Darin Adler  <darin@apple.com>
4098
4099         Reviewed by John Sullivan.
4100
4101         - updated for addition of FormState argument to action policy functions
4102         - added WebActionFormKey
4103
4104         * Interfaces/IWebPolicyDelegate.idl:
4105         * WebActionPropertyBag.cpp:
4106         (WebActionPropertyBag::WebActionPropertyBag):
4107         (WebActionPropertyBag::createInstance):
4108         (WebActionPropertyBag::AddRef):
4109         (WebActionPropertyBag::Release):
4110         (WebActionPropertyBag::Read):
4111         * WebActionPropertyBag.h:
4112         * WebFrame.cpp:
4113         (WebFrame::dispatchDecidePolicyForNewWindowAction):
4114         (WebFrame::dispatchDecidePolicyForNavigationAction):
4115
4116 2008-06-07  Darin Adler  <darin@apple.com>
4117
4118         Reviewed by Mitz.
4119
4120         - work on https://bugs.webkit.org/show_bug.cgi?id=17257
4121           start ref counts at 1 instead of 0 for speed
4122
4123         * WebHistoryItem.cpp:
4124         (WebHistoryItem::createInstance):
4125         (WebHistoryItem::initFromDictionaryRepresentation):
4126         (WebHistoryItem::initWithURLString):
4127
4128 2008-05-30  Steve Falkenburg  <sfalken@apple.com>
4129
4130         Registry-free COM.        
4131         
4132         WebKit no longer requires COM registration.
4133         Registry-free COM information is read from the application manifest.
4134
4135         Only 1 set of CLSIDs are now used, since we don't need to worry about registry collisions.
4136         The second set remains, but only temporarily so nightlies continue to work.
4137
4138         This is supported for XPSP2 and later.  Earlier systems require an installer
4139         to write the required registry keys.  Nightlies and developer builds require
4140         XPSP2, Server 2003, or later.
4141
4142         Reviewed by Adam.
4143
4144         * ForEachCoClass.cpp: Moved COM registration code here from WebKitDLL.cpp. This is ONLY used in the nightly case.
4145         (substituteGUID): Moved here from WebKitDLL.cpp.
4146         (registerWebKit): Moved here from WebKitDLL.cpp.
4147         (setUseOpenSourceWebKit): Call registerWebKit instead of swapping progids. There is only 1 set of progids now - for the nightly.
4148         * ForEachCoClass.h: Removed production progids. 
4149         * Interfaces/WebKit.idl: Added prototype for shutDownWebKit.
4150         * WebKit.vcproj/Interfaces.vcproj: Changed path to type library to move it out of project directory.
4151         * WebKit.vcproj/WebKit.vcproj: Changed path to type library to move it out of project directory.
4152         * WebKitDLL.cpp:
4153         (DllUnregisterServer): Does nothing. Entry point is still present for backward compatibility.
4154         (DllRegisterServer): Does nothing. Entry point is still present for backward compatibility.
4155         (RunAsLocalServer): Does nothing. Entry point is still present for backward compatibility.
4156         (shutDownWebKit): Moved from ForEachCoClass.
4157         * WebKitDLL.h:
4158
4159 2008-05-29  Anders Carlsson  <andersca@apple.com>
4160
4161         Reviewed by Brady.
4162
4163         <rdar://problem/5970312> 
4164         icon file specified for stand alone web app causes crash if the icon can't be found
4165         
4166         Handle the case where iconData is null.
4167
4168         * WebIconFetcher.cpp:
4169         (WebIconFetcherClient::finishedFetchingIcon):
4170
4171 2008-05-22  Anders Carlsson  <andersca@apple.com>
4172
4173         Reviewed by Adam.
4174
4175         Add IWebIconFetcher interface and implementation.
4176         
4177         * Interfaces/IWebFramePrivate.idl:
4178         * Interfaces/IWebIconFetcher.idl: Added.
4179         * Interfaces/WebKit.idl:
4180         * WebFrame.cpp:
4181         * WebFrame.h:
4182         * WebIconFetcher.cpp: Added.
4183         * WebIconFetcher.h: Added.
4184         * WebKit.vcproj/WebKit.vcproj:
4185
4186 2008-05-22  Adam Roben  <aroben@apple.com>
4187
4188         Add functions to IWebInspector to start/stop profiling/debugging
4189
4190         <rdar://5956403>
4191
4192         Reviewed by Jon Honeycutt.
4193
4194         * Interfaces/IWebInspector.idl:
4195         * WebInspector.cpp:
4196         (WebInspector::isDebuggingJavaScript):
4197         (WebInspector::toggleDebuggingJavaScript):
4198         (WebInspector::isProfilingJavaScript):
4199         (WebInspector::toggleProfilingJavaScript):
4200         * WebInspector.h:
4201
4202 2008-05-22  Steve Falkenburg  <sfalken@apple.com>
4203
4204         Build fix.
4205
4206         * Interfaces/IWebInspector.idl:
4207         * Interfaces/WebKit.idl:
4208         * WebInspector.cpp:
4209         (WebInspector::unused1):
4210         * WebInspector.h:
4211
4212 2008-05-22  Timothy Hatcher  <timothy@apple.com>
4213
4214         Changes to keep Windows building.
4215
4216         <rdar://problem/5956403> Update the Develop menu to match the new Inspector items
4217
4218         Reviewed by Adam Roben.
4219
4220         * English.lproj/Localizable.strings: Added new strings.
4221         * WebInspector.cpp:
4222         (WebInspector::showConsole): Call showPanel.
4223         * WebInspector.h:
4224
4225 2008-05-21  Adele Peterson  <adele@apple.com>
4226
4227         Reviewed by Adam.
4228
4229         WebKit part of for <rdar://problem/5787733> fast/dom/HTMLDocument/hasFocus.html fails on Windows
4230         
4231         * WebCoreSupport/WebChromeClient.cpp:
4232         (WebChromeClient::focus): Call updateActiveState directly.
4233          Normally this would happen on a timer, but JS might need to know this earlier, so we'll update here.        
4234         (WebChromeClient::unfocus): ditto.
4235         * WebView.cpp: (WebView::updateActiveStateSoon): Added comment about why we use a timer for this.
4236
4237 === End merge of squirrelfish ===
4238
4239 2008-05-13  Geoffrey Garen  <ggaren@apple.com>
4240
4241         Reviewed by Oliver Hunt.
4242         
4243         Updated for new JS debugging APIs.
4244
4245         * WebScriptDebugServer.cpp:
4246         (WebScriptDebugServer::didParseSource):
4247         (WebScriptDebugServer::failedToParseSource):
4248         * WebScriptDebugServer.h:
4249
4250 2008-05-09  Oliver Hunt  <oliver@apple.com>
4251
4252         Reviewed by Geoff.
4253
4254         Build fixes for SquirrelFish on windows.
4255
4256         * WebScriptCallFrame.cpp:
4257         (callingFunctionOrGlobalExecState):
4258         (WebScriptCallFrame::caller):
4259         (WebScriptCallFrame::functionName):
4260         (WebScriptCallFrame::variableNames):
4261         (WebScriptCallFrame::valueForVariable):
4262         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
4263         * WebScriptDebugServer.cpp:
4264         (WebScriptDebugServer::willLeaveCallFrame):
4265
4266 2008-05-19  Adam Roben  <aroben@apple.com>
4267
4268         Make WebKit.idl rebuild whenever any of its included interfaces are
4269         changed
4270
4271         Reviewed by Tim Hatcher.
4272
4273         * WebKit.vcproj/DerivedSources.make: Touch WebKit.idl whenever any
4274         other IDL file is changed. This will force VS to rebuild WebKit.idl.
4275
4276 2008-05-19  Anders Carlsson  <andersca@apple.com>
4277
4278         Reviewed by Adam.
4279
4280         <rdar://problem/5946454>
4281         Support navigator.onLine from HTML5.
4282         
4283         Link with iphlpapi.lib, and make iphlpapi.dll a delay loaded library.
4284         
4285         * WebKit.vcproj/WebKit.vcproj:
4286
4287 === Start merge of squirrelfish ===
4288
4289 2008-05-19  Anders Carlsson  <andersca@apple.com>
4290
4291         Reviewed by Darin, Alexey, Jess and Brady.
4292
4293         Set the application cache path.
4294         
4295         * WebView.cpp:
4296         (WebKitSetApplicationCachePathIfNecessary):
4297         New function that sets the cache path.
4298         
4299         (WebView::initWithFrame):
4300         Set the application cache path.
4301         
4302 2008-05-19  Ada Chan  <adachan@apple.com>
4303
4304         Added IWebCookieManager interface which allows client to set the
4305         CFHTTPCookieStorageRef that WebCore should use.
4306         
4307         Implement IWebCookieManager interface in WebCookieManager.
4308         
4309         Update the cookie accept policy in the current cookie storage.
4310
4311         Reviewed by Steve Falkenburg.
4312
4313         * ForEachCoClass.h:
4314         * Interfaces/IWebCookieManager.idl: Added.
4315         * Interfaces/WebKit.idl:
4316         * WebCookieManager.cpp: Added.
4317         (WebCookieManager::createInstance):
4318         (WebCookieManager::WebCookieManager):
4319         (WebCookieManager::~WebCookieManager):
4320         (WebCookieManager::QueryInterface):
4321         (WebCookieManager::AddRef):
4322         (WebCookieManager::Release):
4323         (WebCookieManager::cookieStorage):
4324         (WebCookieManager::setCookieStorage):
4325         * WebCookieManager.h: Added.
4326         * WebKit.vcproj/WebKit.vcproj:
4327         * WebKitClassFactory.cpp:
4328         * WebView.cpp:
4329         (updateSharedSettingsFromPreferencesIfNeeded):
4330
4331 2008-05-16  Stephanie Lewis  <slewis@apple.com>
4332
4333         Reviewed by Steve.
4334
4335         Get pending unload event count from WebCore.
4336
4337         * Interfaces/IWebFramePrivate.idl:
4338         * WebFrame.cpp:
4339         (WebFrame::pendingFrameUnloadEventCount):
4340         * WebFrame.h:
4341
4342 2008-05-16  Matt Lilek  <webkit@mattlilek.com>
4343
4344         Rubber stamped by Oliver.
4345
4346         Remove the Drosera sub-project.
4347
4348         * WebKit.vcproj/WebKit.sln:
4349
4350 2008-05-16  Brady Eidson  <beidson@apple.com>
4351
4352         Reviewed by Steve Falkenburg
4353         
4354         <rdar://problem/5942624> - Get LocalStorage persistence working on Windows
4355         
4356         * WebPreferenceKeysPrivate.h: Add the LocalStorageDirectory defaults key
4357         
4358         * WebPreferences.cpp:
4359         (WebPreferences::initializeDefaultSettings):
4360         (WebPreferences::localStorageDatabasePath):
4361         (WebPreferences::setLocalStorageDatabasePath):
4362         * WebPreferences.h:
4363         * Inter