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