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