d093c490fe9b1a0d94e62676e2c96ec564e6edc2
[WebKit-https.git] / WebKit / win / ChangeLog
1 2008-05-05  Anders Carlsson  <andersca@apple.com>
2
3         Reviewed by John.
4
5         Add preference for enabling the offline web application cache.
6         
7         * Interfaces/IWebPreferencesPrivate.idl:
8         * WebPreferenceKeysPrivate.h:
9         * WebPreferences.cpp:
10         (WebPreferences::initializeDefaultSettings):
11         (WebPreferences::setOfflineWebApplicationCacheEnabled):
12         (WebPreferences::offlineWebApplicationCacheEnabled):
13         * WebPreferences.h:
14         * WebView.cpp:
15         (WebView::notifyPreferencesChanged):
16
17 2008-05-05  Sam Weinig  <sam@webkit.org>
18
19         Reviewed by Tim Hatcher.
20
21         Make the Inspector's localizable strings file match the format used by Dashboard widgets.
22
23         * WebCoreSupport/WebInspectorClient.cpp:
24         (WebInspectorClient::localizedStringsURL):
25
26 2008-05-05  Steve Falkenburg  <sfalken@apple.com>
27
28         Add WebPreference for application chrome mode.
29         
30         Reviewed by Dave Hyatt.
31
32         * Interfaces/IWebPreferencesPrivate.idl:
33         * WebPreferenceKeysPrivate.h:
34         * WebPreferences.cpp:
35         (WebPreferences::initializeDefaultSettings):
36         (WebPreferences::inApplicationChromeMode):
37         (WebPreferences::setApplicationChromeMode):
38         * WebPreferences.h:
39         * WebView.cpp:
40         (WebView::notifyPreferencesChanged):
41
42 2008-05-02  Alexey Proskuryakov  <ap@webkit.org>
43
44         Reviewed by Geoffrey Garen.
45
46         https://bugs.webkit.org/show_bug.cgi?id=18826
47         Make JavaScript heap per-thread
48
49         * WebCoreStatistics.cpp:
50         (WebCoreStatistics::javaScriptObjectsCount):
51         (WebCoreStatistics::javaScriptGlobalObjectsCount):
52         (WebCoreStatistics::javaScriptProtectedObjectsCount):
53         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
54         * WebJavaScriptCollector.cpp:
55         (WebJavaScriptCollector::objectCount):
56         * WebScriptCallFrame.cpp:
57         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
58         Replaced static Collector calls with calls to a current thread's instance. Pass ExecState to jsString().
59
60 2008-04-29  Ada Chan  <adachan@apple.com>
61
62         Support text shadow in WebDrawText().
63         Remove DrawTextAtPoint() since it is only called by WebDrawText().
64
65         Reviewed by Adam.
66
67         * WebKit.vcproj/WebKit.def:
68         * WebKit.vcproj/WebKit_debug.def:
69         * WebKitGraphics.cpp:
70         (WebDrawText):
71         * WebKitGraphics.h:
72
73 2008-04-29  Adam Roben  <aroben@apple.com>
74
75         Restore the beloved COMPtr::operator&
76
77 2008-04-29  Adam Roben  <aroben@apple.com>
78
79         Windows build fix
80
81         Replaced uses of COMPtr::operator& with COMPtr::adoptionPointer.
82
83 2008-04-29  Adam Roben  <aroben@apple.com>
84
85         Fix a Windows build error
86
87         * WebScriptCallFrame.cpp:
88         (WebScriptCallFrame::variableNames): Don't use ::adopt now that
89         PropertyNameArray has no swap function.
90
91 2008-04-28  Adam Roben  <aroben@apple.com>
92
93         Fix some Windows build errors in WebKit
94
95         * Interfaces/WebKit.idl: Touched to force Interfaces to rebuild.
96         * WebKitPrefix.cpp: Touched to force WebKit to rebuild.
97
98 2008-04-25  Alexey Proskuryakov  <ap@webkit.org>
99
100         Reviewed by Darin.
101
102         Fix run-webkit-tests --threading
103         and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
104         Proxy server issue in Sunday's Nightly
105
106         * WebView.cpp: (WebView::WebView): Initialize threading. Previously, this was only done from
107         icon database code, which is not robust enough.
108
109 2008-04-26  Adam Barth <hk9565@gmail.com>
110
111         Reviewed by Adam Roben and Sam Weinig.
112
113         Renamed "domain" method to "host" to match SecurityOrigin.
114
115         * Interfaces/IWebSecurityOrigin.idl:
116         * WebSecurityOrigin.cpp:
117         (WebSecurityOrigin::host):
118         * WebSecurityOrigin.h:
119
120 2008-04-25  Anders Carlsson  <andersca@apple.com>
121
122         Reviewed by Adam.
123
124         Fix internal debug build.
125         
126         * WebKit.vcproj/WebKit.vcproj:
127
128 2008-04-24  Dan Bernstein  <mitz@apple.com>
129
130         - build fix
131
132         * WebView.cpp:
133         (WebView::handleContextMenuEvent):
134
135 2008-04-24  Brady Eidson  <beidson@apple.com>
136
137         Reviewed by Darin
138
139         Revert my previous change to WebKit/Win until I can make it act more like the new Mac code
140
141         * WebView.cpp:
142         (WebView::initWithFrame):
143
144 2008-04-24  Anders Carlsson  <andersca@apple.com>
145
146         Reviewed by Sam.
147
148         Change some String arguments to be const references instead.
149
150         * WebCoreSupport/WebEditorClient.cpp:
151         (WebEditorClient::shouldInsertText):
152         * WebCoreSupport/WebEditorClient.h:
153
154 2008-04-23  Brady Eidson  <beidson@apple.com>
155
156         Reviewed by Sam Weinig
157
158         In some current work I noticed that when a new Page is created, it is possible that it requires info from its Settings
159         object before the Settings object is initialized.  It seems quite prudent to post the preferences changed notification,
160         thereby populating the Settings object, immediately after the Page is created.
161
162         * WebView.cpp:
163         (WebView::initWithFrame): Post the notification right after the Page is created
164
165 2008-04-23  Jon Honeycutt  <jhoneycutt@apple.com>
166
167         Reviewed by Brady.
168
169         Implement accDoDefaultAction().
170
171         * AccessibleBase.cpp:
172         (AccessibleBase::accDoDefaultAction): Call the object's
173         performDefaultAction() method. Return S_FALSE if the call returns false,
174         indicating that the object has no default action associated with it.
175
176 2008-04-23  Jon Honeycutt  <jhoneycutt@apple.com>
177
178         Reviewed by Adam.
179
180         Implement accHitTest().
181
182         * AccessibleBase.cpp:
183         (AccessibleBase::accHitTest): Perform a hit test for a child object. If
184         none is found, report whether the point was within our own bounding box.
185
186 2008-04-23  Jon Honeycutt  <jhoneycutt@apple.com>
187
188         Reviewed by Adam and Darin.
189
190         Implement accNavigate().
191
192         * AccessibleBase.cpp:
193         (AccessibleBase::accNavigate): This method navigates between elements,
194         given a start point and a direction. The directions UP, DOWN, LEFT,
195         RIGHT are not are not implemented, matching Mozilla and IE. The
196         directions FIRSTCHILD and LASTCHILD are only allowed from self. NEXT and
197         PREVIOUS are allowed from self or any of our children.
198
199 2008-04-23  Jon Honeycutt  <jhoneycutt@apple.com>
200
201         Reviewed by Adam.
202
203         Implement accLocation().
204
205         * AccessibleBase.cpp:
206         (AccessibleBase::accLocation): Report the screen coordinates for the
207         object's bounding box.
208
209 2008-04-23  Jon Honeycutt  <jhoneycutt@apple.com>
210
211         Reviewed by Adam, Darin, Oliver.
212
213         Implement get_accDefaultAction().
214
215         * AccessibleBase.cpp:
216         (AccessibleBase::get_accDefaultAction): Report the result of calling the
217         object's actionVerb method.
218         * English.lproj/Localizable.strings: Updated with new strings.
219         * WebCoreLocalizedStrings.cpp: 
220         (WebCore::AXButtonActionVerb): Return a localized string representing
221         the object's default action.
222         (WebCore::AXRadioButtonActionVerb): Same.
223         (WebCore::AXTextFieldActionVerb): Same.
224         (WebCore::AXCheckedCheckBoxActionVerb): Same
225         (WebCore::AXUncheckedCheckBoxActionVerb): Same.
226         (WebCore::AXLinkActionVerb): Same.
227
228 2008-04-23  Daniel Zucker  <zucker@wake3.com>
229
230         Reviewed by Adam Roben.
231
232         <https://bugs.webkit.org/show_bug.cgi?id=18468>
233
234         * WebError.h:  include RetainPtr.h to fix build errors in Cairo build
235
236 2008-04-23  Daniel Zucker  <zucker@wake3.com>
237
238         Reviewed by Adam Roben.
239
240         Move the location of #if USE(CFNETWORK) to fix a cairo/curl build error.
241         <https://bugs.webkit.org/show_bug.cgi?id=18470>
242
243         * WebError.cpp:
244         (WebError::sslPeerCertificate):
245
246 2008-04-22  Jon Honeycutt  <jhoneycutt@apple.com>
247
248         Reviewed by Adam.
249
250         Implement get_accFocus().
251
252         * AccessibleBase.cpp:
253         (AccessibleBase::get_accRole): Remove redundant initialization;
254         VariantInit does this.
255         (AccessibleBase::get_accState): Same.
256         (AccessibleBase::get_accSelection): Relocated next to accSelect().
257         (AccessibleBase::get_accFocus): If the focused object is this object or
258         a child of this object, report it. Otherwise, report VT_EMPTY.
259
260 2008-04-22  Jon Honeycutt  <jhoneycutt@apple.com>
261
262         Reviewed by Sam.
263
264         Implement get_accKeyboardShortcut().
265
266         * AccessibleBase.cpp:
267         (AccessibleBase::get_accKeyboardShortcut): Report the key combination
268         that will perform the object's access key action, represented as a
269         string.
270
271 2008-04-19  Jon Honeycutt  <jhoneycutt@apple.com>
272
273         Reviewed by Darin.
274
275         Implement get_accHelp().
276
277         * AccessibleBase.cpp:
278         (AccessibleBase::get_accHelp): Report the result of calling the object's
279         helpText() method.
280
281 2008-04-19  Jon Honeycutt  <jhoneycutt@apple.com>
282
283         Reviewed by Darin.
284
285         Implement get_accState().
286
287         * AccessibleBase.cpp:
288         (AccessibleBase::get_accState):
289
290 2008-04-21  Alexey Proskuryakov  <ap@webkit.org>
291
292         Reviewed by Darin.
293
294         Move collector main thread initialization from WebKit/win to KJS::initializeThreading.
295
296         * WebView.cpp:
297         (WebView::WebView):
298
299 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
300
301         Reviewed by Darin.
302
303         Implement get_accRole().
304
305         * AccessibleBase.cpp:
306         (AccessibleBase::get_accRole): Report the result of role().
307         (MSAARole): Added; returns the MSAA role for a WebCore role.
308         (AccessibleBase::role): Return the MSAA role for the object's roleValue.
309         * AccessibleBase.h: Add declaration for role().
310
311 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
312
313         Reviewed by Darin.
314
315         Implement get_accName(), get_accValue(), get_accDescription(). Added
316         virtual methods that accessible objects can override to customize the
317         result.
318
319         * AccessibleBase.cpp:
320         (AccessibleBase::get_accName): Report result of name().
321         (AccessibleBase::get_accValue): Report result of value().
322         (AccessibleBase::get_accDescription): Report result of description().
323         (AccessibleBase::name): Added; returns AccessibilityObject::title().
324         (AccessibleBase::value): Added; returns
325         AccessibilityObject::stringValue().
326         (AccessibleBase::description): Added; returns
327         AccessibilityObject::accessibilityDescription().
328         * AccessibleBase.h: Added declarations for name(), value(), and
329         description().
330         * ChangeLog: Fix my misuse of "definition."
331
332 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
333
334         Fix build after r32231.
335
336         * WebFrame.cpp:
337         (WebFrame::renderTreeAsExternalRepresentation): renderer() ->
338         contentRenderer()
339
340 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
341
342         Fix build after r32231.
343
344         * WebView.cpp:
345         (WebView::paintIntoBackingStore): renderer() -> contentRenderer()
346         (WebView::elementAtPoint): Same.
347
348 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
349
350         * AccessibleBase.cpp: Build fix for copy/paste error.
351
352 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
353
354         Reviewed by Darin.
355
356         Implement IAccessible::get_accChild().
357
358         * AccessibleBase.cpp:
359         (AccessibleBase::get_accChild): Call getAccessibilityObjectForChild
360         to find the AccessibilityObject for the VARIANT vChild. Get the
361         AccessibilityObjectWrapper for the child, add a ref, and pass it back.
362         (AccessibleBase::getAccessibilityObjectForChild): Added; finds the
363         AccessibilityObject referred to by a VARIANT, or returns a COM error on
364         failure.
365         (AccessibleBase::wrapper): Added; returns the wrapper for the
366         AccessibilityObject. Creates one if necessary.
367         * AccessibleBase.h: Added declarations for wrapper() and
368         getAccessibilityObjectForChild().
369
370 2008-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
371
372         Reviewed by Darin, Ollie. 
373
374         * AccessibleBase.cpp:
375         (AccessibleBase::get_accChildCount): Implement get_accChildCount.
376
377 2008-04-17  Jon Honeycutt  <jhoneycutt@apple.com>
378
379         Reviewed by Darin.
380
381         Implement IAccessible::get_accParent(). 
382
383         * AccessibleBase.cpp:
384         (AccessibleBase::get_accParent): Call AccessibleObjectFromWindow with
385         OBJID_WINDOW. This will be handled by Windows to return the default
386         accessible object for the WebView, because we only handle OBJID_CLIENT.
387         * WebView.cpp:
388         (WebView::AccessibleObjectFromWindow): Added; calls through to the
389         AccessibleObjectFromWindow in the MSAA DLL.
390         * WebView.h: Added declaration for AccessibleObjectFromWindow.
391
392 2008-04-17  Jon Honeycutt  <jhoneycutt@apple.com>
393
394         Reviewed by Darin.
395
396         Return an AccessibleDocument when our root accessible object is queried
397         for.
398
399         * AccessibleDocument.cpp: Added; represents an AccessibilityObject that
400         itself represents a Document.
401         (AccessibleDocument::AccessibleDocument): Initialize AccessibleBase with
402         the AccessibilityObject for this Document.
403         * AccessibleDocument.h: Added.
404         * WebFrame.cpp:
405         (WebFrame::accessible): If m_accessible is 0, or if Document in this
406         frame does not match the Document in the cached m_accessible object,
407         create a new AccessibleDocument for this frame's Document.
408         * WebFrame.h: Swap AccessibleBase.h for AccessibleDocument.h
409         * WebKit.vcproj/WebKit.vcproj: Add AccessibleDocument.{h,cpp}
410
411 2008-04-17  Jon Honeycutt  <jhoneycutt@apple.com>
412
413         Reviewed by Darin.
414
415         Respond to WM_GETOBJECT messages. Currently returns NULL.
416
417         * WebFrame.cpp:
418         (WebFrame::accessible): Added; will return the root accessible object
419         for this frame.
420         * WebFrame.h: Added declaration for accessible().
421         * WebView.cpp:
422         (WebViewWndProc): Handle WM_GETOBJECT messages by calling onGetObject().
423         (WebView::onGetObject): Added; enables the AXObjectCache in WebCore,
424         queries the top-level frame for its root accessible object, and loads
425         the MSAA DLL and locates its LresultFromObject function. If calling
426         LresultFromObject succeeds, it returns a reference to the accessible
427         object to pass back to Windows. If not, we return false and let Windows
428         handle the request through DefWindowProc.
429         * WebView.h: Added declaration for onGetObject().
430
431 2008-04-18  Brady Eidson  <beidson@apple.com>
432
433         Reviewed by Sam Weinig
434
435         Don't clear the PageGroup on _close, as the WebCore::Page destructor already does this.
436         No reason to do the work twice...
437
438         * WebView.cpp:
439         (WebView::close):
440
441 2008-04-18  Adam Roben  <aroben@apple.com>
442
443         Update WebScriptDebugServer for JavaScriptDebugListener changes
444
445         Reviewed by Tim Hatcher.
446
447         * WebScriptDebugServer.cpp: Changed to use KJS::UString instead of
448         WebCore::String.
449         * WebScriptDebugServer.h: Ditto.
450
451 2008-04-16  Jon Honeycutt  <jhoneycutt@apple.com>
452
453         Reviewed by Darin.
454
455         Add a base AccessibilityObject wrapper class. Currently just stubs all
456         of the IAccessible methods.
457
458         * AccessibleBase.cpp: Added. Implements IAccessible, and inherits from
459         WebCore::AccessibilityObjectWrapper.
460         (AccessibleBase::AccessibleBase): Set the object's wrapper to this
461         instance. 
462         (AccessibleBase::~AccessibleBase):
463         (AccessibleBase::createInstance): Create an instance of a wrapper for
464         this AccessibilityObject.
465         (AccessibleBase::QueryInterface):
466         (AccessibleBase::Release):
467         (AccessibleBase::get_accParent):
468         (AccessibleBase::get_accChildCount):
469         (AccessibleBase::get_accChild):
470         (AccessibleBase::get_accName):
471         (AccessibleBase::get_accValue):
472         (AccessibleBase::get_accDescription):
473         (AccessibleBase::get_accRole):
474         (AccessibleBase::get_accState):
475         (AccessibleBase::get_accHelp):
476         (AccessibleBase::get_accKeyboardShortcut):
477         (AccessibleBase::accSelect):
478         (AccessibleBase::get_accFocus):
479         (AccessibleBase::get_accSelection):
480         (AccessibleBase::get_accDefaultAction):
481         (AccessibleBase::accLocation):
482         (AccessibleBase::accNavigate):
483         (AccessibleBase::accHitTest):
484         * AccessibleBase.h: Added.
485         (AccessibleBase::AddRef):
486         (AccessibleBase::put_accName):
487         (AccessibleBase::put_accValue):
488         (AccessibleBase::get_accHelpTopic):
489         (AccessibleBase::GetTypeInfoCount):
490         (AccessibleBase::GetTypeInfo):
491         (AccessibleBase::GetIDsOfNames):
492         (AccessibleBase::Invoke):
493         (AccessibleBase::detach): Detach this wrapper from its object.
494         * WebKit.vcproj/WebKit.vcproj:
495
496 2008-04-15  Anders Carlsson  <andersca@apple.com>
497
498         Reviewed by Adam.
499
500         Add ENABLE_OFFLINE_WEB_APPLICATIONS to FEATURE_DEFINES.
501
502         * WebKit.vcproj/WebKit.vcproj:
503
504 2008-04-12  Matt Lilek  <webkit@mattlilek.com>
505
506         Not reviewed, build fix.
507
508         * WebView.cpp:
509         (WebView::paintDocumentRectToContext):
510
511 2008-04-11  Steve Falkenburg  <sfalken@apple.com>
512
513         Fix caching typo.
514         
515         Made this code match the Mac.
516         
517         Reviewed by Mark Rowe.
518
519         * WebView.cpp:
520         (PreferencesChangedOrRemovedObserver::notifyPreferencesChanged):
521
522 2008-04-11  Adam Roben  <aroben@apple.com>
523
524         * ForEachCoClass.h: Added a deprecation notice.
525
526 2008-04-11  Adam Roben  <aroben@apple.com>
527
528         Fix Bug 18376: r31733 and 27 don't work w/Safari 3.1
529         
530         <https://bugs.webkit.org/show_bug.cgi?id=18376>
531
532         Rubberstamped by Steve.
533
534         * ForEachCoClass.h: Move post-3.1 classes to the end of the
535         FOR_EACH_COCLASS macro so that pre-3.1 classes will be in the place
536         Safari expects them to be. We will soon be deprecating
537         setUseOpenSourceWebKit/progIDForClass because it is clearly very
538         fragile.
539
540 2008-04-10  Ada Chan  <adachan@apple.com>
541
542         Added WebCoreStatistics that provides stats on Javascript objects
543         and IconDatabase.
544         
545         Changed WebCache::statistics() to additionally return xsl stylesheets data
546         and data on live sizes and decoded sizes.
547
548         Reviewed by Steve.
549
550         * ForEachCoClass.h:
551         * Interfaces/IWebCoreStatistics.idl: Added.
552         * Interfaces/WebKit.idl:
553         * WebCache.cpp:
554         (WebCache::statistics):
555         * WebCoreStatistics.cpp: Added.
556         (WebCoreStatistics::WebCoreStatistics):
557         (WebCoreStatistics::~WebCoreStatistics):
558         (WebCoreStatistics::createInstance):
559         (WebCoreStatistics::QueryInterface):
560         (WebCoreStatistics::AddRef):
561         (WebCoreStatistics::Release):
562         (WebCoreStatistics::javaScriptObjectsCount):
563         (WebCoreStatistics::javaScriptGlobalObjectsCount):
564         (WebCoreStatistics::javaScriptProtectedObjectsCount):
565         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
566         (WebCoreStatistics::iconPageURLMappingCount):
567         (WebCoreStatistics::iconRetainedPageURLCount):
568         (WebCoreStatistics::iconRecordCount):
569         (WebCoreStatistics::iconsWithDataCount):
570         * WebCoreStatistics.h: Added.
571         * WebKit.vcproj/WebKit.vcproj:
572         * WebKitClassFactory.cpp:
573
574 2008-04-09  Steve Falkenburg  <sfalken@apple.com>
575
576         Delete backing store (after a delay) when a WebView's top-level parent becomes inactive.
577
578         Reviewed by Brady Eidson.
579
580         * WebView.cpp:
581         (WebView::windowReceivedMessage):
582
583 2008-04-08  Adam Roben  <aroben@apple.com>
584
585         Export callOnMainThread from WebKit.dll
586
587         Rubberstamped by Anders.
588
589         * WebKit.vcproj/WebKit.def:
590         * WebKit.vcproj/WebKit_debug.def:
591
592 2008-04-08  Adam Roben  <aroben@apple.com>
593
594         Move callOnMainThread to WTF
595
596         Reviewed by Alexey Proskuryakov.
597
598         * WebIconDatabase.cpp: Updated #include
599
600 2008-04-08  Steve Falkenburg  <sfalken@apple.com>
601
602         Add missing increment/decrement COM class counts to detect leaks.
603         
604         Reviewed by Adam Roben.
605
606         * CFDictionaryPropertyBag.cpp:
607         (CFDictionaryPropertyBag::CFDictionaryPropertyBag):
608         (CFDictionaryPropertyBag::~CFDictionaryPropertyBag):
609         * CFDictionaryPropertyBag.h:
610         * HTTPHeaderPropertyBag.cpp:
611         (HTTPHeaderPropertyBag::HTTPHeaderPropertyBag):
612         (HTTPHeaderPropertyBag::~HTTPHeaderPropertyBag):
613         * HTTPHeaderPropertyBag.h:
614         * WebActionPropertyBag.cpp:
615         (WebActionPropertyBag::WebActionPropertyBag):
616         (WebActionPropertyBag::~WebActionPropertyBag):
617         * WebDocumentLoader.cpp:
618         (WebDocumentLoader::WebDocumentLoader):
619         (WebDocumentLoader::~WebDocumentLoader):
620         * WebDropSource.cpp:
621         (WebDropSource::WebDropSource):
622         (WebDropSource::~WebDropSource):
623         * WebDropSource.h:
624         * WebElementPropertyBag.cpp:
625         (WebElementPropertyBag::WebElementPropertyBag):
626         (WebElementPropertyBag::~WebElementPropertyBag):
627         * WebTextRenderer.cpp:
628         (WebTextRenderer::WebTextRenderer):
629         (WebTextRenderer::~WebTextRenderer):
630
631 2008-04-07  Brady Eidson  <beidson@apple.com>
632
633         Reviewed by John Honeycutt
634
635         ENABLE_DOM_STORAGE for Windows
636
637         * WebKit.vcproj/WebKit.vcproj:
638
639 2008-04-04  Adam Roben  <aroben@apple.com>
640
641         Export some more WTF functions from WebKit.dll
642
643         Reviewed by Alexey Proskuryakov.
644
645         * WebKit.vcproj/WebKit.def:
646         * WebKit.vcproj/WebKit_debug.def:
647
648 2008-04-04  Steve Falkenburg  <sfalken@apple.com>
649
650         Only delete the backing store of background windows.
651
652         Reviewed by Ada Chan.
653
654         * WebView.cpp:
655         (WebView::WebView):
656         (WebView::deleteBackingStore):
657         (WebView::paint): Added active check.
658         (WebView::deleteBackingStoreSoon):
659         (WebView::cancelDeleteBackingStoreSoon): Added.
660         (WebView::active): Added.
661         (WebView::updateActiveState): Moved active check code from here to active().
662         * WebView.h:
663
664 2008-04-04  Steve Falkenburg  <sfalken@apple.com>
665
666         Fix tooltip window leak.
667         
668         Explicitly call DestroyWindow on the tooltip.
669         Destroying its parent won't destroy the tooltip, since it not a WS_CHILD style window.
670
671         Reviewed by Ada Chan.
672
673         * WebView.cpp:
674         (WebView::~WebView):
675
676 2008-04-04  Steve Falkenburg  <sfalken@apple.com>
677
678         Delete backing store after we go 5 seconds without a paint.
679                 
680         Timer will be reset if a paint occurs, so this won't negatively impact performance.
681         
682         Reviewed by Ada Chan.
683
684         * WebView.cpp:
685         (WebView::paint): Call deleteBackingStoreSoon after paint.
686         (WebViewWndProc): Add DeleteBackingStoreTimer.
687         (WebView::deleteBackingStoreSoon): Added.
688         * WebView.h: Add deleteBackingStoreSoon.
689
690 2008-04-04  Ada Chan  <adachan@apple.com>
691
692         <rdar://problem/5830598> Image file opened in the browser window shows "Localized String Not Found' in window's title bar instead file name
693         Save WebCoreLocalizedStrings.cpp with UTF8 encoding.
694         Changed the format string to take in integers.
695
696         Reviewed by Dan.
697
698         * English.lproj/Localizable.strings: Updated.
699         * WebCoreLocalizedStrings.cpp:
700         (WebCore::imageTitle):
701
702 2008-04-03  Dan Bernstein  <mitz@apple.com>
703
704         Reviewed by Dave Hyatt.
705
706         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
707           font-weight does not properly support graded weights
708
709         * DOMCoreClasses.cpp:
710         (DOMElement::font): Updated for the change to FontDescription.
711         * WebCoreSupport/WebDragClient.cpp:
712         (dragLabelFont): Ditto.
713         * WebKitGraphics.cpp:
714         (makeFont): Ditto.
715         * WebKitGraphics.h: Added a FIXME.
716
717 2008-04-03  Steve Falkenburg  <sfalken@apple.com>
718
719         <rdar://problem/5835382> Calling window.open immediately after window.close can sometimes result in no window being created
720         
721         Group name tracking needs to happen using code in WebCore::Page, since it is more involved than
722         just setting a string.
723         
724         Reviewed by Adam Roben.
725
726         * WebView.cpp:
727         (WebView::close): Add null check (found via code inspection).
728         (WebView::initWithFrame): Store the group name directly in Page.
729         (WebView::setGroupName): Store the group name directly in Page.
730         (WebView::groupName): Retrieve the group name directly from Page.
731         * WebView.h: Removed m_groupName
732
733 2008-04-03  Simon Hausmann  <hausmann@webkit.org>
734
735         Reviewed by Mark Rowe.
736
737         Roll out r31599 and r31605 again after discussion with Mark Rowe.
738
739         * WebIconDatabase.cpp:
740         (WebIconDatabase::iconForURL):
741
742 2008-04-03  Simon Hausmann  <hausmann@webkit.org>
743
744         Attempted build fix
745
746         * WebIconDatabase.cpp:
747         (WebIconDatabase::iconForURL): Adjust to changed iconForPageURL
748         signature
749
750 2008-04-03  Ada Chan  <adachan@apple.com>
751
752         Allow WebArchive to be created via COM.
753         Replaced IID_DOMNode with __uuidof(DOMNode).
754
755         Reviewed by Adam and Steve.
756
757         * DOMCoreClasses.cpp:
758         (DOMNode::QueryInterface):
759         (DOMNode::isSameNode):
760         * DOMCoreClasses.h:
761         * ForEachCoClass.h:
762         * Interfaces/WebKit.idl:
763         * WebArchive.cpp:
764         (WebArchive::createInstance):
765         * WebArchive.h:
766         * WebKitClassFactory.cpp:
767
768 2008-04-01  Brady Eidson  <beidson@apple.com>
769
770         Reviewed by Jon Honeycutt and Cake
771
772         Hookup WebArchive API enough to be able to save the archive of a DOMNode
773         
774         * DOMCoreClasses.h: Add a GUID for DOMNode
775
776         * Interfaces/IWebArchive.idl: Add initWithNode()
777
778         * WebArchive.cpp:
779         (WebArchive::initWithNode):
780         (WebArchive::data): Actually return LegacyWebArchive-style data
781         * WebArchive.h:
782
783 2008-04-01  Brady Eidson  <beidson@apple.com>
784
785         Reviewed by Adam Roben
786
787         Add empty implementations of WebArchive for future work
788         
789         * WebArchive.cpp: Added.
790         (WebArchive::createInstance):
791         (WebArchive::WebArchive):
792         (WebArchive::~WebArchive):
793         (WebArchive::QueryInterface):
794         (WebArchive::AddRef):
795         (WebArchive::Release):
796         (WebArchive::initWithMainResource):
797         (WebArchive::initWithData):
798         (WebArchive::mainResource):
799         (WebArchive::subResources):
800         (WebArchive::subframeArchives):
801         (WebArchive::data):
802         * WebArchive.h: Added.
803         
804         * WebKit.vcproj/WebKit.vcproj:
805
806 2008-03-29  Adam Roben  <aroben@apple.com>
807
808         Rename IWebViewPrivate::addAdditionalPluginPath to
809         addAdditionalPluginDirectory
810
811         Reviewed by Mitz Pettel.
812
813         * Interfaces/IWebViewPrivate.idl:
814         * Interfaces/WebKit.idl: Touched to make sure the Interfaces project
815         rebuilds.
816         * WebView.cpp:
817         (WebView::addAdditionalPluginDirectory):
818         * WebView.h:
819
820 2008-03-26  Brent Fulgham  <bfulgham@gmail.com>
821
822         Reviewed by Adam Roben.
823
824         Add necessary files and build commands to vcproj files to
825         build a Curl-based Windows WebKit.  For details, see
826         http://bugs.webkit.org/show_bug.cgi?id=17985
827
828         * WebKit.vcproj/WebKit.vcproj:
829
830 2008-03-25  Adam Roben  <aroben@apple.com>
831
832         Attempted build fix
833
834         * WebKit.vcproj/WebKit.sln: Make testapi build after most other
835         projects.
836
837 2008-03-25  Adam Roben  <aroben@apple.com>
838
839         Fix Bug 18077: Integrate testapi.c into the Windows build
840
841         <http://bugs.webkit.org/show_bug.cgi?id=18077>
842
843         Reviewed by Steve Falkenburg.
844
845         * WebKit.vcproj/WebKit.sln: Added testapi.vcproj to the solution.
846
847 2008-03-25  Brady Eidson  <beidson@apple.com>
848
849         Reviewed by Darin
850
851         Remove newly obsolete FrameLoaderClient methods
852
853         * WebFrame.cpp:
854         * WebFrame.h:
855
856 2008-03-25  Darin Adler  <darin@apple.com>
857
858         Suggested by Adam.
859
860         * Interfaces/WebKit.idl: Touch this file to make the Interface project rebuild.
861
862 2008-03-21  Ada Chan  <adachan@apple.com>
863
864         <rdar://problem/5810324> visitCount not updated in History.plist
865         Call WebCore::HistoryItem::mergeAutoCompleteHints() in WebHistoryItem::mergeAutoCompleteHints().
866
867         Reviewed by Steve.
868
869         * WebHistoryItem.cpp:
870         (WebHistoryItem::mergeAutoCompleteHints):
871         (WebHistoryItem::QueryInterface):
872
873 2008-03-20  Dan Bernstein  <mitz@apple.com>
874
875         Reviewed by Adam Roben.
876
877         - make makeTextLarger() and zoomPageIn() do what they are supposed to do
878
879         * WebView.cpp:
880         (WebView::makeTextLarger): Changed call to canZoomIn() to zoomIn().
881         (WebView::zoomPageIn): Ditto.
882
883 2008-03-20  Dave Hyatt  <hyatt@apple.com>
884
885         Add full page zoom API for Windows WebKit.
886
887         Reviewed by aroben
888
889         * Interfaces/IWebView.idl:
890         * WebView.cpp:
891         (WebView::WebView):
892         (WebView::setTextSizeMultiplier):
893         (WebView::setPageSizeMultiplier):
894         (WebView::setZoomMultiplier):
895         (WebView::textSizeMultiplier):
896         (WebView::pageSizeMultiplier):
897         (WebView::zoomMultiplier):
898         (WebView::canMakeTextLarger):
899         (WebView::canZoomPageIn):
900         (WebView::canZoomIn):
901         (WebView::makeTextLarger):
902         (WebView::zoomPageIn):
903         (WebView::zoomIn):
904         (WebView::canMakeTextSmaller):
905         (WebView::canZoomPageOut):
906         (WebView::canZoomOut):
907         (WebView::makeTextSmaller):
908         (WebView::zoomPageOut):
909         (WebView::zoomOut):
910         (WebView::canMakeTextStandardSize):
911         (WebView::canResetPageZoom):
912         (WebView::canResetZoom):
913         (WebView::makeTextStandardSize):
914         (WebView::resetPageZoom):
915         (WebView::resetZoom):
916         * WebView.h:
917
918 2008-03-20  John Sullivan  <sullivan@apple.com>
919
920         * English.lproj/Localizable.strings:
921         Brought this file up to date
922
923 2008-03-19  Dan Bernstein  <mitz@apple.com>
924
925         - build fix
926
927         * Interfaces/WebKit.idl: Touched.
928
929 2008-03-19  Adam Roben  <aroben@apple.com>
930
931         Fix a couple of bugs where the node highlight would appear when it shouldn't
932
933         There were at least two ways you could get the highlight to appear
934         when it shouldn't:
935           1) Selecting a node in the Inspector while the inspected WebView was
936              in a background tab.
937           2) Selecting a node in the Inspector, switching to another tab,
938              closing the Inspector, then switching back to the inspected
939              WebView's tab.
940
941         This patch fixes the above two issues, and possibly others.
942
943         show() and hide() are now private methods of WebNodeHighlight. They
944         are replaced by a single public method,
945         setShowsWhileWebViewIsVisible(bool). WebInspectorClient uses this to
946         tell the highlight whether it should be showing when the inspected
947         WebView is visible.
948
949         Reviewed by John Sullivan.
950
951         * WebCoreSupport/WebInspectorClient.cpp:
952         (WebInspectorClient::highlight): If the highlight is already showing,
953         it just needs to update since the highlighted node has changed. If the
954         highlight is not showing, call setShowsWhileWebViewIsVisible(true) so
955         that the highlight will show when the WebView is shown.
956         (WebInspectorClient::hideHighlight): Changed to call
957         setShowsWhileWebViewIsVisible(false) instead of hide().
958         * WebNodeHighlight.cpp:
959         (WebNodeHighlight::WebNodeHighlight): Initialize new member, and
960         initialize m_inspectedWebViewWindow to its final value here instead of
961         in show().
962         (WebNodeHighlight::setShowsWhileWebViewIsVisible): Added. If we're not
963         supposed to show ourselves when the WebView is visible, we hide
964         ourselves and return. Otherwise, we make our visibility match the
965         WebView's.
966         (WebNodeHighlight::isWebViewVisible): Added.
967         (WebNodeHighlight::show): Removed initialization of
968         m_inspectedWebViewWindow (this is now done by our constructor). Added
969         an assertion that we're supposed to show ourselves when the WebView is
970         visible.
971         (WebNodeHighlight::onWebViewShowWindow): If we shouldn't show
972         ourselves when the WebView is visible, then we don't need to do
973         anything at all when the WebView's visibility changes.
974         * WebNodeHighlight.h:
975
976 2008-03-19  Adam Roben  <aroben@apple.com>
977
978         Small WebNodeHighlight cleanup
979
980         Renamed the following methods:
981           visible() -> isShowing()
982           updateWindow() -> update()
983
984         Removed the window() method.
985
986         Added a new method, placeBehindWindow(HWND), that moves the highlight
987         overlay in the window z-order to be just behind the passed-in window.
988         WebInspectorClient calls this instead of doing the move directly using
989         the old window() method.
990
991         Reviewed by John Sullivan.
992
993         * WebCoreSupport/WebInspectorClient.cpp:
994         (WebInspectorClient::attachWindow):
995         (WebInspectorClient::detachWindow):
996         (WebInspectorClient::highlight): Call placeBehindWindow instead of
997         calling SetWindowPos directly.
998         * WebNodeHighlight.cpp:
999         (WebNodeHighlight::show):
1000         (WebNodeHighlight::isShowing):
1001         (WebNodeHighlight::placeBehindWindow): Added. Code came from
1002         WebInspectorClient::highlight.
1003         (WebNodeHighlight::onWebViewWindowPosChanged):
1004         (WebNodeHighlight::onRootWindowPosChanged):
1005         * WebNodeHighlight.h:
1006
1007 2008-03-19  Ada Chan  <adachan@apple.com>
1008
1009         Added a method to paint WebView content specified by 
1010         the document rect into a device context.
1011
1012         Reviewed by Darin.
1013
1014         * Interfaces/IWebViewPrivate.idl:
1015         * WebView.cpp:
1016         (WebView::paintDocumentRectToContext):
1017         * WebView.h:
1018
1019 2008-03-18  Brent Fulgham  <bfulgham@gmail.com>
1020
1021         Reviewed by Adam Roben.
1022
1023         Provide some stub implementations for things that WebKit
1024         uses for performing authentication/challenge activities.  This
1025         is in support of http://bugs.webkit.org/show_bug.cgi?id=17837
1026
1027         * WebDataSource.cpp:
1028         * WebError.cpp:  Conditionalize CFNetwork-specific logic
1029         * WebURLAuthenticationChallenge.cpp:  Conditionalize constructor
1030           for authentication/challenge member.
1031         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
1032         * WebURLResponse.cpp:  Remove CFNetwork-specific logic.
1033         * WebURLResponse.h: Conditionalize CFNetwork-specific member.
1034         * WebView.cpp:  Conditionalize CFNetwork-specific network protocol test.
1035         (WebView::canHandleRequest):
1036
1037 2008-03-18  Adam Roben  <aroben@apple.com>
1038
1039         Focus the Inspector's WebView whenever the Inspector window is focused
1040
1041         Reviewed by Mitz.
1042
1043         * WebCoreSupport/WebInspectorClient.cpp:
1044         (WebInspectorClient::onSetFocus): Send focus to the WebView.
1045         (WebInspectorWndProc): Added a handler for WM_SETFOCUS.
1046         * WebCoreSupport/WebInspectorClient.h:
1047
1048 2008-03-18  Adam Roben  <aroben@apple.com>
1049
1050         Fix Bug 14276: Element highlight also covers Web inspector
1051
1052         <http://bugs.webkit.org/show_bug.cgi?id=14276>
1053         <rdar://5712796>
1054
1055         Also fixes <rdar://5622837> Browser window comes to front when node
1056         highlight appears, potentially blocking Inspector
1057
1058         Reviewed by Mitz.
1059
1060         * WebCoreSupport/WebInspectorClient.cpp:
1061         (WebInspectorClient::highlight): After showing the highlight,
1062         reposition it just behind the Inspector's window.
1063         * WebNodeHighlight.cpp:
1064         (WebNodeHighlight::show):
1065           - Changed flags passed to CreateWindowEx to not specify WS_VISIBLE.
1066             This is not needed because we'll show the window later in this
1067             function.
1068           - Removed call to SetWindowPos that tried to position the overlay
1069             just in front of the WebView. This is now handled by
1070             WebInspectorClient.
1071           - Changed call to ShowWindow to use SetWindowPos so that we can pass
1072             SWP_NOACTIVATE. This prevents the highlight from jumping in front
1073             of the Inspector every time it's shown.
1074         * WebNodeHighlight.h: Added a method to get the highlight's HWND.
1075
1076 2008-03-14  Steve Falkenburg  <sfalken@apple.com>
1077
1078         PGO build fixes.
1079
1080         * WebKit.vcproj/WebKit.vcproj:
1081
1082 2008-03-13  Adam Roben  <aroben@apple.com>
1083
1084         Another Windows build fix after r31034
1085
1086         * WebKitDLL.cpp:
1087         (loadResourceIntoBuffer): Use SharedBuffer::create.
1088
1089 2008-03-13  Adam Roben  <aroben@apple.com>
1090
1091         Windows build fix after r31034
1092
1093         * WebFrame.cpp:
1094         (WebFrame::loadData): Use SharedBuffer::create.
1095         (WebFrame::loadHTMLString): Ditto.
1096
1097 2008-03-13  Steve Falkenburg  <sfalken@apple.com>
1098
1099         More PGO build fixes.
1100
1101         * WebKit.vcproj/WebKit.pgd: Removed.
1102         * WebKit.vcproj/WebKit.vcproj:
1103         * WebKitPrefix.cpp:
1104
1105 2008-03-13  Anders Carlsson  <andersca@apple.com>
1106
1107         Reviewed by Adam.
1108
1109         Call originalRequest instead of initialRequest.
1110         
1111         * WebDataSource.cpp:
1112         (WebDataSource::initialRequest):
1113
1114 2008-03-13  Steve Falkenburg  <sfalken@apple.com>
1115
1116         PGO build fixes.
1117         
1118         Disable PGO for normal release builds.
1119         Added work-in-progress Release_PGOInstrument/Release_PGOOptimize targets.
1120
1121         * WebKit.vcproj/WebKit.vcproj:
1122
1123 2008-03-12  Steve Falkenburg  <sfalken@apple.com>
1124
1125         Fix build.
1126
1127         * WebKit.vcproj/WebKit.vcproj:
1128
1129 2008-03-12  Ada Chan  <adachan@apple.com>
1130
1131         <rdar://problem/5795843> 
1132         CFURLDownload needs to be cancelled if we don't have a destination path
1133         to save resume information.
1134
1135         Reviewed by Brady.
1136
1137         * WebDownload.cpp:
1138         (WebDownload::cancelForResume):
1139
1140 2008-03-12  David Hyatt  <hyatt@apple.com>
1141
1142         Make the zoom factor a float and not a percent.
1143
1144         Reviewed by antti
1145
1146         * WebFrame.cpp:
1147         (WebFrame::setTextSizeMultiplier):
1148
1149 2008-03-12  Steve Falkenburg  <sfalken@apple.com>
1150
1151         Build fix.
1152
1153         * WebKit.vcproj/WebKit.pgd:
1154         * WebKit.vcproj/WebKit.vcproj:
1155
1156 2008-03-12  Steve Falkenburg  <sfalken@apple.com>
1157
1158         Re-enabled PGO.
1159         
1160         Rubber stamped by Mark Rowe.
1161
1162         * WebKit.vcproj/WebKit.pgd:
1163         * WebKit.vcproj/WebKit.vcproj:
1164         * WebKitPrefix.cpp: touched this file to force a re-build.
1165
1166 2008-03-12  Steve Falkenburg  <sfalken@apple.com>
1167
1168         Fix build.
1169
1170         * WebKit.vcproj/WebKit.vcproj:
1171
1172 2008-03-11  Steve Falkenburg  <sfalken@apple.com>
1173
1174         Use PGO to build WebKit.dll.
1175         
1176         Reviewed by Oliver.
1177
1178         * WebKit.vcproj/WebKit.pgd: Added.
1179         * WebKit.vcproj/WebKit.vcproj:
1180
1181 2008-03-11  Brent Fulgham  <bfulgham@gmail.com>
1182
1183         Reviewed by Adam Roben.
1184
1185         Enabled WinLauncher as part of normal Windows build.
1186         http://bugs.webkit.org/show_bug.cgi?id=17715.
1187
1188         * WebKit.vcproj/WebKit.sln:  Add WinLauncher to the set of things
1189           build during a Windows build.
1190
1191 2008-03-11  Adam Roben  <aroben@apple.com>
1192
1193         Roll out r30961 since it broke the default site icon on Windows
1194
1195         * WebKit.vcproj/WebKit.rc:
1196         * WebKit.vcproj/urlIcon.png: Renamed from WebCore/Resources/urlIcon.png.
1197         * WebKitDLL.cpp:
1198         (loadResourceIntoBuffer):
1199
1200 2008-03-11  Holger Hans Peter Freyther  <zecke@selfish.org>
1201
1202         Reviewed by Darin.
1203
1204         r25512 inlined the urlIcon to improve the startup time of Safari on Mac. Inlining is
1205         not suitable for platforms where this icon is themable. E.g. the Qt platform is allowing
1206         to theme this icon and the Gtk+ platform will probably end up with themable icons
1207         as well.
1208         
1209         Remove dead code from the windows port and move the urlIcon from the windows
1210         directory to the Resource directory to be used by Qt and other ports.
1211         
1212         Ifdef the usage of the built-in icon in IconDatabase.cpp and for Qt do not use
1213         it. Gtk+ currently has no proper implementation of Image::loadPlatformResource but
1214         once it does it wants to use this for getting the urlIcon as well.
1215
1216         * WebKit.vcproj/WebKit.rc:
1217         * WebKitDLL.cpp:
1218         (loadResourceIntoBuffer):
1219
1220 2008-03-10  Eric Seidel  <eric@webkit.org>
1221
1222         No review, build fix only.
1223         
1224         Speculative fix for Windows build, use ::UChar instead of KJS::UChar
1225
1226         * WebScriptCallFrame.cpp:
1227         (WebScriptCallFrame::valueForVariable):
1228         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
1229
1230 2008-03-10  Steve Falkenburg  <sfalken@apple.com>
1231
1232         Fix build break caused by r30920.
1233         
1234         Serialize remaining dependent builds by adding dependencies.
1235         Visual Studio per-vcproj parallelization doesn't add a lot of value
1236         since so many of our builds are dependent - this just enforces that.
1237         We do our parallelization via pdevenv, which works much better.
1238
1239         * WebKit.vcproj/WebKit.sln:
1240         * WebKit.vcproj/WebKit.submit.sln:
1241
1242 2008-03-09  Steve Falkenburg  <sfalken@apple.com>
1243
1244         Stop Windows build if an error occurs in a prior project.
1245
1246         Rubber stamped by Darin.
1247
1248         * WebKit.vcproj/Interfaces.vcproj:
1249         * WebKit.vcproj/InterfacesGenerated.vcproj:
1250         * WebKit.vcproj/WebKit.vcproj:
1251         * WebKit.vcproj/WebKitGUID.vcproj:
1252
1253 2008-03-09  Adam Roben  <aroben@apple.com>
1254
1255         Make WebInspectorClient use WindowMessageBroadcaster instead of manual subclassing
1256
1257         Reviewed by Darin.
1258
1259         * WebCoreSupport/WebInspectorClient.cpp:
1260         (WebInspectorClient::WebInspectorClient): Removed
1261         m_orignalWebViewWndProc member.
1262         (WebInspectorClient::attachWindow): Register as a listener with
1263         WindowMessageBroadcaster instead of subclassing.
1264         (WebInspectorClient::detachWindow): Deregister as a listener with
1265         WindowMessageBroadcaster instead of unsubclassing.
1266         (WebInspectorClient::windowReceivedMessage): Renamed from
1267         SubclassedWebViewWndProc. Also added a missing break statement after
1268         the call to onWebViewWindowPosChanging.
1269         * WebCoreSupport/WebInspectorClient.h:
1270
1271 2008-03-09  Adam Roben  <aroben@apple.com>
1272
1273         Make the node highlight not obscure the tab bar when it first appears
1274
1275         Reviewed by Darin.
1276
1277         * WebNodeHighlight.cpp:
1278         (WebNodeHighlight::onWebViewWindowPosChanged): Added. Listens for
1279         changes to the WebView's size and resizes the highlight window to
1280         match.
1281         (WebNodeHighlight::onRootWindowPosChanged): Added. Listens for changes
1282         to the WebView's root window's position and moves the highlight window
1283         to match.
1284         (WebNodeHighlight::windowReceivedMessage): Call
1285         onWebViewWindowPosChanged/onRootWindowPosChanged as appropriate.
1286         * WebNodeHighlight.h:
1287
1288 2008-03-09  Adam Roben  <aroben@apple.com>
1289
1290         Fix Bug 14254: Inspector node highlight applied to all tabs
1291
1292         <http://bugs.webkit.org/show_bug.cgi?id=14254>
1293         <rdar://problem/5322306>
1294
1295         WebNodeHighlight now listens for the WM_SHOWWINDOW message being sent
1296         to the inspected WebView so that it can hide/show itself as the
1297         WebView is hidden/shown.
1298
1299         Reviewed by Anders.
1300
1301         * WebNodeHighlight.cpp:
1302         (WebNodeHighlight::~WebNodeHighlight): Remove ourselves as a listener
1303         for our inspected WebView's window's messages.
1304         (WebNodeHighlight::show): Add ourselves as a listener for our
1305         inspected WebView's window's messages.
1306         (WebNodeHighlight::onWebViewShowWindow): Added. Hide ourselves when
1307         the WebView hides, show ourselves when the WebView is shown.
1308         (WebNodeHighlight::windowReceivedMessage): Added a separate switch
1309         statement to handle the inspected WebView's window's messages.
1310         * WebNodeHighlight.h:
1311
1312 2008-03-07  Brent Fulgham  <bfulgham@gmail.com>
1313
1314         Reviewed by Mark Rowe.
1315
1316         Correct build intermediary output
1317         (http://bugs.webkit.org/show_bug.cgi?id=17713)
1318
1319         * WebKit/win/WebKit.vcproj/WebKit.vcproj:  Correct output and intermediary paths
1320
1321 2008-03-07  Brent Fulgham  <bfulgham@gmail.com>
1322
1323         Reviewed by Adam Roben.
1324
1325         Do not link (or attempt to initialize) the SafariTheme.dll
1326         when not building with USE(SAFARI_THEME) enabled.
1327         (http://bugs.webkit.org/show_bug.cgi?id=17707)
1328
1329         * WebKit/win/WebKitClassFactory.cpp:  Conditionalize use of SafariTheme.dll
1330
1331 2008-03-07  Brent Fulgham  <bfulgham@gmail.com>
1332
1333         Reviewed by Steve Falkenburg.
1334
1335         Update solution to understand Cairo build target.  Add
1336         library dependencies for Cairo build target.
1337         (http://bugs.webkit.org/show_bug.cgi?id=17300)
1338
1339         * WebKit.vcproj/WebKit.sln:
1340         * WebKit.vcproj/WebKit.vcproj:
1341
1342 2008-03-06  Adam Roben  <aroben@apple.com>
1343
1344         Change WebScriptDebugServer to use WebCore::JavaScriptDebugServer
1345
1346         WebScriptDebugServer is now a JavaScriptDebugListener.
1347
1348         Reviewed by Darin.
1349
1350         * WebScriptDebugServer.cpp:
1351         (WebScriptDebugServer::WebScriptDebugServer): Removed initialization
1352         of m_callingListeners member.
1353         (WebScriptDebugServer::addListener): Register as a listener with
1354         JavaScriptDebugServer if we've just added our first listener.
1355         (WebScriptDebugServer::removeListener): Deregister as a listener with
1356         JavaScriptDebugServer if we've just removed our last listener.
1357         (WebScriptDebugServer::didParseSource): Added. Code came from the old
1358         sourceParsed method. Removed m_callingListeners code because
1359         JavaScriptDebugServer guards against re-entry for us.
1360         (WebScriptDebugServer::failedToParseSource): Ditto.
1361         (WebScriptDebugServer::didEnterCallFrame): Ditto for callEvent.
1362         (WebScriptDebugServer::willExecuteStatement): Ditto for atStatement.
1363         (WebScriptDebugServer::willLeaveCallFrame): Ditto for
1364         willLeaveCallFrame.
1365         (WebScriptDebugServer::exceptionWasRaised): Ditto for exception.
1366         * WebScriptDebugServer.h: Changed to inherit from
1367         WebCore::JavaScriptDebugListener.
1368         * WebView.cpp:
1369         (WebView::initWithFrame): Removed call to
1370         WebScriptDebugServer::pageCreated. This is now handled by WebCore.
1371
1372 2008-03-06  Darin Adler  <darin@apple.com>
1373
1374         Reviewed by Mitz.
1375
1376         - fix regression test failures and crashes from the visited-link change
1377
1378         * WebCoreSupport/WebChromeClient.cpp:
1379         (WebChromeClient::populateVisitedLinks): Check for null before calling
1380         addVisitedLinksToPageGroup.
1381         * WebCoreSupport/WebFrameLoaderClient.cpp:
1382         (WebFrameLoaderClient::updateGlobalHistory): Ditto.
1383         * WebHistory.cpp:
1384         (WebHistory::setOptionalSharedHistory): Call PageGroup::setShouldTrackVisitedLinks
1385         to turn off visited links if there is no history object. Also call
1386         removeAllVisitedLinks so we can start over from scratch with the new history.
1387
1388 2008-03-06  Matt Lilek  <webkit@mattlilek.com>
1389
1390         Reviewed by Adam Roben.
1391
1392         Bug 17691: REGRESSION: FindSafari doesn't work
1393         http://bugs.webkit.org/show_bug.cgi?id=17691
1394
1395         Swap my change from r30394 to use the Release libraries instead of Debug
1396         since some machines don't have the Debug version.
1397
1398         * WebKit.vcproj/WebKit.sln:
1399
1400 2008-03-06  Darin Adler  <darin@apple.com>
1401
1402         Reviewed by Mitz.
1403
1404         - fix http://bugs.webkit.org/show_bug.cgi?id=17526
1405           REGRESSION: iframes are added to Safari's History menu
1406           by separating the visited link machinery from global history
1407
1408         * WebCoreSupport/WebChromeClient.cpp:
1409         (WebChromeClient::populateVisitedLinks): Added a call to the new
1410         WebHistory::addVisitedLinksToPageGroup function.
1411         * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks.
1412         Also fixed the webView function to be non-virtual.
1413
1414         * WebCoreSupport/WebFrameLoaderClient.cpp:
1415         (WebFrameLoaderClient::updateGlobalHistory): Changed to use the
1416         new WebHistory::addItem function.
1417         (WebFrameLoaderClient::webHistory): Changed to return a WebHistory*,
1418         there's no reason to AddRef the result from this function.
1419         * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
1420
1421         * WebHistory.cpp: Removed IWebHistoryPrivate and _WebCoreHistoryProvider.
1422         (WebHistory::QueryInterface): Removed IWebHistoryPrivate.
1423         (sharedHistoryStorage): Added.
1424         (WebHistory::sharedHistory): Added.
1425         (WebHistory::optionalSharedHistory): Changed to use sharedHistory().
1426         (WebHistory::setOptionalSharedHistory): Changed to require a WebHistory
1427         object, not just an IWebHistory.
1428         (WebHistory::removeAllItems): Call PageGroup::removeAllVisitedLinks.
1429         (WebHistory::addItem): Changed parameter types since this is called with
1430         arguments from WebCore -- at some point this could allow better efficiency.
1431         (WebHistory::removeItemForURLString):  Call PageGroup::removeAllVisitedLinks
1432         if the last URL is being removed.
1433         (addVisitedLinkToPageGroup): Added. Helper. Adds a single link to a group's
1434         visited link set.
1435         (WebHistory::addVisitedLinksToPageGroup): Added. Adds all links to a group's
1436         visited link.
1437         * WebHistory.h: Removed IWebHistoryPrivate. Removed optionalSharedHistoryInternal
1438         and added sharedHistory. Replaced addItemForURL and containsItemForURLString with
1439         non-virtual addItem and addVisitedLinksToPageGroup functions.
1440
1441 2008-03-05  Anders Carlsson  <andersca@apple.com>
1442
1443         Build fix.
1444
1445         * WebKit.vcproj/WebKit.vcproj:
1446
1447 2008-03-04  Sam Weinig  <sam@webkit.org>
1448
1449         Reviewed by Mark Rowe.
1450
1451         - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
1452           JSDOMWindow.h
1453
1454         * WebFrame.cpp:
1455
1456 2008-03-04  Adam Roben  <aroben@apple.com>
1457
1458         WebScriptDebugServer cleanup
1459
1460         Reviewed by Anders.
1461
1462         * WebScriptDebugServer.cpp: Renamed m_callingServer to
1463         m_callingListeners.
1464         (WebScriptDebugServer::WebScriptDebugServer):
1465         (WebScriptDebugServer::sharedWebScriptDebugServer): Changed to keep
1466         the shared instance as a function-level static.
1467         (WebScriptDebugServer::didLoadMainResourceForDataSource): Made return
1468         void.
1469         (WebScriptDebugServer::sourceParsed):
1470         (WebScriptDebugServer::callEvent):
1471         (WebScriptDebugServer::atStatement):
1472         (WebScriptDebugServer::returnEvent):
1473         (WebScriptDebugServer::exception):
1474         (WebScriptDebugServer::serverDidDie): Made return void.
1475         * WebScriptDebugServer.h:
1476           - Removed unnecessary #includes
1477           - Made inheritance from KJS::Debugger private
1478           - Made some methods private
1479
1480 2008-03-04  Adam Roben  <aroben@apple.com>
1481
1482         Remove WebScriptDebugger
1483
1484         Reviewed by Anders.
1485
1486         * WebKit.vcproj/WebKit.vcproj: Removed files from project.
1487         * WebScriptDebugServer.cpp:
1488         (frame): Moved here from WebScriptDebugger.cpp.
1489         (webFrame): Ditto.
1490         (webView): Ditto.
1491         (WebScriptDebugServer::WebScriptDebugServer): Initialize new member.
1492         * WebScriptDebugServer.h: Changed to inherit directly from
1493         KJS::Debugger instead of from WebScriptDebugger, and added
1494         m_callingServer member that WebScriptDebugger used to own.
1495         * WebScriptDebugger.cpp: Removed.
1496         * WebScriptDebugger.h: Removed.
1497
1498 2008-03-04  Adam Roben  <aroben@apple.com>
1499
1500         Move sourceParsed to WebScriptDebugServer
1501
1502         Reviewed by Anders.
1503
1504         * WebScriptDebugServer.cpp:
1505         (WebScriptDebugServer::sourceParsed): Moved here from
1506         WebScriptDebugger and merged with didParseSource/failedToParseSource.
1507         * WebScriptDebugServer.h: Removed didParseSource/failedToParseSource.
1508         * WebScriptDebugger.cpp: Removed sourceParsed.
1509         * WebScriptDebugger.h: Ditto.
1510
1511 2008-03-04  Adam Roben  <aroben@apple.com>
1512
1513         Move callEvent, returnEvent, and exception to WebScriptDebugServer
1514
1515         Reviewed by Anders.
1516
1517         * WebScriptDebugServer.cpp:
1518         (WebScriptDebugServer::callEvent): Moved here from WebScriptDebugger
1519         and merged with didEnterCallFrame.
1520         (WebScriptDebugServer::returnEvent): Ditto for willLeaveCallFrame.
1521         (WebScriptDebugServer::exception): Ditto for exceptionWasRaised.
1522         * WebScriptDebugServer.h: Removed didEnterCallFrame,
1523         willLeaveCallFrame, and exceptionWasRaised.
1524         * WebScriptDebugger.cpp: Removed callEvent, returnEvent, and
1525         exception.
1526         * WebScriptDebugger.h: Ditto.
1527
1528 2008-03-04  Adam Roben  <aroben@apple.com>
1529
1530         Move atStatement to WebScriptDebugServer
1531
1532         Reviewed by Anders.
1533
1534         * WebScriptDebugServer.cpp:
1535         (WebScriptDebugServer::atStatement): Moved here and merged with the
1536         old willExecuteStatement method.
1537         * WebScriptDebugServer.h: Removed inheritance from
1538         IWebScriptDebugListener, which no one was relying on.
1539         * WebScriptDebugger.cpp:
1540         (webFrame): Made non-static.
1541         (webView): Ditto.
1542         * WebScriptDebugger.h: Added declarations of webFrame and webView
1543         methods for WebScriptDebugServer's benefit. Removed unused m_webView
1544         and m_frame members.
1545
1546 2008-03-04  Adam Roben  <aroben@apple.com>
1547
1548         Start to merge WebScriptDebugger and WebScriptDebugServer
1549
1550         WebScriptDebugServer now inherits from WebScriptDebugger.
1551
1552         Reviewed by Anders.
1553
1554         * WebScriptDebugServer.cpp:
1555         (WebScriptDebugServer::pageCreated): Use sharedWebScriptDebugServer
1556         instead of WebScriptDebugger::shared.
1557         (WebScriptDebugServer::addListener): Ditto.
1558         (WebScriptDebugServer::removeListener): Ditto.
1559         * WebScriptDebugServer.h: Changed to inherit from WebScriptDebugger.
1560         * WebScriptDebugger.cpp: Removed shared method.
1561         * WebScriptDebugger.h: Made constructor/destructor protected, and
1562         removed shared method.
1563
1564 2008-03-04  Adam Roben  <aroben@apple.com>
1565
1566         Use WebCore's new debugger-attaching code
1567
1568         Reviewed by Kevin M.
1569
1570         * WebCoreSupport/WebFrameLoaderClient.cpp: Moved a kit() function to
1571         WebView.{cpp,h} so that other files can call it.
1572         * WebFrame.cpp:
1573         (WebFrame::WebFrame): Removed m_scriptDebugger member.
1574         (WebFrame::windowObjectCleared): Removed attach/detach calls. This is
1575         no longer needed because WebScriptDebugger no longer stores any
1576         per-WebFrame state.
1577         * WebFrame.h:
1578         * WebScriptDebugServer.cpp:
1579         (WebScriptDebugServer::pageCreated): Added. Attaches our shared
1580         debugger to the Page if we have any listeners.
1581         (WebScriptDebugServer::addListener): Sets our shared debugger for all
1582         Pages when we get our first listener.
1583         (WebScriptDebugServer::removeListener): Removes our shared debugger
1584         from all Pages when we lose our last listener.
1585         * WebScriptDebugServer.h:
1586         * WebScriptDebugger.cpp:
1587         (WebScriptDebugger::shared): Added.
1588         (WebScriptDebugger::WebScriptDebugger): Removed m_frame member.
1589         (WebScriptDebugger::~WebScriptDebugger): Added.
1590         (frame): Gets a Frame from an ExecState.
1591         (webFrame): Gets a WebFrame from an ExecState.
1592         (webView): Gets a WebView from an ExecState.
1593         (WebScriptDebugger::sourceParsed): Changed to call webFrame() and
1594         webView() instead of using m_frame and m_webView members.
1595         (WebScriptDebugger::callEvent): Ditto.
1596         (WebScriptDebugger::atStatement): Ditto.
1597         (WebScriptDebugger::returnEvent): Ditto.
1598         (WebScriptDebugger::exception): Ditto.
1599         * WebScriptDebugger.h:
1600         * WebView.cpp:
1601         (kit): Moved here from WebFrameLoaderClient.cpp.
1602         (WebView::initWithFrame): Tell the WebScriptDebugServer about the new
1603         Page so it can attach a debugger if needed.
1604         * WebView.h:
1605
1606 2008-03-04  Adam Roben  <aroben@apple.com>
1607
1608         Change WebView's string-finding methods to call through to Page
1609
1610         These methods were added to Page back in r28878 (and the
1611         implementation was copied from WebView!) but we never switched over to
1612         using them.
1613
1614         Reviewed by Sam.
1615
1616         * WebView.cpp:
1617         (WebView::searchFor): Call through to Page::findString.
1618         (WebView::markAllMatchesForText): Call through to Page.
1619         (WebView::unmarkAllTextMatches): Ditto.
1620
1621 2008-03-04  Adam Roben  <aroben@apple.com>
1622
1623         Actually pause the process while Drosera is at a breakpoint
1624
1625         WebScriptDebugServer::suspendProcessIfPaused is supposed to pause the
1626         process while Drosera is at a breakpoint. Previously we were just
1627         starting a message pump that would deliver messages to all windows in
1628         the process, allowing mouse events, JS timers, etc. to execute.
1629
1630         Now we only deliver messages to COM's message window, which is all we
1631         need to allow RPC to function.
1632
1633         Reviewed by Anders.
1634
1635         * WebScriptDebugServer.cpp:
1636         (comMessageWindow): Added. Finds COM's message window.
1637         (WebScriptDebugServer::suspendProcessIfPaused): Only deliver messages
1638         to COM's message window so that mouse events, JS timers, etc., won't
1639         execute.
1640
1641 2008-03-03  Adam Roben  <aroben@apple.com>
1642
1643         Generate WebScriptCallFrame instances dynamically
1644
1645         WebScriptDebugger no longer holds a reference to the topmost call
1646         frame, and WebScriptCallFrame no longer holds a reference to its
1647         caller. We now generate WebScriptCallFrame instances as needed by
1648         walking the callingExecState chain.
1649
1650         By making WebKit no longer responsible for keeping track of the call
1651         stack, we get one step closer to moving most JS debugging code out of
1652         WebKit entirely.
1653
1654         This incidentally fixes a bug in Drosera where we'd never show the
1655         global scope in the call stack.
1656
1657         Reviewed by Sam and Kevin M.
1658
1659         * WebScriptCallFrame.cpp:
1660         (callingFunctionOrGlobalExecState): Finds the nearest calling
1661         ExecState that is a FunctionExecState or GlobalExecState, if any, and
1662         returns it.
1663         (WebScriptCallFrame::WebScriptCallFrame):
1664           - No longer takes a caller parameter.
1665           - Sets m_state to the callingFunctionOrGlobalExecState of the
1666             ExecState passed in.
1667         (WebScriptCallFrame::createInstance): Removed the caller parameter.
1668         (WebScriptCallFrame::caller): Generate a new WebScriptCallFrame on the
1669         fly from our ExecState.
1670         * WebScriptCallFrame.h: No longer holds a reference to the caller.
1671         * WebScriptDebugger.cpp:
1672         (WebScriptDebugger::WebScriptDebugger): Removed the call to callEvent
1673         that was supposed to set up the global scope call frame, but never
1674         worked because m_callingServer was set to true, which would cause
1675         callEvent to return early without doing anything. Also removed the
1676         m_callingServer guards since we're not calling callEvent anymore.
1677         (WebScriptDebugger::callEvent): Create a WebScriptCallFrame on the
1678         fly from the passed-in ExecState.
1679         (WebScriptDebugger::atStatement): Ditto.
1680         (WebScriptDebugger::returnEvent): Ditto, but use the callingExecState.
1681         This is equivalent to what calling leaveFrame() did before.
1682         (WebScriptDebugger::exception): Ditto, using the passed-in ExecState.
1683         * WebScriptDebugger.h: Removed m_topStackFrame member and
1684         enterFrame/leaveFrame methods.
1685
1686 2008-03-03  Sam Weinig  <sam@webkit.org>
1687
1688         Windows build fix.
1689
1690         * WebFrame.cpp:
1691         (WebFrame::windowObjectCleared):
1692
1693 2008-03-03  David Hyatt  <hyatt@apple.com>
1694
1695         Full page zoom work.  Make setting of a zoom factor take a boolean saying whether it is a text only
1696         or full page zoom.
1697
1698         Reviewed by Tim H.
1699
1700         * WebFrame.cpp:
1701         (WebFrame::setTextSizeMultiplier):
1702
1703 2008-02-29  Adam Roben  <aroben@apple.com>
1704
1705         Delete an unused file
1706
1707         Rubberstamped by Brady.
1708
1709         * Interfaces/IWebScriptScope.idl: Removed.
1710
1711 2008-02-28  Adam Roben  <aroben@apple.com>
1712
1713         Change WebPreferences to be backed by CFPreferences
1714
1715         Reviewed by Ada, Geoff, Steve, and Darin.
1716
1717         * WebPreferenceKeysPrivate.h:
1718         * WebPreferences.cpp:
1719         (WebPreferences::sharedStandardPreferences): Changed to call
1720         setAutoSaves(TRUE) before calling load(). This ensures that the
1721         preferences being migrated to CFPreferences are saved to disk.
1722         (WebPreferences::valueForKey): Changed to return a RetainPtr to ensure
1723         that the refcount is managed properly. Now attempts to retrieve a
1724         value from CFPreferences before falling back to the default settings.
1725         (WebPreferences::setValueForKey): Now saves the value in
1726         CFPreferences if m_autoSaves is true.
1727         (WebPreferences::stringValueForKey): Updated for valueForKey changes.
1728         (WebPreferences::integerValueForKey): DItto.
1729         (WebPreferences::boolValueForKey): Ditto.
1730         (WebPreferences::floatValueForKey): Ditto.
1731         (WebPreferences::save): Now simply calls CFPreferencesAppSynchronize.
1732         (WebPreferences::load): Always initializes m_privatePrefs to an empty
1733         CFMutableDictionary.
1734         (WebPreferences::migrateWebKitPreferencesToCFPreferences): Migrates
1735         preferences from our old custom plist to CFPreferences and then
1736         deletes our custom plist, if the migration has never occurred before.
1737         (WebPreferences::copyWebKitPreferencesToCFPreferences): Copies
1738         preferences to CFPreferences. If we've never migrated the default
1739         settings from Safari 3 Beta before, we omit them from this copying
1740         procedure.
1741         * WebPreferences.h:
1742
1743 2008-02-28  Adam Roben  <aroben@apple.com>
1744
1745         Refactor value <-> CFNumber conversions into some helper functions
1746
1747         Reviewed by Jon.
1748
1749         * WebPreferences.cpp:
1750         (preferencesPath): Changed to return a const String&.
1751         (numberValueForPreferencesValue): Converts a value from preferences to
1752         a native numeric type.
1753         (cfNumber): Converts a native numeric value to a CFNumberRef.
1754         (booleanValueForPreferencesValue): Converts a value from preferences
1755         to a native boolean.
1756         (WebPreferences::integerValueForKey): Changed to call
1757         numberValueForPreferencesValue.
1758         (WebPreferences::floatValueForKey): Ditto.
1759         (WebPreferences::boolValueForKey): Changed to call
1760         booleanValueForPreferencesValue.
1761         (WebPreferences::setIntegerValue): Changed to call cfNumber.
1762         (WebPreferences::setLongLongValue): Ditto.
1763
1764 2008-02-27  Adam Roben  <aroben@apple.com>
1765
1766         Add WebPreferences::setValueForKey
1767
1768         This is just a small refactoring of some duplicated logic into a
1769         shared method.
1770
1771         Reviewed by Sam.
1772
1773         * WebPreferences.cpp:
1774         (WebPreferences::setValueForKey): Added.
1775         (WebPreferences::setStringValue): Call setValueForKey.
1776         (WebPreferences::setIntegerValue): Ditto.
1777         (WebPreferences::setBoolValue): Ditto.
1778         (WebPreferences::setLongLongValue): Ditto.
1779         * WebPreferences.h:
1780
1781 2008-02-27  Adam Roben  <aroben@apple.com>
1782
1783         Remove WebPreferences' static members
1784
1785         s_defaultSettings is now a file-level static, and
1786         s_standardPreferences has been removed completely (it wasn't being
1787         used).
1788
1789         Reviewed by Sam.
1790
1791         * WebPreferences.cpp:
1792         (WebPreferences::initializeDefaultSettings):
1793         (WebPreferences::valueForKey):
1794         (WebPreferences::migrateDefaultSettingsFromSafari3Beta):
1795         (WebPreferences::removeValuesMatchingDefaultSettings):
1796         * WebPreferences.h:
1797
1798 2008-02-29  Steve Falkenburg  <sfalken@apple.com>
1799
1800         Don't free the VARIANT passed into Write, since it is an input parameter owned by the caller.
1801         Found via code inspection.
1802         
1803         Reviewed by Adam.
1804
1805         * WebActionPropertyBag.cpp:
1806         (WebActionPropertyBag::Write):
1807         * WebElementPropertyBag.cpp:
1808         (WebElementPropertyBag::Write):
1809
1810 2008-02-27  Matt Lilek  <webkit@mattlilek.com>
1811
1812         Reviewed by Adam Roben.
1813
1814         Bug 14348: Messing up the inspector by dragging an URL into it
1815         http://bugs.webkit.org/show_bug.cgi?id=14348
1816         <rdar://problem/5283620> and <rdar://problem/5712808>
1817
1818         Add a new class to handle the Inspector's delegate calls.
1819
1820         * WebCoreSupport/WebInspectorClient.cpp:
1821         (WebInspectorClient::createPage):
1822         * WebCoreSupport/WebInspectorDelegate.cpp: Added.
1823         (:m_refCount):
1824         (WebInspectorDelegate::createInstance):
1825         (WebInspectorDelegate::AddRef):
1826         (WebInspectorDelegate::Release):
1827         (WebInspectorDelegate::dragDestinationActionMaskForDraggingInfo):
1828         * WebCoreSupport/WebInspectorDelegate.h: Added.
1829         (WebInspectorDelegate::QueryInterface):
1830         (WebInspectorDelegate::createWebViewWithRequest):
1831         (WebInspectorDelegate::webViewShow):
1832         (WebInspectorDelegate::webViewClose):
1833         (WebInspectorDelegate::webViewFocus):
1834         (WebInspectorDelegate::webViewUnfocus):
1835         (WebInspectorDelegate::webViewFirstResponder):
1836         (WebInspectorDelegate::makeFirstResponder):
1837         (WebInspectorDelegate::setStatusText):
1838         (WebInspectorDelegate::webViewStatusText):
1839         (WebInspectorDelegate::webViewAreToolbarsVisible):
1840         (WebInspectorDelegate::setToolbarsVisible):
1841         (WebInspectorDelegate::webViewIsStatusBarVisible):
1842         (WebInspectorDelegate::setStatusBarVisible):
1843         (WebInspectorDelegate::webViewIsResizable):
1844         (WebInspectorDelegate::setResizable):
1845         (WebInspectorDelegate::setFrame):
1846         (WebInspectorDelegate::webViewFrame):
1847         (WebInspectorDelegate::setContentRect):
1848         (WebInspectorDelegate::webViewContentRect):
1849         (WebInspectorDelegate::runJavaScriptAlertPanelWithMessage):
1850         (WebInspectorDelegate::runJavaScriptConfirmPanelWithMessage):
1851         (WebInspectorDelegate::runJavaScriptTextInputPanelWithPrompt):
1852         (WebInspectorDelegate::runBeforeUnloadConfirmPanelWithMessage):
1853         (WebInspectorDelegate::runOpenPanelForFileButtonWithResultListener):
1854         (WebInspectorDelegate::mouseDidMoveOverElement):
1855         (WebInspectorDelegate::contextMenuItemsForElement):
1856         (WebInspectorDelegate::validateUserInterfaceItem):
1857         (WebInspectorDelegate::shouldPerformAction):
1858         (WebInspectorDelegate::willPerformDragDestinationAction):
1859         (WebInspectorDelegate::dragSourceActionMaskForPoint):
1860         (WebInspectorDelegate::willPerformDragSourceAction):
1861         (WebInspectorDelegate::contextMenuItemSelected):
1862         (WebInspectorDelegate::hasCustomMenuImplementation):
1863         (WebInspectorDelegate::trackCustomPopupMenu):
1864         (WebInspectorDelegate::measureCustomMenuItem):
1865         (WebInspectorDelegate::drawCustomMenuItem):
1866         (WebInspectorDelegate::addCustomMenuDrawingData):
1867         (WebInspectorDelegate::cleanUpCustomMenuDrawingData):
1868         (WebInspectorDelegate::canTakeFocus):
1869         (WebInspectorDelegate::takeFocus):
1870         (WebInspectorDelegate::registerUndoWithTarget):
1871         (WebInspectorDelegate::removeAllActionsWithTarget):
1872         (WebInspectorDelegate::setActionTitle):
1873         (WebInspectorDelegate::undo):
1874         (WebInspectorDelegate::redo):
1875         (WebInspectorDelegate::canUndo):
1876         (WebInspectorDelegate::canRedo):
1877         * WebKit.vcproj/WebKit.vcproj:
1878
1879 2008-02-26  Adam Roben  <aroben@apple.com>
1880
1881         Move ResourceLoadDelegate methods to WebFrameLoaderClient
1882
1883         Changed all methods to use early returns where possible and COMPtr's
1884         AdoptCOM/Query constructors.
1885
1886         Reviewed by Anders.
1887
1888         * WebCoreSupport/WebFrameLoaderClient.cpp:
1889         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1890         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1891         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1892         (WebFrameLoaderClient::dispatchWillSendRequest):
1893         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1894         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1895         (WebFrameLoaderClient::dispatchDidFinishLoading):
1896         (WebFrameLoaderClient::dispatchDidFailLoading):
1897         * WebCoreSupport/WebFrameLoaderClient.h:
1898         * WebFrame.cpp:
1899         * WebFrame.h:
1900
1901 2008-02-26  Adam Roben  <aroben@apple.com>
1902
1903         Move two more methods to WebFrameLoaderClient
1904
1905         Reviewed by Anders.
1906
1907         * WebCoreSupport/WebFrameLoaderClient.cpp:
1908         (kit):
1909         (WebFrameLoaderClient::dispatchCreatePage): Changed nested ifs to
1910         early returns, and changed to use the COMPtr Query constructor.
1911         (WebFrameLoaderClient::dispatchDidLoadMainResource): Added an early
1912         return, and changed to use getWebDataSource.
1913         * WebCoreSupport/WebFrameLoaderClient.h:
1914         * WebFrame.cpp:
1915         * WebFrame.h:
1916
1917 2008-02-26  Adam Roben  <aroben@apple.com>
1918
1919         Get rid of IID_WebFrame
1920
1921         Reviewed by Anders.
1922
1923         * WebFrame.cpp: Removed IID_WebFrame definition.
1924         (WebFrame::QueryInterface): Use __uuidof(WebFrame) instead of
1925         IID_WebFrame.
1926         (WebFrame::isDescendantOfFrame): Use COMPtr's Query constructor
1927         instead of a manual QueryInterface.
1928         * WebFrame.h: Removed IID_WebFrame declaration, gave WebFrame a
1929         DECLSPEC_UUID.
1930
1931 2008-02-26  Adam Roben  <aroben@apple.com>
1932
1933         Move WebHistory-related methods to WebFrameLoaderClient
1934
1935         Reviewed by Anders.
1936
1937         * WebCoreSupport/WebFrameLoaderClient.cpp:
1938         (WebFrameLoaderClient::updateGlobalHistory):
1939         (WebFrameLoaderClient::shouldGoToHistoryItem):
1940         (WebFrameLoaderClient::setTitle): Changed some nested ifs into early
1941         returns.
1942         (WebFrameLoaderClient::webHistory): Changed to return a COMPtr to
1943         make the reference management foolproof.
1944         * WebCoreSupport/WebFrameLoaderClient.h:
1945         * WebFrame.cpp:
1946         * WebFrame.h:
1947
1948 2008-02-26  Adam Roben  <aroben@apple.com>
1949
1950         Move cache-related methods to WebFrameLoaderClient
1951
1952         Reviewed by Anders.
1953
1954         * WebCoreSupport/WebFrameLoaderClient.cpp:
1955         (getWebDataSource): Moved to the top of the file.
1956         (WebFrameLoaderClient::savePlatformDataToCachedPage):
1957         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1958         (WebFrameLoaderClient::canCachePage):
1959         * WebCoreSupport/WebFrameLoaderClient.h:
1960         * WebFrame.cpp:
1961         * WebFrame.h:
1962
1963 2008-02-25  Adam Roben  <aroben@apple.com>
1964
1965         Move plugin-related methods to WebFrameLoaderClient
1966
1967         Reviewed by Anders.
1968
1969         * WebCoreSupport/WebFrameLoaderClient.cpp:
1970         (WebFrameLoaderClient::WebFrameLoaderClient):
1971         (WebFrameLoaderClient::setMainDocumentError):
1972         (WebFrameLoaderClient::committedLoad): Added some early returns.
1973         (WebFrameLoaderClient::receivedData):
1974         (WebFrameLoaderClient::finishedLoading): Ditto.
1975         (getWebDataSource):
1976         (WebFrameLoaderClient::createPlugin):
1977         * WebCoreSupport/WebFrameLoaderClient.h:
1978         * WebFrame.cpp:
1979         (WebFrame::WebFramePrivate::WebFramePrivate):
1980         * WebFrame.h:
1981
1982 2008-02-25  Adam Roben  <aroben@apple.com>
1983
1984         Move createFrame to WebFrameLoaderClient
1985
1986         Reviewed by Anders.
1987
1988         * WebCoreSupport/WebFrameLoaderClient.cpp:
1989         (WebFrameLoaderClient::createFrame):
1990         (WebFrameLoaderClient::loadURLIntoChild):
1991         * WebCoreSupport/WebFrameLoaderClient.h:
1992         * WebFrame.cpp:
1993         * WebFrame.h:
1994
1995 2008-02-25  Adam Roben  <aroben@apple.com>
1996
1997         Move progress-related methods to WebFrameLoaderClient
1998
1999         Reviewed by Anders.
2000
2001         * WebCoreSupport/WebFrameLoaderClient.cpp:
2002         (WebFrameLoaderClient::postProgressStartedNotification):
2003         (WebFrameLoaderClient::postProgressEstimateChangedNotification):
2004         (WebFrameLoaderClient::postProgressFinishedNotification):
2005         * WebCoreSupport/WebFrameLoaderClient.h:
2006         * WebFrame.cpp:
2007         * WebFrame.h:
2008
2009 2008-02-25  Adam Roben  <aroben@apple.com>
2010
2011         Remove WebFrame::detachedFromParent1
2012
2013         This method was removed from FrameLoaderClient in r19042, but was
2014         never removed from WebFrame.
2015
2016         Reviewed by Anders.
2017
2018         * WebFrame.cpp:
2019         * WebFrame.h:
2020
2021 2008-02-23  Adam Roben  <aroben@apple.com>
2022
2023         Move many dispatch methods to WebFrameLoaderClient
2024
2025         Reviewed by Sam.
2026
2027         * WebCoreSupport/WebFrameLoaderClient.cpp:
2028         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
2029         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
2030         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
2031         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
2032         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
2033         (WebFrameLoaderClient::dispatchWillClose):
2034         (WebFrameLoaderClient::dispatchDidReceiveIcon):
2035         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2036         (WebFrameLoaderClient::dispatchDidReceiveTitle):
2037         (WebFrameLoaderClient::dispatchDidCommitLoad):
2038         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
2039         (WebFrameLoaderClient::dispatchDidFinishLoad):
2040         (WebFrameLoaderClient::dispatchDidFirstLayout):
2041         (WebFrameLoaderClient::dispatchShow):
2042         * WebCoreSupport/WebFrameLoaderClient.h:
2043         * WebFrame.cpp:
2044         * WebFrame.h:
2045
2046 2008-02-23  Adam Roben  <aroben@apple.com>
2047
2048         Move two more methods to WebFrameLoaderClient
2049
2050         Reviewed by Sam.
2051
2052         * WebCoreSupport/WebFrameLoaderClient.cpp:
2053         (WebFrameLoaderClient::hasFrameView):
2054         (WebFrame::forceLayout):
2055         * WebCoreSupport/WebFrameLoaderClient.h:
2056         * WebFrame.cpp:
2057         * WebFrame.h:
2058
2059 2008-02-24  Darin Adler  <darin@apple.com>
2060
2061         Reviewed by Sam.
2062
2063         - remove separate client calls for "standard" and "reload' history
2064
2065         * WebFrame.cpp:
2066         (WebFrame::updateGlobalHistory):
2067         * WebFrame.h:
2068
2069 2008-02-23  Brent Fulgham  <bfulgham@gmail.com>
2070
2071         Not reviewed, build fix.
2072
2073         * WebIconDatabase.cpp:
2074         * WebIconDatabase.h:
2075
2076 2008-02-22  Adam Roben  <aroben@apple.com>
2077
2078         Move hasWebView to WebFrameLoaderClient
2079
2080         I added an m_webFrame member to WebFrameLoaderClient. This is slightly
2081         strange because WebFrame inherits from WebFrameLoaderClient, but this
2082         member will be needed once we remove the inheritance, so we might as
2083         well prepare for that now.
2084
2085         Reviewed by Anders.
2086
2087         * WebCoreSupport/WebFrameLoaderClient.cpp:
2088         (WebFrameLoaderClient::WebFrameLoaderClient): Changed to take a
2089         WebFrame* parameter.
2090         (WebFrameLoaderClient::hasWebView): Moved here from WebFrame.cpp.
2091         * WebCoreSupport/WebFrameLoaderClient.h: Added an m_webFrame
2092         parameter.
2093         * WebFrame.cpp: Removed hasWebView.
2094         (WebFrame::WebFrame): Updated for WebFrameLoaderClient constructor
2095         change.
2096         * WebFrame.h:
2097
2098 2008-02-22  Adam Roben  <aroben@apple.com>
2099
2100         Start to move FrameLoaderClient methods off WebFrame onto a separate class
2101
2102         WebFrame now inherits from a new WebFrameLoaderClient class, which
2103         will gradually assume all FrameLoaderClient responsibilities. Once
2104         that process is complete, WebFrame will no longer inherit from
2105         WebFrameLoaderClient.
2106
2107         In this first patch, I've only moved createDocumentLoader up to the
2108         WebFrameLoaderClient class.
2109
2110         Reviewed by Anders.
2111
2112         * WebCoreSupport/WebFrameLoaderClient.cpp: Added.
2113         (WebFrameLoaderClient::WebFrameLoaderClient):
2114         (WebFrameLoaderClient::~WebFrameLoaderClient):
2115         (WebFrameLoaderClient::createDocumentLoader): Moved here from
2116         WebFrame.cpp.
2117         * WebCoreSupport/WebFrameLoaderClient.h: Added.
2118         * WebFrame.cpp: Removed createDocumentLoader implementation.
2119         * WebFrame.h: Changed to inherit from WebFrameLoaderClient.
2120         * WebKit.vcproj/WebKit.vcproj: Added new files to the project.
2121
2122 2008-02-22  Adam Roben  <aroben@apple.com>
2123
2124         Move FormValuesPropertyBag into its own files
2125
2126         Reviewed by Sam.
2127
2128         * WebCoreSupport/FormValuesPropertyBag.cpp: Added.
2129         (FormValuesPropertyBag::QueryInterface):
2130         (FormValuesPropertyBag::AddRef):
2131         (FormValuesPropertyBag::Release):
2132         (FormValuesPropertyBag::Read):
2133         (FormValuesPropertyBag::Write):
2134         (FormValuesPropertyBag::CountProperties):
2135         (FormValuesPropertyBag::GetPropertyInfo):
2136         (FormValuesPropertyBag::LoadObject):
2137         * WebCoreSupport/FormValuesPropertyBag.h: Added.
2138         (FormValuesPropertyBag::FormValuesPropertyBag):
2139         * WebFrame.cpp: Deleted FormValuesPropertyBag code.
2140         * WebKit.vcproj/WebKit.vcproj: Added new files to the project.
2141
2142 2008-02-22  Adam Roben  <aroben@apple.com>
2143
2144         Remove some unused WebFrame methods
2145
2146         FrameWinClient was deleted back in r22965, but these methods were
2147         never deleted.
2148
2149         Reviewed by Sam.
2150
2151         * WebFrame.cpp:
2152         * WebFrame.h: Made one createFrame overload protected, since it's only
2153         called internally by WebFrame.
2154
2155 2008-02-21  Adam Roben  <aroben@apple.com>
2156
2157         Move Client implementations into a WebCoreSupport directory
2158
2159         Reviewed by Anders.
2160
2161         * WebKit.vcproj/WebKit.vcproj: Updated file paths, and added
2162         WebCoreSupport directory to the include path.
2163         * WebCoreSupport/WebChromeClient.cpp: Renamed from WebKit/win/WebChromeClient.cpp.
2164         * WebCoreSupport/WebChromeClient.h: Renamed from WebKit/win/WebChromeClient.h.
2165         * WebCoreSupport/WebContextMenuClient.cpp: Renamed from WebKit/win/WebContextMenuClient.cpp.
2166         * WebCoreSupport/WebContextMenuClient.h: Renamed from WebKit/win/WebContextMenuClient.h.
2167         * WebCoreSupport/WebDragClient.cpp: Renamed from WebKit/win/WebDragClient.cpp.
2168         * WebCoreSupport/WebDragClient.h: Renamed from WebKit/win/WebDragClient.h.
2169         * WebCoreSupport/WebEditorClient.cpp: Renamed from WebKit/win/WebEditorClient.cpp.
2170         * WebCoreSupport/WebEditorClient.h: Renamed from WebKit/win/WebEditorClient.h.
2171         * WebCoreSupport/WebInspectorClient.cpp: Renamed from WebKit/win/WebInspectorClient.cpp.
2172         * WebCoreSupport/WebInspectorClient.h: Renamed from WebKit/win/WebInspectorClient.h.
2173
2174 2008-02-20  Sam Weinig  <sam@webkit.org>
2175
2176         Reviewed by Darin and Geoff.
2177
2178         - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
2179
2180         * WebView.cpp:
2181         (WebView::notifyPreferencesChanged): Added a call to Settings::setNeedsSiteSpecificQuirks.
2182         (WebView::setAllowSiteSpecificHacks): Added a comment about the problem Darin noticed, where
2183         after you disable the site-specific hacks they persist until you open a new window or tweak
2184         some other preference.
2185
2186 2008-02-19  Darin Adler  <darin@apple.com>
2187
2188         Reviewed by Sam.
2189
2190         * WebFrame.cpp:
2191         (WebFrame::renderTreeAsExternalRepresentation): Changed to use String instead
2192         of DeprecatedString.
2193
2194 2008-02-18  Steve Falkenburg  <sfalken@apple.com>
2195
2196         Make Drosera work on Vista.
2197         
2198         Runtime type library registration on Vista requires use of two new call:
2199         RegisterTypeLibraryForUser and UnRegisterTypeLibraryForUser, which write to
2200         HKCU.  LoadTypeLib[Ex] registers under HKLM, which fails under vista due to UAC.
2201         
2202         Reviewed by Adam.
2203
2204         * WebKitDLL.cpp:
2205         (DllUnregisterServer): Call UnRegisterTypeLibraryForUser if available. Fix version number.
2206         (DllRegisterServer): Call RegisterTypeLibraryForUser if available.
2207
2208 2008-02-18  Matt Lilek  <webkit@mattlilek.com>
2209
2210         Reviewed by Adam.
2211
2212         Remove FindSafari's Release configuration.
2213
2214         * WebKit.vcproj/WebKit.sln:
2215
2216 2008-02-16  Alexey Proskuryakov  <ap@webkit.org>
2217
2218         Reviewed by Darin.
2219
2220         http://bugs.webkit.org/show_bug.cgi?id=17397
2221         <rdar://problem/5748245> REGRESSION (r30236-30336): Cannot backspace/enter in forms on Windows
2222
2223         * WebKit.vcproj/WebKit.vcproj: Add ENABLE_CROSS_DOCUMENT_MESSAGING definitions.
2224
2225 2008-02-15  Darin Adler  <darin@apple.com>
2226
2227         Reviewed by Adam.
2228
2229         - quick fix for a problem causing an assertion on launch
2230
2231         * WebFrame.cpp:
2232         (WebFrame::loadData): Make an empty KURL even if the BSTR is null.
2233         Later we might want to rethink this.
2234
2235 2008-02-14  Darin Adler  <darin@apple.com>
2236
2237         - updated for WebCore KURL changes
2238
2239         * MarshallingHelpers.cpp:
2240         (MarshallingHelpers::BSTRToKURL): Removed deprecatedString call.
2241         (MarshallingHelpers::KURLToBSTR): Tweaked for efficiency.
2242         * WebContextMenuClient.cpp:
2243         (WebContextMenuClient::searchWithGoogle): Updated for KURL changes.
2244         * WebDataSource.cpp:
2245         (WebDataSource::unreachableURL): Ditto.
2246         * WebDownload.cpp:
2247         (WebDownload::init): Ditto.
2248         (WebDownload::initWithRequest): Ditto.
2249         * WebFrame.cpp:
2250         (WebFrame::loadData): Ditto.
2251         (WebFrame::loadURLIntoChild): Ditto.
2252         (WebFrame::objectContentType): Ditto.
2253         * WebResource.cpp:
2254         (WebResource::initWithData): Ditto.
2255         * WebURLResponse.cpp:
2256         (WebURLResponse::createInstance): Ditto.
2257         (WebURLResponse::initWithURL): Ditto.
2258         * WebView.cpp:
2259         (WebView::userAgentForURL): Ditto.
2260         (WebView::copyURL): Ditto.
2261         (WebView::notifyPreferencesChanged): Ditto.
2262
2263 2008-02-14  Alexey Proskuryakov  <ap@webkit.org>
2264
2265         * WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): Forgot to re-apply review comments to
2266         the previous check-in, fixing.
2267
2268 2008-02-14  Alexey Proskuryakov  <ap@webkit.org>
2269
2270         Reviewed by Adam Roben.
2271
2272         http://bugs.webkit.org/show_bug.cgi?id=17207
2273         Database example doesn't work (requires not-yet-released Safari)
2274
2275         * WebChromeClient.cpp:
2276         (WebChromeClient::exceededDatabaseQuota): Check Safari version, and allow 5 megabytes of storage
2277         if it's too old.
2278
2279 2008-02-13  Ada Chan  <adachan@apple.com>
2280
2281         <rdar://problem/5740656> Leak in postDidAddIconNotification in WebIconDatabase
2282
2283         Reviewed by Darin.
2284
2285         * WebIconDatabase.cpp:
2286         (postDidAddIconNotification): Need to adopt the newly created instance of CFDictionaryPropertyBag, 
2287         which already has a ref count of 1.
2288
2289 2008-02-13  Rodney Dawes  <dobey@wayofthemonkey.com>
2290
2291         Fix Bug 17220: Illogical dependency between PluginView and
2292         PluginDatabase
2293         
2294         <http://bugs.webkit.org/show_bug.cgi?id=17220>
2295
2296         Reviewed by Adam and Darin.
2297
2298         Update for the rename of PluginDatabase::createPluginView
2299         to PluginView::create
2300
2301         * WebFrame.cpp:
2302
2303 2008-02-13  Adam Roben  <aroben@apple.com>
2304
2305         Windows build fix
2306
2307         * Interfaces/WebKit.idl: Create the typelib version symbol ourselves.
2308
2309 2008-02-12  Steve Falkenburg  <sfalken@apple.com>
2310
2311         Use a precompiled header to build WebKit.
2312         
2313         Reviewed by Adam.
2314
2315         * WebKit.vcproj/WebKit.vcproj:
2316         * WebKitPrefix.cpp: Added.
2317         * WebKitPrefix.h: Added.
2318
2319 2008-02-12  Steve Falkenburg  <sfalken@apple.com>
2320
2321         Changes to support merged MIDL output.
2322
2323         All COM interfaces are now generated to WebKit.h.
2324
2325         Reviewed by Sam, Ada.
2326
2327         * DOMCSSClasses.h:
2328         * DOMCoreClasses.h:
2329         * DOMEventsClasses.h:
2330         * DOMHTMLClasses.h:
2331         * DefaultDownloadDelegate.h:
2332         * DefaultPolicyDelegate.cpp:
2333         * DefaultPolicyDelegate.h:
2334         * GEN_DOMObject.h:
2335         * Interfaces/DOMCSS.idl:
2336         * Interfaces/DOMCore.idl:
2337         * Interfaces/DOMEvents.idl:
2338         * Interfaces/DOMExtensions.idl:
2339         * Interfaces/DOMHTML.idl:
2340         * Interfaces/DOMPrivate.idl:
2341         * Interfaces/DOMRange.idl:
2342         * Interfaces/DOMWindow.idl:
2343         * Interfaces/IGEN_DOMObject.idl:
2344         * Interfaces/IWebArchive.idl:
2345         * Interfaces/IWebBackForwardList.idl:
2346         * Interfaces/IWebBackForwardListPrivate.idl:
2347         * Interfaces/IWebCache.idl:
2348         * Interfaces/IWebDataSource.idl:
2349         * Interfaces/IWebDatabaseManager.idl:
2350         * Interfaces/IWebDocument.idl:
2351         * Interfaces/IWebDownload.idl:
2352         * Interfaces/IWebEditingDelegate.idl:
2353         * Interfaces/IWebError.idl:
2354         * Interfaces/IWebErrorPrivate.idl:
2355         * Interfaces/IWebFormDelegate.idl:
2356         * Interfaces/IWebFrame.idl:
2357         * Interfaces/IWebFrameLoadDelegate.idl:
2358         * Interfaces/IWebFrameLoadDelegatePrivate.idl:
2359         * Interfaces/IWebFramePrivate.idl:
2360         * Interfaces/IWebFrameView.idl:
2361         * Interfaces/IWebHTMLRepresentation.idl:
2362         * Interfaces/IWebHTTPURLResponse.idl:
2363         * Interfaces/IWebHistory.idl:
2364         * Interfaces/IWebHistoryItem.idl:
2365         * Interfaces/IWebHistoryItemPrivate.idl:
2366         * Interfaces/IWebIconDatabase.idl:
2367         * Interfaces/IWebInspector.idl:
2368         * Interfaces/IWebJavaScriptCollector.idl:
2369         * Interfaces/IWebKitStatistics.idl:
2370         * Interfaces/IWebMutableURLRequest.idl:
2371         * Interfaces/IWebMutableURLRequestPrivate.idl:
2372         * Interfaces/IWebNotification.idl:
2373         * Interfaces/IWebNotificationCenter.idl:
2374         * Interfaces/IWebNotificationObserver.idl:
2375         * Interfaces/IWebPolicyDelegate.idl:
2376         * Interfaces/IWebPreferences.idl:
2377         * Interfaces/IWebPreferencesPrivate.idl:
2378         * Interfaces/IWebResource.idl:
2379         * Interfaces/IWebResourceLoadDelegate.idl:
2380         * Interfaces/IWebResourceLoadDelegatePrivate.idl:
2381         * Interfaces/IWebScriptCallFrame.idl:
2382         * Interfaces/IWebScriptDebugListener.idl:
2383         * Interfaces/IWebScriptDebugServer.idl:
2384         * Interfaces/IWebScriptObject.idl:
2385         * Interfaces/IWebScriptScope.idl:
2386         * Interfaces/IWebScrollBarDelegatePrivate.idl:
2387         * Interfaces/IWebScrollBarPrivate.idl:
2388         * Interfaces/IWebSecurityOrigin.idl:
2389         * Interfaces/IWebTextRenderer.idl:
2390         * Interfaces/IWebUIDelegate.idl:
2391         * Interfaces/IWebUIDelegatePrivate.idl:
2392         * Interfaces/IWebURLAuthenticationChallenge.idl:
2393         * Interfaces/IWebURLRequest.idl:
2394         * Interfaces/IWebURLResponse.idl:
2395         * Interfaces/IWebURLResponsePrivate.idl:
2396         * Interfaces/IWebUndoManager.idl:
2397         * Interfaces/IWebUndoTarget.idl:
2398         * Interfaces/IWebView.idl:
2399         * Interfaces/IWebViewPrivate.idl:
2400         * Interfaces/WebKit.idl:
2401         * WebActionPropertyBag.cpp:
2402         * WebBackForwardList.h:
2403         * WebCache.h:
2404         * WebDataSource.cpp:
2405         * WebDataSource.h:
2406         * WebDatabaseManager.h:
2407         * WebDownload.h:
2408         * WebEditorClient.cpp:
2409         * WebEditorClient.h:
2410         * WebError.h:
2411         * WebFrame.cpp:
2412         * WebFrame.h:
2413         * WebFramePolicyListener.h:
2414         * WebHTMLRepresentation.cpp:
2415         * WebHTMLRepresentation.h:
2416         * WebHistory.cpp:
2417         * WebHistory.h:
2418         * WebHistoryItem.h:
2419         * WebIconDatabase.h:
2420         * WebInspector.h:
2421         * WebJavaScriptCollector.h:
2422         * WebKit.vcproj/Interfaces.vcproj:
2423         * WebKit.vcproj/WebKitGUID.vcproj:
2424         * WebKitDLL.cpp:
2425         * WebKitStatistics.h:
2426         * WebMutableURLRequest.cpp:
2427         * WebMutableURLRequest.h:
2428         * WebNotification.h:
2429         * WebNotificationCenter.h:
2430         * WebPreferences.h:
2431         * WebResource.h:
2432         * WebScriptCallFrame.h:
2433         * WebScriptDebugServer.cpp:
2434         * WebScriptDebugServer.h:
2435         * WebScriptDebugger.cpp:
2436         * WebScriptDebugger.h:
2437         * WebScriptObject.h:
2438         * WebScrollBar.h:
2439         * WebSecurityOrigin.h:
2440         * WebTextRenderer.h:
2441         * WebURLAuthenticationChallenge.h:
2442         * WebURLAuthenticationChallengeSender.h:
2443         * WebURLCredential.h:
2444         * WebURLProtectionSpace.h:
2445         * WebURLResponse.h:
2446         * WebView.cpp:
2447         * WebView.h:
2448
2449 2008-02-12  Anders Carlsson  <andersca@apple.com>
2450
2451         Reviewed by Adam.
2452
2453         Implement imageTitle.
2454         
2455         * WebCoreLocalizedStrings.cpp:
2456         (WebCore::imageTitle):
2457
2458 2008-02-12  Anders Carlsson  <andersca@apple.com>
2459
2460         Reviewed by Mitz.
2461
2462         * WebCoreLocalizedStrings.cpp:
2463         (WebCore::imageTitle):
2464         Add stub.
2465         
2466
2467 2008-02-07  Ada Chan  <adachan@apple.com>
2468
2469         <rdar://problem/5292433> certificate authentication support broken in Safari 3.0
2470         Added mechanism to communicate client certificate info back to CFNetwork.
2471
2472         Reviewed by Adam.
2473
2474         * Interfaces/IWebError.idl: Added new WebURLErrorClientCertificateRequired error.
2475         * Interfaces/IWebMutableURLRequestPrivate.idl: Added. Added method to set client 
2476         certificate info on the request.
2477         * WebKit.vcproj/Interfaces.vcproj: Added new idl.
2478         * WebKit.vcproj/WebKit.vcproj: Link crypt32.lib
2479         * WebKit.vcproj/WebKitGUID.vcproj:
2480         * WebMutableURLRequest.cpp:
2481         (WebMutableURLRequest::QueryInterface): Implements IWebMutableURLRequestPrivate.
2482         (deallocCertContext): Free certificate context.
2483         (copyCert): Duplicate the certificate context and returns it in a CFDataRef.
2484         (WebMutableURLRequest::setClientCertificate):
2485         * WebMutableURLRequest.h:
2486
2487 2008-02-05  Rodney Dawes  <dobey@wayofthemonkey.com>
2488
2489         Reviewed by Anders Carlsson.
2490
2491         Part one of http://bugs.webkit.org/show_bug.cgi?id=16924.
2492         Shared PluginDatabase, PluginInfoStore and PluginPackage implementations.
2493
2494         Track WebCore renames.
2495
2496         * WebFrame.cpp:
2497         (WebFrame::createPlugin):
2498         (WebFrame::redirectDataToPlugin):
2499         (WebFrame::createJavaAppletWidget):
2500         (WebFrame::objectContentType):
2501         * WebView.cpp:
2502         (WebViewWndProc):
2503         (WebView::canShowMIMEType):
2504         (WebView::addAdditionalPluginPath):
2505
2506 2008-02-05  Alexey Proskuryakov  <ap@webkit.org>
2507
2508         Reviewed by Darin.
2509
2510         http://bugs.webkit.org/show_bug.cgi?id=15248
2511         <rdar://problem/5497032> Can not enter accented characters using alt-numeric keypad (take two)
2512
2513         * WebView.cpp: (WebViewWndProc): KeyUp messages need to be translated, too.
2514
2515 2008-02-01  Darin Adler  <darin@apple.com>
2516
2517         - fix <rdar://problem/5680469> Each database worker thread takes a JSLock,
2518           which slows down all JavaScript execution until the thread terminates
2519
2520         * WebIconDatabase.cpp:
2521         (WebIconDatabase::scheduleNotificationDelivery): Updated for new callOnMainThread.
2522         (WebIconDatabase::deliverNotifications): Ditto.
2523         * WebIconDatabase.h: Ditto.
2524
2525 2008-01-31  Adam Roben  <aroben@apple.com>
2526
2527         Fix <rdar://5713172> Focus lost from Gmail message body after toggling
2528         tabs
2529
2530         This regressed in r29583. Prior to r29583, the code path that resulted
2531         in calling focusController->setFocusedFrame(0) was never getting hit.
2532         r29583 changed the code to adhere to the comment above the code and
2533         actually call setFocusedFrame(0) when losing focus to another part of
2534         the window. It turns out this is wrong behavior (and not what
2535         WebKit/mac does). The only time we should clear the focused frame is
2536         when we tab out of the WebView, and that's already taken care of by
2537         FocusController::advanceFocus. The code to clear the focused frame in
2538         WebView was written before FocusController::advanceFocus, so it was
2539         correct at one point but no longer is.
2540
2541         We now never call setFocusedFrame(0) when the WebView receives a
2542         WM_KILLFOCUS message. Instead we just call setFocused(false) on the
2543         focused frame so that blur events will be sent. This matches what
2544         WebKit/mac does.
2545
2546         Reviewed by Darin and Adele.
2547
2548         * WebView.cpp:
2549         (WebViewWndProc): Also reworded a couple of comments to make them
2550         clearer.
2551
2552 2008-01-31  Adam Roben  <aroben@apple.com>
2553
2554         Let WebCore take care of the highlight drawing entirely
2555
2556         Reviewed by Darin.
2557
2558         * WebInspectorClient.cpp:
2559         (WebInspectorClient::highlight): We now just show our highlight
2560         window and let WebCore figure out what/where to paint. Once all ports
2561         follow suit the Node* parameter to this method should be removed
2562         entirely, and the name should probably change to
2563         updateAndShowHighlight or something similar.
2564         * WebNodeHighlight.cpp: Renamed m_webView to m_inspectedWebViewWindow.
2565         (WebNodeHighlight::WebNodeHighlight): Now takes a WebView* parameter.
2566         (WebNodeHighlight::show): Renamed from highlight(). Now gets the
2567         WebView's HWND. Updated for member rename/removal.
2568         (WebNodeHighlight::updateWindow): Updated for member rename and for
2569         InspectorController changes.
2570         * WebNodeHighlight.h: Added m_inspectedWebView member, removed m_rect
2571         member, renamed highlight(Node*) -> show().
2572
2573 2008-01-31  Adam Roben  <aroben@apple.com>
2574
2575         Move node highlight drawing code to WebCore
2576
2577         Reviewed by Darin.
2578
2579         * WebNodeHighlight.cpp:
2580         (WebNodeHighlight::updateWindow): Call into WebCore to do the node
2581         highlight drawing.
2582
2583 2008-01-29  Adam Roben  <aroben@apple.com>
2584
2585         Fix a crash when opening the Inspector
2586
2587         Reviewed by Anders.
2588
2589         * WebInspectorClient.cpp:
2590         (WebInspectorClient::createPage): Call
2591         WebPreferences::initWithIdentifier so our custom WebPreferences will
2592         have all its members initialized.
2593
2594 2008-01-29  Adam Roben  <aroben@apple.com>
2595
2596         Fix Bug 16786: "Display images when page opens" preference affects
2597         Inspector
2598
2599         <http://bugs.webkit.org/show_bug.cgi?id=16786>
2600         <rdar://5712914>
2601
2602         Reviewed by Anders and Darin.
2603
2604         * WebInspectorClient.cpp:
2605         (WebInspectorClient::createPage): Create our own custom WebPreferences
2606         so that we won't be affected by global preference changes. This
2607         matches what Mac does.
2608
2609 2008-01-29  Adam Roben  <aroben@apple.com>
2610
2611         Fix <rdar://5713302> Web Inspector on Windows is not using the
2612         localized strings
2613
2614         Reviewed by Steve.
2615
2616         * WebInspectorClient.cpp:
2617         (getWebKitBundle): Added.
2618         (WebInspectorClient::createPage): Call getWebKitBundle.
2619         (WebInspectorClient::localizedStringsURL): Implemented.
2620
2621 2008-01-29  Alexey Proskuryakov  <ap@webkit.org>
2622
2623         Reviewed by Darin.
2624
2625         <rdar://problem/5710692> All storage tests fail/crash
2626
2627         * WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): Clients that do not implement
2628         database quota callbacks should have no database support - but not crash.
2629
2630 2008-01-26  Steve Falkenburg  <sfalken@apple.com>
2631
2632         <rdar://problem/5707607> REGRESSION: I hear a beep when selecting Alt-enter in address or search fields
2633         
2634         Reviewed by Oliver.
2635
2636         * WebView.cpp:
2637         (WebView::keyDown): Allow alt-return to be marked as handled by WebKit.
2638
2639 2008-01-24  Steve Falkenburg  <sfalken@apple.com>
2640
2641         Build fix
2642
2643         * WebKit.vcproj/WebKit.sln:
2644         * WebKit.vcproj/WebKit.submit.sln:
2645
2646 2008-01-24  Adam Roben  <aroben@apple.com>
2647
2648         Build fix
2649
2650         * WebView.cpp: Added a comma.
2651
2652 2008-01-24  Alexey Proskuryakov  <ap@webkit.org>
2653
2654         Reviewed by Adam Roben.
2655
2656         <rdar://problem/5702734> REGRESSION(r28936/r15890): Shift+del does not work in win Safari
2657
2658         * WebView.cpp: Fixed keyDownEntries to list this shortcut (and related ones, for consistency).
2659
2660 2008-01-23  Steve Falkenburg  <sfalken@apple.com>
2661
2662         <rdar://problem/5698732> Copyright strings should include 2008
2663         
2664         Reviewed by Sam.
2665
2666         * WebKit.vcproj/WebKit.rc:
2667
2668 2008-01-23  Adam Roben  <aroben@apple.com>
2669
2670         Fix <rdar://5698502> Inspector window reverts to default position/size unexpectedly
2671
2672         Reviewed by Hyatt.
2673
2674         * WebInspectorClient.cpp:
2675         (defaultWindowRect): Added.
2676         (WebInspectorClient::createPage):
2677             - Use defaultWindowRect() to set the initial size/position of the
2678               Inspector window.
2679             - Pass the Inspector window's client rect to
2680               IWebView::initWithFrame so that the WebView will be initially
2681               sized to fill the window.
2682         (WebInspectorClient::showWindow): Don't move/resize the window back to
2683         the defaults every time this method is called.
2684
2685 2008-01-23  Adam Roben  <aroben@apple.com>
2686
2687         Fix <rdar://5700620> REGRESSION (r28190): "Open frame in new tab" instead of "Open link in new tab" @ digg.com
2688
2689         Test: fast/events/contextmenu-scrolled-page-with-frame.html
2690
2691         Reviewed by Dan.
2692
2693         * WebView.cpp:
2694         (WebView::handleContextMenuEvent): Translate the mouse coordinates
2695         into document coordinates before performing the hit-test. This is what
2696         EventHandler does internally.
2697
2698 2008-01-23  Steve Falkenburg  <sfalken@apple.com>
2699
2700         <rdar://problem/5699509> Allow file upload dialog to be localized.
2701         
2702         Reviewed by Darin.
2703
2704         * English.lproj/Localizable.strings: Updated.
2705         * WebCoreLocalizedStrings.cpp:
2706         (WebCore::uploadFileText): Added.
2707         (WebCore::allFilesText): Added.
2708
2709 2008-01-22  Adam Roben  <aroben@apple.com>
2710
2711         Fix <rdar://5693599> REGRESSION (r29369): scroll bars are drawing when they shouldn't be on an ad on cnn.com
2712
2713         Now that we have multiple FrameViews per Frame on Windows, we need to
2714         make sure each FrameView gets its scrolling mode set correctly. On Mac
2715         this works because WebFrameView holds the scrolling mode and a single
2716         WebFrameView is shared by many FrameViews. On Windows, we have no such
2717         shared object, so we just ask the Frame's owner element for the
2718         scrolling mode.
2719
2720         Tests: fast/frames/frame-scrolling-attribute.html
2721                fast/frames/iframe-scrolling-attribute.html
2722
2723         Reviewed by Hyatt.
2724
2725         * WebFrame.cpp:
2726         (WebFrame::transitionToCommittedForNewPage): Set the scrolling mode
2727         on the FrameView based on the scrolling mode of the Frame's owner
2728         element.
2729
2730 2008-01-21  Darin Adler  <darin@apple.com>
2731
2732         Reviewed by John Sullivan.
2733
2734         - fix <rdar://problem/5644324> Delegate-less WebKit clients should have no databases
2735         - fix incorrect value for WebDatabaseDisplayNameKey in header
2736         
2737         * Interfaces/IWebDatabaseManager.idl: Renamed detailsForDatabaseWithOrigin to
2738         detailsForDatabase. Replaced deleteDatabasesWithOrigin with deleteOrigin.
2739         Renamed deleteDatabaseWithOrigin to deleteDatabase. Fixed incorrect value for
2740         WebDatabaseDisplayNameKey.
2741         * Interfaces/IWebPreferencesPrivate.idl: Removed defaultDatabaseQuota and
2742         setDefaultDatabaseQuota.
2743         * Interfaces/IWebUIDelegatePrivate.idl: Replaced the two database quota functions
2744         with a single one.
2745
2746         * WebChromeClient.cpp:
2747         (WebChromeClient::exceededDatabaseQuota): Replaced the two database quota functions
2748         with a single one.
2749         * WebChromeClient.h: Ditto.
2750
2751         * WebDatabaseManager.cpp:
2752         (WebDatabaseManager::detailsForDatabase): Changed to check for a name of null to
2753         detect a nonexistent database rather than using isValid.
2754         (WebDatabaseManager::deleteOrigin): Updated for name change (actually a semantic
2755         change too, but both have the same name).
2756         (WebDatabaseManager::deleteDatabase): Updated for name change.
2757         (WebKitSetWebDatabasesPathIfNecessary): Ditto.
2758
2759         * WebDatabaseManager.h: Updated for name changes.
2760
2761         * WebPreferenceKeysPrivate.h: Removed WebKitDefaultDatabaseQuotaKey.
2762         * WebPreferences.cpp:
2763         (WebPreferences::initializeDefaultSettings): Removed the default for
2764         WebKitDefaultDatabaseQuotaKey.
2765         * WebPreferences.h: Removed defaultDatabaseQuota and setDefaultDatabaseQuota.
2766         * WebView.cpp:
2767         (WebView::notifyPreferencesChanged): Removed the code to set the
2768         default database origin quota in WebCore::Settings based on IWebPreferencesPrivate.
2769
2770 2008-01-19  Mark Rowe  <mrowe@apple.com>
2771
2772         Fix inconsistent line endings and set svn:eol-style=native
2773         on IDL files that did not have it set.
2774
2775         * Interfaces/IGEN_DOMObject.idl:
2776
2777 2008-01-18  Adam Roben  <aroben@apple.com>
2778
2779         Fix <rdar://5693854> REGRESSION (r29581): fast/events/frame-click-focus.html failing
2780
2781         Restored the previous behavior of IWebViewPrivate::updateActiveState,
2782         which DRT depends on, and renamed it to
2783         IWebViewPrivate::updateFocusedAndActiveState to be clearer about its
2784         side-effects.
2785
2786         Reviewed by Adele.
2787
2788         * Interfaces/IWebViewPrivate.idl:
2789         * WebView.cpp:
2790         (WebViewWndProc): Removed some FIXMEs that we no longer want to fix
2791         because the current design is better.
2792         (WebView::updateActiveState): This is now just a method of WebView,
2793         not any of its public interfaces.
2794         (WebView::updateFocusedAndActiveState): Performs the tasks that the
2795         old IWebViewPrivate::updateActiveState performed.
2796         * WebView.h:
2797
2798 2008-01-18  Alexey Proskuryakov  <ap@webkit.org>
2799
2800         Reviewed by Adam Roben.
2801
2802         Fix plugin-related tests in Debug_Internal configuration, which are failing because of CRT version mismatch
2803         between DRT and TestNetscapePlugin.
2804
2805         * WebKit.vcproj/WebKit.sln: Use newly added TestNetscapePlugin Debug_Internal configuration.
2806
2807 2008-01-17  Steve Falkenburg  <sfalken@apple.com>
2808
2809         Build fix.
2810
2811         * WebKit.vcproj/WebKit.make:
2812
2813 2008-01-16  Adam Roben  <aroben@apple.com>
2814
2815         Trigger activation changes at the right time by listening for WM_NCACTIVATE
2816
2817         This is the final part of <rdar://5006915> Inactive look for Aqua
2818         controls
2819
2820         WebView now listens to messages sent to its top-level parent window.
2821         When the top-level parent receives a WM_NCACTIVATE message, WebView
2822         recalculates whether it is contained within the current active window.
2823
2824         Reviewed by Darin.
2825
2826         * Interfaces/IWebViewPrivate.idl:
2827         (IWebViewPrivate::windowAncestryDidChange): Added. WebKit clients
2828         should call this when they change the parent window chain of a
2829         WebView.
2830         * WebView.cpp:
2831         (WebView::WebView): Initialize new member.
2832         (findTopLevelParent): Added.
2833         (WebViewWndProc):
2834             - Separated activation handling from focus handling, now that
2835               activation handling is taken care of by updateActiveState
2836               exclusively.
2837             - Compare top-level parents in our WM_KILLFOCUS handler so that we
2838               really know if focus is staying inside our top-level window.
2839             - Update our active state on WM_WINDOWPOSCHANGED.
2840             - Added a WM_TIMER handler.
2841         (WebView::initWithFrame): Call windowAncestryDidChange after setting
2842         up our HWND as a child of the host window.
2843         (WebView::windowReceivedMessage): Added. Update our active state when
2844         our top-level parent receives a WM_NCACTIVATE message.
2845         (WebView::updateActiveStateSoon): Added.
2846         (WebView::setHostWindow): Call windowAncestryDidChange after changing
2847         the host window.
2848         (WebView::updateActiveState): We are active if our top-level parent is
2849         the same as the top-level parent of the active window.
2850         (WebView::windowAncestryDidChange): Added. Recalculates our top-level
2851         parent and registers as a listener for the new top-level parent's
2852         messages.
2853         * WebView.h: Made WebView and WindowMessageListener so that it can
2854         utilize WindowMessageBroadcaster to listen to its top-level parent's
2855         messages.
2856
2857 2008-01-16  Adam Roben  <aroben@apple.com>
2858
2859         Updated for ScrollBarClient changes
2860
2861         Reviewed by Darin.
2862
2863         * WebScrollBar.h:
2864         (WebScrollBar::isActive): Added.
2865
2866 2008-01-16  Adam Roben  <aroben@apple.com>
2867
2868         Updated for changes to WebCore methods
2869
2870         Focus and active state are now handled (somewhat) separately. Future
2871         patches will further separate these concepts.
2872
2873         Reviewed by Darin.
2874
2875         * WebView.cpp:
2876         (WebViewWndProc): Updated for method renames.
2877         (WebView::updateActiveState): Only change the active state here. Focus
2878         is handled inside WM_SETFOCUS and WM_KILLFOCUS message handlers.
2879
2880 2008-01-16  Steve Falkenburg  <sfalken@apple.com>
2881
2882         <rdar://problem/5097419> Cursor flickers when over window resizer
2883         
2884         Reviewed by Sam.
2885
2886         * WebView.cpp:
2887         (WebViewWndProc): Don't set the resize cursor when over the non-border resize area.
2888
2889 2008-01-15  Steve Falkenburg  <sfalken@apple.com>
2890
2891         <rdar://problem/5663888> Cannot type into a JavaScript prompt created from a timer
2892         
2893         Allow nested timers from javascript prompts to allow for WebView-based edit fields.
2894         
2895         Reviewed by Darin.
2896
2897         * WebChromeClient.cpp:
2898         (WebChromeClient::runJavaScriptPrompt):
2899
2900 2008-01-14  Steve Falkenburg  <sfalken@apple.com>
2901
2902         Use shared vsprops for most vcproj properties.
2903         
2904         Reviewed by Darin.
2905
2906         * WebKit.vcproj/Interfaces.vcproj:
2907         * WebKit.vcproj/WebKit.vcproj:
2908         * WebKit.vcproj/WebKitGUID.vcproj: Add missing Debug_Internal config.
2909
2910 2008-01-11  Steve Falkenburg  <sfalken@apple.com>
2911
2912         Share common files across projects.
2913         
2914         Unify vsprops files
2915         Debug:          common.vsprops, debug.vsprops
2916         Debug_Internal: common.vsprops, debug.vsprops, debug_internal.vsprops
2917         Release:        common.vsprops, release.vsprops
2918         
2919         Shared properties can go into common.vsprops, shared debug settings can go into debug.vsprops.
2920         debug_internal.vsprops will be mostly empty except for file path prefix modifiers.
2921
2922         Pull auto-version.sh, VERSION, and PRODUCTVERSION from tools.
2923
2924         Reviewed by Adam Roben.
2925
2926         * WebKit.vcproj/Interfaces.vcproj:
2927         * WebKit.vcproj/PRODUCTVERSION: Removed.
2928         * WebKit.vcproj/VERSION: Removed.
2929         * WebKit.vcproj/WebKit.vcproj:
2930         * WebKit.vcproj/WebKitGUID.vcproj:
2931         * WebKit.vcproj/auto-version.sh: Removed.
2932         * WebKit.vcproj/debug.vsprops: Removed.
2933         * WebKit.vcproj/debug_internal.vsprops: Removed.
2934         * WebKit.vcproj/release.vsprops: Removed.
2935
2936 2008-01-11  Adam Roben  <aroben@apple.com>
2937
2938         Fix Bug 16828: WebView never paints if first page load is canceled after being committed but before layout
2939
2940         <http://bugs.webkit.org/show_bug.cgi?id=16828>
2941         <rdar://5682402>
2942
2943         Now that we have 1) a real loader and 2) multiple FrameViews per
2944         Frame, we no longer need the hackery we had in our WM_PAINT handler
2945         that decided whether or not to paint. We now always want to paint,
2946         letting the swapping of FrameViews that happens in
2947         transitionToCommittedForNewPage handle which document gets painted.
2948
2949         Reviewed by Hyatt.
2950
2951         * WebView.cpp:
2952         (WebViewWndProc): Removed hackery that decided sometimes not to paint.
2953
2954 2008-01-11  Mark Rowe  <mrowe@apple.com>
2955
2956         Windows build fix.  Update to match method name in WebCore.
2957
2958         * WebJavaScriptCollector.cpp:
2959         (WebJavaScriptCollector::collectOnAlternateThread):
2960
2961 2008-01-10  Geoffrey Garen  <ggaren@apple.com>
2962
2963         Reviewed by John Sullivan.
2964
2965         Updated for transition away from JavaScriptStatistics, which is gone now.
2966
2967         * WebJavaScriptCollector.cpp:
2968         (WebJavaScriptCollector::collect):
2969         (WebJavaScriptCollector::collectOnAlternateThread):
2970         (WebJavaScriptCollector::objectCount):
2971
2972 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
2973
2974         Not reviewed, build fix.
2975         
2976         - more build fixing
2977
2978         * WebDatabaseManager.cpp:
2979         * WebSecurityOrigin.h:
2980
2981 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
2982
2983         Not reviewed, build fix.
2984         
2985         - try to fix build
2986
2987         * WebDatabaseManager.cpp:
2988         (WebDatabaseManager::databasesWithOrigin):
2989         * WebSecurityOrigin.h:
2990
2991 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
2992
2993         Reviewed by Sam.
2994
2995         - remove SecurityOriginData and fold its functionality into SecurityOrigin
2996
2997         * WebChromeClient.cpp:
2998         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
2999         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
3000         * WebChromeClient.h:
3001         * WebDatabaseManager.cpp:
3002         (WebDatabaseManager::origins):
3003         (WebDatabaseManager::databasesWithOrigin):
3004         (WebDatabaseManager::detailsForDatabaseWithOrigin):
3005         (WebDatabaseManager::deleteDatabasesWithOrigin):
3006         (WebDatabaseManager::deleteDatabaseWithOrigin):
3007         (WebDatabaseManager::dispatchDidModifyOrigin):
3008         (WebDatabaseManager::dispatchDidModifyDatabase):
3009         * WebDatabaseManager.h:
3010         * WebSecurityOrigin.cpp:
3011         (WebSecurityOrigin::createInstance):
3012         (WebSecurityOrigin::WebSecurityOrigin):
3013         (WebSecurityOrigin::protocol):
3014         (WebSecurityOrigin::domain):
3015         (WebSecurityOrigin::port):
3016         (WebSecurityOrigin::usage):
3017         (WebSecurityOrigin::quota):
3018         (WebSecurityOrigin::setQuota):
3019         * WebSecurityOrigin.h:
3020
3021 2008-01-10  David Kilzer  <ddkilzer@apple.com>
3022
3023         dftables should be rewritten as a script
3024
3025         <http://bugs.webkit.org/show_bug.cgi?id=16818>
3026         <rdar://problem/5681463>
3027
3028         Reviewed by Darin.
3029
3030         * WebKit.vcproj/WebKit.sln: Removed reference to dftables project.
3031
3032 2008-01-10  Adam Roben  <aroben@apple.com>
3033
3034         Fix many bugs by giving Windows one FrameView per page load
3035         
3036         Bugs include:
3037             <rdar://5659200>
3038                 Windows back/forward cache causes crashes in the layout tests
3039             <rdar://5659355>
3040             <http://bugs.webkit.org/show_bug.cgi?id=16808>
3041                 REGRESSION: PLT broken on Windows due to back/forward cache
3042             <rdar://5663654>
3043             <http://bugs.webkit.org/show_bug.cgi?id=16607>
3044                 Random crashes in FrameView::scheduleRelayout while surfing
3045                 Thinkgeek
3046
3047         On Windows until now we've only had one FrameView per Frame. Once the
3048         back/forward cache was turned on this started causing assertions to
3049         fail and crashes to occur due to a single FrameView being both in the
3050         back/forward cache (possibly multiple times!) and used by a live
3051         document. We now create a new FrameView for each page load, just as
3052         Mac does.
3053
3054         This has the side-effect of plugging some of the world leaks seen at
3055         the end of the PLT.
3056
3057         Reviewed by Hyatt.
3058
3059         * WebFrame.cpp:
3060         (WebFrame::initWithWebFrameView): Don't create the FrameView right
3061         away -- it'll be created when the load is committed.
3062         (WebFrame::transitionToCommittedFromCachedPage): Match the Mac by no
3063         longer calling resetMultipleFormSubmissionProtection here.
3064         (WebFrame::transitionToCommittedForNewPage): Ported code from
3065         -[WebCoreFrameBridge
3066         createFrameViewWithNSView:marginWidth:marginHeight:],
3067         -[WebCoreFrameBridge installInFrame:], and moved code here from
3068         WebFrame::initWithWebFrameView and WebView::initWithFrame. WebCore
3069         takes care of resetMultipleFormSubmissionProtection, just like it does
3070         on the Mac.
3071         * WebView.cpp:
3072         (WebView::initWithFrame): Moved FrameView initialization code to
3073         WebFrame::transitionToCommittedForNewPage.
3074
3075 2008-01-09  Ada Chan  <adachan@apple.com>
3076
3077         Fix crash that could happen if the key we are passing to the HashMap is 0 in WebView::interpretKeyEvent().
3078
3079         Reviewed by Darin.
3080
3081         * WebView.cpp:
3082         (WebView::interpretKeyEvent):
3083
3084 2008-01-08  Steve Falkenburg  <sfalken@apple.com>
3085
3086         Fix build.
3087
3088         * DOMCoreClasses.cpp:
3089
3090 2008-01-07  Antti Koivisto  <antti@apple.com>
3091
3092         Try to fix the Windows build.
3093
3094         * WebKit.vcproj/WebKit.sln:
3095
3096 2008-01-07  Antti Koivisto  <antti@apple.com>
3097
3098         Reviewed by Steve.
3099         
3100         Re-enable media support in Windows build.
3101
3102         * WebKit.vcproj/WebKit.vcproj:
3103
3104 2008-01-07  Steve Falkenburg  <sfalken@apple.com>
3105
3106         Build fix.
3107
3108         * WebKit.vcproj/InterfacesGenerated.vcproj:
3109
3110 2008-01-07  Dan Bernstein  <mitz@apple.com>
3111
3112         Reviewed by Dave Hyatt.
3113
3114         - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
3115
3116         * WebView.cpp:
3117         (WebView::setShouldApplyMacFontAscentHack):
3118
3119 2008-01-07  Holger Freyther  <zecke@selfish.org>
3120
3121         Reviewed by Alp Toker.
3122
3123         * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
3124         actions.
3125         * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
3126         * Update the ContextMenuController to accept CheckableActionTypes as well.
3127         * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
3128         was extracted from ContextMenu::checkOrEnableIfNeeded.
3129         * Update the Qt and Windows port.
3130
3131         * WebContextMenuClient.cpp:
3132
3133 2008-01-04  Alexey Proskuryakov  <ap@webkit.org>
3134
3135         Reviewed by Adam Roben.
3136
3137         http://bugs.webkit.org/show_bug.cgi?id=16733
3138         REGRESSION: Crash on Safari Start
3139
3140         * Interfaces/IWebViewPrivate.idl: Should have added a new method at the end.
3141
3142 2008-01-04  Alexey Proskuryakov  <ap@webkit.org>
3143
3144         Reviewed by Darin.
3145
3146         <rdar://problem/5611712> xsl:sort does not use a case folding sort, and the 'case-order' attribute is ignored (16077)
3147
3148         * WebKit.vcproj/WebKit.vcproj: Link to icuin{_debug}.lib
3149
3150 2008-01-04  Adam Roben  <aroben@apple.com>
3151
3152         Fix <rdar://4968855> Shift-PageUp/Shift-PageDown only select one line of text
3153
3154         Test: platform/win/editing/selection/shift-page-down-up.html
3155
3156         Reviewed by Oliver.
3157
3158         * WebView.cpp: Correct the commands associated with
3159         Shift-PageUp/Shift-PageDown.
3160
3161 2008-01-03  Alexey Proskuryakov  <ap@webkit.org>
3162
3163         Reviewed by Darin.
3164
3165         <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController
3166
3167         * Interfaces/IWebViewPrivate.idl:
3168         * WebView.cpp:
3169         (WebView::executeCoreCommandByName):
3170         * WebView.h:
3171         Added an SPI to implement layoutTestController.execCommand.
3172
3173 2008-01-03  Ada Chan  <adachan@apple.com>
3174
3175         Replaced the use of editor command "ForwardDelete" with "DeleteForward" to be consistent
3176         with our use of "DeleteBackward".
3177
3178         Rubber-stamped by Jon.
3179
3180         * WebView.cpp:
3181
3182 2008-01-03  Ada Chan  <adachan@apple.com>
3183
3184         Regression: backspace stopped working on text inputs
3185         - Replaced the use of editor command "BackwardDelete" with "DeleteBackward" since it's no longer supported.
3186
3187         Reviewed by Adam.
3188
3189         * WebEditorClient.cpp:
3190         (WebEditorClient::textWillBeDeletedInTextField):
3191         * WebView.cpp:
3192
3193 2008-01-02  Alice Liu  <alice.liu@apple.com>
3194
3195         Reviewed by Maciej.
3196
3197         Fixed <rdar://5283861> (problems scrolling in gmail message content area)
3198
3199         * WebView.cpp:
3200         (WebView::keyDown):
3201         bubble scrolling from a key event
3202
3203 2008-01-01  Matt Lilek  <webkit@mattlilek.com>
3204
3205         Attempt to fix the Windows bots until the bots
3206         can get the Quicktime SDK installed.
3207
3208         * WebKit.vcproj/WebKit.sln:
3209         * WebKit.vcproj/WebKit.vcproj:
3210
3211 2007-12-30  Matt Lilek  <webkit@mattlilek.com>
3212
3213         Reviewed by Darin.
3214
3215         Bug 16578: Windows Web Inspector window needs minimum size
3216         http://bugs.webkit.org/show_bug.cgi?id=16578
3217
3218         * WebInspectorClient.cpp:
3219         (WebInspectorClient::onGetMinMaxInfo):
3220         (WebInspectorWndProc):
3221         * WebInspectorClient.h:
3222
3223 2007-12-21  Antti Koivisto  <antti@apple.com>
3224
3225         Reviewed by Steve.
3226         
3227         Build media support on Windows.
3228
3229         * WebKit.vcproj/WebKit.sln:
3230         * WebKit.vcproj/WebKit.vcproj:
3231
3232 2007-12-21  Ada Chan  <adachan@apple.com>
3233
3234         Implemented DOMDocument::getElementById().
3235
3236         Reviewed by Darin.
3237
3238         * DOMCoreClasses.cpp:
3239         (DOMDocument::getElementById):
3240
3241 2007-12-21  Alexey Proskuryakov  <ap@webkit.org>
3242
3243         Reviewed by Steve and Darin.
3244
3245         <rdar://problem/5497037> Win32: Accelerator keys (ctrl-x,c,v,w,q,etc) only fire keyUp,
3246         keyDown/Press consumed by accelerator table (14104)
3247
3248         <rdar://problem/5346299> preventing default behavior for key down does not block accelerators like Ctrl+N
3249
3250         This is WebKit part of a fix, most of which will be in Safari.
3251
3252         * WebView.cpp:
3253         (WebViewWndProc): Return our result for WM_(SYS)KEYDOWN to let the client know whether
3254         further procesing is desired.
3255
3256 2007-12-21  Alexey Proskuryakov  <ap@webkit.org>
3257
3258         Build fix: cannot use framework-style include for ProgIDMacros.h,
3259         because the file is only created on a later step. 
3260
3261         * ForEachCoClass.h:
3262
3263 2007-12-20  Kevin McCullough  <kmccullough@apple.com>
3264
3265         Reviewed by Steve.
3266
3267         - <rdar://5656485> Drosera: Win: Nightly does not reliably connect to 
3268         WebKit.
3269
3270         - Drosera and Safari need to use the same ProgIDs in order for
3271         CoCreateInstance to work properly.  The most robust way to do this is
3272         for WebKit to dynamically publish those ProgIDs.
3273
3274         * ForEachCoClass.cpp: Added.
3275         (setUseOpenSourceWebKit):
3276         (progIDForClass):
3277         * ForEachCoClass.h: Added functionality to publish ProgIDs.
3278         * WebKit.vcproj/WebKit.def: Exposed added functions for applications.
3279         * WebKit.vcproj/WebKit.vcproj: Added ForEachCoClass.cpp
3280         * WebKit.vcproj/WebKit_debug.def: Exposed added functions fori
3281         applications.
3282
3283 2007-12-19  Dave Hyatt <hyatt@apple.com>
3284
3285         Add a fourth preference value for GDI text in the font smoothing prefs.
3286         
3287         Reviewed by mitz
3288
3289         * Interfaces/IWebPreferences.idl:
3290         * WebPreferenceKeysPrivate.h:
3291         * WebPreferences.cpp:
3292         (WebPreferences::initializeDefaultSettings):
3293         (WebPreferences::fontSmoothing):
3294         (WebPreferences::setFontSmoothing):
3295         * WebView.cpp:
3296         (WebView::notifyPreferencesChanged):
3297
3298 2007-12-17  Darin Adler  <darin@apple.com>
3299
3300         Reviewed by Sam.
3301
3302         - <rdar://4516170> Back/Forward Cache on Windows
3303
3304         * WebFrame.cpp:
3305         (WebFrame::forceLayout): Implemented this. Just calling through to
3306         Frame::forceLayout matches the Mac pretty well and should be enough
3307         for now. Without this we won't repaint the new page when we go back
3308         and forward.
3309         (WebFrame::dispatchWillSubmitForm): Use COMPtr's AdoptCOM constructor
3310         instead of the adoptRef function.
3311         (WebFrame::restoreViewState): Removed unneeded notImplemented() call.
3312         This is implemented as much as it needs to be.
3313         (WebFrame::shouldGoToHistoryItem): Ditto.
3314         (WebFrame::saveViewStateToItem): Ditto.
3315         (WebFrame::canCachePage): Ditto, also changed it to return true. This
3316         is what was preventing the back/forward cache from running, and there's
3317         no need for any additional checks in the Windows version.
3318
3319         * WebView.cpp:
3320         (PreferencesChangedOrRemovedObserver::onNotify): Fix backwards null check
3321         that was preventing this notification from ever being sent, which in turn
3322         meant that page cache had a capacity of 0.
3323         (WebView::initWithFrame): Removed unneeded setUsesPageCache(false) code.
3324         This actually was ineffective and ended up doing no harm, but we don't
3325         need it.
3326
3327 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
3328
3329         Reviewed by Darin.
3330
3331         http://bugs.webkit.org/show_bug.cgi?id=16462
3332         REGRESSION: access keys broken on Windows
3333
3334         * WebView.cpp: (WebView::keyPress): Handle system key presses as access keys.
3335
3336 2007-12-15  Alexey Proskuryakov  <ap@webkit.org>
3337
3338         Reviewed by Maciej.
3339
3340         http://bugs.webkit.org/show_bug.cgi?id=16436
3341         Alt+Space works incorrectly
3342
3343         Test: platform/win/fast/events/alt-space-scroll.html
3344
3345         * WebView.cpp:
3346         (WebView::keyDown):
3347         (WebView::keyPress):
3348         We do not handle WM_SYSCHAR events.
3349
3350 2007-12-14  Dan Bernstein  <mitz@apple.com>
3351
3352         - yet another build fix
3353
3354         * DOMHTMLClasses.cpp:
3355         (DOMHTMLDocument::URL):
3356
3357 2007-12-14  Dan Bernstein  <mitz@apple.com>
3358
3359         - build fix
3360
3361         * WebIconDatabase.h:
3362
3363 2007-12-14  Darin Adler  <darin@apple.com>
3364
3365         Reviewed by Adele.
3366
3367         - http://bugs.webkit.org/show_bug.cgi?id=16443
3368           implement some missing Windows WebKit functions
3369
3370         * DOMHTMLClasses.cpp:
3371         (DOMHTMLDocument::URL): Implemented.
3372
3373         * WebActionPropertyBag.cpp:
3374         (WebActionPropertyBag::Read): Fixed the WebActionElementKey case. 
3375
3376 2007-12-14  Darin Adler  <darin@apple.com>
3377
3378         Reviewed by Alexey.
3379
3380         * WebView.cpp:
3381         (WebView::execCommand): Switched from Editor::execCommand to Editor:command.
3382         Updated name from MoveUpByPageAndModifyCaret to MovePageUp and from
3383         MoveDownByPageAndModifyCaret to MovePageDown.
3384         (WebView::copy): Switched from Editor::execCommand to Editor:command.
3385         (WebView::cut): Ditto.
3386         (WebView::paste): Ditto.
3387         (WebView::delete_): Ditto.
3388
3389 2007-12-13  Steve Falkenburg  <sfalken@apple.com>
3390
3391         Move source file generation into its own vcproj to fix build dependencies.
3392
3393         Reviewed by Adam.
3394
3395         * WebKit.vcproj/Interfaces.vcproj:
3396         * WebKit.vcproj/InterfacesGenerated.vcproj: Added.
3397         * WebKit.vcproj/WebKit.sln:
3398         * WebKit.vcproj/WebKit.submit.sln:
3399         * WebKit.vcproj/build-generated-files.sh:
3400
3401 2007-12-13  Adam Roben  <aroben@apple.com>
3402
3403         Fix <rdar://5517707> Crash on wptv.wp.pl when "make bigger" button is clicked
3404
3405         Reviewed by Anders.
3406
3407         * WebView.cpp:
3408         (WebViewWndProc): Repost paint messages and ignore all other messages
3409         when we're calling a plugin.
3410
3411 2007-12-13  Steve Falkenburg  <sfalken@apple.com>
3412
3413         Fix project dependencies based on JavaScriptCore change.
3414
3415         * WebKit.vcproj/WebKit.sln:
3416
3417 2007-12-13  Alexey Proskuryakov  <ap@webkit.org>
3418
3419         Reviewed by Adele.
3420
3421         http://bugs.webkit.org/show_bug.cgi?id=16421
3422         REGRESSION(r28669): Page scrolls down when you hit space key in text area
3423
3424         Test: fast/events/space-scroll-event.html
3425
3426         * WebView.cpp:
3427         (WebView::keyDown):
3428         (WebView::keyPress):
3429         Moved space handling to keyPress() to fix this bug and to match IE. Scrolling via arrow keys is correctly handled
3430         in keyDown().
3431
3432 2007-12-12  Brady Eidson  <beidson@apple.com>
3433
3434         Reviewed by Sam Weinig
3435
3436         Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows)
3437
3438         Even though this new code isn't exercised yet because the page cache is still turned off for Windows, local testing
3439         has indicated it works well.
3440
3441         * WebCachedPagePlatformData.h: Added.
3442         (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes an IWebDataSource and the object retains it
3443         (WebCachedPagePlatformData::clear):
3444         (WebCachedPagePlatformData::webDataSource):
3445
3446         * WebFrame.cpp:
3447         (WebFrame::savePlatformDataToCachedPage):
3448         (WebFrame::transitionToCommittedFromCachedPage):
3449         (WebFrame::transitionToCommittedForNewPage):
3450         * WebFrame.h:
3451
3452         * WebKit.vcproj/WebKit.vcproj:
3453
3454 2007-12-12  Steve Falkenburg  <sfalken@apple.com>
3455
3456         Build fix.
3457
3458         * WebKit.vcproj/WebKit.make: Copy only what we need out of obj/bin.
3459
3460 2007-12-12  Dan Bernstein  <mitz@apple.com>
3461
3462         Reviewed by Darin Adler.
3463
3464         - revert my earlier crash fix after making WebCore return the empty
3465           editor command for the empty command name.
3466
3467         * WebView.cpp:
3468         (WebView::handleEditingKeyboardEvent):
3469
3470 2007-12-12  Oliver Hunt  <oliver@apple.com>
3471
3472         Reviewed by Maciej.
3473
3474         <rdar://problem/5071781> window.mouseout events are not 
3475         sent to window when mouse moves out of window 
3476         
3477         Hook up the windows mouse tracking logic to allow us to 
3478         detect the mouse leaving the window.
3479
3480         * WebView.cpp:
3481         (WebView::close):
3482         (WebView::handleMouseEvent):
3483         (WebViewWndProc):
3484         * WebView.h:
3485
3486 2007-12-12  Dan Bernstein  <mitz@apple.com>
3487
3488         Reviewed by Alexey Proskuryakov.
3489
3490         - fix a crash when pressing a key that is not associated with a command
3491
3492         * WebView.cpp:
3493         (WebView::handleEditingKeyboardEvent): Check if the result of
3494         interpretKeyEvent() is empty.
3495
3496 2007-12-11  Sam Weinig  <sam@webkit.org>
3497
3498         Reviewed by Darin Adler.
3499
3500         Scrub URL out of the tree in preparation for renaming KURL to URL.
3501
3502         * WebFrame.cpp:
3503         (WebFrame::url):
3504         (WebFrame::dispatchWillPerformClientRedirect):
3505         (WebFrame::setTitle):
3506         (WebFrame::updateGlobalHistoryForStandardLoad):
3507         (WebFrame::updateGlobalHistoryForReload):
3508         (WebFrame::cancelledError):
3509         (WebFrame::blockedError):
3510         (WebFrame::interruptForPolicyChangeError):
3511         (WebFrame::createPlugin):
3512         * WebView.cpp:
3513         (WebView::notifyDidAddIcon):
3514
3515 2007-12-10  Anders Carlsson  <andersca@apple.com>
3516
3517         Reviewed by Darin.
3518     
3519         <rdar://problem/5636865>
3520         WebKit needs API to allow registering a protocol as local (RSS feeds appear unstyled)
3521         
3522         * Interfaces/IWebView.idl:
3523         * WebView.cpp:
3524         (WebView::registerURLSchemeAsLocal):
3525         * WebView.h:
3526
3527 2007-12-11  Ada Chan  <adachan@apple.com>
3528
3529         Updated the database SPI to take in IWebFrame.
3530
3531         Reviewed by Adam.
3532
3533         * Interfaces/IWebUIDelegatePrivate.idl:
3534         * WebChromeClient.cpp:
3535         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
3536         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
3537
3538 2007-12-11  Alexey Proskuryakov  <ap@webkit.org>
3539
3540         Windows build fix.
3541
3542         * WebView.cpp:
3543         (WebView::interpretKeyEvent):
3544
3545 2007-12-11  Darin Adler  <darin@apple.com>
3546
3547         * WebView.cpp:
3548         (WebView::handleEditingKeyboardEvent): Update for change to Editor API.
3549
3550 2007-12-11  Alexey Proskuryakov  <ap@webkit.org>
3551
3552         Reviewed by Darin.
3553
3554         <rdar://problem/5535636>
3555         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
3556
3557         http://bugs.webkit.org/show_bug.cgi?id=13916
3558         JavaScript detects Tab as a character input on a textfield validation
3559
3560         Listen to WM_CHAR messages, and actually pass the type of message received down to WebCore.
3561         Since WM_KEYDOWN == keydown and WM_CHAR == keypress, this allows for much better IE compatibility
3562         than layering Windows keyboard event handling on top of Mac one.
3563
3564         * WebView.cpp:
3565         (WebView::keyUp): Do not special case Alt+F4 and Alt+Space - we don't get keyups for those anyway!
3566         (WebView::interpretKeyEvent): Renamed WindowsKeyCode() to windowsVirtualKeyCode().
3567         (WebView::handleEditingKeyboardEvent): Use the additional information about event type that
3568         we now pass with PlatformKeyboardEvent.
3569         (WebView::keyDown): (WebView::keyPress): Split WM_KEYDOWN and WM_CHAR handling in separate
3570         functions, pass them down as is, without trying to guess what WM_CHAR Windows would have sent
3571         for a given WM_KEYDOWN.
3572
3573         (WebViewWndProc): Handle WM_CHAR and WM_SYSCHAR.
3574
3575         * WebView.h: Removed inIMEKeyDown() - it doesn't look like we need it at all. At least, I didn't
3576         notice any regressions after removing the only call to it in WebEditorClient.
3577
3578         * WebEditorClient.cpp:
3579         (WebEditorClient::handleKeyboardEvent):
3580         (WebEditorClient::handleInputMethodKeydown):
3581         * WebEditorClient.h:
3582         Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
3583         Renamed handleInputMethodKeypress() to handleInputMethodKeydown() and removed
3584         inIMEKeyDown()-related code.
3585
3586 2007-12-10  Geoffrey Garen  <ggaren@apple.com>
3587
3588         Reviewed by Sam Weinig.
3589
3590         Updated for rename in JavaScriptCore.
3591
3592         * WebScriptCallFrame.cpp:
3593         (WebScriptCallFrame::functionName):
3594         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
3595
3596 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
3597
3598         Fix version parsing.
3599
3600         Rubber-stamped by Oliver.
3601
3602         * WebKit.vcproj/auto-version.sh:
3603
3604 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
3605
3606         Fix build.
3607
3608         * WebKit.vcproj/WebKit.vcproj:
3609         * WebScriptCallFrame.cpp:
3610
3611 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
3612
3613         Fix build.
3614
3615         * WebHistory.cpp:
3616         (_WebCoreHistoryProvider::containsURL):
3617
3618 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
3619
3620         Tried to fix build by suppressing warning.
3621
3622         * WebScriptCallFrame.cpp:
3623
3624 2007-12-07  Darin Adler  <darin@apple.com>
3625
3626         Reviewed by Mitz.
3627
3628         - http://bugs.webkit.org/show_bug.cgi?id=15981
3629           speed up visited-link code a bit
3630
3631         * WebHistory.cpp: Removed unused Latin-1 code path.
3632         (_WebCoreHistoryProvider::containsItem): Updated for function name change.
3633
3634 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
3635
3636         Re-named our B&I flag from BUILDBOT to PRODUCTION.
3637         Fix our tiny versioning.
3638         Bump our product version.
3639         Use just the major version in the fallback VERSION files.
3640         Pick up the version numbers from the production builder.
3641
3642         Reviewed by Sam Weinig.
3643
3644         * Interfaces/WebKit.idl:
3645         * WebKit.vcproj/Interfaces.vcproj:
3646         * WebKit.vcproj/PRODUCTVERSION:
3647         * WebKit.vcproj/VERSION:
3648         * WebKit.vcproj/WebKit.make:
3649         * WebKit.vcproj/WebKit.rc:
3650         * WebKit.vcproj/WebKit.vcproj:
3651         * WebKit.vcproj/auto-version.sh:
3652         * WebKitDLL.cpp:
3653         (DllUnregisterServer):
3654
3655 2007-12-07  Adam Roben  <aroben@apple.com>
3656
3657         Fix <rdar://5624866> CFStringRef UI_STRING should use a cache and follow the CF "Get" model (current uses leak)
3658
3659         Added a new class, LocalizedString, that wraps a CFStringRef and a
3660         WebCore::String. We store one LocalizedString for each key string.
3661
3662         Reviewed by Steve.
3663
3664         * WebLocalizableStrings.cpp: Changed our two HashMaps to map from
3665         WebCore::String to LocalizedString*.
3666         (LocalizedString::LocalizedString):
3667         (LocalizedString::operator CFStringRef):
3668         (LocalizedString::operator LPCTSTR): Code moved here from
3669         localizedLPCTSTR.
3670         (findCachedString): Changed to return a LocalizedString*.
3671         (cacheString): Changed to take a LocalizedString*.
3672         (localizedString): Changed to return a const LocalizedString&. We
3673         first try to find a cached LocalizedString. If there isn't one, we
3674         create a new one and cache it.
3675         (WebLocalizedLPCTSTRUTF8): Changed to call localizedString.
3676         (WebLocalizedLPCTSTR): Ditto.
3677
3678 2007-12-07  Adam Roben  <aroben@apple.com>
3679
3680         Make WebLocalizableStrings work a little more like the Mac version
3681
3682         Reviewed by Steve.
3683
3684         * WebKit.vcproj/WebKit.def: Deprecated SetWebLocalizedStringMainBundle.
3685         * WebKit.vcproj/WebKit_debug.def: Ditto.
3686         * WebLocalizableStrings.cpp:
3687         (createWebKitBundle): Changed to only create the bundle once.
3688         (cfBundleForStringsBundle): Added. Code was factored out of
3689         copyLocalizedStringFromBundle. We now use the CFBundleGetMainBundle to
3690         get the main bundle and WebLocalizableStringsBundle's identifier to
3691         fetch the framework's bundle.
3692         (copyLocalizedStringFromBundle): Changed to call
3693         cfBundleForStringsBundle.
3694         (cacheString): Cleaned up logic a bit with an early return.
3695         (SetWebLocalizedStringMainBundle): Moved down with the other
3696         deprecated functions and made into a no-op.
3697
3698 2007-12-07  Adam Roben  <aroben@apple.com>
3699
3700         Use SoftLinking.h in WebKitClassFactory.
3701
3702         Reviewed by Oliver.
3703
3704         * WebKitClassFactory.cpp:
3705         (WebKitClassFactory::WebKitClassFactory): We don't have to worry about
3706         not finding STInitialize anymore now that a version of SafariTheme
3707         containing this function has shipped.
3708
3709 2007-12-06  Ada Chan  <adachan@apple.com>
3710
3711         <rdar://problem/5556378> Implemented database related UI delegate methods (prompts for new/enlarged databases)
3712
3713         Reviewed by Darin.
3714
3715         * Interfaces/IWebUIDelegatePrivate.idl:
3716         * WebChromeClient.cpp:
3717         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
3718         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
3719
3720 2007-12-06  Alice Liu  <alice.liu@apple.com>
3721
3722         Fixed <rdar://5540000> onbeforeunload doesn't fire when closing window/tab
3723
3724         Reviewed by Darin.
3725
3726         * Interfaces/IWebViewPrivate.idl:
3727         * WebView.cpp:
3728         (WebView::shouldClose):
3729         * WebView.h:
3730
3731 2007-12-06  Adam Roben  <aroben@apple.com>
3732
3733         Fix <rdar://5615283> Crash in WebFrame::receivedPolicyDecision
3734
3735         It's possible for a second policy listener to be created while we're
3736         waiting for a decision on the first policy listener. In this case we
3737         would crash when the first policy listener had a decision made. Mac
3738         WebKit already handles this by invalidating any existing policy
3739         listener when creating a new one.
3740
3741         A test case is coming in a future commit.
3742
3743         Reviewed by Anders.
3744
3745         * WebFrame.cpp:
3746         (WebFrame::setUpPolicyListener): Copy the Mac behavior of invalidating
3747         any existing policy listener, and remove some assertions that we know
3748         can fire.
3749
3750 2007-12-06  Adam Roben  <aroben@apple.com>
3751
3752         Add SPI so that DumpRenderTree can turn on the Mac font ascent hack
3753
3754         Reviewed by Hyatt.
3755
3756         * Interfaces/IWebViewPrivate.idl: Added new method declaration.
3757         * WebView.cpp:
3758         (WebView::setShouldApplyMacFontAscentHack): Added. Just calls down to
3759         FontData.
3760         * WebView.h:
3761
3762 2007-12-06  Ada Chan  <adachan@apple.com>
3763
3764         Build fix.
3765
3766         Reviewed by Geoff.
3767
3768         * WebScriptCallFrame.cpp:
3769         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
3770
3771 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
3772
3773         Reviewed by Darin Adler.
3774
3775         Third step in refactoring JSGlobalObject: Moved data members and data
3776         member access from Interpreter to JSGlobalObject.
3777         
3778         * WebFrame.cpp:
3779         (WebFrame::globalContext):
3780         (WebFrame::attachScriptDebugger):
3781         (WebFrame::windowObjectCleared):
3782         * WebScriptDebugger.cpp:
3783         (WebScriptDebugger::WebScriptDebugger):
3784
3785 2007-12-05  Steve Falkenburg  <sfalken@apple.com>
3786
3787         <rdar://problem/5625327> Crash toggling check grammar w/ spelling when no spell checker exists.
3788         
3789         Reviewed by Adam.
3790
3791         * WebView.cpp:
3792         (WebView::setGrammarCheckingEnabled): Add null check
3793
3794 2007-12-05  Adam Roben  <aroben@apple.com>
3795
3796         Expose WebView::setProhibitsMainFrameScrolling through IWebViewPrivate
3797
3798         Reviewed by Steve.
3799
3800         * Interfaces/IWebViewPrivate.idl: Added declaration.
3801         * WebInspectorClient.cpp:
3802         (WebInspectorClient::createPage): Updated for change to
3803         setProhibitsMainFrameScrolling signature.
3804         * WebView.cpp:
3805         (WebView::setProhibitsMainFrameScrolling): Updated and robustified.
3806         * WebView.h:
3807
3808 2007-12-05  Dan Bernstein  <mitz@apple.com>
3809
3810         Reviewed by Darin Adler.
3811
3812         - WebKit/win part of fixing <rdar://problem/5111082> Flash popup video ad doesn't close when clicked at http://www.firestonecompleteautocare.com/
3813
3814         * WebView.cpp:
3815         (WebView::initWithFrame): Attach the main frame's view.
3816
3817 2007-12-04  Ada Chan  <adachan@apple.com>
3818
3819         Provide API for setting the default storage quota per database origin
3820
3821         Reviewed by Jon.
3822
3823         * Interfaces/IWebPreferencesPrivate.idl: added SPI to get/set default database quota
3824         * WebPreferenceKeysPrivate.h:
3825         * WebPreferences.cpp:
3826         (WebPreferences::initializeDefaultSettings): default database quota is 5MB
3827         (WebPreferences::longlongValueForKey):
3828         (WebPreferences::setLongLongValue):
3829         (WebPreferences::defaultDatabaseQuota):
3830         (WebPreferences::setDefaultDatabaseQuota):
3831         * WebPreferences.h:
3832         * WebView.cpp:
3833         (WebView::notifyPreferencesChanged): propagate default database quota change to WebCore settings.
3834
3835 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
3836
3837         Reviewed by Adam and Darin.
3838
3839         - Fixed a crasher where the top of the stack was not updated correctly.
3840         And set the eol style on IWebScriptCallFrame.idl file.
3841
3842         * Interfaces/IWebScriptCallFrame.idl:
3843         * WebScriptDebugger.cpp:
3844         (WebScriptDebugger::atStatement):
3845         (WebScriptDebugger::leaveFrame):
3846
3847 2007-11-27  Adam Roben  <aroben@apple.com>
3848
3849         Hook up the authorAndUserStylesEnabled preference
3850
3851         This is the Windows counterpart of r28071.
3852
3853         Reviewed by Maciej.
3854
3855         * Interfaces/IWebPreferencesPrivate.idl: Added new method
3856         declarations.
3857         * WebPreferenceKeysPrivate.h: Added a new preference key.
3858         * WebPreferences.cpp:
3859         (WebPreferences::initializeDefaultSettings): Set the default for the
3860         new preference.
3861         (WebPreferences::setAuthorAndUserStylesEnabled): Added.
3862         (WebPreferences::authorAndUserStylesEnabled): Added.
3863         * WebPreferences.h:
3864         * WebView.cpp:
3865         (WebView::notifyPreferencesChanged): Communicate the new preference
3866         down to WebCore::Settings.
3867
3868 2007-12-04  Jon Honeycutt  <jhoneycutt@apple.com>
3869
3870         Reviewed by Ollie.
3871
3872         Don't crash if our JavaPlugin DLL can't be found 
3873
3874         * WebFrame.cpp:
3875         (WebFrame::createJavaAppletWidget): Added null check
3876
3877 2007-12-04  Darin Adler  <darin@apple.com>
3878
3879         Reviewed by Kevin Decker.
3880
3881         * WebFrame.cpp: Removed obsolete privateBrowsingEnabled.
3882         * WebFrame.h: Ditto.
3883
3884 2007-12-04  Adam Roben  <aroben@apple.com>
3885
3886         Windows build fix
3887
3888         * WebScriptCallFrame.cpp:
3889
3890 2007-12-03  Dan Bernstein  <mitz@apple.com>
3891
3892         Reviewed by Dave Hyatt.
3893
3894         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
3895
3896         * WebView.cpp:
3897         (WebViewWndProc): Removed call to sendResizeEvent() since FrameView
3898         sends them now.
3899
3900 2007-12-03  Kevin McCullough  <kmccullough@apple.com>
3901
3902         Reviewed by Adam.
3903
3904         - <rdar://5618942> Drosera: Console window does not process everything
3905         correctly.
3906         - <rdar://5619005> Drosera: could be sped up by moving the
3907         WebScriptScope stuff into the WebScriptCallFrame.
3908         - Now the console can correctly process objects and does not receive
3909         notifications from JavaScriptCore about the JavaScript in Drosera's
3910         own process.
3911
3912         * Interfaces/IWebScriptCallFrame.idl: Moved the variable lookup
3913         functions from WebScriptScope to here.
3914         * Interfaces/WebKit.idl: Removed WebScriptScope.
3915         * WebKit.vcproj/Interfaces.vcproj: Ditto.
3916         * WebKit.vcproj/WebKit.vcproj: Ditto.
3917         * WebKit.vcproj/WebKitGUID.vcproj: Ditto.
3918         * WebScriptCallFrame.cpp: Moved WebScriptScope functionality into here.
3919         (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): Now
3920         returns a string value for things that are not strings.
3921         (WebScriptCallFrame::variableNames): Moved from WebScriptScope.
3922         (WebScriptCallFrame::valueForVariable): Moved from WebScriptScope.
3923         (WebScriptCallFrame::jsValueToString): Helper functions that converts
3924         any JSValue to a String.
3925         * WebScriptCallFrame.h: Moved WebScriptScope functionality into here.
3926         * WebScriptDebugger.cpp: Added nested guards so that Drosera does not
3927         receive notifications about JavaScript that Drosera is running just the
3928         JavaScript WebKit is running.
3929         (WebScriptDebugger::WebScriptDebugger):
3930         (WebScriptDebugger::sourceParsed):
3931         (WebScriptDebugger::callEvent):
3932         (WebScriptDebugger::atStatement):
3933         (WebScriptDebugger::returnEvent):
3934         (WebScriptDebugger::exception):
3935         * WebScriptDebugger.h: Ditto.
3936         * WebScriptScope.cpp: Removed.
3937         * WebScriptScope.h: Removed.
3938
3939 2007-12-03  Mark Rowe  <mrowe@apple.com>
3940
3941         Speculative Windows build fix.
3942
3943         * WebScriptCallFrame.cpp:
3944         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
3945
3946 2007-12-03  Adam Roben  <aroben@apple.com>
3947
3948         Another speculative Windows build fix
3949
3950         * WebScriptCallFrame.cpp:
3951         (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
3952
3953 2007-12-03  Adam Roben  <aroben@apple.com>
3954
3955         Speculative Windows build fix
3956
3957         * WebFrame.cpp:
3958         (WebFrame::globalContext):
3959         (WebFrame::windowObjectCleared):
3960         * WebScriptDebugger.cpp:
3961         (WebScriptDebugger::WebScriptDebugger):
3962
3963 2007-12-01  Sam Weinig  <sam@webkit.org>
3964
3965         Rename IWebViewPrivate::selectionImageRect to IWebViewPrivate::selectionRect.
3966
3967         Rubber stamped by Adam Roben.
3968
3969         * Interfaces/IWebViewPrivate.idl:
3970         * WebView.cpp:
3971         (WebView::selectionRect):
3972         * WebView.h:
3973
3974 2007-11-30  Ada Chan  <adachan@apple.com>
3975
3976         <rdar://problem/5621373> Added a way for the client to clear undo/redo
3977         operations from a WebView.
3978
3979         Reviewed by Steve.
3980
3981         * Interfaces/IWebViewPrivate.idl:
3982         * WebView.cpp:
3983         (WebView::clearUndoRedoOperations):
3984         * WebView.h:
3985
3986 2007-11-29  Anders Carlsson  <andersca@apple.com>
3987
3988         Reviewed by Sam.
3989
3990         Add an IWebFrameLoadDelegate2 interface with a didClearWindowObject method 
3991         that passes in the frame whose window has been cleared. This matches a newly
3992         added delegate method on the Mac.
3993         
3994         * Interfaces/IWebFrameLoadDelegate.idl:
3995         * WebFrame.cpp:
3996         (WebFrame::windowObjectCleared):
3997
3998 2007-11-29  Kevin McCullough  <kmccullough@apple.com>
3999
4000         Reviewed by Sam.
4001
4002         - <rdar://5618976> Drosera: should listen for the WebScriptDebugServer
4003         dying and vice versa.
4004
4005         * Interfaces/IWebScriptDebugListener.idl: Added the new function to the
4006         interface.
4007         * WebKit.vcproj/WebKit.def: Added the new function to the def file so
4008         Safari can tell WebKit when the server is dying.
4009         * WebKit.vcproj/WebKit_debug.def: Ditto.
4010         * WebKitDLL.cpp: Added the new function for Safari to call.
4011         (RunAsLocalServer):
4012         (LocalServerDidDie):
4013         * WebScriptDebugServer.cpp: 
4014         (WebScriptDebugServer::WebScriptDebugServer): Removed unused member.
4015         (WebScriptDebugServer::sharedWebScriptDebugServer): Ditto, and added new
4016         member to prevent adding or removing listeners when the server is dying.
4017         (WebScriptDebugServer::addListener): Don't let new listeners be added
4018         when the server is dying.
4019         (WebScriptDebugServer::removeListener): Don't let listeners remove
4020         themselves when the server is dying.  The server will remove them all
4021         anyways.
4022         (WebScriptDebugServer::serverDidDie): Notify all listeners that the
4023         server is dying and remove all listeners.
4024         * WebScriptDebugServer.h: Added the new method and removed an unused
4025         member.
4026
4027 2007-11-29  Brady Eidson  <beidson@apple.com>
4028
4029         Build fix that works...?
4030
4031         * WebChromeClient.h:
4032
4033 2007-11-29  Brady Eidson  <beidson@apple.com>
4034
4035         Build fix
4036
4037         * WebChromeClient.cpp:
4038         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
4039         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
4040
4041 2007-11-29  Brady Eidson  <beidson@apple.com>
4042
4043         Keep it building with new client method
4044
4045         * WebChromeClient.cpp:
4046         (ChromeClient::requestQuotaIncreaseForNewDatabase):
4047         (ChromeClient::requestQuotaIncreaseForDatabaseOperation):
4048         * WebChromeClient.h:
4049
4050 2007-11-29  Dan Bernstein  <mitz@apple.com>
4051
4052         Reviewed by Beth Dakin and Darin Adler.
4053
4054         - fix <rdar://problem/5346394> Contextmenu event doesn't fire on body element inside frame
4055
4056         * WebView.cpp:
4057         (WebView::handleContextMenuEvent): Send the context menu event to the
4058         frame containing the node that was hit.
4059
4060 2007-11-28  Kevin McCullough  <kmccullough@apple.com>
4061
4062         Reviewed by Tim.
4063
4064         - Added guards to the wait loop so execution would not hang and now the
4065         console window can process JavaScript.
4066
4067         * WebScriptDebugServer.cpp:
4068         (WebScriptDebugServer::suspendProcessIfPaused):
4069
4070 2007-11-28  Anders Carlsson  <andersca@apple.com>
4071
4072         Reviewed by Adam.
4073
4074         Implement the last bits of the WebDatabaseManager API.
4075         
4076         * Interfaces/IWebDatabaseManager.idl:
4077         * WebDatabaseManager.cpp:
4078         (isEqual):
4079         (WebDatabaseManager::sharedWebDatabaseManager):
4080         (WebDatabaseManager::dispatchDidModifyOrigin):
4081         (WebDatabaseManager::dispatchDidModifyDatabase):
4082         * WebDatabaseManager.h:
4083
4084 2007-11-28  Anders Carlsson  <andersca@apple.com>
4085
4086         Get Drosera working again for real.
4087         
4088         * COMEnumVariant.h:
4089         (::Next):
4090
4091 2007-11-27  Kevin McCullough  <kmccullough@apple.com>
4092
4093         Reviewed by Maciej and Adam.
4094
4095         - Added Drosera to the WebKit project.
4096
4097         * WebKit.vcproj/WebKit.sln:
4098
4099 2007-11-27  Jon Honeycutt  <jhoneycutt@apple.com>
4100
4101         Reviewed by Adam.
4102
4103         Return bool from registerWebViewWindowClass, as nothing uses the ATOM.
4104         Set haveRegisteredWindowClass to true
4105
4106         * WebView.cpp:
4107         (registerWebViewWindowClass):
4108
4109 2007-11-27  Anders Carlsson  <andersca@apple.com>
4110
4111         Speculative fix to get Drosera working.
4112         
4113         * COMEnumVariant.h:
4114         (::Next):
4115         Update the number of elements fetched correctly.
4116         
4117 2007-11-27  Anders Carlsson <andersca@apple.com>
4118
4119         Reviewed by Adam.
4120
4121         Some COM cleanup.
4122         
4123         * CFDictionaryPropertyBag.cpp:
4124         (CFDictionaryPropertyBag::QueryInterface):
4125         * CFDictionaryPropertyBag.h:
4126         * WebBackForwardList.cpp:
4127         (WebBackForwardList::addItem):
4128         (WebBackForwardList::removeItem):
4129         * WebDownload.cpp:
4130         (WebDownload::initWithRequest):
4131         * WebFrame.cpp:
4132         (WebFrame::loadRequest):
4133         (WebFrame::initWithWebFrameView):
4134         (WebFrame::webHistory):
4135         (WebFrame::dispatchWillSendRequest):
4136         * WebURLAuthenticationChallenge.cpp:
4137         (WebURLAuthenticationChallenge::QueryInterface):
4138         (WebURLAuthenticationChallenge::initWithProtectionSpace):
4139         * WebURLAuthenticationChallenge.h:
4140         * WebURLAuthenticationChallengeSender.cpp:
4141         (WebURLAuthenticationChallengeSender::QueryInterface):
4142         * WebURLAuthenticationChallengeSender.h:
4143         * WebURLResponse.cpp:
4144         (WebURLResponse::QueryInterface):
4145         * WebURLResponse.h:
4146         * WebView.cpp:
4147         (WebView::notifyDidAddIcon):
4148         (WebView::goToBackForwardItem):
4149         (WebView::canHandleRequest):
4150         (WebView::loadBackForwardListFromOtherView):
4151         (core):
4152
4153 2007-11-27  Anders Carlsson  <andersca@apple.com>
4154
4155         Add COMEnumVariant.h to the project.
4156         
4157         * WebKit.vcproj/WebKit.vcproj:
4158
4159 2007-11-27  Anders Carlsson  <andersca@apple.com>
4160
4161         Reviewed by Adam.
4162
4163         Return E_INVALIDARG if the databaseName BSTR is null.
4164         
4165         * WebDatabaseManager.cpp:
4166         (WebDatabaseManager::detailsForDatabaseWithOrigin):
4167         (WebDatabaseManager::deleteDatabaseWithOrigin):
4168
4169 2007-11-27  Anders Carlsson  <andersca@apple.com>
4170
4171         Reviewed by Adam.
4172
4173         Implement the rest of the WebDatabaseManager API.
4174
4175         * COMEnumVariant.h:
4176         * Interfaces/IWebDatabaseManager.idl:
4177         * WebDatabaseManager.cpp:
4178         (isEqual):
4179         (DatabaseDetailsPropertyBag::DatabaseDetailsPropertyBag):
4180         (DatabaseDetailsPropertyBag::~DatabaseDetailsPropertyBag):
4181         (DatabaseDetailsPropertyBag::createInstance):
4182         (DatabaseDetailsPropertyBag::AddRef):
4183         (DatabaseDetailsPropertyBag::Release):
4184         (DatabaseDetailsPropertyBag::QueryInterface):
4185         (DatabaseDetailsPropertyBag::Read):
4186         (DatabaseDetailsPropertyBag::Write):
4187         (WebDatabaseManager::detailsForDatabaseWithOrigin):
4188         (WebDatabaseManager::deleteAllDatabases):
4189         (WebDatabaseManager::deleteDatabasesWithOrigin):
4190         (WebDatabaseManager::deleteDatabaseWithOrigin):
4191         * WebDatabaseManager.h:
4192
4193 2007-11-27  Ada Chan  <adachan@apple.com>
4194
4195         <rdar://problem/5616098> The BSTR returned by WebHistoryItem::alternateTitle
4196         was not allocated correctly.
4197
4198         Reviewed by Anders.
4199
4200         * WebHistoryItem.cpp:
4201         (WebHistoryItem::setAlternateTitle):
4202         (WebHistoryItem::alternateTitle):
4203         * WebHistoryItem.h:
4204
4205 2007-11-27  Anders Carlsson  <andersca@apple.com>
4206
4207         Reviewed by Adam.
4208
4209         Use COMEnumVariant in WebScriptCallFrame and WebScriptScope.
4210         
4211         * WebScriptCallFrame.cpp:
4212         (WebScriptCallFrame::scopeChain):
4213         * WebScriptScope.cpp:
4214         (WebScriptScope::variableNames):
4215
4216 2007-11-27  Anders Carlsson  <andersca@apple.com>
4217
4218         Reviewed by Adam.
4219
4220         Use the correct include paths.
4221         
4222         * COMEnumVariant.h:
4223
4224 2007-11-27  Anders Carlsson  <andersca@apple.com>
4225
4226         Reviewed by Darin.
4227    
4228         Add COMEnumVariant, a templatized class with implements IEnumVARIANT and lets
4229         you enumerate over a C++ container, be it WTF or STL.
4230         
4231         * COMEnumVariant.h: Added.
4232         
4233         * WebDatabaseManager.cpp:
4234         (WebDatabaseManager::origins):
4235         (WebDatabaseManager::databasesWithOrigin):
4236         Implement these using COMEnumVariant.
4237         
4238         * WebSecurityOrigin.cpp:
4239         (WebSecurityOrigin::QueryInterface):
4240         * WebSecurityOrigin.h:
4241         Add a UUID for the implementation so that other parts of WebKit can access
4242         the WebCore::SecurityOriginData object.
4243         
4244 2007-11-26  Adam Roben  <aroben@apple.com>
4245
4246         Take advantage of the new Color constructor that takes a CGColorRef
4247
4248         This lets us handle grayscale colors (which only have 2 components).
4249
4250         Reviewed by Darin.
4251
4252         * WebKitGraphics.cpp:
4253         (DrawTextAtPoint):
4254
4255 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
4256
4257         Build fix.
4258
4259         * WebKit.vcproj/WebKit.make:
4260
4261 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
4262
4263         Build fix.
4264
4265         * WebKit.vcproj/build-generated-files.sh:
4266
4267 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
4268
4269         Build fix.
4270
4271         * WebKit.vcproj/build-generated-files.sh:
4272
4273 2007-11-26  Anders Carlsson  <andersca@apple.com>
4274
4275         Reviewed by Adam.
4276
4277         Add an implementation of IWebSecurityOrigin and a partially stubbed out
4278         implementation of IWebDatabaseManager.
4279         
4280         * ForEachCoClass.h:
4281         * Interfaces/IWebDatabaseManager.idl:
4282         * Interfaces/WebKit.idl:
4283         * WebDatabaseManager.cpp:
4284         (WebDatabaseManager::createInstance):
4285         (WebDatabaseManager::WebDatabaseManager):
4286         (WebDatabaseManager::~WebDatabaseManager):
4287         (WebDatabaseManager::QueryInterface):
4288         (WebDatabaseManager::AddRef):
4289         (WebDatabaseManager::Release):
4290         (WebDatabaseManager::sharedWebDatabaseManager):
4291         (WebDatabaseManager::origins):
4292         (WebDatabaseManager::databasesWithOrigin):
4293         (WebDatabaseManager::detailsForDatabaseWithOrigin):
4294         (WebDatabaseManager::deleteAllDatabases):
4295         (WebDatabaseManager::deleteDatabasesWithOrigin):
4296         (WebDatabaseManager::deleteDatabaseWithOrigin):
4297         * WebDatabaseManager.h:
4298         * WebKit.vcproj/WebKit.vcproj:
4299         * WebKitClassFactory.cpp:
4300         * WebSecurityOrigin.cpp: Added.
4301         (WebSecurityOrigin::createInstance):
4302         (WebSecurityOrigin::WebSecurityOrigin):
4303         (WebSecurityOrigin::~WebSecurityOrigin):
4304         (WebSecurityOrigin::QueryInterface):
4305         (WebSecurityOrigin::AddRef):
4306         (WebSecurityOrigin::Release):
4307         (WebSecurityOrigin::protocol):
4308         (WebSecurityOrigin::domain):
4309         (WebSecurityOrigin::port):
4310         (WebSecurityOrigin::usage):
4311         (WebSecurityOrigin::quota):
4312         (WebSecurityOrigin::setQuota):
4313         * WebSecurityOrigin.h: Added.
4314
4315 2007-11-26  Kevin McCullough  <kmccullough@apple.com>
4316
4317         Reviewed by Maciej.
4318
4319         - Implemented displaying variables for Drosera on Wi