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