1 2008-05-06 Brady Eidson <beidson@apple.com>
3 Reviewed by Darin Adler
5 Preparation for upcoming work making LocalStorage persistent.
7 When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
10 (shutDownWebKit): Close all LocalStorage areas before quitting.
12 2008-05-05 Anders Carlsson <andersca@apple.com>
16 Add preference for enabling the offline web application cache.
18 * Interfaces/IWebPreferencesPrivate.idl:
19 * WebPreferenceKeysPrivate.h:
21 (WebPreferences::initializeDefaultSettings):
22 (WebPreferences::setOfflineWebApplicationCacheEnabled):
23 (WebPreferences::offlineWebApplicationCacheEnabled):
26 (WebView::notifyPreferencesChanged):
28 2008-05-05 Sam Weinig <sam@webkit.org>
30 Reviewed by Tim Hatcher.
32 Make the Inspector's localizable strings file match the format used by Dashboard widgets.
34 * WebCoreSupport/WebInspectorClient.cpp:
35 (WebInspectorClient::localizedStringsURL):
37 2008-05-05 Steve Falkenburg <sfalken@apple.com>
39 Add WebPreference for application chrome mode.
41 Reviewed by Dave Hyatt.
43 * Interfaces/IWebPreferencesPrivate.idl:
44 * WebPreferenceKeysPrivate.h:
46 (WebPreferences::initializeDefaultSettings):
47 (WebPreferences::inApplicationChromeMode):
48 (WebPreferences::setApplicationChromeMode):
51 (WebView::notifyPreferencesChanged):
53 2008-05-02 Alexey Proskuryakov <ap@webkit.org>
55 Reviewed by Geoffrey Garen.
57 https://bugs.webkit.org/show_bug.cgi?id=18826
58 Make JavaScript heap per-thread
60 * WebCoreStatistics.cpp:
61 (WebCoreStatistics::javaScriptObjectsCount):
62 (WebCoreStatistics::javaScriptGlobalObjectsCount):
63 (WebCoreStatistics::javaScriptProtectedObjectsCount):
64 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
65 * WebJavaScriptCollector.cpp:
66 (WebJavaScriptCollector::objectCount):
67 * WebScriptCallFrame.cpp:
68 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
69 Replaced static Collector calls with calls to a current thread's instance. Pass ExecState to jsString().
71 2008-04-29 Ada Chan <adachan@apple.com>
73 Support text shadow in WebDrawText().
74 Remove DrawTextAtPoint() since it is only called by WebDrawText().
78 * WebKit.vcproj/WebKit.def:
79 * WebKit.vcproj/WebKit_debug.def:
84 2008-04-29 Adam Roben <aroben@apple.com>
86 Restore the beloved COMPtr::operator&
88 2008-04-29 Adam Roben <aroben@apple.com>
92 Replaced uses of COMPtr::operator& with COMPtr::adoptionPointer.
94 2008-04-29 Adam Roben <aroben@apple.com>
96 Fix a Windows build error
98 * WebScriptCallFrame.cpp:
99 (WebScriptCallFrame::variableNames): Don't use ::adopt now that
100 PropertyNameArray has no swap function.
102 2008-04-28 Adam Roben <aroben@apple.com>
104 Fix some Windows build errors in WebKit
106 * Interfaces/WebKit.idl: Touched to force Interfaces to rebuild.
107 * WebKitPrefix.cpp: Touched to force WebKit to rebuild.
109 2008-04-25 Alexey Proskuryakov <ap@webkit.org>
113 Fix run-webkit-tests --threading
114 and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
115 Proxy server issue in Sunday's Nightly
117 * WebView.cpp: (WebView::WebView): Initialize threading. Previously, this was only done from
118 icon database code, which is not robust enough.
120 2008-04-26 Adam Barth <hk9565@gmail.com>
122 Reviewed by Adam Roben and Sam Weinig.
124 Renamed "domain" method to "host" to match SecurityOrigin.
126 * Interfaces/IWebSecurityOrigin.idl:
127 * WebSecurityOrigin.cpp:
128 (WebSecurityOrigin::host):
129 * WebSecurityOrigin.h:
131 2008-04-25 Anders Carlsson <andersca@apple.com>
135 Fix internal debug build.
137 * WebKit.vcproj/WebKit.vcproj:
139 2008-04-24 Dan Bernstein <mitz@apple.com>
144 (WebView::handleContextMenuEvent):
146 2008-04-24 Brady Eidson <beidson@apple.com>
150 Revert my previous change to WebKit/Win until I can make it act more like the new Mac code
153 (WebView::initWithFrame):
155 2008-04-24 Anders Carlsson <andersca@apple.com>
159 Change some String arguments to be const references instead.
161 * WebCoreSupport/WebEditorClient.cpp:
162 (WebEditorClient::shouldInsertText):
163 * WebCoreSupport/WebEditorClient.h:
165 2008-04-23 Brady Eidson <beidson@apple.com>
167 Reviewed by Sam Weinig
169 In some current work I noticed that when a new Page is created, it is possible that it requires info from its Settings
170 object before the Settings object is initialized. It seems quite prudent to post the preferences changed notification,
171 thereby populating the Settings object, immediately after the Page is created.
174 (WebView::initWithFrame): Post the notification right after the Page is created
176 2008-04-23 Jon Honeycutt <jhoneycutt@apple.com>
180 Implement accDoDefaultAction().
182 * AccessibleBase.cpp:
183 (AccessibleBase::accDoDefaultAction): Call the object's
184 performDefaultAction() method. Return S_FALSE if the call returns false,
185 indicating that the object has no default action associated with it.
187 2008-04-23 Jon Honeycutt <jhoneycutt@apple.com>
191 Implement accHitTest().
193 * AccessibleBase.cpp:
194 (AccessibleBase::accHitTest): Perform a hit test for a child object. If
195 none is found, report whether the point was within our own bounding box.
197 2008-04-23 Jon Honeycutt <jhoneycutt@apple.com>
199 Reviewed by Adam and Darin.
201 Implement accNavigate().
203 * AccessibleBase.cpp:
204 (AccessibleBase::accNavigate): This method navigates between elements,
205 given a start point and a direction. The directions UP, DOWN, LEFT,
206 RIGHT are not are not implemented, matching Mozilla and IE. The
207 directions FIRSTCHILD and LASTCHILD are only allowed from self. NEXT and
208 PREVIOUS are allowed from self or any of our children.
210 2008-04-23 Jon Honeycutt <jhoneycutt@apple.com>
214 Implement accLocation().
216 * AccessibleBase.cpp:
217 (AccessibleBase::accLocation): Report the screen coordinates for the
218 object's bounding box.
220 2008-04-23 Jon Honeycutt <jhoneycutt@apple.com>
222 Reviewed by Adam, Darin, Oliver.
224 Implement get_accDefaultAction().
226 * AccessibleBase.cpp:
227 (AccessibleBase::get_accDefaultAction): Report the result of calling the
228 object's actionVerb method.
229 * English.lproj/Localizable.strings: Updated with new strings.
230 * WebCoreLocalizedStrings.cpp:
231 (WebCore::AXButtonActionVerb): Return a localized string representing
232 the object's default action.
233 (WebCore::AXRadioButtonActionVerb): Same.
234 (WebCore::AXTextFieldActionVerb): Same.
235 (WebCore::AXCheckedCheckBoxActionVerb): Same
236 (WebCore::AXUncheckedCheckBoxActionVerb): Same.
237 (WebCore::AXLinkActionVerb): Same.
239 2008-04-23 Daniel Zucker <zucker@wake3.com>
241 Reviewed by Adam Roben.
243 <https://bugs.webkit.org/show_bug.cgi?id=18468>
245 * WebError.h: include RetainPtr.h to fix build errors in Cairo build
247 2008-04-23 Daniel Zucker <zucker@wake3.com>
249 Reviewed by Adam Roben.
251 Move the location of #if USE(CFNETWORK) to fix a cairo/curl build error.
252 <https://bugs.webkit.org/show_bug.cgi?id=18470>
255 (WebError::sslPeerCertificate):
257 2008-04-22 Jon Honeycutt <jhoneycutt@apple.com>
261 Implement get_accFocus().
263 * AccessibleBase.cpp:
264 (AccessibleBase::get_accRole): Remove redundant initialization;
265 VariantInit does this.
266 (AccessibleBase::get_accState): Same.
267 (AccessibleBase::get_accSelection): Relocated next to accSelect().
268 (AccessibleBase::get_accFocus): If the focused object is this object or
269 a child of this object, report it. Otherwise, report VT_EMPTY.
271 2008-04-22 Jon Honeycutt <jhoneycutt@apple.com>
275 Implement get_accKeyboardShortcut().
277 * AccessibleBase.cpp:
278 (AccessibleBase::get_accKeyboardShortcut): Report the key combination
279 that will perform the object's access key action, represented as a
282 2008-04-19 Jon Honeycutt <jhoneycutt@apple.com>
286 Implement get_accHelp().
288 * AccessibleBase.cpp:
289 (AccessibleBase::get_accHelp): Report the result of calling the object's
292 2008-04-19 Jon Honeycutt <jhoneycutt@apple.com>
296 Implement get_accState().
298 * AccessibleBase.cpp:
299 (AccessibleBase::get_accState):
301 2008-04-21 Alexey Proskuryakov <ap@webkit.org>
305 Move collector main thread initialization from WebKit/win to KJS::initializeThreading.
310 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
314 Implement get_accRole().
316 * AccessibleBase.cpp:
317 (AccessibleBase::get_accRole): Report the result of role().
318 (MSAARole): Added; returns the MSAA role for a WebCore role.
319 (AccessibleBase::role): Return the MSAA role for the object's roleValue.
320 * AccessibleBase.h: Add declaration for role().
322 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
326 Implement get_accName(), get_accValue(), get_accDescription(). Added
327 virtual methods that accessible objects can override to customize the
330 * AccessibleBase.cpp:
331 (AccessibleBase::get_accName): Report result of name().
332 (AccessibleBase::get_accValue): Report result of value().
333 (AccessibleBase::get_accDescription): Report result of description().
334 (AccessibleBase::name): Added; returns AccessibilityObject::title().
335 (AccessibleBase::value): Added; returns
336 AccessibilityObject::stringValue().
337 (AccessibleBase::description): Added; returns
338 AccessibilityObject::accessibilityDescription().
339 * AccessibleBase.h: Added declarations for name(), value(), and
341 * ChangeLog: Fix my misuse of "definition."
343 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
345 Fix build after r32231.
348 (WebFrame::renderTreeAsExternalRepresentation): renderer() ->
351 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
353 Fix build after r32231.
356 (WebView::paintIntoBackingStore): renderer() -> contentRenderer()
357 (WebView::elementAtPoint): Same.
359 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
361 * AccessibleBase.cpp: Build fix for copy/paste error.
363 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
367 Implement IAccessible::get_accChild().
369 * AccessibleBase.cpp:
370 (AccessibleBase::get_accChild): Call getAccessibilityObjectForChild
371 to find the AccessibilityObject for the VARIANT vChild. Get the
372 AccessibilityObjectWrapper for the child, add a ref, and pass it back.
373 (AccessibleBase::getAccessibilityObjectForChild): Added; finds the
374 AccessibilityObject referred to by a VARIANT, or returns a COM error on
376 (AccessibleBase::wrapper): Added; returns the wrapper for the
377 AccessibilityObject. Creates one if necessary.
378 * AccessibleBase.h: Added declarations for wrapper() and
379 getAccessibilityObjectForChild().
381 2008-04-18 Jon Honeycutt <jhoneycutt@apple.com>
383 Reviewed by Darin, Ollie.
385 * AccessibleBase.cpp:
386 (AccessibleBase::get_accChildCount): Implement get_accChildCount.
388 2008-04-17 Jon Honeycutt <jhoneycutt@apple.com>
392 Implement IAccessible::get_accParent().
394 * AccessibleBase.cpp:
395 (AccessibleBase::get_accParent): Call AccessibleObjectFromWindow with
396 OBJID_WINDOW. This will be handled by Windows to return the default
397 accessible object for the WebView, because we only handle OBJID_CLIENT.
399 (WebView::AccessibleObjectFromWindow): Added; calls through to the
400 AccessibleObjectFromWindow in the MSAA DLL.
401 * WebView.h: Added declaration for AccessibleObjectFromWindow.
403 2008-04-17 Jon Honeycutt <jhoneycutt@apple.com>
407 Return an AccessibleDocument when our root accessible object is queried
410 * AccessibleDocument.cpp: Added; represents an AccessibilityObject that
411 itself represents a Document.
412 (AccessibleDocument::AccessibleDocument): Initialize AccessibleBase with
413 the AccessibilityObject for this Document.
414 * AccessibleDocument.h: Added.
416 (WebFrame::accessible): If m_accessible is 0, or if Document in this
417 frame does not match the Document in the cached m_accessible object,
418 create a new AccessibleDocument for this frame's Document.
419 * WebFrame.h: Swap AccessibleBase.h for AccessibleDocument.h
420 * WebKit.vcproj/WebKit.vcproj: Add AccessibleDocument.{h,cpp}
422 2008-04-17 Jon Honeycutt <jhoneycutt@apple.com>
426 Respond to WM_GETOBJECT messages. Currently returns NULL.
429 (WebFrame::accessible): Added; will return the root accessible object
431 * WebFrame.h: Added declaration for accessible().
433 (WebViewWndProc): Handle WM_GETOBJECT messages by calling onGetObject().
434 (WebView::onGetObject): Added; enables the AXObjectCache in WebCore,
435 queries the top-level frame for its root accessible object, and loads
436 the MSAA DLL and locates its LresultFromObject function. If calling
437 LresultFromObject succeeds, it returns a reference to the accessible
438 object to pass back to Windows. If not, we return false and let Windows
439 handle the request through DefWindowProc.
440 * WebView.h: Added declaration for onGetObject().
442 2008-04-18 Brady Eidson <beidson@apple.com>
444 Reviewed by Sam Weinig
446 Don't clear the PageGroup on _close, as the WebCore::Page destructor already does this.
447 No reason to do the work twice...
452 2008-04-18 Adam Roben <aroben@apple.com>
454 Update WebScriptDebugServer for JavaScriptDebugListener changes
456 Reviewed by Tim Hatcher.
458 * WebScriptDebugServer.cpp: Changed to use KJS::UString instead of
460 * WebScriptDebugServer.h: Ditto.
462 2008-04-16 Jon Honeycutt <jhoneycutt@apple.com>
466 Add a base AccessibilityObject wrapper class. Currently just stubs all
467 of the IAccessible methods.
469 * AccessibleBase.cpp: Added. Implements IAccessible, and inherits from
470 WebCore::AccessibilityObjectWrapper.
471 (AccessibleBase::AccessibleBase): Set the object's wrapper to this
473 (AccessibleBase::~AccessibleBase):
474 (AccessibleBase::createInstance): Create an instance of a wrapper for
475 this AccessibilityObject.
476 (AccessibleBase::QueryInterface):
477 (AccessibleBase::Release):
478 (AccessibleBase::get_accParent):
479 (AccessibleBase::get_accChildCount):
480 (AccessibleBase::get_accChild):
481 (AccessibleBase::get_accName):
482 (AccessibleBase::get_accValue):
483 (AccessibleBase::get_accDescription):
484 (AccessibleBase::get_accRole):
485 (AccessibleBase::get_accState):
486 (AccessibleBase::get_accHelp):
487 (AccessibleBase::get_accKeyboardShortcut):
488 (AccessibleBase::accSelect):
489 (AccessibleBase::get_accFocus):
490 (AccessibleBase::get_accSelection):
491 (AccessibleBase::get_accDefaultAction):
492 (AccessibleBase::accLocation):
493 (AccessibleBase::accNavigate):
494 (AccessibleBase::accHitTest):
495 * AccessibleBase.h: Added.
496 (AccessibleBase::AddRef):
497 (AccessibleBase::put_accName):
498 (AccessibleBase::put_accValue):
499 (AccessibleBase::get_accHelpTopic):
500 (AccessibleBase::GetTypeInfoCount):
501 (AccessibleBase::GetTypeInfo):
502 (AccessibleBase::GetIDsOfNames):
503 (AccessibleBase::Invoke):
504 (AccessibleBase::detach): Detach this wrapper from its object.
505 * WebKit.vcproj/WebKit.vcproj:
507 2008-04-15 Anders Carlsson <andersca@apple.com>
511 Add ENABLE_OFFLINE_WEB_APPLICATIONS to FEATURE_DEFINES.
513 * WebKit.vcproj/WebKit.vcproj:
515 2008-04-12 Matt Lilek <webkit@mattlilek.com>
517 Not reviewed, build fix.
520 (WebView::paintDocumentRectToContext):
522 2008-04-11 Steve Falkenburg <sfalken@apple.com>
526 Made this code match the Mac.
528 Reviewed by Mark Rowe.
531 (PreferencesChangedOrRemovedObserver::notifyPreferencesChanged):
533 2008-04-11 Adam Roben <aroben@apple.com>
535 * ForEachCoClass.h: Added a deprecation notice.
537 2008-04-11 Adam Roben <aroben@apple.com>
539 Fix Bug 18376: r31733 and 27 don't work w/Safari 3.1
541 <https://bugs.webkit.org/show_bug.cgi?id=18376>
543 Rubberstamped by Steve.
545 * ForEachCoClass.h: Move post-3.1 classes to the end of the
546 FOR_EACH_COCLASS macro so that pre-3.1 classes will be in the place
547 Safari expects them to be. We will soon be deprecating
548 setUseOpenSourceWebKit/progIDForClass because it is clearly very
551 2008-04-10 Ada Chan <adachan@apple.com>
553 Added WebCoreStatistics that provides stats on Javascript objects
556 Changed WebCache::statistics() to additionally return xsl stylesheets data
557 and data on live sizes and decoded sizes.
562 * Interfaces/IWebCoreStatistics.idl: Added.
563 * Interfaces/WebKit.idl:
565 (WebCache::statistics):
566 * WebCoreStatistics.cpp: Added.
567 (WebCoreStatistics::WebCoreStatistics):
568 (WebCoreStatistics::~WebCoreStatistics):
569 (WebCoreStatistics::createInstance):
570 (WebCoreStatistics::QueryInterface):
571 (WebCoreStatistics::AddRef):
572 (WebCoreStatistics::Release):
573 (WebCoreStatistics::javaScriptObjectsCount):
574 (WebCoreStatistics::javaScriptGlobalObjectsCount):
575 (WebCoreStatistics::javaScriptProtectedObjectsCount):
576 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
577 (WebCoreStatistics::iconPageURLMappingCount):
578 (WebCoreStatistics::iconRetainedPageURLCount):
579 (WebCoreStatistics::iconRecordCount):
580 (WebCoreStatistics::iconsWithDataCount):
581 * WebCoreStatistics.h: Added.
582 * WebKit.vcproj/WebKit.vcproj:
583 * WebKitClassFactory.cpp:
585 2008-04-09 Steve Falkenburg <sfalken@apple.com>
587 Delete backing store (after a delay) when a WebView's top-level parent becomes inactive.
589 Reviewed by Brady Eidson.
592 (WebView::windowReceivedMessage):
594 2008-04-08 Adam Roben <aroben@apple.com>
596 Export callOnMainThread from WebKit.dll
598 Rubberstamped by Anders.
600 * WebKit.vcproj/WebKit.def:
601 * WebKit.vcproj/WebKit_debug.def:
603 2008-04-08 Adam Roben <aroben@apple.com>
605 Move callOnMainThread to WTF
607 Reviewed by Alexey Proskuryakov.
609 * WebIconDatabase.cpp: Updated #include
611 2008-04-08 Steve Falkenburg <sfalken@apple.com>
613 Add missing increment/decrement COM class counts to detect leaks.
615 Reviewed by Adam Roben.
617 * CFDictionaryPropertyBag.cpp:
618 (CFDictionaryPropertyBag::CFDictionaryPropertyBag):
619 (CFDictionaryPropertyBag::~CFDictionaryPropertyBag):
620 * CFDictionaryPropertyBag.h:
621 * HTTPHeaderPropertyBag.cpp:
622 (HTTPHeaderPropertyBag::HTTPHeaderPropertyBag):
623 (HTTPHeaderPropertyBag::~HTTPHeaderPropertyBag):
624 * HTTPHeaderPropertyBag.h:
625 * WebActionPropertyBag.cpp:
626 (WebActionPropertyBag::WebActionPropertyBag):
627 (WebActionPropertyBag::~WebActionPropertyBag):
628 * WebDocumentLoader.cpp:
629 (WebDocumentLoader::WebDocumentLoader):
630 (WebDocumentLoader::~WebDocumentLoader):
632 (WebDropSource::WebDropSource):
633 (WebDropSource::~WebDropSource):
635 * WebElementPropertyBag.cpp:
636 (WebElementPropertyBag::WebElementPropertyBag):
637 (WebElementPropertyBag::~WebElementPropertyBag):
638 * WebTextRenderer.cpp:
639 (WebTextRenderer::WebTextRenderer):
640 (WebTextRenderer::~WebTextRenderer):
642 2008-04-07 Brady Eidson <beidson@apple.com>
644 Reviewed by John Honeycutt
646 ENABLE_DOM_STORAGE for Windows
648 * WebKit.vcproj/WebKit.vcproj:
650 2008-04-04 Adam Roben <aroben@apple.com>
652 Export some more WTF functions from WebKit.dll
654 Reviewed by Alexey Proskuryakov.
656 * WebKit.vcproj/WebKit.def:
657 * WebKit.vcproj/WebKit_debug.def:
659 2008-04-04 Steve Falkenburg <sfalken@apple.com>
661 Only delete the backing store of background windows.
663 Reviewed by Ada Chan.
667 (WebView::deleteBackingStore):
668 (WebView::paint): Added active check.
669 (WebView::deleteBackingStoreSoon):
670 (WebView::cancelDeleteBackingStoreSoon): Added.
671 (WebView::active): Added.
672 (WebView::updateActiveState): Moved active check code from here to active().
675 2008-04-04 Steve Falkenburg <sfalken@apple.com>
677 Fix tooltip window leak.
679 Explicitly call DestroyWindow on the tooltip.
680 Destroying its parent won't destroy the tooltip, since it not a WS_CHILD style window.
682 Reviewed by Ada Chan.
687 2008-04-04 Steve Falkenburg <sfalken@apple.com>
689 Delete backing store after we go 5 seconds without a paint.
691 Timer will be reset if a paint occurs, so this won't negatively impact performance.
693 Reviewed by Ada Chan.
696 (WebView::paint): Call deleteBackingStoreSoon after paint.
697 (WebViewWndProc): Add DeleteBackingStoreTimer.
698 (WebView::deleteBackingStoreSoon): Added.
699 * WebView.h: Add deleteBackingStoreSoon.
701 2008-04-04 Ada Chan <adachan@apple.com>
703 <rdar://problem/5830598> Image file opened in the browser window shows "Localized String Not Found' in window's title bar instead file name
704 Save WebCoreLocalizedStrings.cpp with UTF8 encoding.
705 Changed the format string to take in integers.
709 * English.lproj/Localizable.strings: Updated.
710 * WebCoreLocalizedStrings.cpp:
711 (WebCore::imageTitle):
713 2008-04-03 Dan Bernstein <mitz@apple.com>
715 Reviewed by Dave Hyatt.
717 - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
718 font-weight does not properly support graded weights
720 * DOMCoreClasses.cpp:
721 (DOMElement::font): Updated for the change to FontDescription.
722 * WebCoreSupport/WebDragClient.cpp:
723 (dragLabelFont): Ditto.
724 * WebKitGraphics.cpp:
726 * WebKitGraphics.h: Added a FIXME.
728 2008-04-03 Steve Falkenburg <sfalken@apple.com>
730 <rdar://problem/5835382> Calling window.open immediately after window.close can sometimes result in no window being created
732 Group name tracking needs to happen using code in WebCore::Page, since it is more involved than
733 just setting a string.
735 Reviewed by Adam Roben.
738 (WebView::close): Add null check (found via code inspection).
739 (WebView::initWithFrame): Store the group name directly in Page.
740 (WebView::setGroupName): Store the group name directly in Page.
741 (WebView::groupName): Retrieve the group name directly from Page.
742 * WebView.h: Removed m_groupName
744 2008-04-03 Simon Hausmann <hausmann@webkit.org>
746 Reviewed by Mark Rowe.
748 Roll out r31599 and r31605 again after discussion with Mark Rowe.
750 * WebIconDatabase.cpp:
751 (WebIconDatabase::iconForURL):
753 2008-04-03 Simon Hausmann <hausmann@webkit.org>
757 * WebIconDatabase.cpp:
758 (WebIconDatabase::iconForURL): Adjust to changed iconForPageURL
761 2008-04-03 Ada Chan <adachan@apple.com>
763 Allow WebArchive to be created via COM.
764 Replaced IID_DOMNode with __uuidof(DOMNode).
766 Reviewed by Adam and Steve.
768 * DOMCoreClasses.cpp:
769 (DOMNode::QueryInterface):
770 (DOMNode::isSameNode):
773 * Interfaces/WebKit.idl:
775 (WebArchive::createInstance):
777 * WebKitClassFactory.cpp:
779 2008-04-01 Brady Eidson <beidson@apple.com>
781 Reviewed by Jon Honeycutt and Cake
783 Hookup WebArchive API enough to be able to save the archive of a DOMNode
785 * DOMCoreClasses.h: Add a GUID for DOMNode
787 * Interfaces/IWebArchive.idl: Add initWithNode()
790 (WebArchive::initWithNode):
791 (WebArchive::data): Actually return LegacyWebArchive-style data
794 2008-04-01 Brady Eidson <beidson@apple.com>
796 Reviewed by Adam Roben
798 Add empty implementations of WebArchive for future work
800 * WebArchive.cpp: Added.
801 (WebArchive::createInstance):
802 (WebArchive::WebArchive):
803 (WebArchive::~WebArchive):
804 (WebArchive::QueryInterface):
805 (WebArchive::AddRef):
806 (WebArchive::Release):
807 (WebArchive::initWithMainResource):
808 (WebArchive::initWithData):
809 (WebArchive::mainResource):
810 (WebArchive::subResources):
811 (WebArchive::subframeArchives):
813 * WebArchive.h: Added.
815 * WebKit.vcproj/WebKit.vcproj:
817 2008-03-29 Adam Roben <aroben@apple.com>
819 Rename IWebViewPrivate::addAdditionalPluginPath to
820 addAdditionalPluginDirectory
822 Reviewed by Mitz Pettel.
824 * Interfaces/IWebViewPrivate.idl:
825 * Interfaces/WebKit.idl: Touched to make sure the Interfaces project
828 (WebView::addAdditionalPluginDirectory):
831 2008-03-26 Brent Fulgham <bfulgham@gmail.com>
833 Reviewed by Adam Roben.
835 Add necessary files and build commands to vcproj files to
836 build a Curl-based Windows WebKit. For details, see
837 http://bugs.webkit.org/show_bug.cgi?id=17985
839 * WebKit.vcproj/WebKit.vcproj:
841 2008-03-25 Adam Roben <aroben@apple.com>
845 * WebKit.vcproj/WebKit.sln: Make testapi build after most other
848 2008-03-25 Adam Roben <aroben@apple.com>
850 Fix Bug 18077: Integrate testapi.c into the Windows build
852 <http://bugs.webkit.org/show_bug.cgi?id=18077>
854 Reviewed by Steve Falkenburg.
856 * WebKit.vcproj/WebKit.sln: Added testapi.vcproj to the solution.
858 2008-03-25 Brady Eidson <beidson@apple.com>
862 Remove newly obsolete FrameLoaderClient methods
867 2008-03-25 Darin Adler <darin@apple.com>
871 * Interfaces/WebKit.idl: Touch this file to make the Interface project rebuild.
873 2008-03-21 Ada Chan <adachan@apple.com>
875 <rdar://problem/5810324> visitCount not updated in History.plist
876 Call WebCore::HistoryItem::mergeAutoCompleteHints() in WebHistoryItem::mergeAutoCompleteHints().
880 * WebHistoryItem.cpp:
881 (WebHistoryItem::mergeAutoCompleteHints):
882 (WebHistoryItem::QueryInterface):
884 2008-03-20 Dan Bernstein <mitz@apple.com>
886 Reviewed by Adam Roben.
888 - make makeTextLarger() and zoomPageIn() do what they are supposed to do
891 (WebView::makeTextLarger): Changed call to canZoomIn() to zoomIn().
892 (WebView::zoomPageIn): Ditto.
894 2008-03-20 Dave Hyatt <hyatt@apple.com>
896 Add full page zoom API for Windows WebKit.
900 * Interfaces/IWebView.idl:
903 (WebView::setTextSizeMultiplier):
904 (WebView::setPageSizeMultiplier):
905 (WebView::setZoomMultiplier):
906 (WebView::textSizeMultiplier):
907 (WebView::pageSizeMultiplier):
908 (WebView::zoomMultiplier):
909 (WebView::canMakeTextLarger):
910 (WebView::canZoomPageIn):
911 (WebView::canZoomIn):
912 (WebView::makeTextLarger):
913 (WebView::zoomPageIn):
915 (WebView::canMakeTextSmaller):
916 (WebView::canZoomPageOut):
917 (WebView::canZoomOut):
918 (WebView::makeTextSmaller):
919 (WebView::zoomPageOut):
921 (WebView::canMakeTextStandardSize):
922 (WebView::canResetPageZoom):
923 (WebView::canResetZoom):
924 (WebView::makeTextStandardSize):
925 (WebView::resetPageZoom):
926 (WebView::resetZoom):
929 2008-03-20 John Sullivan <sullivan@apple.com>
931 * English.lproj/Localizable.strings:
932 Brought this file up to date
934 2008-03-19 Dan Bernstein <mitz@apple.com>
938 * Interfaces/WebKit.idl: Touched.
940 2008-03-19 Adam Roben <aroben@apple.com>
942 Fix a couple of bugs where the node highlight would appear when it shouldn't
944 There were at least two ways you could get the highlight to appear
946 1) Selecting a node in the Inspector while the inspected WebView was
948 2) Selecting a node in the Inspector, switching to another tab,
949 closing the Inspector, then switching back to the inspected
952 This patch fixes the above two issues, and possibly others.
954 show() and hide() are now private methods of WebNodeHighlight. They
955 are replaced by a single public method,
956 setShowsWhileWebViewIsVisible(bool). WebInspectorClient uses this to
957 tell the highlight whether it should be showing when the inspected
960 Reviewed by John Sullivan.
962 * WebCoreSupport/WebInspectorClient.cpp:
963 (WebInspectorClient::highlight): If the highlight is already showing,
964 it just needs to update since the highlighted node has changed. If the
965 highlight is not showing, call setShowsWhileWebViewIsVisible(true) so
966 that the highlight will show when the WebView is shown.
967 (WebInspectorClient::hideHighlight): Changed to call
968 setShowsWhileWebViewIsVisible(false) instead of hide().
969 * WebNodeHighlight.cpp:
970 (WebNodeHighlight::WebNodeHighlight): Initialize new member, and
971 initialize m_inspectedWebViewWindow to its final value here instead of
973 (WebNodeHighlight::setShowsWhileWebViewIsVisible): Added. If we're not
974 supposed to show ourselves when the WebView is visible, we hide
975 ourselves and return. Otherwise, we make our visibility match the
977 (WebNodeHighlight::isWebViewVisible): Added.
978 (WebNodeHighlight::show): Removed initialization of
979 m_inspectedWebViewWindow (this is now done by our constructor). Added
980 an assertion that we're supposed to show ourselves when the WebView is
982 (WebNodeHighlight::onWebViewShowWindow): If we shouldn't show
983 ourselves when the WebView is visible, then we don't need to do
984 anything at all when the WebView's visibility changes.
985 * WebNodeHighlight.h:
987 2008-03-19 Adam Roben <aroben@apple.com>
989 Small WebNodeHighlight cleanup
991 Renamed the following methods:
992 visible() -> isShowing()
993 updateWindow() -> update()
995 Removed the window() method.
997 Added a new method, placeBehindWindow(HWND), that moves the highlight
998 overlay in the window z-order to be just behind the passed-in window.
999 WebInspectorClient calls this instead of doing the move directly using
1000 the old window() method.
1002 Reviewed by John Sullivan.
1004 * WebCoreSupport/WebInspectorClient.cpp:
1005 (WebInspectorClient::attachWindow):
1006 (WebInspectorClient::detachWindow):
1007 (WebInspectorClient::highlight): Call placeBehindWindow instead of
1008 calling SetWindowPos directly.
1009 * WebNodeHighlight.cpp:
1010 (WebNodeHighlight::show):
1011 (WebNodeHighlight::isShowing):
1012 (WebNodeHighlight::placeBehindWindow): Added. Code came from
1013 WebInspectorClient::highlight.
1014 (WebNodeHighlight::onWebViewWindowPosChanged):
1015 (WebNodeHighlight::onRootWindowPosChanged):
1016 * WebNodeHighlight.h:
1018 2008-03-19 Ada Chan <adachan@apple.com>
1020 Added a method to paint WebView content specified by
1021 the document rect into a device context.
1025 * Interfaces/IWebViewPrivate.idl:
1027 (WebView::paintDocumentRectToContext):
1030 2008-03-18 Brent Fulgham <bfulgham@gmail.com>
1032 Reviewed by Adam Roben.
1034 Provide some stub implementations for things that WebKit
1035 uses for performing authentication/challenge activities. This
1036 is in support of http://bugs.webkit.org/show_bug.cgi?id=17837
1038 * WebDataSource.cpp:
1039 * WebError.cpp: Conditionalize CFNetwork-specific logic
1040 * WebURLAuthenticationChallenge.cpp: Conditionalize constructor
1041 for authentication/challenge member.
1042 (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
1043 * WebURLResponse.cpp: Remove CFNetwork-specific logic.
1044 * WebURLResponse.h: Conditionalize CFNetwork-specific member.
1045 * WebView.cpp: Conditionalize CFNetwork-specific network protocol test.
1046 (WebView::canHandleRequest):
1048 2008-03-18 Adam Roben <aroben@apple.com>
1050 Focus the Inspector's WebView whenever the Inspector window is focused
1054 * WebCoreSupport/WebInspectorClient.cpp:
1055 (WebInspectorClient::onSetFocus): Send focus to the WebView.
1056 (WebInspectorWndProc): Added a handler for WM_SETFOCUS.
1057 * WebCoreSupport/WebInspectorClient.h:
1059 2008-03-18 Adam Roben <aroben@apple.com>
1061 Fix Bug 14276: Element highlight also covers Web inspector
1063 <http://bugs.webkit.org/show_bug.cgi?id=14276>
1066 Also fixes <rdar://5622837> Browser window comes to front when node
1067 highlight appears, potentially blocking Inspector
1071 * WebCoreSupport/WebInspectorClient.cpp:
1072 (WebInspectorClient::highlight): After showing the highlight,
1073 reposition it just behind the Inspector's window.
1074 * WebNodeHighlight.cpp:
1075 (WebNodeHighlight::show):
1076 - Changed flags passed to CreateWindowEx to not specify WS_VISIBLE.
1077 This is not needed because we'll show the window later in this
1079 - Removed call to SetWindowPos that tried to position the overlay
1080 just in front of the WebView. This is now handled by
1082 - Changed call to ShowWindow to use SetWindowPos so that we can pass
1083 SWP_NOACTIVATE. This prevents the highlight from jumping in front
1084 of the Inspector every time it's shown.
1085 * WebNodeHighlight.h: Added a method to get the highlight's HWND.
1087 2008-03-14 Steve Falkenburg <sfalken@apple.com>
1091 * WebKit.vcproj/WebKit.vcproj:
1093 2008-03-13 Adam Roben <aroben@apple.com>
1095 Another Windows build fix after r31034
1098 (loadResourceIntoBuffer): Use SharedBuffer::create.
1100 2008-03-13 Adam Roben <aroben@apple.com>
1102 Windows build fix after r31034
1105 (WebFrame::loadData): Use SharedBuffer::create.
1106 (WebFrame::loadHTMLString): Ditto.
1108 2008-03-13 Steve Falkenburg <sfalken@apple.com>
1110 More PGO build fixes.
1112 * WebKit.vcproj/WebKit.pgd: Removed.
1113 * WebKit.vcproj/WebKit.vcproj:
1116 2008-03-13 Anders Carlsson <andersca@apple.com>
1120 Call originalRequest instead of initialRequest.
1122 * WebDataSource.cpp:
1123 (WebDataSource::initialRequest):
1125 2008-03-13 Steve Falkenburg <sfalken@apple.com>
1129 Disable PGO for normal release builds.
1130 Added work-in-progress Release_PGOInstrument/Release_PGOOptimize targets.
1132 * WebKit.vcproj/WebKit.vcproj:
1134 2008-03-12 Steve Falkenburg <sfalken@apple.com>
1138 * WebKit.vcproj/WebKit.vcproj:
1140 2008-03-12 Ada Chan <adachan@apple.com>
1142 <rdar://problem/5795843>
1143 CFURLDownload needs to be cancelled if we don't have a destination path
1144 to save resume information.
1149 (WebDownload::cancelForResume):
1151 2008-03-12 David Hyatt <hyatt@apple.com>
1153 Make the zoom factor a float and not a percent.
1158 (WebFrame::setTextSizeMultiplier):
1160 2008-03-12 Steve Falkenburg <sfalken@apple.com>
1164 * WebKit.vcproj/WebKit.pgd:
1165 * WebKit.vcproj/WebKit.vcproj:
1167 2008-03-12 Steve Falkenburg <sfalken@apple.com>
1171 Rubber stamped by Mark Rowe.
1173 * WebKit.vcproj/WebKit.pgd:
1174 * WebKit.vcproj/WebKit.vcproj:
1175 * WebKitPrefix.cpp: touched this file to force a re-build.
1177 2008-03-12 Steve Falkenburg <sfalken@apple.com>
1181 * WebKit.vcproj/WebKit.vcproj:
1183 2008-03-11 Steve Falkenburg <sfalken@apple.com>
1185 Use PGO to build WebKit.dll.
1189 * WebKit.vcproj/WebKit.pgd: Added.
1190 * WebKit.vcproj/WebKit.vcproj:
1192 2008-03-11 Brent Fulgham <bfulgham@gmail.com>
1194 Reviewed by Adam Roben.
1196 Enabled WinLauncher as part of normal Windows build.
1197 http://bugs.webkit.org/show_bug.cgi?id=17715.
1199 * WebKit.vcproj/WebKit.sln: Add WinLauncher to the set of things
1200 build during a Windows build.
1202 2008-03-11 Adam Roben <aroben@apple.com>
1204 Roll out r30961 since it broke the default site icon on Windows
1206 * WebKit.vcproj/WebKit.rc:
1207 * WebKit.vcproj/urlIcon.png: Renamed from WebCore/Resources/urlIcon.png.
1209 (loadResourceIntoBuffer):
1211 2008-03-11 Holger Hans Peter Freyther <zecke@selfish.org>
1215 r25512 inlined the urlIcon to improve the startup time of Safari on Mac. Inlining is
1216 not suitable for platforms where this icon is themable. E.g. the Qt platform is allowing
1217 to theme this icon and the Gtk+ platform will probably end up with themable icons
1220 Remove dead code from the windows port and move the urlIcon from the windows
1221 directory to the Resource directory to be used by Qt and other ports.
1223 Ifdef the usage of the built-in icon in IconDatabase.cpp and for Qt do not use
1224 it. Gtk+ currently has no proper implementation of Image::loadPlatformResource but
1225 once it does it wants to use this for getting the urlIcon as well.
1227 * WebKit.vcproj/WebKit.rc:
1229 (loadResourceIntoBuffer):
1231 2008-03-10 Eric Seidel <eric@webkit.org>
1233 No review, build fix only.
1235 Speculative fix for Windows build, use ::UChar instead of KJS::UChar
1237 * WebScriptCallFrame.cpp:
1238 (WebScriptCallFrame::valueForVariable):
1239 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
1241 2008-03-10 Steve Falkenburg <sfalken@apple.com>
1243 Fix build break caused by r30920.
1245 Serialize remaining dependent builds by adding dependencies.
1246 Visual Studio per-vcproj parallelization doesn't add a lot of value
1247 since so many of our builds are dependent - this just enforces that.
1248 We do our parallelization via pdevenv, which works much better.
1250 * WebKit.vcproj/WebKit.sln:
1251 * WebKit.vcproj/WebKit.submit.sln:
1253 2008-03-09 Steve Falkenburg <sfalken@apple.com>
1255 Stop Windows build if an error occurs in a prior project.
1257 Rubber stamped by Darin.
1259 * WebKit.vcproj/Interfaces.vcproj:
1260 * WebKit.vcproj/InterfacesGenerated.vcproj:
1261 * WebKit.vcproj/WebKit.vcproj:
1262 * WebKit.vcproj/WebKitGUID.vcproj:
1264 2008-03-09 Adam Roben <aroben@apple.com>
1266 Make WebInspectorClient use WindowMessageBroadcaster instead of manual subclassing
1270 * WebCoreSupport/WebInspectorClient.cpp:
1271 (WebInspectorClient::WebInspectorClient): Removed
1272 m_orignalWebViewWndProc member.
1273 (WebInspectorClient::attachWindow): Register as a listener with
1274 WindowMessageBroadcaster instead of subclassing.
1275 (WebInspectorClient::detachWindow): Deregister as a listener with
1276 WindowMessageBroadcaster instead of unsubclassing.
1277 (WebInspectorClient::windowReceivedMessage): Renamed from
1278 SubclassedWebViewWndProc. Also added a missing break statement after
1279 the call to onWebViewWindowPosChanging.
1280 * WebCoreSupport/WebInspectorClient.h:
1282 2008-03-09 Adam Roben <aroben@apple.com>
1284 Make the node highlight not obscure the tab bar when it first appears
1288 * WebNodeHighlight.cpp:
1289 (WebNodeHighlight::onWebViewWindowPosChanged): Added. Listens for
1290 changes to the WebView's size and resizes the highlight window to
1292 (WebNodeHighlight::onRootWindowPosChanged): Added. Listens for changes
1293 to the WebView's root window's position and moves the highlight window
1295 (WebNodeHighlight::windowReceivedMessage): Call
1296 onWebViewWindowPosChanged/onRootWindowPosChanged as appropriate.
1297 * WebNodeHighlight.h:
1299 2008-03-09 Adam Roben <aroben@apple.com>
1301 Fix Bug 14254: Inspector node highlight applied to all tabs
1303 <http://bugs.webkit.org/show_bug.cgi?id=14254>
1304 <rdar://problem/5322306>
1306 WebNodeHighlight now listens for the WM_SHOWWINDOW message being sent
1307 to the inspected WebView so that it can hide/show itself as the
1308 WebView is hidden/shown.
1312 * WebNodeHighlight.cpp:
1313 (WebNodeHighlight::~WebNodeHighlight): Remove ourselves as a listener
1314 for our inspected WebView's window's messages.
1315 (WebNodeHighlight::show): Add ourselves as a listener for our
1316 inspected WebView's window's messages.
1317 (WebNodeHighlight::onWebViewShowWindow): Added. Hide ourselves when
1318 the WebView hides, show ourselves when the WebView is shown.
1319 (WebNodeHighlight::windowReceivedMessage): Added a separate switch
1320 statement to handle the inspected WebView's window's messages.
1321 * WebNodeHighlight.h:
1323 2008-03-07 Brent Fulgham <bfulgham@gmail.com>
1325 Reviewed by Mark Rowe.
1327 Correct build intermediary output
1328 (http://bugs.webkit.org/show_bug.cgi?id=17713)
1330 * WebKit/win/WebKit.vcproj/WebKit.vcproj: Correct output and intermediary paths
1332 2008-03-07 Brent Fulgham <bfulgham@gmail.com>
1334 Reviewed by Adam Roben.
1336 Do not link (or attempt to initialize) the SafariTheme.dll
1337 when not building with USE(SAFARI_THEME) enabled.
1338 (http://bugs.webkit.org/show_bug.cgi?id=17707)
1340 * WebKit/win/WebKitClassFactory.cpp: Conditionalize use of SafariTheme.dll
1342 2008-03-07 Brent Fulgham <bfulgham@gmail.com>
1344 Reviewed by Steve Falkenburg.
1346 Update solution to understand Cairo build target. Add
1347 library dependencies for Cairo build target.
1348 (http://bugs.webkit.org/show_bug.cgi?id=17300)
1350 * WebKit.vcproj/WebKit.sln:
1351 * WebKit.vcproj/WebKit.vcproj:
1353 2008-03-06 Adam Roben <aroben@apple.com>
1355 Change WebScriptDebugServer to use WebCore::JavaScriptDebugServer
1357 WebScriptDebugServer is now a JavaScriptDebugListener.
1361 * WebScriptDebugServer.cpp:
1362 (WebScriptDebugServer::WebScriptDebugServer): Removed initialization
1363 of m_callingListeners member.
1364 (WebScriptDebugServer::addListener): Register as a listener with
1365 JavaScriptDebugServer if we've just added our first listener.
1366 (WebScriptDebugServer::removeListener): Deregister as a listener with
1367 JavaScriptDebugServer if we've just removed our last listener.
1368 (WebScriptDebugServer::didParseSource): Added. Code came from the old
1369 sourceParsed method. Removed m_callingListeners code because
1370 JavaScriptDebugServer guards against re-entry for us.
1371 (WebScriptDebugServer::failedToParseSource): Ditto.
1372 (WebScriptDebugServer::didEnterCallFrame): Ditto for callEvent.
1373 (WebScriptDebugServer::willExecuteStatement): Ditto for atStatement.
1374 (WebScriptDebugServer::willLeaveCallFrame): Ditto for
1376 (WebScriptDebugServer::exceptionWasRaised): Ditto for exception.
1377 * WebScriptDebugServer.h: Changed to inherit from
1378 WebCore::JavaScriptDebugListener.
1380 (WebView::initWithFrame): Removed call to
1381 WebScriptDebugServer::pageCreated. This is now handled by WebCore.
1383 2008-03-06 Darin Adler <darin@apple.com>
1387 - fix regression test failures and crashes from the visited-link change
1389 * WebCoreSupport/WebChromeClient.cpp:
1390 (WebChromeClient::populateVisitedLinks): Check for null before calling
1391 addVisitedLinksToPageGroup.
1392 * WebCoreSupport/WebFrameLoaderClient.cpp:
1393 (WebFrameLoaderClient::updateGlobalHistory): Ditto.
1395 (WebHistory::setOptionalSharedHistory): Call PageGroup::setShouldTrackVisitedLinks
1396 to turn off visited links if there is no history object. Also call
1397 removeAllVisitedLinks so we can start over from scratch with the new history.
1399 2008-03-06 Matt Lilek <webkit@mattlilek.com>
1401 Reviewed by Adam Roben.
1403 Bug 17691: REGRESSION: FindSafari doesn't work
1404 http://bugs.webkit.org/show_bug.cgi?id=17691
1406 Swap my change from r30394 to use the Release libraries instead of Debug
1407 since some machines don't have the Debug version.
1409 * WebKit.vcproj/WebKit.sln:
1411 2008-03-06 Darin Adler <darin@apple.com>
1415 - fix http://bugs.webkit.org/show_bug.cgi?id=17526
1416 REGRESSION: iframes are added to Safari's History menu
1417 by separating the visited link machinery from global history
1419 * WebCoreSupport/WebChromeClient.cpp:
1420 (WebChromeClient::populateVisitedLinks): Added a call to the new
1421 WebHistory::addVisitedLinksToPageGroup function.
1422 * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks.
1423 Also fixed the webView function to be non-virtual.
1425 * WebCoreSupport/WebFrameLoaderClient.cpp:
1426 (WebFrameLoaderClient::updateGlobalHistory): Changed to use the
1427 new WebHistory::addItem function.
1428 (WebFrameLoaderClient::webHistory): Changed to return a WebHistory*,
1429 there's no reason to AddRef the result from this function.
1430 * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
1432 * WebHistory.cpp: Removed IWebHistoryPrivate and _WebCoreHistoryProvider.
1433 (WebHistory::QueryInterface): Removed IWebHistoryPrivate.
1434 (sharedHistoryStorage): Added.
1435 (WebHistory::sharedHistory): Added.
1436 (WebHistory::optionalSharedHistory): Changed to use sharedHistory().
1437 (WebHistory::setOptionalSharedHistory): Changed to require a WebHistory
1438 object, not just an IWebHistory.
1439 (WebHistory::removeAllItems): Call PageGroup::removeAllVisitedLinks.
1440 (WebHistory::addItem): Changed parameter types since this is called with
1441 arguments from WebCore -- at some point this could allow better efficiency.
1442 (WebHistory::removeItemForURLString): Call PageGroup::removeAllVisitedLinks
1443 if the last URL is being removed.
1444 (addVisitedLinkToPageGroup): Added. Helper. Adds a single link to a group's
1446 (WebHistory::addVisitedLinksToPageGroup): Added. Adds all links to a group's
1448 * WebHistory.h: Removed IWebHistoryPrivate. Removed optionalSharedHistoryInternal
1449 and added sharedHistory. Replaced addItemForURL and containsItemForURLString with
1450 non-virtual addItem and addVisitedLinksToPageGroup functions.
1452 2008-03-05 Anders Carlsson <andersca@apple.com>
1456 * WebKit.vcproj/WebKit.vcproj:
1458 2008-03-04 Sam Weinig <sam@webkit.org>
1460 Reviewed by Mark Rowe.
1462 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
1467 2008-03-04 Adam Roben <aroben@apple.com>
1469 WebScriptDebugServer cleanup
1473 * WebScriptDebugServer.cpp: Renamed m_callingServer to
1475 (WebScriptDebugServer::WebScriptDebugServer):
1476 (WebScriptDebugServer::sharedWebScriptDebugServer): Changed to keep
1477 the shared instance as a function-level static.
1478 (WebScriptDebugServer::didLoadMainResourceForDataSource): Made return
1480 (WebScriptDebugServer::sourceParsed):
1481 (WebScriptDebugServer::callEvent):
1482 (WebScriptDebugServer::atStatement):
1483 (WebScriptDebugServer::returnEvent):
1484 (WebScriptDebugServer::exception):
1485 (WebScriptDebugServer::serverDidDie): Made return void.
1486 * WebScriptDebugServer.h:
1487 - Removed unnecessary #includes
1488 - Made inheritance from KJS::Debugger private
1489 - Made some methods private
1491 2008-03-04 Adam Roben <aroben@apple.com>
1493 Remove WebScriptDebugger
1497 * WebKit.vcproj/WebKit.vcproj: Removed files from project.
1498 * WebScriptDebugServer.cpp:
1499 (frame): Moved here from WebScriptDebugger.cpp.
1502 (WebScriptDebugServer::WebScriptDebugServer): Initialize new member.
1503 * WebScriptDebugServer.h: Changed to inherit directly from
1504 KJS::Debugger instead of from WebScriptDebugger, and added
1505 m_callingServer member that WebScriptDebugger used to own.
1506 * WebScriptDebugger.cpp: Removed.
1507 * WebScriptDebugger.h: Removed.
1509 2008-03-04 Adam Roben <aroben@apple.com>
1511 Move sourceParsed to WebScriptDebugServer
1515 * WebScriptDebugServer.cpp:
1516 (WebScriptDebugServer::sourceParsed): Moved here from
1517 WebScriptDebugger and merged with didParseSource/failedToParseSource.
1518 * WebScriptDebugServer.h: Removed didParseSource/failedToParseSource.
1519 * WebScriptDebugger.cpp: Removed sourceParsed.
1520 * WebScriptDebugger.h: Ditto.
1522 2008-03-04 Adam Roben <aroben@apple.com>
1524 Move callEvent, returnEvent, and exception to WebScriptDebugServer
1528 * WebScriptDebugServer.cpp:
1529 (WebScriptDebugServer::callEvent): Moved here from WebScriptDebugger
1530 and merged with didEnterCallFrame.
1531 (WebScriptDebugServer::returnEvent): Ditto for willLeaveCallFrame.
1532 (WebScriptDebugServer::exception): Ditto for exceptionWasRaised.
1533 * WebScriptDebugServer.h: Removed didEnterCallFrame,
1534 willLeaveCallFrame, and exceptionWasRaised.
1535 * WebScriptDebugger.cpp: Removed callEvent, returnEvent, and
1537 * WebScriptDebugger.h: Ditto.
1539 2008-03-04 Adam Roben <aroben@apple.com>
1541 Move atStatement to WebScriptDebugServer
1545 * WebScriptDebugServer.cpp:
1546 (WebScriptDebugServer::atStatement): Moved here and merged with the
1547 old willExecuteStatement method.
1548 * WebScriptDebugServer.h: Removed inheritance from
1549 IWebScriptDebugListener, which no one was relying on.
1550 * WebScriptDebugger.cpp:
1551 (webFrame): Made non-static.
1553 * WebScriptDebugger.h: Added declarations of webFrame and webView
1554 methods for WebScriptDebugServer's benefit. Removed unused m_webView
1555 and m_frame members.
1557 2008-03-04 Adam Roben <aroben@apple.com>
1559 Start to merge WebScriptDebugger and WebScriptDebugServer
1561 WebScriptDebugServer now inherits from WebScriptDebugger.
1565 * WebScriptDebugServer.cpp:
1566 (WebScriptDebugServer::pageCreated): Use sharedWebScriptDebugServer
1567 instead of WebScriptDebugger::shared.
1568 (WebScriptDebugServer::addListener): Ditto.
1569 (WebScriptDebugServer::removeListener): Ditto.
1570 * WebScriptDebugServer.h: Changed to inherit from WebScriptDebugger.
1571 * WebScriptDebugger.cpp: Removed shared method.
1572 * WebScriptDebugger.h: Made constructor/destructor protected, and
1573 removed shared method.
1575 2008-03-04 Adam Roben <aroben@apple.com>
1577 Use WebCore's new debugger-attaching code
1579 Reviewed by Kevin M.
1581 * WebCoreSupport/WebFrameLoaderClient.cpp: Moved a kit() function to
1582 WebView.{cpp,h} so that other files can call it.
1584 (WebFrame::WebFrame): Removed m_scriptDebugger member.
1585 (WebFrame::windowObjectCleared): Removed attach/detach calls. This is
1586 no longer needed because WebScriptDebugger no longer stores any
1589 * WebScriptDebugServer.cpp:
1590 (WebScriptDebugServer::pageCreated): Added. Attaches our shared
1591 debugger to the Page if we have any listeners.
1592 (WebScriptDebugServer::addListener): Sets our shared debugger for all
1593 Pages when we get our first listener.
1594 (WebScriptDebugServer::removeListener): Removes our shared debugger
1595 from all Pages when we lose our last listener.
1596 * WebScriptDebugServer.h:
1597 * WebScriptDebugger.cpp:
1598 (WebScriptDebugger::shared): Added.
1599 (WebScriptDebugger::WebScriptDebugger): Removed m_frame member.
1600 (WebScriptDebugger::~WebScriptDebugger): Added.
1601 (frame): Gets a Frame from an ExecState.
1602 (webFrame): Gets a WebFrame from an ExecState.
1603 (webView): Gets a WebView from an ExecState.
1604 (WebScriptDebugger::sourceParsed): Changed to call webFrame() and
1605 webView() instead of using m_frame and m_webView members.
1606 (WebScriptDebugger::callEvent): Ditto.
1607 (WebScriptDebugger::atStatement): Ditto.
1608 (WebScriptDebugger::returnEvent): Ditto.
1609 (WebScriptDebugger::exception): Ditto.
1610 * WebScriptDebugger.h:
1612 (kit): Moved here from WebFrameLoaderClient.cpp.
1613 (WebView::initWithFrame): Tell the WebScriptDebugServer about the new
1614 Page so it can attach a debugger if needed.
1617 2008-03-04 Adam Roben <aroben@apple.com>
1619 Change WebView's string-finding methods to call through to Page
1621 These methods were added to Page back in r28878 (and the
1622 implementation was copied from WebView!) but we never switched over to
1628 (WebView::searchFor): Call through to Page::findString.
1629 (WebView::markAllMatchesForText): Call through to Page.
1630 (WebView::unmarkAllTextMatches): Ditto.
1632 2008-03-04 Adam Roben <aroben@apple.com>
1634 Actually pause the process while Drosera is at a breakpoint
1636 WebScriptDebugServer::suspendProcessIfPaused is supposed to pause the
1637 process while Drosera is at a breakpoint. Previously we were just
1638 starting a message pump that would deliver messages to all windows in
1639 the process, allowing mouse events, JS timers, etc. to execute.
1641 Now we only deliver messages to COM's message window, which is all we
1642 need to allow RPC to function.
1646 * WebScriptDebugServer.cpp:
1647 (comMessageWindow): Added. Finds COM's message window.
1648 (WebScriptDebugServer::suspendProcessIfPaused): Only deliver messages
1649 to COM's message window so that mouse events, JS timers, etc., won't
1652 2008-03-03 Adam Roben <aroben@apple.com>
1654 Generate WebScriptCallFrame instances dynamically
1656 WebScriptDebugger no longer holds a reference to the topmost call
1657 frame, and WebScriptCallFrame no longer holds a reference to its
1658 caller. We now generate WebScriptCallFrame instances as needed by
1659 walking the callingExecState chain.
1661 By making WebKit no longer responsible for keeping track of the call
1662 stack, we get one step closer to moving most JS debugging code out of
1665 This incidentally fixes a bug in Drosera where we'd never show the
1666 global scope in the call stack.
1668 Reviewed by Sam and Kevin M.
1670 * WebScriptCallFrame.cpp:
1671 (callingFunctionOrGlobalExecState): Finds the nearest calling
1672 ExecState that is a FunctionExecState or GlobalExecState, if any, and
1674 (WebScriptCallFrame::WebScriptCallFrame):
1675 - No longer takes a caller parameter.
1676 - Sets m_state to the callingFunctionOrGlobalExecState of the
1677 ExecState passed in.
1678 (WebScriptCallFrame::createInstance): Removed the caller parameter.
1679 (WebScriptCallFrame::caller): Generate a new WebScriptCallFrame on the
1680 fly from our ExecState.
1681 * WebScriptCallFrame.h: No longer holds a reference to the caller.
1682 * WebScriptDebugger.cpp:
1683 (WebScriptDebugger::WebScriptDebugger): Removed the call to callEvent
1684 that was supposed to set up the global scope call frame, but never
1685 worked because m_callingServer was set to true, which would cause
1686 callEvent to return early without doing anything. Also removed the
1687 m_callingServer guards since we're not calling callEvent anymore.
1688 (WebScriptDebugger::callEvent): Create a WebScriptCallFrame on the
1689 fly from the passed-in ExecState.
1690 (WebScriptDebugger::atStatement): Ditto.
1691 (WebScriptDebugger::returnEvent): Ditto, but use the callingExecState.
1692 This is equivalent to what calling leaveFrame() did before.
1693 (WebScriptDebugger::exception): Ditto, using the passed-in ExecState.
1694 * WebScriptDebugger.h: Removed m_topStackFrame member and
1695 enterFrame/leaveFrame methods.
1697 2008-03-03 Sam Weinig <sam@webkit.org>
1702 (WebFrame::windowObjectCleared):
1704 2008-03-03 David Hyatt <hyatt@apple.com>
1706 Full page zoom work. Make setting of a zoom factor take a boolean saying whether it is a text only
1712 (WebFrame::setTextSizeMultiplier):
1714 2008-02-29 Adam Roben <aroben@apple.com>
1716 Delete an unused file
1718 Rubberstamped by Brady.
1720 * Interfaces/IWebScriptScope.idl: Removed.
1722 2008-02-28 Adam Roben <aroben@apple.com>
1724 Change WebPreferences to be backed by CFPreferences
1726 Reviewed by Ada, Geoff, Steve, and Darin.
1728 * WebPreferenceKeysPrivate.h:
1729 * WebPreferences.cpp:
1730 (WebPreferences::sharedStandardPreferences): Changed to call
1731 setAutoSaves(TRUE) before calling load(). This ensures that the
1732 preferences being migrated to CFPreferences are saved to disk.
1733 (WebPreferences::valueForKey): Changed to return a RetainPtr to ensure
1734 that the refcount is managed properly. Now attempts to retrieve a
1735 value from CFPreferences before falling back to the default settings.
1736 (WebPreferences::setValueForKey): Now saves the value in
1737 CFPreferences if m_autoSaves is true.
1738 (WebPreferences::stringValueForKey): Updated for valueForKey changes.
1739 (WebPreferences::integerValueForKey): DItto.
1740 (WebPreferences::boolValueForKey): Ditto.
1741 (WebPreferences::floatValueForKey): Ditto.
1742 (WebPreferences::save): Now simply calls CFPreferencesAppSynchronize.
1743 (WebPreferences::load): Always initializes m_privatePrefs to an empty
1744 CFMutableDictionary.
1745 (WebPreferences::migrateWebKitPreferencesToCFPreferences): Migrates
1746 preferences from our old custom plist to CFPreferences and then
1747 deletes our custom plist, if the migration has never occurred before.
1748 (WebPreferences::copyWebKitPreferencesToCFPreferences): Copies
1749 preferences to CFPreferences. If we've never migrated the default
1750 settings from Safari 3 Beta before, we omit them from this copying
1754 2008-02-28 Adam Roben <aroben@apple.com>
1756 Refactor value <-> CFNumber conversions into some helper functions
1760 * WebPreferences.cpp:
1761 (preferencesPath): Changed to return a const String&.
1762 (numberValueForPreferencesValue): Converts a value from preferences to
1763 a native numeric type.
1764 (cfNumber): Converts a native numeric value to a CFNumberRef.
1765 (booleanValueForPreferencesValue): Converts a value from preferences
1766 to a native boolean.
1767 (WebPreferences::integerValueForKey): Changed to call
1768 numberValueForPreferencesValue.
1769 (WebPreferences::floatValueForKey): Ditto.
1770 (WebPreferences::boolValueForKey): Changed to call
1771 booleanValueForPreferencesValue.
1772 (WebPreferences::setIntegerValue): Changed to call cfNumber.
1773 (WebPreferences::setLongLongValue): Ditto.
1775 2008-02-27 Adam Roben <aroben@apple.com>
1777 Add WebPreferences::setValueForKey
1779 This is just a small refactoring of some duplicated logic into a
1784 * WebPreferences.cpp:
1785 (WebPreferences::setValueForKey): Added.
1786 (WebPreferences::setStringValue): Call setValueForKey.
1787 (WebPreferences::setIntegerValue): Ditto.
1788 (WebPreferences::setBoolValue): Ditto.
1789 (WebPreferences::setLongLongValue): Ditto.
1792 2008-02-27 Adam Roben <aroben@apple.com>
1794 Remove WebPreferences' static members
1796 s_defaultSettings is now a file-level static, and
1797 s_standardPreferences has been removed completely (it wasn't being
1802 * WebPreferences.cpp:
1803 (WebPreferences::initializeDefaultSettings):
1804 (WebPreferences::valueForKey):
1805 (WebPreferences::migrateDefaultSettingsFromSafari3Beta):
1806 (WebPreferences::removeValuesMatchingDefaultSettings):
1809 2008-02-29 Steve Falkenburg <sfalken@apple.com>
1811 Don't free the VARIANT passed into Write, since it is an input parameter owned by the caller.
1812 Found via code inspection.
1816 * WebActionPropertyBag.cpp:
1817 (WebActionPropertyBag::Write):
1818 * WebElementPropertyBag.cpp:
1819 (WebElementPropertyBag::Write):
1821 2008-02-27 Matt Lilek <webkit@mattlilek.com>
1823 Reviewed by Adam Roben.
1825 Bug 14348: Messing up the inspector by dragging an URL into it
1826 http://bugs.webkit.org/show_bug.cgi?id=14348
1827 <rdar://problem/5283620> and <rdar://problem/5712808>
1829 Add a new class to handle the Inspector's delegate calls.
1831 * WebCoreSupport/WebInspectorClient.cpp:
1832 (WebInspectorClient::createPage):
1833 * WebCoreSupport/WebInspectorDelegate.cpp: Added.
1835 (WebInspectorDelegate::createInstance):
1836 (WebInspectorDelegate::AddRef):
1837 (WebInspectorDelegate::Release):
1838 (WebInspectorDelegate::dragDestinationActionMaskForDraggingInfo):
1839 * WebCoreSupport/WebInspectorDelegate.h: Added.
1840 (WebInspectorDelegate::QueryInterface):
1841 (WebInspectorDelegate::createWebViewWithRequest):
1842 (WebInspectorDelegate::webViewShow):
1843 (WebInspectorDelegate::webViewClose):
1844 (WebInspectorDelegate::webViewFocus):
1845 (WebInspectorDelegate::webViewUnfocus):
1846 (WebInspectorDelegate::webViewFirstResponder):
1847 (WebInspectorDelegate::makeFirstResponder):
1848 (WebInspectorDelegate::setStatusText):
1849 (WebInspectorDelegate::webViewStatusText):
1850 (WebInspectorDelegate::webViewAreToolbarsVisible):
1851 (WebInspectorDelegate::setToolbarsVisible):
1852 (WebInspectorDelegate::webViewIsStatusBarVisible):
1853 (WebInspectorDelegate::setStatusBarVisible):
1854 (WebInspectorDelegate::webViewIsResizable):
1855 (WebInspectorDelegate::setResizable):
1856 (WebInspectorDelegate::setFrame):
1857 (WebInspectorDelegate::webViewFrame):
1858 (WebInspectorDelegate::setContentRect):
1859 (WebInspectorDelegate::webViewContentRect):
1860 (WebInspectorDelegate::runJavaScriptAlertPanelWithMessage):
1861 (WebInspectorDelegate::runJavaScriptConfirmPanelWithMessage):
1862 (WebInspectorDelegate::runJavaScriptTextInputPanelWithPrompt):
1863 (WebInspectorDelegate::runBeforeUnloadConfirmPanelWithMessage):
1864 (WebInspectorDelegate::runOpenPanelForFileButtonWithResultListener):
1865 (WebInspectorDelegate::mouseDidMoveOverElement):
1866 (WebInspectorDelegate::contextMenuItemsForElement):
1867 (WebInspectorDelegate::validateUserInterfaceItem):
1868 (WebInspectorDelegate::shouldPerformAction):
1869 (WebInspectorDelegate::willPerformDragDestinationAction):
1870 (WebInspectorDelegate::dragSourceActionMaskForPoint):
1871 (WebInspectorDelegate::willPerformDragSourceAction):
1872 (WebInspectorDelegate::contextMenuItemSelected):
1873 (WebInspectorDelegate::hasCustomMenuImplementation):
1874 (WebInspectorDelegate::trackCustomPopupMenu):
1875 (WebInspectorDelegate::measureCustomMenuItem):
1876 (WebInspectorDelegate::drawCustomMenuItem):
1877 (WebInspectorDelegate::addCustomMenuDrawingData):
1878 (WebInspectorDelegate::cleanUpCustomMenuDrawingData):
1879 (WebInspectorDelegate::canTakeFocus):
1880 (WebInspectorDelegate::takeFocus):
1881 (WebInspectorDelegate::registerUndoWithTarget):
1882 (WebInspectorDelegate::removeAllActionsWithTarget):
1883 (WebInspectorDelegate::setActionTitle):
1884 (WebInspectorDelegate::undo):
1885 (WebInspectorDelegate::redo):
1886 (WebInspectorDelegate::canUndo):
1887 (WebInspectorDelegate::canRedo):
1888 * WebKit.vcproj/WebKit.vcproj:
1890 2008-02-26 Adam Roben <aroben@apple.com>
1892 Move ResourceLoadDelegate methods to WebFrameLoaderClient
1894 Changed all methods to use early returns where possible and COMPtr's
1895 AdoptCOM/Query constructors.
1899 * WebCoreSupport/WebFrameLoaderClient.cpp:
1900 (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1901 (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1902 (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1903 (WebFrameLoaderClient::dispatchWillSendRequest):
1904 (WebFrameLoaderClient::dispatchDidReceiveResponse):
1905 (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1906 (WebFrameLoaderClient::dispatchDidFinishLoading):
1907 (WebFrameLoaderClient::dispatchDidFailLoading):
1908 * WebCoreSupport/WebFrameLoaderClient.h:
1912 2008-02-26 Adam Roben <aroben@apple.com>
1914 Move two more methods to WebFrameLoaderClient
1918 * WebCoreSupport/WebFrameLoaderClient.cpp:
1920 (WebFrameLoaderClient::dispatchCreatePage): Changed nested ifs to
1921 early returns, and changed to use the COMPtr Query constructor.
1922 (WebFrameLoaderClient::dispatchDidLoadMainResource): Added an early
1923 return, and changed to use getWebDataSource.
1924 * WebCoreSupport/WebFrameLoaderClient.h:
1928 2008-02-26 Adam Roben <aroben@apple.com>
1930 Get rid of IID_WebFrame
1934 * WebFrame.cpp: Removed IID_WebFrame definition.
1935 (WebFrame::QueryInterface): Use __uuidof(WebFrame) instead of
1937 (WebFrame::isDescendantOfFrame): Use COMPtr's Query constructor
1938 instead of a manual QueryInterface.
1939 * WebFrame.h: Removed IID_WebFrame declaration, gave WebFrame a
1942 2008-02-26 Adam Roben <aroben@apple.com>
1944 Move WebHistory-related methods to WebFrameLoaderClient
1948 * WebCoreSupport/WebFrameLoaderClient.cpp:
1949 (WebFrameLoaderClient::updateGlobalHistory):
1950 (WebFrameLoaderClient::shouldGoToHistoryItem):
1951 (WebFrameLoaderClient::setTitle): Changed some nested ifs into early
1953 (WebFrameLoaderClient::webHistory): Changed to return a COMPtr to
1954 make the reference management foolproof.
1955 * WebCoreSupport/WebFrameLoaderClient.h:
1959 2008-02-26 Adam Roben <aroben@apple.com>
1961 Move cache-related methods to WebFrameLoaderClient
1965 * WebCoreSupport/WebFrameLoaderClient.cpp:
1966 (getWebDataSource): Moved to the top of the file.
1967 (WebFrameLoaderClient::savePlatformDataToCachedPage):
1968 (WebFrameLoaderClient::transitionToCommittedForNewPage):
1969 (WebFrameLoaderClient::canCachePage):
1970 * WebCoreSupport/WebFrameLoaderClient.h:
1974 2008-02-25 Adam Roben <aroben@apple.com>
1976 Move plugin-related methods to WebFrameLoaderClient
1980 * WebCoreSupport/WebFrameLoaderClient.cpp:
1981 (WebFrameLoaderClient::WebFrameLoaderClient):
1982 (WebFrameLoaderClient::setMainDocumentError):
1983 (WebFrameLoaderClient::committedLoad): Added some early returns.
1984 (WebFrameLoaderClient::receivedData):
1985 (WebFrameLoaderClient::finishedLoading): Ditto.
1987 (WebFrameLoaderClient::createPlugin):
1988 * WebCoreSupport/WebFrameLoaderClient.h:
1990 (WebFrame::WebFramePrivate::WebFramePrivate):
1993 2008-02-25 Adam Roben <aroben@apple.com>
1995 Move createFrame to WebFrameLoaderClient
1999 * WebCoreSupport/WebFrameLoaderClient.cpp:
2000 (WebFrameLoaderClient::createFrame):
2001 (WebFrameLoaderClient::loadURLIntoChild):
2002 * WebCoreSupport/WebFrameLoaderClient.h:
2006 2008-02-25 Adam Roben <aroben@apple.com>
2008 Move progress-related methods to WebFrameLoaderClient
2012 * WebCoreSupport/WebFrameLoaderClient.cpp:
2013 (WebFrameLoaderClient::postProgressStartedNotification):
2014 (WebFrameLoaderClient::postProgressEstimateChangedNotification):
2015 (WebFrameLoaderClient::postProgressFinishedNotification):
2016 * WebCoreSupport/WebFrameLoaderClient.h:
2020 2008-02-25 Adam Roben <aroben@apple.com>
2022 Remove WebFrame::detachedFromParent1
2024 This method was removed from FrameLoaderClient in r19042, but was
2025 never removed from WebFrame.
2032 2008-02-23 Adam Roben <aroben@apple.com>
2034 Move many dispatch methods to WebFrameLoaderClient
2038 * WebCoreSupport/WebFrameLoaderClient.cpp:
2039 (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
2040 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
2041 (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
2042 (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
2043 (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
2044 (WebFrameLoaderClient::dispatchWillClose):
2045 (WebFrameLoaderClient::dispatchDidReceiveIcon):
2046 (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2047 (WebFrameLoaderClient::dispatchDidReceiveTitle):
2048 (WebFrameLoaderClient::dispatchDidCommitLoad):
2049 (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
2050 (WebFrameLoaderClient::dispatchDidFinishLoad):
2051 (WebFrameLoaderClient::dispatchDidFirstLayout):
2052 (WebFrameLoaderClient::dispatchShow):
2053 * WebCoreSupport/WebFrameLoaderClient.h:
2057 2008-02-23 Adam Roben <aroben@apple.com>
2059 Move two more methods to WebFrameLoaderClient
2063 * WebCoreSupport/WebFrameLoaderClient.cpp:
2064 (WebFrameLoaderClient::hasFrameView):
2065 (WebFrame::forceLayout):
2066 * WebCoreSupport/WebFrameLoaderClient.h:
2070 2008-02-24 Darin Adler <darin@apple.com>
2074 - remove separate client calls for "standard" and "reload' history
2077 (WebFrame::updateGlobalHistory):
2080 2008-02-23 Brent Fulgham <bfulgham@gmail.com>
2082 Not reviewed, build fix.
2084 * WebIconDatabase.cpp:
2085 * WebIconDatabase.h:
2087 2008-02-22 Adam Roben <aroben@apple.com>
2089 Move hasWebView to WebFrameLoaderClient
2091 I added an m_webFrame member to WebFrameLoaderClient. This is slightly
2092 strange because WebFrame inherits from WebFrameLoaderClient, but this
2093 member will be needed once we remove the inheritance, so we might as
2094 well prepare for that now.
2098 * WebCoreSupport/WebFrameLoaderClient.cpp:
2099 (WebFrameLoaderClient::WebFrameLoaderClient): Changed to take a
2100 WebFrame* parameter.
2101 (WebFrameLoaderClient::hasWebView): Moved here from WebFrame.cpp.
2102 * WebCoreSupport/WebFrameLoaderClient.h: Added an m_webFrame
2104 * WebFrame.cpp: Removed hasWebView.
2105 (WebFrame::WebFrame): Updated for WebFrameLoaderClient constructor
2109 2008-02-22 Adam Roben <aroben@apple.com>
2111 Start to move FrameLoaderClient methods off WebFrame onto a separate class
2113 WebFrame now inherits from a new WebFrameLoaderClient class, which
2114 will gradually assume all FrameLoaderClient responsibilities. Once
2115 that process is complete, WebFrame will no longer inherit from
2116 WebFrameLoaderClient.
2118 In this first patch, I've only moved createDocumentLoader up to the
2119 WebFrameLoaderClient class.
2123 * WebCoreSupport/WebFrameLoaderClient.cpp: Added.
2124 (WebFrameLoaderClient::WebFrameLoaderClient):
2125 (WebFrameLoaderClient::~WebFrameLoaderClient):
2126 (WebFrameLoaderClient::createDocumentLoader): Moved here from
2128 * WebCoreSupport/WebFrameLoaderClient.h: Added.
2129 * WebFrame.cpp: Removed createDocumentLoader implementation.
2130 * WebFrame.h: Changed to inherit from WebFrameLoaderClient.
2131 * WebKit.vcproj/WebKit.vcproj: Added new files to the project.
2133 2008-02-22 Adam Roben <aroben@apple.com>
2135 Move FormValuesPropertyBag into its own files
2139 * WebCoreSupport/FormValuesPropertyBag.cpp: Added.
2140 (FormValuesPropertyBag::QueryInterface):
2141 (FormValuesPropertyBag::AddRef):
2142 (FormValuesPropertyBag::Release):
2143 (FormValuesPropertyBag::Read):
2144 (FormValuesPropertyBag::Write):
2145 (FormValuesPropertyBag::CountProperties):
2146 (FormValuesPropertyBag::GetPropertyInfo):
2147 (FormValuesPropertyBag::LoadObject):
2148 * WebCoreSupport/FormValuesPropertyBag.h: Added.
2149 (FormValuesPropertyBag::FormValuesPropertyBag):
2150 * WebFrame.cpp: Deleted FormValuesPropertyBag code.
2151 * WebKit.vcproj/WebKit.vcproj: Added new files to the project.
2153 2008-02-22 Adam Roben <aroben@apple.com>
2155 Remove some unused WebFrame methods
2157 FrameWinClient was deleted back in r22965, but these methods were
2163 * WebFrame.h: Made one createFrame overload protected, since it's only
2164 called internally by WebFrame.
2166 2008-02-21 Adam Roben <aroben@apple.com>
2168 Move Client implementations into a WebCoreSupport directory
2172 * WebKit.vcproj/WebKit.vcproj: Updated file paths, and added
2173 WebCoreSupport directory to the include path.
2174 * WebCoreSupport/WebChromeClient.cpp: Renamed from WebKit/win/WebChromeClient.cpp.
2175 * WebCoreSupport/WebChromeClient.h: Renamed from WebKit/win/WebChromeClient.h.
2176 * WebCoreSupport/WebContextMenuClient.cpp: Renamed from WebKit/win/WebContextMenuClient.cpp.
2177 * WebCoreSupport/WebContextMenuClient.h: Renamed from WebKit/win/WebContextMenuClient.h.
2178 * WebCoreSupport/WebDragClient.cpp: Renamed from WebKit/win/WebDragClient.cpp.
2179 * WebCoreSupport/WebDragClient.h: Renamed from WebKit/win/WebDragClient.h.
2180 * WebCoreSupport/WebEditorClient.cpp: Renamed from WebKit/win/WebEditorClient.cpp.
2181 * WebCoreSupport/WebEditorClient.h: Renamed from WebKit/win/WebEditorClient.h.
2182 * WebCoreSupport/WebInspectorClient.cpp: Renamed from WebKit/win/WebInspectorClient.cpp.
2183 * WebCoreSupport/WebInspectorClient.h: Renamed from WebKit/win/WebInspectorClient.h.
2185 2008-02-20 Sam Weinig <sam@webkit.org>
2187 Reviewed by Darin and Geoff.
2189 - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
2192 (WebView::notifyPreferencesChanged): Added a call to Settings::setNeedsSiteSpecificQuirks.
2193 (WebView::setAllowSiteSpecificHacks): Added a comment about the problem Darin noticed, where
2194 after you disable the site-specific hacks they persist until you open a new window or tweak
2195 some other preference.
2197 2008-02-19 Darin Adler <darin@apple.com>
2202 (WebFrame::renderTreeAsExternalRepresentation): Changed to use String instead
2203 of DeprecatedString.
2205 2008-02-18 Steve Falkenburg <sfalken@apple.com>
2207 Make Drosera work on Vista.
2209 Runtime type library registration on Vista requires use of two new call:
2210 RegisterTypeLibraryForUser and UnRegisterTypeLibraryForUser, which write to
2211 HKCU. LoadTypeLib[Ex] registers under HKLM, which fails under vista due to UAC.
2216 (DllUnregisterServer): Call UnRegisterTypeLibraryForUser if available. Fix version number.
2217 (DllRegisterServer): Call RegisterTypeLibraryForUser if available.
2219 2008-02-18 Matt Lilek <webkit@mattlilek.com>
2223 Remove FindSafari's Release configuration.
2225 * WebKit.vcproj/WebKit.sln:
2227 2008-02-16 Alexey Proskuryakov <ap@webkit.org>
2231 http://bugs.webkit.org/show_bug.cgi?id=17397
2232 <rdar://problem/5748245> REGRESSION (r30236-30336): Cannot backspace/enter in forms on Windows
2234 * WebKit.vcproj/WebKit.vcproj: Add ENABLE_CROSS_DOCUMENT_MESSAGING definitions.
2236 2008-02-15 Darin Adler <darin@apple.com>
2240 - quick fix for a problem causing an assertion on launch
2243 (WebFrame::loadData): Make an empty KURL even if the BSTR is null.
2244 Later we might want to rethink this.
2246 2008-02-14 Darin Adler <darin@apple.com>
2248 - updated for WebCore KURL changes
2250 * MarshallingHelpers.cpp:
2251 (MarshallingHelpers::BSTRToKURL): Removed deprecatedString call.
2252 (MarshallingHelpers::KURLToBSTR): Tweaked for efficiency.
2253 * WebContextMenuClient.cpp:
2254 (WebContextMenuClient::searchWithGoogle): Updated for KURL changes.
2255 * WebDataSource.cpp:
2256 (WebDataSource::unreachableURL): Ditto.
2258 (WebDownload::init): Ditto.
2259 (WebDownload::initWithRequest): Ditto.
2261 (WebFrame::loadData): Ditto.
2262 (WebFrame::loadURLIntoChild): Ditto.
2263 (WebFrame::objectContentType): Ditto.
2265 (WebResource::initWithData): Ditto.
2266 * WebURLResponse.cpp:
2267 (WebURLResponse::createInstance): Ditto.
2268 (WebURLResponse::initWithURL): Ditto.
2270 (WebView::userAgentForURL): Ditto.
2271 (WebView::copyURL): Ditto.
2272 (WebView::notifyPreferencesChanged): Ditto.
2274 2008-02-14 Alexey Proskuryakov <ap@webkit.org>
2276 * WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): Forgot to re-apply review comments to
2277 the previous check-in, fixing.
2279 2008-02-14 Alexey Proskuryakov <ap@webkit.org>
2281 Reviewed by Adam Roben.
2283 http://bugs.webkit.org/show_bug.cgi?id=17207
2284 Database example doesn't work (requires not-yet-released Safari)
2286 * WebChromeClient.cpp:
2287 (WebChromeClient::exceededDatabaseQuota): Check Safari version, and allow 5 megabytes of storage
2290 2008-02-13 Ada Chan <adachan@apple.com>
2292 <rdar://problem/5740656> Leak in postDidAddIconNotification in WebIconDatabase
2296 * WebIconDatabase.cpp:
2297 (postDidAddIconNotification): Need to adopt the newly created instance of CFDictionaryPropertyBag,
2298 which already has a ref count of 1.
2300 2008-02-13 Rodney Dawes <dobey@wayofthemonkey.com>
2302 Fix Bug 17220: Illogical dependency between PluginView and
2305 <http://bugs.webkit.org/show_bug.cgi?id=17220>
2307 Reviewed by Adam and Darin.
2309 Update for the rename of PluginDatabase::createPluginView
2310 to PluginView::create
2314 2008-02-13 Adam Roben <aroben@apple.com>
2318 * Interfaces/WebKit.idl: Create the typelib version symbol ourselves.
2320 2008-02-12 Steve Falkenburg <sfalken@apple.com>
2322 Use a precompiled header to build WebKit.
2326 * WebKit.vcproj/WebKit.vcproj:
2327 * WebKitPrefix.cpp: Added.
2328 * WebKitPrefix.h: Added.
2330 2008-02-12 Steve Falkenburg <sfalken@apple.com>
2332 Changes to support merged MIDL output.
2334 All COM interfaces are now generated to WebKit.h.
2336 Reviewed by Sam, Ada.
2340 * DOMEventsClasses.h:
2342 * DefaultDownloadDelegate.h:
2343 * DefaultPolicyDelegate.cpp:
2344 * DefaultPolicyDelegate.h:
2346 * Interfaces/DOMCSS.idl:
2347 * Interfaces/DOMCore.idl:
2348 * Interfaces/DOMEvents.idl:
2349 * Interfaces/DOMExtensions.idl:
2350 * Interfaces/DOMHTML.idl:
2351 * Interfaces/DOMPrivate.idl:
2352 * Interfaces/DOMRange.idl:
2353 * Interfaces/DOMWindow.idl:
2354 * Interfaces/IGEN_DOMObject.idl:
2355 * Interfaces/IWebArchive.idl:
2356 * Interfaces/IWebBackForwardList.idl:
2357 * Interfaces/IWebBackForwardListPrivate.idl:
2358 * Interfaces/IWebCache.idl:
2359 * Interfaces/IWebDataSource.idl:
2360 * Interfaces/IWebDatabaseManager.idl:
2361 * Interfaces/IWebDocument.idl:
2362 * Interfaces/IWebDownload.idl:
2363 * Interfaces/IWebEditingDelegate.idl:
2364 * Interfaces/IWebError.idl:
2365 * Interfaces/IWebErrorPrivate.idl:
2366 * Interfaces/IWebFormDelegate.idl:
2367 * Interfaces/IWebFrame.idl:
2368 * Interfaces/IWebFrameLoadDelegate.idl:
2369 * Interfaces/IWebFrameLoadDelegatePrivate.idl:
2370 * Interfaces/IWebFramePrivate.idl:
2371 * Interfaces/IWebFrameView.idl:
2372 * Interfaces/IWebHTMLRepresentation.idl:
2373 * Interfaces/IWebHTTPURLResponse.idl:
2374 * Interfaces/IWebHistory.idl:
2375 * Interfaces/IWebHistoryItem.idl:
2376 * Interfaces/IWebHistoryItemPrivate.idl:
2377 * Interfaces/IWebIconDatabase.idl:
2378 * Interfaces/IWebInspector.idl:
2379 * Interfaces/IWebJavaScriptCollector.idl:
2380 * Interfaces/IWebKitStatistics.idl:
2381 * Interfaces/IWebMutableURLRequest.idl:
2382 * Interfaces/IWebMutableURLRequestPrivate.idl:
2383 * Interfaces/IWebNotification.idl:
2384 * Interfaces/IWebNotificationCenter.idl:
2385 * Interfaces/IWebNotificationObserver.idl:
2386 * Interfaces/IWebPolicyDelegate.idl:
2387 * Interfaces/IWebPreferences.idl:
2388 * Interfaces/IWebPreferencesPrivate.idl:
2389 * Interfaces/IWebResource.idl:
2390 * Interfaces/IWebResourceLoadDelegate.idl:
2391 * Interfaces/IWebResourceLoadDelegatePrivate.idl:
2392 * Interfaces/IWebScriptCallFrame.idl:
2393 * Interfaces/IWebScriptDebugListener.idl:
2394 * Interfaces/IWebScriptDebugServer.idl:
2395 * Interfaces/IWebScriptObject.idl:
2396 * Interfaces/IWebScriptScope.idl:
2397 * Interfaces/IWebScrollBarDelegatePrivate.idl:
2398 * Interfaces/IWebScrollBarPrivate.idl:
2399 * Interfaces/IWebSecurityOrigin.idl:
2400 * Interfaces/IWebTextRenderer.idl:
2401 * Interfaces/IWebUIDelegate.idl:
2402 * Interfaces/IWebUIDelegatePrivate.idl:
2403 * Interfaces/IWebURLAuthenticationChallenge.idl:
2404 * Interfaces/IWebURLRequest.idl:
2405 * Interfaces/IWebURLResponse.idl:
2406 * Interfaces/IWebURLResponsePrivate.idl:
2407 * Interfaces/IWebUndoManager.idl:
2408 * Interfaces/IWebUndoTarget.idl:
2409 * Interfaces/IWebView.idl:
2410 * Interfaces/IWebViewPrivate.idl:
2411 * Interfaces/WebKit.idl:
2412 * WebActionPropertyBag.cpp:
2413 * WebBackForwardList.h:
2415 * WebDataSource.cpp:
2417 * WebDatabaseManager.h:
2419 * WebEditorClient.cpp:
2420 * WebEditorClient.h:
2424 * WebFramePolicyListener.h:
2425 * WebHTMLRepresentation.cpp:
2426 * WebHTMLRepresentation.h:
2430 * WebIconDatabase.h:
2432 * WebJavaScriptCollector.h:
2433 * WebKit.vcproj/Interfaces.vcproj:
2434 * WebKit.vcproj/WebKitGUID.vcproj:
2436 * WebKitStatistics.h:
2437 * WebMutableURLRequest.cpp:
2438 * WebMutableURLRequest.h:
2439 * WebNotification.h:
2440 * WebNotificationCenter.h:
2443 * WebScriptCallFrame.h:
2444 * WebScriptDebugServer.cpp:
2445 * WebScriptDebugServer.h:
2446 * WebScriptDebugger.cpp:
2447 * WebScriptDebugger.h:
2448 * WebScriptObject.h:
2450 * WebSecurityOrigin.h:
2451 * WebTextRenderer.h:
2452 * WebURLAuthenticationChallenge.h:
2453 * WebURLAuthenticationChallengeSender.h:
2454 * WebURLCredential.h:
2455 * WebURLProtectionSpace.h:
2460 2008-02-12 Anders Carlsson <andersca@apple.com>
2464 Implement imageTitle.
2466 * WebCoreLocalizedStrings.cpp:
2467 (WebCore::imageTitle):
2469 2008-02-12 Anders Carlsson <andersca@apple.com>
2473 * WebCoreLocalizedStrings.cpp:
2474 (WebCore::imageTitle):
2478 2008-02-07 Ada Chan <adachan@apple.com>
2480 <rdar://problem/5292433> certificate authentication support broken in Safari 3.0
2481 Added mechanism to communicate client certificate info back to CFNetwork.
2485 * Interfaces/IWebError.idl: Added new WebURLErrorClientCertificateRequired error.
2486 * Interfaces/IWebMutableURLRequestPrivate.idl: Added. Added method to set client
2487 certificate info on the request.
2488 * WebKit.vcproj/Interfaces.vcproj: Added new idl.
2489 * WebKit.vcproj/WebKit.vcproj: Link crypt32.lib
2490 * WebKit.vcproj/WebKitGUID.vcproj:
2491 * WebMutableURLRequest.cpp:
2492 (WebMutableURLRequest::QueryInterface): Implements IWebMutableURLRequestPrivate.
2493 (deallocCertContext): Free certificate context.
2494 (copyCert): Duplicate the certificate context and returns it in a CFDataRef.
2495 (WebMutableURLRequest::setClientCertificate):
2496 * WebMutableURLRequest.h:
2498 2008-02-05 Rodney Dawes <dobey@wayofthemonkey.com>
2500 Reviewed by Anders Carlsson.
2502 Part one of http://bugs.webkit.org/show_bug.cgi?id=16924.
2503 Shared PluginDatabase, PluginInfoStore and PluginPackage implementations.
2505 Track WebCore renames.
2508 (WebFrame::createPlugin):
2509 (WebFrame::redirectDataToPlugin):
2510 (WebFrame::createJavaAppletWidget):
2511 (WebFrame::objectContentType):
2514 (WebView::canShowMIMEType):
2515 (WebView::addAdditionalPluginPath):
2517 2008-02-05 Alexey Proskuryakov <ap@webkit.org>
2521 http://bugs.webkit.org/show_bug.cgi?id=15248
2522 <rdar://problem/5497032> Can not enter accented characters using alt-numeric keypad (take two)
2524 * WebView.cpp: (WebViewWndProc): KeyUp messages need to be translated, too.
2526 2008-02-01 Darin Adler <darin@apple.com>
2528 - fix <rdar://problem/5680469> Each database worker thread takes a JSLock,
2529 which slows down all JavaScript execution until the thread terminates
2531 * WebIconDatabase.cpp:
2532 (WebIconDatabase::scheduleNotificationDelivery): Updated for new callOnMainThread.
2533 (WebIconDatabase::deliverNotifications): Ditto.
2534 * WebIconDatabase.h: Ditto.
2536 2008-01-31 Adam Roben <aroben@apple.com>
2538 Fix <rdar://5713172> Focus lost from Gmail message body after toggling
2541 This regressed in r29583. Prior to r29583, the code path that resulted
2542 in calling focusController->setFocusedFrame(0) was never getting hit.
2543 r29583 changed the code to adhere to the comment above the code and
2544 actually call setFocusedFrame(0) when losing focus to another part of
2545 the window. It turns out this is wrong behavior (and not what
2546 WebKit/mac does). The only time we should clear the focused frame is
2547 when we tab out of the WebView, and that's already taken care of by
2548 FocusController::advanceFocus. The code to clear the focused frame in
2549 WebView was written before FocusController::advanceFocus, so it was
2550 correct at one point but no longer is.
2552 We now never call setFocusedFrame(0) when the WebView receives a
2553 WM_KILLFOCUS message. Instead we just call setFocused(false) on the
2554 focused frame so that blur events will be sent. This matches what
2557 Reviewed by Darin and Adele.
2560 (WebViewWndProc): Also reworded a couple of comments to make them
2563 2008-01-31 Adam Roben <aroben@apple.com>
2565 Let WebCore take care of the highlight drawing entirely
2569 * WebInspectorClient.cpp:
2570 (WebInspectorClient::highlight): We now just show our highlight
2571 window and let WebCore figure out what/where to paint. Once all ports
2572 follow suit the Node* parameter to this method should be removed
2573 entirely, and the name should probably change to
2574 updateAndShowHighlight or something similar.
2575 * WebNodeHighlight.cpp: Renamed m_webView to m_inspectedWebViewWindow.
2576 (WebNodeHighlight::WebNodeHighlight): Now takes a WebView* parameter.
2577 (WebNodeHighlight::show): Renamed from highlight(). Now gets the
2578 WebView's HWND. Updated for member rename/removal.
2579 (WebNodeHighlight::updateWindow): Updated for member rename and for
2580 InspectorController changes.
2581 * WebNodeHighlight.h: Added m_inspectedWebView member, removed m_rect
2582 member, renamed highlight(Node*) -> show().
2584 2008-01-31 Adam Roben <aroben@apple.com>
2586 Move node highlight drawing code to WebCore
2590 * WebNodeHighlight.cpp:
2591 (WebNodeHighlight::updateWindow): Call into WebCore to do the node
2594 2008-01-29 Adam Roben <aroben@apple.com>
2596 Fix a crash when opening the Inspector
2600 * WebInspectorClient.cpp:
2601 (WebInspectorClient::createPage): Call
2602 WebPreferences::initWithIdentifier so our custom WebPreferences will
2603 have all its members initialized.
2605 2008-01-29 Adam Roben <aroben@apple.com>
2607 Fix Bug 16786: "Display images when page opens" preference affects
2610 <http://bugs.webkit.org/show_bug.cgi?id=16786>
2613 Reviewed by Anders and Darin.
2615 * WebInspectorClient.cpp:
2616 (WebInspectorClient::createPage): Create our own custom WebPreferences
2617 so that we won't be affected by global preference changes. This
2618 matches what Mac does.
2620 2008-01-29 Adam Roben <aroben@apple.com>
2622 Fix <rdar://5713302> Web Inspector on Windows is not using the
2627 * WebInspectorClient.cpp:
2628 (getWebKitBundle): Added.
2629 (WebInspectorClient::createPage): Call getWebKitBundle.
2630 (WebInspectorClient::localizedStringsURL): Implemented.
2632 2008-01-29 Alexey Proskuryakov <ap@webkit.org>
2636 <rdar://problem/5710692> All storage tests fail/crash
2638 * WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): Clients that do not implement
2639 database quota callbacks should have no database support - but not crash.
2641 2008-01-26 Steve Falkenburg <sfalken@apple.com>
2643 <rdar://problem/5707607> REGRESSION: I hear a beep when selecting Alt-enter in address or search fields
2648 (WebView::keyDown): Allow alt-return to be marked as handled by WebKit.
2650 2008-01-24 Steve Falkenburg <sfalken@apple.com>
2654 * WebKit.vcproj/WebKit.sln:
2655 * WebKit.vcproj/WebKit.submit.sln:
2657 2008-01-24 Adam Roben <aroben@apple.com>
2661 * WebView.cpp: Added a comma.
2663 2008-01-24 Alexey Proskuryakov <ap@webkit.org>
2665 Reviewed by Adam Roben.
2667 <rdar://problem/5702734> REGRESSION(r28936/r15890): Shift+del does not work in win Safari
2669 * WebView.cpp: Fixed keyDownEntries to list this shortcut (and related ones, for consistency).
2671 2008-01-23 Steve Falkenburg <sfalken@apple.com>
2673 <rdar://problem/5698732> Copyright strings should include 2008
2677 * WebKit.vcproj/WebKit.rc:
2679 2008-01-23 Adam Roben <aroben@apple.com>
2681 Fix <rdar://5698502> Inspector window reverts to default position/size unexpectedly
2685 * WebInspectorClient.cpp:
2686 (defaultWindowRect): Added.
2687 (WebInspectorClient::createPage):
2688 - Use defaultWindowRect() to set the initial size/position of the
2690 - Pass the Inspector window's client rect to
2691 IWebView::initWithFrame so that the WebView will be initially
2692 sized to fill the window.
2693 (WebInspectorClient::showWindow): Don't move/resize the window back to
2694 the defaults every time this method is called.
2696 2008-01-23 Adam Roben <aroben@apple.com>
2698 Fix <rdar://5700620> REGRESSION (r28190): "Open frame in new tab" instead of "Open link in new tab" @ digg.com
2700 Test: fast/events/contextmenu-scrolled-page-with-frame.html
2705 (WebView::handleContextMenuEvent): Translate the mouse coordinates
2706 into document coordinates before performing the hit-test. This is what
2707 EventHandler does internally.
2709 2008-01-23 Steve Falkenburg <sfalken@apple.com>
2711 <rdar://problem/5699509> Allow file upload dialog to be localized.
2715 * English.lproj/Localizable.strings: Updated.
2716 * WebCoreLocalizedStrings.cpp:
2717 (WebCore::uploadFileText): Added.
2718 (WebCore::allFilesText): Added.
2720 2008-01-22 Adam Roben <aroben@apple.com>
2722 Fix <rdar://5693599> REGRESSION (r29369): scroll bars are drawing when they shouldn't be on an ad on cnn.com
2724 Now that we have multiple FrameViews per Frame on Windows, we need to
2725 make sure each FrameView gets its scrolling mode set correctly. On Mac
2726 this works because WebFrameView holds the scrolling mode and a single
2727 WebFrameView is shared by many FrameViews. On Windows, we have no such
2728 shared object, so we just ask the Frame's owner element for the
2731 Tests: fast/frames/frame-scrolling-attribute.html
2732 fast/frames/iframe-scrolling-attribute.html
2737 (WebFrame::transitionToCommittedForNewPage): Set the scrolling mode
2738 on the FrameView based on the scrolling mode of the Frame's owner
2741 2008-01-21 Darin Adler <darin@apple.com>
2743 Reviewed by John Sullivan.
2745 - fix <rdar://problem/5644324> Delegate-less WebKit clients should have no databases
2746 - fix incorrect value for WebDatabaseDisplayNameKey in header
2748 * Interfaces/IWebDatabaseManager.idl: Renamed detailsForDatabaseWithOrigin to
2749 detailsForDatabase. Replaced deleteDatabasesWithOrigin with deleteOrigin.
2750 Renamed deleteDatabaseWithOrigin to deleteDatabase. Fixed incorrect value for
2751 WebDatabaseDisplayNameKey.
2752 * Interfaces/IWebPreferencesPrivate.idl: Removed defaultDatabaseQuota and
2753 setDefaultDatabaseQuota.
2754 * Interfaces/IWebUIDelegatePrivate.idl: Replaced the two database quota functions
2757 * WebChromeClient.cpp:
2758 (WebChromeClient::exceededDatabaseQuota): Replaced the two database quota functions
2760 * WebChromeClient.h: Ditto.
2762 * WebDatabaseManager.cpp:
2763 (WebDatabaseManager::detailsForDatabase): Changed to check for a name of null to
2764 detect a nonexistent database rather than using isValid.
2765 (WebDatabaseManager::deleteOrigin): Updated for name change (actually a semantic
2766 change too, but both have the same name).
2767 (WebDatabaseManager::deleteDatabase): Updated for name change.
2768 (WebKitSetWebDatabasesPathIfNecessary): Ditto.
2770 * WebDatabaseManager.h: Updated for name changes.
2772 * WebPreferenceKeysPrivate.h: Removed WebKitDefaultDatabaseQuotaKey.
2773 * WebPreferences.cpp:
2774 (WebPreferences::initializeDefaultSettings): Removed the default for
2775 WebKitDefaultDatabaseQuotaKey.
2776 * WebPreferences.h: Removed defaultDatabaseQuota and setDefaultDatabaseQuota.
2778 (WebView::notifyPreferencesChanged): Removed the code to set the
2779 default database origin quota in WebCore::Settings based on IWebPreferencesPrivate.
2781 2008-01-19 Mark Rowe <mrowe@apple.com>
2783 Fix inconsistent line endings and set svn:eol-style=native
2784 on IDL files that did not have it set.
2786 * Interfaces/IGEN_DOMObject.idl:
2788 2008-01-18 Adam Roben <aroben@apple.com>
2790 Fix <rdar://5693854> REGRESSION (r29581): fast/events/frame-click-focus.html failing
2792 Restored the previous behavior of IWebViewPrivate::updateActiveState,
2793 which DRT depends on, and renamed it to
2794 IWebViewPrivate::updateFocusedAndActiveState to be clearer about its
2799 * Interfaces/IWebViewPrivate.idl:
2801 (WebViewWndProc): Removed some FIXMEs that we no longer want to fix
2802 because the current design is better.
2803 (WebView::updateActiveState): This is now just a method of WebView,
2804 not any of its public interfaces.
2805 (WebView::updateFocusedAndActiveState): Performs the tasks that the
2806 old IWebViewPrivate::updateActiveState performed.
2809 2008-01-18 Alexey Proskuryakov <ap@webkit.org>
2811 Reviewed by Adam Roben.
2813 Fix plugin-related tests in Debug_Internal configuration, which are failing because of CRT version mismatch
2814 between DRT and TestNetscapePlugin.
2816 * WebKit.vcproj/WebKit.sln: Use newly added TestNetscapePlugin Debug_Internal configuration.
2818 2008-01-17 Steve Falkenburg <sfalken@apple.com>
2822 * WebKit.vcproj/WebKit.make:
2824 2008-01-16 Adam Roben <aroben@apple.com>
2826 Trigger activation changes at the right time by listening for WM_NCACTIVATE
2828 This is the final part of <rdar://5006915> Inactive look for Aqua
2831 WebView now listens to messages sent to its top-level parent window.
2832 When the top-level parent receives a WM_NCACTIVATE message, WebView
2833 recalculates whether it is contained within the current active window.
2837 * Interfaces/IWebViewPrivate.idl:
2838 (IWebViewPrivate::windowAncestryDidChange): Added. WebKit clients
2839 should call this when they change the parent window chain of a
2842 (WebView::WebView): Initialize new member.
2843 (findTopLevelParent): Added.
2845 - Separated activation handling from focus handling, now that
2846 activation handling is taken care of by updateActiveState
2848 - Compare top-level parents in our WM_KILLFOCUS handler so that we
2849 really know if focus is staying inside our top-level window.
2850 - Update our active state on WM_WINDOWPOSCHANGED.
2851 - Added a WM_TIMER handler.
2852 (WebView::initWithFrame): Call windowAncestryDidChange after setting
2853 up our HWND as a child of the host window.
2854 (WebView::windowReceivedMessage): Added. Update our active state when
2855 our top-level parent receives a WM_NCACTIVATE message.
2856 (WebView::updateActiveStateSoon): Added.
2857 (WebView::setHostWindow): Call windowAncestryDidChange after changing
2859 (WebView::updateActiveState): We are active if our top-level parent is
2860 the same as the top-level parent of the active window.
2861 (WebView::windowAncestryDidChange): Added. Recalculates our top-level
2862 parent and registers as a listener for the new top-level parent's
2864 * WebView.h: Made WebView and WindowMessageListener so that it can
2865 utilize WindowMessageBroadcaster to listen to its top-level parent's
2868 2008-01-16 Adam Roben <aroben@apple.com>
2870 Updated for ScrollBarClient changes
2875 (WebScrollBar::isActive): Added.
2877 2008-01-16 Adam Roben <aroben@apple.com>
2879 Updated for changes to WebCore methods
2881 Focus and active state are now handled (somewhat) separately. Future
2882 patches will further separate these concepts.
2887 (WebViewWndProc): Updated for method renames.
2888 (WebView::updateActiveState): Only change the active state here. Focus
2889 is handled inside WM_SETFOCUS and WM_KILLFOCUS message handlers.
2891 2008-01-16 Steve Falkenburg <sfalken@apple.com>
2893 <rdar://problem/5097419> Cursor flickers when over window resizer
2898 (WebViewWndProc): Don't set the resize cursor when over the non-border resize area.
2900 2008-01-15 Steve Falkenburg <sfalken@apple.com>
2902 <rdar://problem/5663888> Cannot type into a JavaScript prompt created from a timer
2904 Allow nested timers from javascript prompts to allow for WebView-based edit fields.
2908 * WebChromeClient.cpp:
2909 (WebChromeClient::runJavaScriptPrompt):
2911 2008-01-14 Steve Falkenburg <sfalken@apple.com>
2913 Use shared vsprops for most vcproj properties.
2917 * WebKit.vcproj/Interfaces.vcproj:
2918 * WebKit.vcproj/WebKit.vcproj:
2919 * WebKit.vcproj/WebKitGUID.vcproj: Add missing Debug_Internal config.
2921 2008-01-11 Steve Falkenburg <sfalken@apple.com>
2923 Share common files across projects.
2926 Debug: common.vsprops, debug.vsprops
2927 Debug_Internal: common.vsprops, debug.vsprops, debug_internal.vsprops
2928 Release: common.vsprops, release.vsprops
2930 Shared properties can go into common.vsprops, shared debug settings can go into debug.vsprops.
2931 debug_internal.vsprops will be mostly empty except for file path prefix modifiers.
2933 Pull auto-version.sh, VERSION, and PRODUCTVERSION from tools.
2935 Reviewed by Adam Roben.
2937 * WebKit.vcproj/Interfaces.vcproj:
2938 * WebKit.vcproj/PRODUCTVERSION: Removed.
2939 * WebKit.vcproj/VERSION: Removed.
2940 * WebKit.vcproj/WebKit.vcproj:
2941 * WebKit.vcproj/WebKitGUID.vcproj:
2942 * WebKit.vcproj/auto-version.sh: Removed.
2943 * WebKit.vcproj/debug.vsprops: Removed.
2944 * WebKit.vcproj/debug_internal.vsprops: Removed.
2945 * WebKit.vcproj/release.vsprops: Removed.
2947 2008-01-11 Adam Roben <aroben@apple.com>
2949 Fix Bug 16828: WebView never paints if first page load is canceled after being committed but before layout
2951 <http://bugs.webkit.org/show_bug.cgi?id=16828>
2954 Now that we have 1) a real loader and 2) multiple FrameViews per
2955 Frame, we no longer need the hackery we had in our WM_PAINT handler
2956 that decided whether or not to paint. We now always want to paint,
2957 letting the swapping of FrameViews that happens in
2958 transitionToCommittedForNewPage handle which document gets painted.
2963 (WebViewWndProc): Removed hackery that decided sometimes not to paint.
2965 2008-01-11 Mark Rowe <mrowe@apple.com>
2967 Windows build fix. Update to match method name in WebCore.
2969 * WebJavaScriptCollector.cpp:
2970 (WebJavaScriptCollector::collectOnAlternateThread):
2972 2008-01-10 Geoffrey Garen <ggaren@apple.com>
2974 Reviewed by John Sullivan.
2976 Updated for transition away from JavaScriptStatistics, which is gone now.
2978 * WebJavaScriptCollector.cpp:
2979 (WebJavaScriptCollector::collect):
2980 (WebJavaScriptCollector::collectOnAlternateThread):
2981 (WebJavaScriptCollector::objectCount):
2983 2008-01-10 Maciej Stachowiak <mjs@apple.com>
2985 Not reviewed, build fix.
2989 * WebDatabaseManager.cpp:
2990 * WebSecurityOrigin.h:
2992 2008-01-10 Maciej Stachowiak <mjs@apple.com>
2994 Not reviewed, build fix.
2998 * WebDatabaseManager.cpp:
2999 (WebDatabaseManager::databasesWithOrigin):
3000 * WebSecurityOrigin.h:
3002 2008-01-10 Maciej Stachowiak <mjs@apple.com>
3006 - remove SecurityOriginData and fold its functionality into SecurityOrigin
3008 * WebChromeClient.cpp:
3009 (WebChromeClient::requestQuotaIncreaseForNewDatabase):
3010 (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
3011 * WebChromeClient.h:
3012 * WebDatabaseManager.cpp:
3013 (WebDatabaseManager::origins):
3014 (WebDatabaseManager::databasesWithOrigin):
3015 (WebDatabaseManager::detailsForDatabaseWithOrigin):
3016 (WebDatabaseManager::deleteDatabasesWithOrigin):
3017 (WebDatabaseManager::deleteDatabaseWithOrigin):
3018 (WebDatabaseManager::dispatchDidModifyOrigin):
3019 (WebDatabaseManager::dispatchDidModifyDatabase):
3020 * WebDatabaseManager.h:
3021 * WebSecurityOrigin.cpp:
3022 (WebSecurityOrigin::createInstance):
3023 (WebSecurityOrigin::WebSecurityOrigin):
3024 (WebSecurityOrigin::protocol):
3025 (WebSecurityOrigin::domain):
3026 (WebSecurityOrigin::port):
3027 (WebSecurityOrigin::usage):
3028 (WebSecurityOrigin::quota):
3029 (WebSecurityOrigin::setQuota):
3030 * WebSecurityOrigin.h:
3032 2008-01-10 David Kilzer <ddkilzer@apple.com>
3034 dftables should be rewritten as a script
3036 <http://bugs.webkit.org/show_bug.cgi?id=16818>
3037 <rdar://problem/5681463>
3041 * WebKit.vcproj/WebKit.sln: Removed reference to dftables project.
3043 2008-01-10 Adam Roben <aroben@apple.com>
3045 Fix many bugs by giving Windows one FrameView per page load
3049 Windows back/forward cache causes crashes in the layout tests
3051 <http://bugs.webkit.org/show_bug.cgi?id=16808>
3052 REGRESSION: PLT broken on Windows due to back/forward cache
3054 <http://bugs.webkit.org/show_bug.cgi?id=16607>
3055 Random crashes in FrameView::scheduleRelayout while surfing
3058 On Windows until now we've only had one FrameView per Frame. Once the
3059 back/forward cache was turned on this started causing assertions to
3060 fail and crashes to occur due to a single FrameView being both in the
3061 back/forward cache (possibly multiple times!) and used by a live
3062 document. We now create a new FrameView for each page load, just as
3065 This has the side-effect of plugging some of the world leaks seen at
3071 (WebFrame::initWithWebFrameView): Don't create the FrameView right
3072 away -- it'll be created when the load is committed.
3073 (WebFrame::transitionToCommittedFromCachedPage): Match the Mac by no
3074 longer calling resetMultipleFormSubmissionProtection here.
3075 (WebFrame::transitionToCommittedForNewPage): Ported code from
3076 -[WebCoreFrameBridge
3077 createFrameViewWithNSView:marginWidth:marginHeight:],
3078 -[WebCoreFrameBridge installInFrame:], and moved code here from
3079 WebFrame::initWithWebFrameView and WebView::initWithFrame. WebCore
3080 takes care of resetMultipleFormSubmissionProtection, just like it does
3083 (WebView::initWithFrame): Moved FrameView initialization code to
3084 WebFrame::transitionToCommittedForNewPage.
3086 2008-01-09 Ada Chan <adachan@apple.com>
3088 Fix crash that could happen if the key we are passing to the HashMap is 0 in WebView::interpretKeyEvent().
3093 (WebView::interpretKeyEvent):
3095 2008-01-08 Steve Falkenburg <sfalken@apple.com>
3099 * DOMCoreClasses.cpp:
3101 2008-01-07 Antti Koivisto <antti@apple.com>
3103 Try to fix the Windows build.
3105 * WebKit.vcproj/WebKit.sln:
3107 2008-01-07 Antti Koivisto <antti@apple.com>
3111 Re-enable media support in Windows build.
3113 * WebKit.vcproj/WebKit.vcproj:
3115 2008-01-07 Steve Falkenburg <sfalken@apple.com>
3119 * WebKit.vcproj/InterfacesGenerated.vcproj:
3121 2008-01-07 Dan Bernstein <mitz@apple.com>
3123 Reviewed by Dave Hyatt.
3125 - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
3128 (WebView::setShouldApplyMacFontAscentHack):
3130 2008-01-07 Holger Freyther <zecke@selfish.org>
3132 Reviewed by Alp Toker.
3134 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
3136 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
3137 * Update the ContextMenuController to accept CheckableActionTypes as well.
3138 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
3139 was extracted from ContextMenu::checkOrEnableIfNeeded.
3140 * Update the Qt and Windows port.
3142 * WebContextMenuClient.cpp:
3144 2008-01-04 Alexey Proskuryakov <ap@webkit.org>
3146 Reviewed by Adam Roben.
3148 http://bugs.webkit.org/show_bug.cgi?id=16733
3149 REGRESSION: Crash on Safari Start
3151 * Interfaces/IWebViewPrivate.idl: Should have added a new method at the end.
3153 2008-01-04 Alexey Proskuryakov <ap@webkit.org>
3157 <rdar://problem/5611712> xsl:sort does not use a case folding sort, and the 'case-order' attribute is ignored (16077)
3159 * WebKit.vcproj/WebKit.vcproj: Link to icuin{_debug}.lib
3161 2008-01-04 Adam Roben <aroben@apple.com>
3163 Fix <rdar://4968855> Shift-PageUp/Shift-PageDown only select one line of text
3165 Test: platform/win/editing/selection/shift-page-down-up.html
3169 * WebView.cpp: Correct the commands associated with
3170 Shift-PageUp/Shift-PageDown.
3172 2008-01-03 Alexey Proskuryakov <ap@webkit.org>
3176 <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController
3178 * Interfaces/IWebViewPrivate.idl:
3180 (WebView::executeCoreCommandByName):
3182 Added an SPI to implement layoutTestController.execCommand.
3184 2008-01-03 Ada Chan <adachan@apple.com>
3186 Replaced the use of editor command "ForwardDelete" with "DeleteForward" to be consistent
3187 with our use of "DeleteBackward".
3189 Rubber-stamped by Jon.
3193 2008-01-03 Ada Chan <adachan@apple.com>
3195 Regression: backspace stopped working on text inputs
3196 - Replaced the use of editor command "BackwardDelete" with "DeleteBackward" since it's no longer supported.
3200 * WebEditorClient.cpp:
3201 (WebEditorClient::textWillBeDeletedInTextField):
3204 2008-01-02 Alice Liu <alice.liu@apple.com>
3208 Fixed <rdar://5283861> (problems scrolling in gmail message content area)
3212 bubble scrolling from a key event
3214 2008-01-01 Matt Lilek <webkit@mattlilek.com>
3216 Attempt to fix the Windows bots until the bots
3217 can get the Quicktime SDK installed.
3219 * WebKit.vcproj/WebKit.sln:
3220 * WebKit.vcproj/WebKit.vcproj:
3222 2007-12-30 Matt Lilek <webkit@mattlilek.com>
3226 Bug 16578: Windows Web Inspector window needs minimum size
3227 http://bugs.webkit.org/show_bug.cgi?id=16578
3229 * WebInspectorClient.cpp:
3230 (WebInspectorClient::onGetMinMaxInfo):
3231 (WebInspectorWndProc):
3232 * WebInspectorClient.h:
3234 2007-12-21 Antti Koivisto <antti@apple.com>
3238 Build media support on Windows.
3240 * WebKit.vcproj/WebKit.sln:
3241 * WebKit.vcproj/WebKit.vcproj:
3243 2007-12-21 Ada Chan <adachan@apple.com>
3245 Implemented DOMDocument::getElementById().
3249 * DOMCoreClasses.cpp:
3250 (DOMDocument::getElementById):
3252 2007-12-21 Alexey Proskuryakov <ap@webkit.org>
3254 Reviewed by Steve and Darin.
3256 <rdar://problem/5497037> Win32: Accelerator keys (ctrl-x,c,v,w,q,etc) only fire keyUp,
3257 keyDown/Press consumed by accelerator table (14104)
3259 <rdar://problem/5346299> preventing default behavior for key down does not block accelerators like Ctrl+N
3261 This is WebKit part of a fix, most of which will be in Safari.
3264 (WebViewWndProc): Return our result for WM_(SYS)KEYDOWN to let the client know whether
3265 further procesing is desired.
3267 2007-12-21 Alexey Proskuryakov <ap@webkit.org>
3269 Build fix: cannot use framework-style include for ProgIDMacros.h,
3270 because the file is only created on a later step.
3274 2007-12-20 Kevin McCullough <kmccullough@apple.com>
3278 - <rdar://5656485> Drosera: Win: Nightly does not reliably connect to
3281 - Drosera and Safari need to use the same ProgIDs in order for
3282 CoCreateInstance to work properly. The most robust way to do this is
3283 for WebKit to dynamically publish those ProgIDs.
3285 * ForEachCoClass.cpp: Added.
3286 (setUseOpenSourceWebKit):
3288 * ForEachCoClass.h: Added functionality to publish ProgIDs.
3289 * WebKit.vcproj/WebKit.def: Exposed added functions for applications.
3290 * WebKit.vcproj/WebKit.vcproj: Added ForEachCoClass.cpp
3291 * WebKit.vcproj/WebKit_debug.def: Exposed added functions fori
3294 2007-12-19 Dave Hyatt <hyatt@apple.com>
3296 Add a fourth preference value for GDI text in the font smoothing prefs.
3300 * Interfaces/IWebPreferences.idl:
3301 * WebPreferenceKeysPrivate.h:
3302 * WebPreferences.cpp:
3303 (WebPreferences::initializeDefaultSettings):
3304 (WebPreferences::fontSmoothing):
3305 (WebPreferences::setFontSmoothing):
3307 (WebView::notifyPreferencesChanged):
3309 2007-12-17 Darin Adler <darin@apple.com>
3313 - <rdar://4516170> Back/Forward Cache on Windows
3316 (WebFrame::forceLayout): Implemented this. Just calling through to
3317 Frame::forceLayout matches the Mac pretty well and should be enough
3318 for now. Without this we won't repaint the new page when we go back
3320 (WebFrame::dispatchWillSubmitForm): Use COMPtr's AdoptCOM constructor
3321 instead of the adoptRef function.
3322 (WebFrame::restoreViewState): Removed unneeded notImplemented() call.
3323 This is implemented as much as it needs to be.
3324 (WebFrame::shouldGoToHistoryItem): Ditto.
3325 (WebFrame::saveViewStateToItem): Ditto.
3326 (WebFrame::canCachePage): Ditto, also changed it to return true. This
3327 is what was preventing the back/forward cache from running, and there's
3328 no need for any additional checks in the Windows version.
3331 (PreferencesChangedOrRemovedObserver::onNotify): Fix backwards null check
3332 that was preventing this notification from ever being sent, which in turn
3333 meant that page cache had a capacity of 0.
3334 (WebView::initWithFrame): Removed unneeded setUsesPageCache(false) code.
3335 This actually was ineffective and ended up doing no harm, but we don't
3338 2007-12-16 Alexey Proskuryakov <ap@webkit.org>
3342 http://bugs.webkit.org/show_bug.cgi?id=16462
3343 REGRESSION: access keys broken on Windows
3345 * WebView.cpp: (WebView::keyPress): Handle system key presses as access keys.
3347 2007-12-15 Alexey Proskuryakov <ap@webkit.org>
3351 http://bugs.webkit.org/show_bug.cgi?id=16436
3352 Alt+Space works incorrectly
3354 Test: platform/win/fast/events/alt-space-scroll.html
3358 (WebView::keyPress):
3359 We do not handle WM_SYSCHAR events.
3361 2007-12-14 Dan Bernstein <mitz@apple.com>
3363 - yet another build fix
3365 * DOMHTMLClasses.cpp:
3366 (DOMHTMLDocument::URL):
3368 2007-12-14 Dan Bernstein <mitz@apple.com>
3372 * WebIconDatabase.h:
3374 2007-12-14 Darin Adler <darin@apple.com>
3378 - http://bugs.webkit.org/show_bug.cgi?id=16443
3379 implement some missing Windows WebKit functions
3381 * DOMHTMLClasses.cpp:
3382 (DOMHTMLDocument::URL): Implemented.
3384 * WebActionPropertyBag.cpp:
3385 (WebActionPropertyBag::Read): Fixed the WebActionElementKey case.
3387 2007-12-14 Darin Adler <darin@apple.com>
3392 (WebView::execCommand): Switched from Editor::execCommand to Editor:command.
3393 Updated name from MoveUpByPageAndModifyCaret to MovePageUp and from
3394 MoveDownByPageAndModifyCaret to MovePageDown.
3395 (WebView::copy): Switched from Editor::execCommand to Editor:command.
3396 (WebView::cut): Ditto.
3397 (WebView::paste): Ditto.
3398 (WebView::delete_): Ditto.
3400 2007-12-13 Steve Falkenburg <sfalken@apple.com>
3402 Move source file generation into its own vcproj to fix build dependencies.
3406 * WebKit.vcproj/Interfaces.vcproj:
3407 * WebKit.vcproj/InterfacesGenerated.vcproj: Added.
3408 * WebKit.vcproj/WebKit.sln:
3409 * WebKit.vcproj/WebKit.submit.sln:
3410 * WebKit.vcproj/build-generated-files.sh:
3412 2007-12-13 Adam Roben <aroben@apple.com>
3414 Fix <rdar://5517707> Crash on wptv.wp.pl when "make bigger" button is clicked
3419 (WebViewWndProc): Repost paint messages and ignore all other messages
3420 when we're calling a plugin.
3422 2007-12-13 Steve Falkenburg <sfalken@apple.com>
3424 Fix project dependencies based on JavaScriptCore change.
3426 * WebKit.vcproj/WebKit.sln:
3428 2007-12-13 Alexey Proskuryakov <ap@webkit.org>
3432 http://bugs.webkit.org/show_bug.cgi?id=16421
3433 REGRESSION(r28669): Page scrolls down when you hit space key in text area
3435 Test: fast/events/space-scroll-event.html
3439 (WebView::keyPress):
3440 Moved space handling to keyPress() to fix this bug and to match IE. Scrolling via arrow keys is correctly handled
3443 2007-12-12 Brady Eidson <beidson@apple.com>
3445 Reviewed by Sam Weinig
3447 Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows)
3449 Even though this new code isn't exercised yet because the page cache is still turned off for Windows, local testing
3450 has indicated it works well.
3452 * WebCachedPagePlatformData.h: Added.
3453 (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes an IWebDataSource and the object retains it
3454 (WebCachedPagePlatformData::clear):
3455 (WebCachedPagePlatformData::webDataSource):
3458 (WebFrame::savePlatformDataToCachedPage):
3459 (WebFrame::transitionToCommittedFromCachedPage):
3460 (WebFrame::transitionToCommittedForNewPage):
3463 * WebKit.vcproj/WebKit.vcproj:
3465 2007-12-12 Steve Falkenburg <sfalken@apple.com>
3469 * WebKit.vcproj/WebKit.make: Copy only what we need out of obj/bin.
3471 2007-12-12 Dan Bernstein <mitz@apple.com>
3473 Reviewed by Darin Adler.
3475 - revert my earlier crash fix after making WebCore return the empty
3476 editor command for the empty command name.
3479 (WebView::handleEditingKeyboardEvent):
3481 2007-12-12 Oliver Hunt <oliver@apple.com>
3485 <rdar://problem/5071781> window.mouseout events are not
3486 sent to window when mouse moves out of window
3488 Hook up the windows mouse tracking logic to allow us to
3489 detect the mouse leaving the window.
3493 (WebView::handleMouseEvent):
3497 2007-12-12 Dan Bernstein <mitz@apple.com>
3499 Reviewed by Alexey Proskuryakov.
3501 - fix a crash when pressing a key that is not associated with a command
3504 (WebView::handleEditingKeyboardEvent): Check if the result of
3505 interpretKeyEvent() is empty.
3507 2007-12-11 Sam Weinig <sam@webkit.org>
3509 Reviewed by Darin Adler.
3511 Scrub URL out of the tree in preparation for renaming KURL to URL.
3515 (WebFrame::dispatchWillPerformClientRedirect):
3516 (WebFrame::setTitle):
3517 (WebFrame::updateGlobalHistoryForStandardLoad):
3518 (WebFrame::updateGlobalHistoryForReload):
3519 (WebFrame::cancelledError):
3520 (WebFrame::blockedError):
3521 (WebFrame::interruptForPolicyChangeError):
3522 (WebFrame::createPlugin):
3524 (WebView::notifyDidAddIcon):
3526 2007-12-10 Anders Carlsson <andersca@apple.com>
3530 <rdar://problem/5636865>
3531 WebKit needs API to allow registering a protocol as local (RSS feeds appear unstyled)
3533 * Interfaces/IWebView.idl:
3535 (WebView::registerURLSchemeAsLocal):
3538 2007-12-11 Ada Chan <adachan@apple.com>
3540 Updated the database SPI to take in IWebFrame.
3544 * Interfaces/IWebUIDelegatePrivate.idl:
3545 * WebChromeClient.cpp:
3546 (WebChromeClient::requestQuotaIncreaseForNewDatabase):
3547 (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
3549 2007-12-11 Alexey Proskuryakov <ap@webkit.org>
3554 (WebView::interpretKeyEvent):
3556 2007-12-11 Darin Adler <darin@apple.com>
3559 (WebView::handleEditingKeyboardEvent): Update for change to Editor API.
3561 2007-12-11 Alexey Proskuryakov <ap@webkit.org>
3565 <rdar://problem/5535636>
3566 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
3568 http://bugs.webkit.org/show_bug.cgi?id=13916
3569 JavaScript detects Tab as a character input on a textfield validation
3571 Listen to WM_CHAR messages, and actually pass the type of message received down to WebCore.
3572 Since WM_KEYDOWN == keydown and WM_CHAR == keypress, this allows for much better IE compatibility
3573 than layering Windows keyboard event handling on top of Mac one.
3576 (WebView::keyUp): Do not special case Alt+F4 and Alt+Space - we don't get keyups for those anyway!
3577 (WebView::interpretKeyEvent): Renamed WindowsKeyCode() to windowsVirtualKeyCode().
3578 (WebView::handleEditingKeyboardEvent): Use the additional information about event type that
3579 we now pass with PlatformKeyboardEvent.
3580 (WebView::keyDown): (WebView::keyPress): Split WM_KEYDOWN and WM_CHAR handling in separate
3581 functions, pass them down as is, without trying to guess what WM_CHAR Windows would have sent
3582 for a given WM_KEYDOWN.
3584 (WebViewWndProc): Handle WM_CHAR and WM_SYSCHAR.
3586 * WebView.h: Removed inIMEKeyDown() - it doesn't look like we need it at all. At least, I didn't
3587 notice any regressions after removing the only call to it in WebEditorClient.
3589 * WebEditorClient.cpp:
3590 (WebEditorClient::handleKeyboardEvent):
3591 (WebEditorClient::handleInputMethodKeydown):
3592 * WebEditorClient.h:
3593 Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
3594 Renamed handleInputMethodKeypress() to handleInputMethodKeydown() and removed
3595 inIMEKeyDown()-related code.
3597 2007-12-10 Geoffrey Garen <ggaren@apple.com>
3599 Reviewed by Sam Weinig.
3601 Updated for rename in JavaScriptCore.
3603 * WebScriptCallFrame.cpp:
3604 (WebScriptCallFrame::functionName):
3605 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
3607 2007-12-07 Steve Falkenburg <sfalken@apple.com>
3609 Fix version parsing.
3611 Rubber-stamped by Oliver.
3613 * WebKit.vcproj/auto-version.sh:
3615 2007-12-07 Steve Falkenburg <sfalken@apple.com>
3619 * WebKit.vcproj/WebKit.vcproj:
3620 * WebScriptCallFrame.cpp:
3622 2007-12-07 Steve Falkenburg <sfalken@apple.com>
3627 (_WebCoreHistoryProvider::containsURL):
3629 2007-12-07 Geoffrey Garen <ggaren@apple.com>
3631 Tried to fix build by suppressing warning.
3633 * WebScriptCallFrame.cpp:
3635 2007-12-07 Darin Adler <darin@apple.com>
3639 - http://bugs.webkit.org/show_bug.cgi?id=15981
3640 speed up visited-link code a bit
3642 * WebHistory.cpp: Removed unused Latin-1 code path.
3643 (_WebCoreHistoryProvider::containsItem): Updated for function name change.
3645 2007-12-07 Steve Falkenburg <sfalken@apple.com>