2007-03-14 Adele Peterson Reviewed by Darin. WebKit part of fix for REGRESSION: Shift-selection stopped working in text fields This fixes doCommandBySelector to take a command string instead of a key code. * Interfaces/IWebEditingDelegate.idl: Changed parameter to BSTR. * Interfaces/IWebFormDelegate.idl: ditto. * WebEditorClient.cpp: (WebEditorClient::doTextFieldCommandFromEvent): Calls doCommandBySelector with a BString that it gets from interpretKeyEvent instead of a key code. (WebEditorClient::textWillBeDeletedInTextField): Calls doCommandBySelector with a BString to represent the BackwardDelete command. (WebEditorClient::handleKeypress): Calls handleEditingKeyboardEvent with just the KeyboardEvent. * WebView.cpp: Added commands that will be used by doCommandBySelector to the table (Cancel, InsertTab, InsertBacktab, InsertNewline). (WebView::interpretKeyEvent): Added. Returns a command string for a KeyboardEvent. Removed static editCommandForKey. (WebView::handleEditingKeyboardEvent): Call Editor methods instead of calling handleTextInputEvent directly. * WebView.h: 2007-03-14 Administrator Build fixes. * WebDataSource.cpp: (WebDataSource::subresourceForURL): * WebKitDLL.cpp: (loadResourceIntoBuffer): 2007-03-12 Adele Peterson Reviewed by Oliver. WebKit part of fix for preventing default of keypress event doesn't work (affects .mac) Removed special handling of the WM_CHAR message. All this work is now done by WM_KEYDOWN, which will dispatch the keydown event, which causes the keypress event to be dispatched, which calls WebEditorClient::handleKeyPress to do all the hard work. * WebEditorClient.cpp: (WebEditorClient::handleKeypress): Removed special call to doTextFieldCommandFromEvent since this will now happen during normal key event processing. Call handleEditingKeyboardEvent. Now editing actions can be prevented from the keypress event handler. * WebView.cpp: (WebView::WebView): Added m_currentCharacterCode, so we can reuse the computed code from keyDown for keyUp events. (WebView::keyUp): Renamed arguments. Don't dispatch event for shift, ctrl, or capslock keys. Use m_currentCharacterCode when constructing the PlatformKeyboardEvent. (WebView::handleEditingKeyboardEvent): Now takes a KeyboardEvent instead of a PlatformKeyboardEvent. If no editCommand is created from the event, then call handleTextInputEvent. (WebView::keyDown): Peek at the next message in the message loop. If its a WM_CHAR, then get the character code and remove that message from the queue. Renamed arguments. Don't dispatch event for shift, ctrl, or capslock keys. Set m_currentCharacterCode and use it when constructing the PlatformKeyboardEvent. (WebViewWndProc): Removed handling of WM_CHAR, since this is now done from WM_KEYDOWN by dispatching the keydown event, which will eventually call handleKeyPress. * WebView.h: Made handleEditingKeyboardEvent public so it can be accessed from WebEditorClient. 2007-03-11 Oliver Hunt Reviewed by Adele. Stubbed WebEditorClient::respondToChangedSelection * WebEditorClient.cpp: (WebEditorClient::respondToChangedSelection): * WebEditorClient.h: 2007-03-10 Anders Carlsson Reviewed by Adam. * DOMCoreClasses.cpp: (DOMNode::textContent): Implement this. 2007-03-09 Anders Carlsson Reviewed by Adam. * WebURLResponse.cpp: (WebURLResponse::suggestedFilename): Get the suggested filename from the ResourceResponse object. 2007-03-09 Adam Roben Rubberstamped by Steve. B&I build fix. * WebKit.vcproj/WebKit.vcproj: Removed all references to iconv. 2007-03-08 Anders Carlsson Build fix. * WebView.cpp: (WebView::isLoading): 2007-03-08 Anders Carlsson Reviewed by Adam. Implement WebView::isLoading. * WebView.cpp: (WebView::isLoading): 2007-03-07 Adam Roben Rubberstamped by Anders. Return E_POINTER for null parameters. * WebScrollBar.cpp: (WebScrollBar::value): (WebScrollBar::capturingMouse): (WebScrollBar::frameGeometry): (WebScrollBar::width): (WebScrollBar::height): (WebScrollBar::requestedWidth): (WebScrollBar::requestedHeight): (WebScrollBar::windowClipRect): 2007-03-07 Adam Roben Reviewed by Oliver. Added requestedWidth and requestedHeight methods to WebScrollBar. * Interfaces/IWebScrollBarPrivate.idl: Added new declarations. * WebScrollBar.cpp: (WebScrollBar::requestedWidth): Implemented. (WebScrollBar::requestedHeight): Implemented. * WebScrollBar.h: Added method declarations. 2007-03-07 Adam Roben Rubberstamped by Anders. * WebFrame.cpp: (WebFrame::cancelledError): Use the WebURLErrorDomain constant. (WebFrame::interruptForPolicyChangeError): Use the WebKitErrorDomain constant. 2007-03-07 Adam Roben Rubberstamped by Anders. Switch the definition of WebURLErrorDomain to "CFURLErrorDomain" so that we will send the right errors once is fixed. * Interfaces/IWebError.idl: Changed definition. 2007-03-07 Adele Peterson Build fix. * WebEditorClient.cpp: (WebEditorClient::handleInputMethodKeypress): 2007-03-07 Adele Peterson Reviewed by Darin. WebKitWin part of fix for: http://bugs.webkit.org/show_bug.cgi?id=10871 http://bugs.webkit.org/show_bug.cgi?id=12677 REGRESSION: IME key events different in nightly REGRESSION: Return key is always sent when you confirm a clause in kotoeri * WebEditorClient.cpp: (WebEditorClient::handleKeypress): Changed handleKeyPress to handleKeypress. (WebEditorClient::handleInputMethodKeypress): Added. * WebEditorClient.h: 2007-03-07 Anders Carlsson Reviewed by Adam. * WebFrame.cpp: (WebFrame::makeDocumentView): Assert that frame is not null. 2007-03-06 Anders Carlsson Reviewed by Adam. * WebFrame.cpp: (WebFrame::makeDocumentView): Call resetMultipleFormSubmissionProtection() so that submitting the same form from separate loads works. 2007-03-06 Brady Eidson Reviewed by Adam Adapt to an API change in CFURLDownload * WebDownload.cpp: (WebDownload::init): 2007-03-06 Steve Falkenburg Rubber-stamped by Adam. Fix disney.com more. Disney redirects to disney.go.com. * WebView.cpp: (WebView::userAgentForKURL): Added disney.go.com 2007-03-06 Adam Roben Reviewed by Anders. Always keep rounding hacks on to be consistent. * WebDragClient.cpp: (createDragImageForLink): Tell StringTruncator to keep rounding hacks on. * WebKitGraphics.cpp: (CenterTruncateStringToWidth): Ditto. (RightTruncateStringToWidth): Ditto. 2007-03-06 Steve Falkenburg Reviewed by Adam. Allow custom user agents per site. This fixes: http://www.disney.com http://www.yahoo.com http://mail.google.com iTunes store links (w/ latest unsubmitted CFNetwork from our root share) * WebView.cpp: (WebView::userAgentForKURL): Check URL host against a list of known offenders, return them what they're looking for. 2007-03-06 Anders Carlsson Reviewed by Adam. Pass the user agent on. * WebFrame.cpp: (WebFrame::userAgent): * WebFrame.h: 2007-03-04 Adam Roben Reviewed by Steve. Added line spacing querying to FontMetrics to support line wrapping. * WebKitGraphics.cpp: (FontMetrics): Return the line spacing. * WebKitGraphics.h: Added lineSpacing parameter. 2007-03-02 Adam Roben Reviewed by Beth. Make submenus draw using the UIDelegate. * Interfaces/IWebUIDelegate.idl: Added new delegate method to add custom drawing data for menus. * WebView.cpp: (WebView::onInitMenuPopup): Added. Calls new delegate method. (WebViewWndProc): Added handler for WM_INITMENUPOPUP, which is called for all submenus. * WebView.h: Added declaration. 2007-03-02 Adam Roben Reviewed by Anders. Added optional underlining of a single character to WebKitGraphics. * WebKitGraphics.cpp: (DrawTextAtPoint): Passed optional underlinedIndex parameter to WebCoreTextRenderer. * WebKitGraphics.h: Added optional underlinedIndex parameter. 2007-03-01 Adam Roben Reviewed by Kevin M. Add support for right-truncation to WebKitGraphics. * WebKit.vcproj/WebKit.def: Added new export. * WebKit.vcproj/WebKit_debug.def: Ditto. * WebKitGraphics.cpp: (RightTruncateStringToWidth): Added. * WebKitGraphics.h: Added declaration. 2007-02-28 Adam Roben Reviewed by Anders. Made WebKitGraphics more flexible. * WebDragClient.cpp: (WebDragClient::createDragImageForLink): Updated for changes to WebKitGraphics/WebCoreTextRenderer. * WebKit.vcproj/WebKit.def: Added new exported methods. * WebKit.vcproj/WebKit_debug.def: Ditto. * WebKitGraphics.cpp: (makeFont): Added. (DrawTextAtPoint): Simplified arguments, changed to take a CGContextRef, and updated for WebCoreTextRenderer changes. (TextFloatWidth): Added. (FontMetrics): Added. (CenterTruncateStringToWidth): Added. * WebKitGraphics.h: Updated declarations. 2007-02-28 Steve Falkenburg Fix build (for new SDK) / Break build (for old SDK) * WebDownload.cpp: (WebDownload::initToResumeWithBundle): 2007-02-27 Ada Chan Reviewed by Steve and Adam. WebKitWin changes to get the aqua scrollbar into the app. * Interfaces/IWebScrollBarDelegatePrivate.idl: Added. COM interface for the WebKit scrollbar * Interfaces/IWebScrollBarPrivate.idl: Added. COM interface that allows the WebKit scrollbar to update the client. * Interfaces/WebKit.idl: * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): Added changes needed to create the WebKitScrollBar through COM * WebKitDLL.cpp: (DllGetClassObject): * WebScrollBar.cpp: Added. WebKitScrollBar wraps the WebCore's PlatformScrollbar. This allows the app to make its own scroll bar that's the same aqua scrollbar in the engine. (WebScrollBar::WebScrollBar): (WebScrollBar::~WebScrollBar): (WebScrollBar::createInstance): (WebScrollBar::QueryInterface): (WebScrollBar::AddRef): (WebScrollBar::Release): (WebScrollBar::init): instantiate PlatformScrollbar. (WebScrollBar::setEnabled): call through to PlatformScrollbar (WebScrollBar::setSteps): ditto (WebScrollBar::setProportion): ditto (WebScrollBar::setRect): ditto (WebScrollBar::setValue): ditto (WebScrollBar::value): ditto (WebScrollBar::capturingMouse): ditto (WebScrollBar::paint): ditto (WebScrollBar::frameGeometry): ditto (WebScrollBar::width): ditto (WebScrollBar::height): ditto (WebScrollBar::handleMouseEvent): ditto (WebScrollBar::scroll): ditto (WebScrollBar::valueChanged): call valueChanged on the delegate (WebScrollBar::windowClipRect): get the rect from the scrollbar's containing window * WebScrollBar.h: Added. 2007-02-27 Alice Liu Reviewed by Steve, Adam, Maciej, and their mothers. This is a general leaks fix but helps the effort towards fixing Boomer leaks while running HTML iBench However, this fix doens't close that bug. * WebFrame.cpp: (WebFrame::setTitle): fix a leak of WebHistory * WebHistory.cpp: (_WebCoreHistoryProvider::containsItemForURLUnicode): fix a leak of WebHistory 2007-02-27 Adam Roben Reviewed by Anders. Fix View source menu option is always disabled when Netscape 8 is installed The bug was caused by Netscape's npTrident.dll plugin, which registers itself as a handler for text/html and text/xml. * WebFrame.cpp: (WebFrame::canProvideDocumentSource): Explicitly allow viewing the source of HTML and XML documents, rather than disallowing text, image, and plugin documents. Plugins can register themselves as handlers for HTML and XML MIME types, but we still want to display source in those cases. 2007-02-27 Beth Dakin Reviewed by Adam. Make msimg32.lib available to the engine so that we can use AlphaBlend. * WebKit.vcproj/WebKit.vcproj: 2007-02-27 Ada Chan Fixed build. * WebFrame.cpp: 2007-02-27 Oliver Hunt Reviewed by Lou and Steve. Handle the WM_CURSOR message to stop cursor flickering to fix * WebView.cpp: (WebViewWndProc): 2007-02-27 Ada Chan Reviewed by Steve and Anders. Stop/reload button never changes back to reload when a click on a link spawns a download * WebError.cpp: (WebError::isPolicyChangeError): fixed string comparison * WebFrame.cpp: (WebFrame::interruptForPolicyChangeError): implemented the method 2007-02-26 Adam Roben Reviewed by Adele. Stop bizarre crashes from happening on startup. * WebKit.vcproj/WebKit.vcproj: Use new ENABLE_* macros instead of *_SUPPORT. 2007-02-24 Steve Falkenburg Pre-emptive build fix. Removed CGPThreads DLL copy * WebKit.vcproj/WebKit.vcproj: 2007-02-22 Adele Peterson Updating this file to match WebCore. * WebKit.vcproj/textAreaResizeCorner.png: 2007-02-22 Beth Dakin Reviewed by Adam. Fix for http://bugs.webkit.org/show_bug.cgi?id=12399 REGRESSION: Unable to prevent default context menu from appearing. * WebView.cpp: (WebView::handleContextMenuEvent): Clear the controller's context menu before propagating a new context menu event through the DOM. 2007-02-22 Oliver Hunt Reviewed by Ada, Lou, and Steve. Last of the major changes for drag and drop - Move COMPtr.h to WebCore - Added WebDragSource, a modified version of SDataSource from the App that can notify a WebView's eventhandler of drag events - Implement the last bits of the DragClient - As part of drag client added code to draw the "doubled" text used by drag links. May be useful for other parts of WebKit/App * COMPtr.h: Removed. Moving to WebCore * WebDragClient.cpp: (WebDragClient::actionMaskForDrag): (WebDragClient::willPerformDragDestinationAction): (WebDragClient::dragSourceActionMaskForPoint): (WebDragClient::willPerformDragSourceAction): Removing WebCore:: as i'm now using the WebCore namespace (WebDragClient::startDrag): Implemented client method (allocImage): (dragLabelFont): Helper functions for generating the link dragging image (WebDragClient::createDragImageForLink): Implemented client method * WebDropSource.cpp: Added. (WebDropSource::createInstance): (WebDropSource::WebDropSource): (WebDropSource::QueryInterface): (WebDropSource::AddRef): (WebDropSource::Release): (generateMouseEvent): Generates a mouse event for the EventHandler (WebDropSource::QueryContinueDrag): (WebDropSource::GiveFeedback): Copied from SDataObject in the App. Minor changes per suggestions from Ada and Steve (error codes, potential leaks) Also includes logic to notify the source WebView of drag events (moving and drag end) * WebDropSource.h: Added. Header for the above * WebKit.vcproj/WebKit.vcproj: Removing COMPtr.h, and adding WebDropSource.{h,cpp} * WebKitGraphics.cpp: (DrawDoubledTextAtPoint): Utility function for drawing double text, as used by link dragging image * WebKitGraphics.h: Defining the above function 2007-02-21 Brady Eidson Reviewed by the build-fix fairies * WebDownload.cpp: (WebDownload::initToResumeWithBundle): Conditionally use CFURLDownload API for the resume case. I totally made up the flag 2007-02-21 Brady Eidson Reviewed by Anders' rubberstamp * WebDownload.cpp: (WebDownload::initToResumeWithBundle): Make a copy of the string we truncate so it doesn't affect the original 2007-02-21 Brady Eidson Reviewed by Adam - Hookup resume downloads on the engine side NOTE: Resume downloads are broken in the current ChickenCat - this functionality requires a custom ToT CFNetwork as of CFNetwork r3372, or will require CFNetwork 172 or later * WebDownload.cpp: (WebDownload::initWithRequest): Changed some logging, plugged some potential leaks (WebDownload::initToResumeWithBundle): Added a real implementation - this now works! (WebDownload::didFinish): Added some logging and fixed up some lifetime issues (extractResumeDataFromBundle): Renamed to imply the modification of the file. Truncate the resume data from the file once it is extracted 2007-02-20 Beth Dakin Reviewed by Maciej. Move copyImage functionality from the ContextMenuClient to the Pasteboard. * WebContextMenuClient.cpp: * WebContextMenuClient.h: 2007-02-20 Adam Roben Reviewed by Darin and Anders. Fix App: Status bar text is more difficult to read than Mac OS X Safari * WebKitGraphics.cpp: (DrawTextAtPoint): Added bottomAlign and centerTruncate parameters. * WebKitGraphics.h: Ditto. 2007-02-20 Darin Adler Reviewed by Anders. * WebFrame.cpp: (WebFrame::redirectDataToPlugin): Update for changes to FrameLoader and DocumentLoader. 2007-02-19 Adam Roben Reviewed by Darin. Fix Crash in WebFrame::dataSource on dni.ru The fix for the bug was to zero out WebFrame's Frame pointer in WebFrame::frameLoaderDestroyed, and then to null-check or ASSERT non-null as appropriate. All IWebFrame methods that depend on the Frame pointer will return E_FAIL if it is null, and everywhere within WebFrame that wasn't null-checking before will now explicitly ASSERT. I also changed all uses of d->frame and WebFrame::impl() to use the core() function for consistency, and so that there is only one code path for getting from a WebFrame to a Frame. Additional more specific comments below. * WebChromeClient.cpp: (WebChromeClient::scrollBackingStore): (WebChromeClient::updateBackingStore): * WebFrame.cpp: (kit): Null-check the frame parameter. (core): Added two overloads of this. (WebFrame::DOMDocument): Added argument checking. (WebFrame::currentForm): (WebFrame::loadRequest): (WebFrame::loadData): (WebFrame::dataSource): Added argument checking, and return E_FAIL if the dataSource is null. (WebFrame::provisionalDataSource): Ditto. (WebFrame::stopLoading): (WebFrame::reload): (WebFrame::parentFrame): (WebFrame::renderTreeAsExternalRepresentation): Added argument checking. (WebFrame::firstLayoutDone): Ditto. (WebFrame::loadType): Ditto. (WebFrame::invalidate): (WebFrame::setTextSizeMultiplier): (WebFrame::inViewSourceMode): Added argument checking, and changed to return an HRESULT. (WebFrame::setInViewSourceMode): Changed to return an HRESULT. (WebFrame::searchForLabelsBeforeElement): Added argument checking. (WebFrame::matchLabelsAgainstElement): Ditto. (WebFrame::frameLoaderDestroyed): Zero out the Frame pointer because the Frame is being destroyed. (WebFrame::createFrame): (WebFrame::loadURLIntoChild): Added some assertions. (WebFrame::dispatchWillSubmitForm): (WebFrame::frameLoadCompleted): (WebFrame::receivedData): (WebFrame::setUpPolicyListener): (WebFrame::receivedPolicyDecision): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchDecidePolicyForNewWindowAction): (WebFrame::dispatchDecidePolicyForNavigationAction): (WebFrame::dispatchCreatePage): (WebFrame::createPlugin): (WebFrame::redirectDataToPlugin): (WebFrame::createJavaAppletWidget): (WebFrame::windowObjectCleared): (WebFrame::setPrinting): (WebFrame::setInPrintingMode): (WebFrame::computePageRects): (WebFrame::getPrintedPageCount): Zero out the out parameter before proceeding. (WebFrame::spoolPages): (WebFrame::forceLayoutWithPageWidthRange): * WebFrame.h: * WebView.cpp: (WebView::paint): Silently fail on a null Frame, because this method could be called at any time. (WebView::mouseWheel): Ditto. (WebViewWndProc): Ditto. (WebView::inViewSourceMode): Return whatever WebFrame::setInViewSourceMode returns. (WebView::setInViewSourceMode): Ditto. (WebView::setCustomTextEncodingName): Replaced check for a null FrameLoader with a check for a null Frame, which is equivalent but, as a bonus, won't crash. (WebView::stringByEvaluatingJavaScriptFromString): (WebView::elementAtPoint): Added argument checking. (WebView::selectedText): Ditto. (WebView::centerSelectionInVisibleArea): 2007-02-19 Adam Roben Build fix. * WebFrame.cpp: (WebFrame::computePageRects): 2007-02-18 Maciej Stachowiak Reviewed by Oliver. - Adapt for Lars's patch to clean up Frame * WebChromeClient.cpp: (WebChromeClient::tabsToLinks): (WebChromeClient::windowResizerRect): (WebChromeClient::addToDirtyRegion): (WebChromeClient::scrollBackingStore): (WebChromeClient::updateBackingStore): * WebChromeClient.h: * WebEditorClient.cpp: (WebEditorClient::shouldChangeSelectedRange): (WebEditorClient::textFieldDidBeginEditing): (WebEditorClient::textFieldDidEndEditing): (WebEditorClient::textDidChangeInTextField): (WebEditorClient::doTextFieldCommandFromEvent): (WebEditorClient::textWillBeDeletedInTextField): (WebEditorClient::textDidChangeInTextArea): * WebEditorClient.h: * WebElementPropertyBag.cpp: (WebElementPropertyBag::Read): * WebFrame.cpp: (kit): (WebFrame::initWithWebFrameView): (WebFrame::searchForLabelsBeforeElement): (WebFrame::matchLabelsAgainstElement): (WebFrame::createPlugin): (WebFrame::createJavaAppletWidget): (WebFrame::computePageRects): (WebFrame::getPrintedPageCount): (WebFrame::spoolPages): * WebFrame.h: * WebView.cpp: (WebView::handleEditingKeyboardEvent): (WebView::keyDown): (WebView::generateSelectionImage): * WebView.h: 2007-02-18 Ada Chan Reviewed by Adam. Move app text controls to use webview * DOMCoreClasses.cpp: (DOMNode::parentNode): implemented (DOMElement::blur): implemented * Interfaces/IWebUIDelegatePrivate.idl: added API for focus/blur notifications * WebKit.vcproj/WebKit.def: added DrawTextAtPoint * WebKit.vcproj/WebKit.vcproj: added WebKitGraphics.h/cpp * WebKit.vcproj/WebKit_debug.def: added DrawTextAtPoint * WebKitGraphics.cpp: Added. (DrawTextAtPoint): calls WebCoreDrawTextAtPoint to render text * WebKitGraphics.h: Added. * WebView.cpp: (WebViewWndProc): notify setfocus and killfocus through IWebUIDelegatePrivate delegate. (WebView::unmarkAllTextMatches): added null check 2007-02-18 Oliver Hunt Reviewed by Adam. Stubs to keep the build going * WebDragClient.cpp: (WebDragClient::willPerformDragSourceAction): (WebDragClient::startDrag): (WebDragClient::createDragImageForLink): * WebDragClient.h: 2007-02-17 Steve Falkenburg Reviewed by Adam. Find: clicking on the webview does not hide findoverlay Find: Showing/hiding the Find banner should not push the page contents down when possible * Interfaces/IWebViewPrivate.idl: Added scrollBy, visibleContentRect * WebView.cpp: (WebView::scrollOffset): Add null check (WebView::scrollBy): Added so we can scroll a webview easily (matches scroll position getter here) (WebView::visibleContentRect): Added so we can size find overlay appropriately (not including scroll bars) * WebView.h: Added scrollBy, visibleContentRect 2007-02-17 Adele Peterson Reviewed by Hyatt. Fix for Caret is not revealed when a newline is entered into a textarea * WebView.cpp: (WebView::handleEditingKeyboardEvent): Use shared code in Editor class to insertParagraphSeparator (or insertLineBreak for plain text). This will also reveal the selection properly. 2007-02-16 Anders Carlsson Build fixes. * WebDownload.cpp: (WebDownload::init): (WebDownload::initWithRequest): 2007-02-15 Steve Falkenburg Reviewed by Adam. Crash: autofilling empty page Return an error from WebFrame::DOMDocument if there's no document * WebFrame.cpp: (WebFrame::DOMDocument): null document now maps to E_FAIL 2007-02-15 Brady Eidson Reviewed by Adam - Save scroll position in the back/forward list * WebFrame.cpp: (WebFrame::restoreViewState): Renamed, as scroll position was pushed to WebCore (WebFrame::saveViewStateToItem): Ditto * WebFrame.h: 2007-02-15 Adam Roben Reviewed by Anders. Fix Printing scales frames to page width instead of doing a layout at that width * Interfaces/IWebFramePrivate.idl: Added setInPrintingMode method. * WebFrame.cpp: (WebFrame::WebFrame): Initialize new member. (printerRect): New helper function. (WebFrame::setPrinting): Ported from WebHTMLView. (WebFrame::setInPrintingMode): Implemented. (WebFrame::computePageRects): Changed to store the page rects. (WebFrame::getPrintedPageCount): Added an ASSERT and updated for change to computePageRects. (WebFrame::spoolPages): Use the stored page rects, and set mediaBox's size using the print rect instead of the page rect so we will scale the pages to the full width of the print DC. (WebFrame::forceLayoutWithPageWidthRange): Ported from WebFrameBridge. * WebFrame.h: Updated declarations. 2007-02-15 Lou Amadio Reviewed by Steve. CGText: should use correct mechanism to set font smoothing style * WebKit.vcproj/WebKit.vcproj: * WebPreferences.cpp: (WebPreferences::setFontSmoothing): * WebView.cpp: (WebViewWndProc): 2007-02-13 Steve Falkenburg Reviewed by Adam. AddressBook autofill doesn't fill rest of form when tabbing out of a completed field Send tab keypresses to IWebFormDelegate::doCommandBySelector. * WebEditorClient.cpp: (WebEditorClient::handleKeyPress): Call doTextFieldCommandFromEvent if we get a tab keypress 2007-02-12 Ada Chan Reviewed by Steve. Also, checked in a fix in WebContextMenuClient that Adam made on my machine, reviewed by me. Events not being passed from WebCore/WebKit up through IWebForm::doCommandBySelector Inform form delegate about delete key press. DOM event fixes: - Removed DOMEventTarget class. - IDOMEventTarget no longer extends IDOMObject - DOMNode now implements IDOMEventTarget - DOMEvent::CoCreateInstance creates the correct subclasses of DOMEvents based on the type of event - Added IDOMDocumentEvent interface, which DOMDocument implements. - Fixed the out parameter in IDOMUIEvent::view to be IDOMWindow** Implemented DOMHTMLDocument::body and DOMHTMLElement::setInnerText. * DOMCoreClasses.cpp: (DOMNode::addEventListener): added as DOMNode now needs to implement IDOMEventTarget (DOMNode::removeEventListener): ditto above (DOMNode::dispatchEvent): ditto above (DOMDocument::QueryInterface): DOMDocument now also implements IDOMDocumentEvent (DOMDocument::createEvent): added as DOMDocument implements IDOMDocumentEvent (DOMElement::focus): implemented * DOMCoreClasses.h: * DOMEventsClasses.cpp: (DOMEvent::DOMEvent): The data member m_event is now a RefPtr, and the WebCore::Event is now passed into the constructor via a PassRefPtr. (DOMEvent::~DOMEvent): No longer need to deref m_event since we are using a RefPtr. (DOMEvent::createInstance): instantiate the correct DOMEvent subclass based on event type. (DOMEvent::QueryInterface): be able to QI IID_DOMEvent, which returns back the DOMEvent type. (DOMUIEvent::view): fixed the API (DOMKeyboardEvent::ctrlKey): call .get() on RefPtr (DOMKeyboardEvent::shiftKey): ditto above (DOMKeyboardEvent::altKey): ditto above (DOMKeyboardEvent::metaKey): ditto above (DOMKeyboardEvent::altGraphKey): ditto above (DOMMouseEvent::ctrlKey): ditto above (DOMMouseEvent::shiftKey): ditto above (DOMMouseEvent::altKey): ditto above (DOMMouseEvent::metaKey): ditto above * DOMEventsClasses.h: (DOMEvent::coreEvent): Added an API to get the WebCore::Event out of a DOMEvent. Used in DOMNode::dispatchEvent. (DOMUIEvent::DOMUIEvent): made public so it can be called in DOMEvent::createInstance (DOMKeyboardEvent::DOMKeyboardEvent): ditto above (DOMKeyboardEvent::view): fixed API (DOMMouseEvent::DOMMouseEvent): made public so it can be called in DOMEvent::createInstance (DOMMouseEvent::view): fixed API (DOMMutationEvent::DOMMutationEvent): made public so it can be called in DOMEvent::createInstance (DOMOverflowEvent::DOMOverflowEvent): made public so it can be called in DOMEvent::createInstance (DOMWheelEvent::DOMWheelEvent): made public so it can be called in DOMEvent::createInstance (DOMWheelEvent::view): fixed API * DOMHTMLClasses.cpp: (DOMHTMLDocument::body): (DOMHTMLElement::setInnerText): * Interfaces/DOMEvents.idl: IDOMEventTarget no longer extends IDOMObject. Added IDOMDocumentEvent. * WebContextMenuClient.cpp: (WebContextMenuClient::getCustomMenuFromDefaultItems): check for error from calling contextMenuItemsForElement. * WebFrame.cpp: (WebFrame::textWillBeDeletedInTextField): call form delegate callback doCommandBySelector with VK_BACK when deleting text. 2007-02-11 Adam Roben Fixing line endings. * WebResource.cpp: * WebResource.h: 2007-02-10 Adam Roben Reviewed by Steve. Fix Loading eBay puts many items into back list The bug was that WebFrame::createFrame was calling loadRequest on the new child frame, which would initiate a load of FrameLoadTypeStandard, when in fact we wanted to do a FrameLoadTypeInternal load. I ported -[WebFrame _loadURL:referrer:intoChild:] to WebFrame, which contains the logic we need. * WebFrame.cpp: (WebFrame::createFrame): Use a COMPtr to manage the new WebFrame, and call loadURLIntoChild instead of just calling loadRequest. (WebFrame::loadURLIntoChild): Ported from Mac WebFrame. * WebFrame.h: Added declaration. 2007-02-09 Maciej Stachowiak Reviewed by Adam, Steve. - fixed Need WEbKit API to revtrieve current or first frame and form from a WebView * Interfaces/IWebFrame.idl: added currentForm * Interfaces/IWebView.idl: added focusedFrame * WebFrame.cpp: (WebFrame::currentForm): Get the "current" form for a frame, as determined by WebCore::Frame * WebFrame.h: * WebView.cpp: (WebView::focusedFrame): Get the currently focused frame (via FocusController). * WebView.h: 2007-02-09 Alice Liu Reviewed by Brady and Adam. Fixed Typing in content editable body does not automatically scroll to reveal cursor fix depends on corresponding fix in WebCoreWin * WebView.cpp: (WebViewWndProc): call the editor to handle inserting text and scrolling/focus changes 2007-02-09 John Sullivan Reviewed by Beth - WebKitWin part of fix for radar 4939636, problems with context menu items and binaries linked against WebKit 2.0. * Interfaces/IWebUIDelegate.idl: bumped enum value for new SPI tags to match change in WebCore/WebKit 2007-02-08 Alice Liu Reviewed by Adam. Fixed Find: Regression: Find banner does not select in orange on pages with frame * WebView.cpp: (WebView::searchFor): Ever since 11396, the widget no longer handles frame focus changes. This is now the page's focus controller responsibility 2007-02-07 Brady Eidson Reviewed by Steve, Ada, Darin, and Adam - Download resume support Note I did my work with a ToT CFNetwork. This will compile on stock CFNetwork, but will not function until they submit resume support. * Interfaces/IWebDownload.idl: Reworked the API a bit * MarshallingHelpers.cpp: (MarshallingHelpers::PathStringToFileCFURLRef): (MarshallingHelpers::FileCFURLRefToPathString): * MarshallingHelpers.h: * WebDownload.cpp: (WebDownload::initToResumeWithBundle): The app needs simply to pass in a bundle path to resume it (WebDownload::cancelForResume): Cancel the download, writing out the resume data (WebDownload::bundlePathForTargetPath): Helper for the app (WebDownload::setDestination): Cache the destination inside the WebDownload (WebDownload::didCreateDestination): Hide the bundle distinction from the app (WebDownload::didFinish): Hide the bundle distinction from the app (createResumeDataFromBundle): Extract the resume data from the bundle (appendResumeDataToBundle): Add the resume data to the bundle * WebDownload.h: 2007-02-08 Anders Carlsson Reviewed by Adam. Implement IWebResource::Data. Implement IWebDataSource::subresourceForURL. * MemoryStream.cpp: (MemoryStream::MemoryStream): (MemoryStream::createInstance): (MemoryStream::Clone): * MemoryStream.h: Remove notion of buffer owner, it's not needed now that the buffer itself is reference counted. * WebDataSource.cpp: (WebDataSource::subresourceForURL): Implement this. * WebKit.vcproj/WebKit.vcproj: Add WebResource.cpp and WebResource.h * WebResource.cpp: Added. (WebResource::WebResource): (WebResource::~WebResource): (WebResource::createInstance): (WebResource::QueryInterface): (WebResource::AddRef): (WebResource::Release): (WebResource::initWithData): (WebResource::data): (WebResource::URL): (WebResource::MIMEType): (WebResource::textEncodingName): (WebResource::frameName): * WebResource.h: Added. * WebView.cpp: (WebView::formDelegate): Return E_FAIL if there's no form delegate. 2007-02-08 Anders Carlsson Reviewed by Adam. Add shouldInterruptJavaScript to the API. * Interfaces/IWebUIDelegatePrivate.idl: * WebChromeClient.cpp: (WebChromeClient::addMessageToConsole): (WebChromeClient::shouldInterruptJavaScript): 2007-02-07 Anders Carlsson * WebChromeClient.cpp: * WebChromeClient.h: Build fix. 2007-02-06 Alice Liu Reviewed by Maciej. Fix for PageUp/PageDown don't move the caret in textareas * WebView.cpp: (WebView::keyDown): added key entry for function to scroll by page and move caret in scrolling editable regions 2007-02-06 Adam Roben Reviewed by Ada and Oliver. Add some GDI object logging to help catch leaks. * WebFrame.cpp: (WebFrame::layoutIfNeeded): * WebView.cpp: (WebView::addToDirtyRegion): (WebView::scrollBackingStore): (WebView::updateBackingStore): (WebView::paint): (WebView::paintIntoBackingStore): (WebView::paintIntoWindow): 2007-02-05 Brady Eidson Rubberstamped by Adam Added #include "config.h" to 3 files that didn't have it before I was tipped off when some work I was doing resulted in these 3 files trying to use the wrong MAX() - YET AGAIN... * CFDictionaryPropertyBag.cpp: * MarshallingHelpers.cpp: * WebHistory.cpp: 2007-02-05 Ada Chan Reviewed by Anders. Crash when back/forward buttons are clicked several times Clear loader's previous history item when frame load is completed (got that code from the mac side). * WebFrame.cpp: (WebFrame::frameLoadCompleted): 2007-02-04 Ada Chan Reviewed by Steve. Private browsing is not working correctly Implemented FrameLoaderClient::privateBrowsingEnabled(). * WebFrame.cpp: (WebFrame::privateBrowsingEnabled): 2007-02-04 Alice Liu Reviewed by Steve. Fix some memory leaks. This fixes WebFrame leak as well. Can be considered a partial fix for Boomer leaks while running HTML iBench * WebActionPropertyBag.cpp: (WebActionPropertyBag::WebActionPropertyBag): * WebDataSource.cpp: (WebDataSource::representation): * WebURLResponse.cpp: (:m_refCount): 2007-02-04 Adam Roben Reviewed by Steve. Fix REGRESSION: Crash while closing View Source window * WebView.cpp: (WebView::WebView): Initialize new member. (WebViewWndProc): Set flag when we receive WM_DESTROY, and don't handle WM_SIZE if that flag is true. (WebView::mainFrame): Added argument check. * WebView.h: (WebView::setIsBeingDestroyed): Added. (WebView::isBeingDestroyed): Added. 2007-02-04 Adam Roben Reviewed by Hyatt. Fix Cross-window frame targeting doesn't work * Interfaces/IWebView.idl: Pass RECT by value. * WebView.cpp: (WebView::initWithFrame): Uses the passed-in RECT for the frame, and sets the frame/group names. * WebView.h: Updated declaration. 2007-02-03 Steve Falkenburg Reviewed by Adam. Regression: History is not saved when boomer window is closed. Fix boolean test causing lost history regression. * WebHistoryItem.cpp: (WebHistoryItem::hasURLString): isEmpty returns true if there is NO url, not if there is one. 2007-02-02 Alice Liu Reviewed by Maciej. Fixed Find: Deleting all text in the Find banner search field should clear the page's selection * Interfaces/IWebView.idl: * WebView.cpp: (WebView::clearSelection): * WebView.h: Added a clearSelection function to webview so the findbanner can call it. 2007-02-02 Adam Roben Reviewed by Anders. Fix a crash when running the PLT. * WebView.cpp: (WebView::initWithFrame): Added assertions to make catching this easier. 2007-02-01 Ada Chan Reviewed by Anders. Forgot to assign document to 0 in case of failure in WebView::mainFrameDocument(). * WebView.cpp: (WebView::mainFrameDocument): 2007-02-01 Ada Chan Reviewed by Steve, Geoff. Regression: crash: when Resetting Safari Closing my two open boomer windows produced a crash Fixed crash when closing second window and doing the close all safari window option in Reset Safari. * WebFrame.cpp: WebFramePrivate has a pointer to frameView but does not hold a reference to it. The frame holds a ref to the frameView anyway, so it's safest to get the frameView through the frame. The crash happened because frame already has cleared out its frameView but WebFrame was still accessing the old stale frameView through that data member in WebFramePrivate. (WebFrame::WebFramePrivate::m_policyFunction): (WebFrame::WebFramePrivate::frameView): (WebFrame::initWithWebFrameView): (WebFrame::layoutIfNeeded): (WebFrame::hasFrameView): * WebView.cpp: (WebView::paintIntoBackingStore): bail if frameView is null. (WebView::setHostWindow): don't set the view window's parent to 0. It'll end up creating a standalone window. 2007-02-01 Anders Carlsson Reviewed by Adam. REGRESSION: Crash loading pdf * WebView.cpp: (WebView::canShowMIMEType): Return true if the MIME type can be handled by a plug-in. 2007-02-01 Adam Roben Reviewed by Steve. Fix Implement printing of individual subframes This just moves some functions from IWebViewPrivate to IWebFramePrivate. * Interfaces/IWebFramePrivate.idl: Added declarations. * Interfaces/IWebViewPrivate.idl: Removed declarations. * WebFrame.cpp: Added functions from WebView.cpp. (WebFrame::computePageRects): (WebFrame::getPrintedPageCount): (WebFrame::spoolPages): * WebFrame.h: Added declarations. * WebView.cpp: Moved functions to WebFrame.cpp. * WebView.h: Removed declarations. 2007-01-31 Ada Chan Reviewed by Adam. Adam and I found a missing retain on WebFrame::setUpPolicyListener(). The mac code returns a RefPtr which retains it, but we are returning the raw pointer. Changed the code to return a COMPtr. Without this change, loading bogus urls will crash. * WebFrame.cpp: (WebFrame::dispatchWillSubmitForm): (WebFrame::setUpPolicyListener): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchDecidePolicyForNewWindowAction): (WebFrame::dispatchDecidePolicyForNavigationAction): * WebFrame.h: 2007-01-31 Ada Chan Reviewed by Anders. Implement WebView::mainFrameDocument. * WebView.cpp: (WebView::mainFrameDocument): 2007-01-31 Steve Falkenburg Reviewed by Ada. Fixes to BSTR handling required for username/password autofill. * WebURLProtectionSpace.cpp: (WebURLProtectionSpace::authenticationMethod): Return BSTRs instead of bare LPCTSTRs (coreScheme): Compare against BSTRs (WebURLProtectionSpace::initWithHost): Compare against BSTRs (WebURLProtectionSpace::protocol): Return BSTRs instead of bare LPCTSTRs 2007-01-30 Brady Eidson Patch by Anders Reviewed and landed by Brady Fixes If there's no backing store bitmap, don't try to update it! * WebView.cpp: (WebView::updateBackingStore): 2007-01-30 Steve Falkenburg Reviewed by Lou. Checkpoint of Account/Password forms autofill Implemented dependencies in WebKit for account/password autofill. * DOMCoreClasses.cpp: (DOMElement::isEqual): Fixed crash if other ele is 0 (DOMElement::isFocused): Added * DOMCoreClasses.h: * DOMHTMLClasses.cpp: (DOMHTMLCollection::DOMHTMLCollection): Added (DOMHTMLCollection::createInstance): Added (DOMHTMLCollection::length): Implemented (DOMHTMLCollection::item): Implemented (DOMHTMLDocument::forms): Implemented * DOMHTMLClasses.h: * Interfaces/DOMPrivate.idl: Added isFocused * Interfaces/WebKit.idl: Added WebURLProtectionSpace * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): Added CLSID_WebURLProtectionSpace * WebKitDLL.cpp: (DllGetClassObject): Added CLSID_WebURLProtectionSpace * WebURLAuthenticationChallenge.cpp: (WebURLAuthenticationChallenge::initWithProtectionSpace): Use CLSID_WebURLProtectionSpace instead of IID_WebURLProtectionSpace * WebURLProtectionSpace.cpp: (WebURLProtectionSpace::QueryInterface): Use CLSID_WebURLProtectionSpace instead of IID_WebURLProtectionSpace * WebURLProtectionSpace.h: 2007-01-29 Brady Eidson Reviewed by Oliver * WebDownload.cpp: (WebDownload::init): Use RetainPtr.adopt(), and create the CFURLDownload after we store the request (WebDownload::initWithRequest): Ditto 2007-01-29 Maciej Stachowiak Reviewed by Adam & Steve. - hook up new cross-platform data-loading code - fixed - Need to support loadData and loadHTMLString * WebFrame.cpp: (WebFrame::loadData): add a SharedBuffer overload, and implement IStream* version using that. (WebFrame::loadHTMLString): implement using loadData * WebFrame.h: prototype new method 2007-01-29 Adele Peterson Reviewed by Darin. * WebEditorClient.cpp: (WebEditorClient::handleKeyPress): Removed EventTargetNode paramenter. * WebEditorClient.h: 2007-01-29 Anders Carlsson Reviewed by Oliver. DnD a font file in Boomer locks it up. Create a drop target helper so we get snazzy drag images. * WebView.cpp: (WebView::WebView): (WebView::DragEnter): (WebView::DragOver): (WebView::DragLeave): (WebView::Drop): * WebView.h: 2007-01-29 Oliver Hunt Reviewed by Adam. Basic implementation of new dragclient method * WebDragClient.cpp: (WebDragClient::dragSourceActionMaskForPoint): * WebDragClient.h: 2007-01-29 Maciej Stachowiak - fix build * WebFrame.h: 2007-01-29 Maciej Stachowiak Reviewed by Mark. Need to support loadData and loadHTMLString I added the underlying support, but did not turn on the new cross-platform versions yet as I've not had sufficient time to test. * WebDocumentLoader.cpp: (WebDocumentLoader::WebDocumentLoader): * WebDocumentLoader.h: * WebFrame.cpp: (WebFrame::createDocumentLoader): * WebFrame.h: 2007-01-27 Adam Roben Reviewed by Oliver. Fix WebError::localizedDescription needs to be implemented. This was so simple, I don't know why I didn't do this before. * WebError.cpp: (WebError::localizedDescription): Implemented. 2007-01-26 Steve Falkenburg B&I build fix * WebKit.vcproj/WebKit.vcproj: 2007-01-26 Adam Roben Reviewed by Oliver. Engine side of fix for Boomer leaks WebViews The problem was that we were calling RevokeDragDrop after our view window had been destroyed, RevokeDragDrop wouldn't call Release on us. Fix WebViews leak their HWND if no host window is set * WebView.cpp: (WebView::~WebView): Call DestroyWindow if our view window hasn't been destroyed yet. (WebViewWndProc): Added an ASSERT, and added call to revokeDragDrop when handling WM_DESTROY. (WebView::initWithFrame): Call our own registerDragDrop. (WebView::close): Removed call to RevokeDragDrop. At this point our window has been destroyed, so it's too late to do this. (WebView::registerDragDrop): Added. (WebView::revokeDragDrop): Added. * WebView.h: Added declarations. 2007-01-26 Anders Carlsson Reviewed by Adam. * WebKitDLL.cpp: Add WebURLRequest entries to the big array. 2007-01-26 Anders Carlsson Reviewed by Adam. Implement IWebURLRequest. * Interfaces/WebKit.idl: * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): * WebKitDLL.cpp: (DllGetClassObject): * WebMutableURLRequest.cpp: (WebMutableURLRequest::WebMutableURLRequest): (WebMutableURLRequest::createInstance): (WebMutableURLRequest::createImmutableInstance): (WebMutableURLRequest::QueryInterface): * WebMutableURLRequest.h: 2007-01-26 Steve Falkenburg B&I build fix * WebKit.vcproj/WebKit.vcproj: 2007-01-25 Anders Carlsson Reviewed by Adam. Don't pretend that we're an IWebHTTPURLResponse when we're not. * WebURLResponse.cpp: (WebURLResponse::QueryInterface): (WebURLResponse::allHeaderFields): (WebURLResponse::localizedStringForStatusCode): (WebURLResponse::statusCode): * WebView.cpp: (WebView::canShowMIMEType): Implement this. 2007-01-26 Brady Eidson Reviewed by Anders Took one of Adam's comments to heart, allow ::start() and others to E_FAIL * WebDownload.cpp: (WebDownload::start): NULL check m_download (WebDownload::cancel): Ditto (WebDownload::deletesFileUponFailure): Yup (WebDownload::setDeletesFileUponFailure): Uh huh! (WebDownload::setDestination): Ooo, ooo - me too! 2007-01-25 Brady Eidson Reviewed by Adam Make downloads no longer start themselves * Interfaces/IWebDownload.idl: * WebContextMenuClient.cpp: (WebContextMenuClient::downloadURL): * WebDownload.cpp: (WebDownload::init): (WebDownload::initWithRequest): (WebDownload::start): * WebDownload.h: 2007-01-25 Ada Chan WebDownload.cpp reviewed by Brady. WebFrame.cpp reviewed by Anders. * WebDownload.cpp: (WebDownload::cancel): added null check * WebFrame.cpp: (WebFrame::dispatchDecidePolicyForMIMEType): fixed bug that we treated loading image urls as downloads. 2007-01-25 Adam Roben Reviewed by Steve and Darin. Fix Implement WebError::domain Also added some error codes. * WebError.cpp: (WebError::domain): Implemented. (WebError::localizedDescription): Added a stub implementation. * WebFrame.cpp: (WebFrame::redirectDataToPlugin): Corrected uses of WebKitError* constants. * Interfaces/IWebError.idl: - Updated copyright. - Changed WebURLErrorDomain to "NSURLErrorDomain" to match what CFNet gives us. - Added all NSURLError* values as WebURLError*. - Added all WebKitError* values. - Added a POSIX error used by WebBrowser/SafariWin. - Added failingURL declaration. * Interfaces/IWebErrorPrivate.idl: Updated copyright. 2007-01-25 Adam Roben Reviewed by Anders. Part of HTML-based load failure pages. * Interfaces/IWebError.idl: Added failingURL method declaration. * WebError.cpp: (WebError::failingURL): Implemented. * WebError.h: Updated for interface changes. * WebFrame.cpp: (WebFrame::loadHTMLString): New protected helper method called by IWebFrame::loadHTMLString and IWebFrame::loadAlternateHTMLString. (WebFrame::loadAlternateHTMLString): Calls loadHTMLString. * WebFrame.h: Added new declaration. 2007-01-25 Ada Chan Reviewed by Maciej. Added init methods instead of doing all the initialization in the constructor. There was a lifetime issue with passing the WebDownload to delegate calls when its ref count is still 0. * WebDownload.cpp: (WebDownload::init): (WebDownload::createInstance): * WebDownload.h: 2007-01-24 Adele Peterson Reviewed by Brady and Oliver. Moved keyEvent method from FrameWin to EventHandler and updated call sites. Now this method is shared with the mac. * WebView.cpp: (WebView::keyUp): (WebView::keyDown): 2007-01-24 Brady Eidson Reviewed by Steve Added cancelling downloads and do it in the destructor * WebDownload.cpp: (WebDownload::~WebDownload): (WebDownload::cancel): 2007-01-24 Geoffrey Garen Reviewed by Maciej Stachowiak, Steve Falkenberg, Adam Roben. Fixed 4946729 -- CFNetwork needs some JS API symbols. Added hack to compile JSStringRefCF symbols with WebKit, to avoid having to fork the JavaScriptCore project into the internal repository. * WebKit.vcproj/WebKit.def: Export the symbols. * WebKit.vcproj/WebKit.vcproj: 2007-01-24 Brady Eidson Reviewed by Ada Added debug-only instrumentation to help track CFNetwork performance and hangs * WebDownload.cpp: (WebDownload::didStart): (WebDownload::didReceiveData): (WebDownload::didFinish): * WebDownload.h: 2007-01-24 Steve Falkenburg Reviewed by Lou. Checkpoint of Address Book forms autofill. Call through to the Frame to do autofill, after marshalling parameters to core types. * DOMHTMLClasses.cpp: (DOMHTMLInputElement::readOnly): Implemented (DOMHTMLInputElement::rectOnScreen): Implemented * WebFrame.cpp: (elementFromDOMElement): Added (WebFrame::currentForm): Added (WebFrame::searchForLabelsBeforeElement): Added (WebFrame::matchLabelsAgainstElement): Added * WebFrame.h: * WebHTMLRepresentation.cpp: (WebHTMLRepresentation::currentForm): Implemented 2007-01-24 Anders Carlsson Reviewed by Maciej. * WebView.cpp: (WebViewWndProc): Don't send focus/blur events when the previous/newly focused window is a child of ours. 2007-01-24 Ada Chan Forgot a null check. * WebDownload.cpp: (WebDownload::request): 2007-01-24 Ada Chan Reviewed by Brady. More hookup of Downloads. - Implemented WebDownload::request(). - Implemented accessors for download delegate in webview. * Interfaces/IWebDownload.idl: * Interfaces/IWebError.idl: * WebDownload.cpp: (WebDownload::WebDownload): (WebDownload::initWithRequest): (WebDownload::request): (WebDownload::willSendRequest): * WebDownload.h: * WebView.cpp: (WebView::setDownloadDelegate): (WebView::downloadDelegate): * WebView.h: 2007-01-23 Brady Eidson Reviewed by Steve Initial hookup of Downloads - The default download delegate will let downloads operate for testing and for when clients forget to set their our download delegates. It saves files to the desktop, and doesn't do anything else fancy * DefaultDownloadDelegate.cpp: Added. (DefaultDownloadDelegate::DefaultDownloadDelegate): (DefaultDownloadDelegate::~DefaultDownloadDelegate): (DefaultDownloadDelegate::sharedInstance): (DefaultDownloadDelegate::createInstance): (DefaultDownloadDelegate::QueryInterface): (DefaultDownloadDelegate::AddRef): (DefaultDownloadDelegate::Release): (DefaultDownloadDelegate::decideDestinationWithSuggestedFilename): (DefaultDownloadDelegate::didCancelAuthenticationChallenge): (DefaultDownloadDelegate::didCreateDestination): (DefaultDownloadDelegate::didFailWithError): (DefaultDownloadDelegate::didReceiveAuthenticationChallenge): (DefaultDownloadDelegate::didReceiveDataOfLength): (DefaultDownloadDelegate::didReceiveResponse): (DefaultDownloadDelegate::shouldDecodeSourceDataOfMIMEType): (DefaultDownloadDelegate::willResumeWithResponse): (DefaultDownloadDelegate::willSendRequest): (DefaultDownloadDelegate::didBegin): (DefaultDownloadDelegate::didFinish): * DefaultDownloadDelegate.h: Added. - Had to do some weird reordering of interface includes to make things compile... Ada watched through this one and was as bewildered as I by the compile errors, but settled on the "do what makes it happy" philosophy * Interfaces/IWebDataSource.idl: * Interfaces/IWebDownload.idl: * Interfaces/IWebResourceLoadDelegate.idl: * Interfaces/WebKit.idl: Added WebDownload CLSID * WebContextMenuClient.cpp: (WebContextMenuClient::downloadURL): Actually download a file! * WebDownload.cpp: Added. Incomplete yet functional implementation of the IWebDownload interface (WebDownload::WebDownload): (WebDownload::~WebDownload): (WebDownload::createInstance): (WebDownload::QueryInterface): (WebDownload::AddRef): (WebDownload::Release): (WebDownload::initWithRequest): (WebDownload::initWithResumeData): (WebDownload::canResumeDownloadDecodedWithEncodingMIMEType): (WebDownload::cancel): (WebDownload::deletesFileUponFailure): (WebDownload::request): (WebDownload::resumeData): (WebDownload::setDeletesFileUponFailure): (WebDownload::setDestination): - WebDownload acts as its own WebURLAuthenticationChallengeSender (WebDownload::cancelAuthenticationChallenge): (WebDownload::continueWithoutCredentialForAuthenticationChallenge): (WebDownload::useCredential): - CFURLDownload callbacks (WebDownload::didStart): (WebDownload::willSendRequest): (WebDownload::didReceiveAuthenticationChallenge): (WebDownload::didReceiveResponse): (WebDownload::willResumeWithResponse): (WebDownload::didReceiveData): (WebDownload::shouldDecodeDataOfMIMEType): (WebDownload::decideDestinationWithSuggestedObjectName): (WebDownload::didCreateDestination): (WebDownload::didFinish): (WebDownload::didFail): - The following are all the raw C-function callbacks for CFURLDownload (didStartCallback): (willSendRequestCallback): (didReceiveAuthenticationChallengeCallback): (didReceiveResponseCallback): (willResumeWithResponseCallback): (didReceiveDataCallback): (shouldDecodeDataOfMIMETypeCallback): (decideDestinationWithSuggestedObjectNameCallback): (didCreateDestinationCallback): (didFinishCallback): (didFailCallback): * WebDownload.h: Added. * WebFrame.cpp: (WebFrame::dispatchDecidePolicyForMIMEType): Temporary and minimal Policy decision that actually results in a download (WebFrame::download): Actually download... in theory. Blocked on CFNetwork for now - More CLSID voodoo * WebKit.vcproj/WebKit.vcproj: * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): * WebKitDLL.cpp: (DllGetClassObject): * WebKitLogging.cpp: Added. I needed these for downloads, and just kept the default channels from WebKitMac (initializeLogChannel): (WebKitInitializeLoggingChannelsIfNecessary): * WebKitLogging.h: Added. * WebView.cpp: (WebView::downloadDelegate): Change ASSERT_NOT_REACHED() to LOG_NOIMPL() to not stop the app 2007-01-23 Steve Falkenburg Copy new CGPThreads DLL (build fix for new SDK). * WebKit.vcproj/WebKit.vcproj: 2007-01-23 Alice Liu Reviewed by Brady. Fixed cut/copy/paste not working in subframes * WebView.cpp: (WebView::cutEnabled): (WebView::copyEnabled): (WebView::pasteEnabled): (WebView::deleteEnabled): (WebView::editingEnabled): (WebView::deleteSelection): (WebView::copy): (WebView::cut): (WebView::paste): (WebView::copyURL): (WebView::delete_): get the focusedOrMainFrame() instead of mainFrame() 2007-01-23 Anders Carlsson Reviewed by Darin. Boomer freezes after attempt to play video. * Interfaces/IWebError.idl: Add error code. * WebFrame.cpp: (WebFrame::redirectDataToPlugin): Cancel loading the main resource. (WebFrame::windowObjectCleared): Use toRef. 2007-01-23 Alice Liu Reviewed Maciej. fixed pressing shift-backspace inserts a bad character fixed shift-pageup/shift-pagedown do nothing in textareas * WebView.cpp: added to keyEntries an entry for the commands accounting for modifiers 2007-01-23 Adele Peterson Reviewed by Darin. Reorganized some event handling code for keyPress events to prepare for another fix. * WebEditorClient.cpp: (WebEditorClient::handleKeyPress): Added. * WebEditorClient.h: Removed unnecessary forward declarations. 2007-01-23 Anders Carlsson Build fixes. * WebFrame.cpp: (WebFrame::createFrame): (WebFrame::createPlugin): (WebFrame::redirectDataToPlugin): (WebFrame::createJavaAppletWidget): (WebFrame::objectContentType): (WebFrame::overrideMediaType): (WebFrame::windowObjectCleared): * WebFrame.h: Move functions here from WebFrameLoaderWin in WebCore. 2007-01-23 Oliver Hunt Reviewed by Adam. Attaching the DragController logic to the WebView * Interfaces/IWebUIDelegate.idl: Fixed a couple of function definitions to use IDataObject instead of IDropSource * WebDragClient.cpp: Added. (WebDragClient::WebDragClient): (WebDragClient::actionMaskForDrag): (WebDragClient::willPerformDragDestinationAction): * WebDragClient.h: Added. DragClient implementation. * WebKit.vcproj/WebKit.vcproj: * WebView.cpp: (WebView::WebView): (WebView::initWithFrame): (dragOperationToDragCursor): (keyStateToDragOperation): (WebView::DragEnter): (WebView::DragOver): (WebView::DragLeave): (WebView::Drop): Set up and register WebView as an IDropTarget, and pass off drag events to the DragController * WebView.h: Ditto 2007-01-22 Adam Roben Reviewed by Anders, Brady, and Steve. WebKit part of HTTP Authentication Alerts Made WebURLCredential use a registered CLSID so the app can get instantiate it: * Interfaces/IWebURLAuthenticationChallenge.idl: Changed method name. * Interfaces/WebKit.idl: Added GUIDs for WebURLCredential. * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): Added case for WebURLCredential. * WebKitDLL.cpp: Added WebURLCredential and WebError (it was omitted from r11821). (DllGetClassObject): * WebURLAuthenticationChallenge.cpp: (WebURLAuthenticationChallenge::initWithProtectionSpace): Changed to use CLSID, and return the failing HRESULT. (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): Changed to return the failing HRESULT. * WebURLAuthenticationChallengeSender.cpp: (WebURLAuthenticationChallengeSender::useCredential): Ditto. * WebURLCredential.cpp: Removed IID definition. (WebURLCredential::QueryInterface): Switched to use CLSID. (WebURLCredential::initWithUser): Updated method name. * WebURLCredential.h: Ditto. 2007-01-22 Steve Falkenburg Updated strings not to be localized, added native line endings svn flag. * English.lproj/StringsNotToBeLocalized.txt: 2007-01-22 Anders Carlsson Reviewed by Brady. * Interfaces/IWebError.idl: Clean up the IWebError interface. * Interfaces/WebKit.idl: * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): Make it possible for clients to create WebErrors. * WebError.cpp: (WebError::QueryInterface): (WebError::init): * WebError.h: * WebURLAuthenticationChallenge.cpp: (WebURLAuthenticationChallenge::initWithProtectionSpace): Get rid of IID_WebError and use CLSID_WebError instad. * WebView.cpp: (WebView::canHandleRequest): Return true for "about" URLs. (WebView::canHandleRequest): Add private COM method. (WebView::close): Reset the policy delegate. 2007-01-19 Ada Chan Fixed build. Reviewed by Anders. Added IWebResourceLoadDelegatePrivate which has one method: didLoadResourceFromMemoryCache. * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added. * WebFrame.cpp: (WebFrame::dispatchDidFinishDocumentLoad): * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: 2007-01-19 John Sullivan Reviewed by Lou. Added mechanism for new callbacks, to try to avoid breaking the Windows build. * Interfaces/IWebFrameLoadDelegatePrivate.idl: * WebFrame.cpp: (WebFrame::dispatchDidFinishDocumentLoad): * WebFrame.h: 2007-01-19 Brady Eidson Reviewed by Ada Much more realistic WebDownload interface that delegates will actually have to implement * Interfaces/IWebDownload.idl: 2007-01-18 Ada Chan Reviewed by Steve. Activity Window - Added some NSURL equivalent constants in IWebURLResponse.idl and IWebError.idl - Added IWebErrorPrivate.idl which contains some private error codes - Added IWebHTTPURLResponse interface which extends IWebURLResponse. It has the same API as NSHTTPURLResponse. * Interfaces/IWebError.idl: * Interfaces/IWebErrorPrivate.idl: Added. * Interfaces/IWebHTTPURLResponse.idl: Added. * Interfaces/IWebResourceLoadDelegate.idl: fixed a typo in parameter name * Interfaces/IWebURLResponse.idl: added WebURLResponseUnknownLength * WebKit.vcproj/Interfaces.vcproj: for adding IWebErrorPrivate.idl and IWebHTTPURLResponse.idl * WebKit.vcproj/WebKitGUID.vcproj: for the new IID_IWebHTTPURLResponse * WebURLResponse.cpp: (WebURLResponse::QueryInterface): also returns the new IWebHTTPURLResponse interface (WebURLResponse::allHeaderFields): Added stub for IWebHTTPURLResponse::allHeaderFields. (WebURLResponse::localizedStringForStatusCode): Added stub for IWebHTTPURLResponse::localizedStringforStatusCode (WebURLResponse::statusCode): Implemented IWebHTTPURLResponse::statusCode. * WebURLResponse.h: 2007-01-19 Anders Carlsson The obligatory build fix. * WebChromeClient.cpp: (WebChromeClient::runJavaScriptPrompt): 2007-01-18 Anders Carlsson Reviewed by Adam. * WebChromeClient.cpp: (WebChromeClient::runJavaScriptAlert): (WebChromeClient::runJavaScriptConfirm): (WebChromeClient::runJavaScriptPrompt): (WebChromeClient::setStatusbarText): * WebChromeClient.h: Add new ChromeClient methods. * WebFrame.cpp: (WebFrame::userAgent): (WebFrame::updateGlobalHistoryForReload): * WebFrame.h: Remove unused FrameWinClient functions. 2007-01-18 Anders Carlsson Reviewed by Adam. * WebView.cpp: (WebView::scrollBackingStore): Only try to scroll the backing store if it actually exists. 2007-01-18 Anders Carlsson Reviewed by Lou and Adam. Call all policy, frame load and resource load delegate methods. * Interfaces/IWebPolicyDelegate.idl: Add some definitions needed. * WebActionPropertyBag.cpp: Added. (WebActionPropertyBag::WebActionPropertyBag): (WebActionPropertyBag::~WebActionPropertyBag): (WebActionPropertyBag::createInstance): (WebActionPropertyBag::QueryInterface): (WebActionPropertyBag::AddRef): (WebActionPropertyBag::Release): (isEqual): (findMouseEvent): (WebActionPropertyBag::Read): (WebActionPropertyBag::Write): * WebActionPropertyBag.h: Added. New class which wraps a NavigationAction in a property bag. * WebFrame.cpp: (WebFrame::dispatchWillSubmitForm): (WebFrame::clearUnarchivingState): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchDecidePolicyForNewWindowAction): (WebFrame::dispatchDecidePolicyForNavigationAction): (WebFrame::dispatchWillSendRequest): (WebFrame::dispatchDidFailLoading): * WebFrame.h: Dispatch correct delegate methods. * WebKit.vcproj/WebKit.vcproj: Add WebActionPropertyBag files. * WebURLResponse.cpp: (WebURLResponse::createInstance): Return 0 for null responses. 2007-01-18 Anders Carlsson Reviewed by John Sullivan * WebView.cpp: (WebView::searchFor): Build fix. 2007-01-17 Alice Liu Added stubs to keep the boomer build from failing. * WebEditorClient.cpp: (WebEditorClient::didSetSelectionTypesForPasteboard): * WebEditorClient.h: 2007-01-17 Brady Eidson Reviewed by Maciej Final hookup of HTTP Auth plumbing * WebFrame.cpp: (WebFrame::dispatchDidReceiveAuthenticationChallenge): Call to the ResourceLoadDelegate so the app can handle the Auth request. Fail gracefully if the delegate doesn't exist or fails (WebFrame::dispatchDidCancelAuthenticationChallenge): Call to the Delegate so the app can cancel an in-progress challenge * WebURLAuthenticationChallenge.h: 2007-01-17 Brady Eidson Reviewed by Steve Falkenburg Next round of plumbing for HTTP Auth, or as I like to call it: "Implementing platform dependent wrappers for my platform independent wrappers which wrap platform dependent objects" *sigh* Also, not included in this ChangeLog, I changed the eol property to native on a handful of WebKitWin files who didn't have it set yet * Interfaces/IWebURLAuthenticationChallenge.idl: Added some string constants, nuked an unneeded initializer from IWebCredential * WebError.cpp: Added QueryInterface for new GUID (WebError::resourceError): Added accessor to WebCore backer * WebError.h: Added GUID * WebKit.vcproj/WebKit.vcproj: * WebURLAuthenticationChallenge.cpp: Added. (WebURLAuthenticationChallenge::WebURLAuthenticationChallenge): (WebURLAuthenticationChallenge::~WebURLAuthenticationChallenge): (WebURLAuthenticationChallenge::createInstance): (WebURLAuthenticationChallenge::QueryInterface): (WebURLAuthenticationChallenge::AddRef): (WebURLAuthenticationChallenge::Release): (WebURLAuthenticationChallenge::initWithProtectionSpace): (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): (WebURLAuthenticationChallenge::error): (WebURLAuthenticationChallenge::failureResponse): (WebURLAuthenticationChallenge::previousFailureCount): (WebURLAuthenticationChallenge::proposedCredential): (WebURLAuthenticationChallenge::protectionSpace): (WebURLAuthenticationChallenge::sender): (WebURLAuthenticationChallenge::authenticationChallenge): * WebURLAuthenticationChallenge.h: Added. * WebURLAuthenticationChallengeSender.cpp: Added. (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender): (WebURLAuthenticationChallengeSender::~WebURLAuthenticationChallengeSender): (WebURLAuthenticationChallengeSender::createInstance): (WebURLAuthenticationChallengeSender::QueryInterface): (WebURLAuthenticationChallengeSender::AddRef): (WebURLAuthenticationChallengeSender::Release): (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge): (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge): (WebURLAuthenticationChallengeSender::useCredential): (WebURLAuthenticationChallengeSender::resourceHandle): * WebURLAuthenticationChallengeSender.h: Added. * WebURLCredential.cpp: Added. (WebURLCredential::WebURLCredential): (WebURLCredential::~WebURLCredential): (WebURLCredential::createInstance): (WebURLCredential::QueryInterface): (WebURLCredential::AddRef): (WebURLCredential::Release): (WebURLCredential::hasPassword): (WebURLCredential::initWithuser): (WebURLCredential::password): (WebURLCredential::persistence): (WebURLCredential::user): (WebURLCredential::credential): * WebURLCredential.h: Added. * WebURLProtectionSpace.cpp: Added. (WebURLProtectionSpace::WebURLProtectionSpace): (WebURLProtectionSpace::~WebURLProtectionSpace): (WebURLProtectionSpace::createInstance): (WebURLProtectionSpace::QueryInterface): (WebURLProtectionSpace::AddRef): (WebURLProtectionSpace::Release): (WebURLProtectionSpace::authenticationMethod): (WebURLProtectionSpace::host): (coreScheme): Helper for the init methods (WebURLProtectionSpace::initWithHost): (WebURLProtectionSpace::initWithProxyHost): (WebURLProtectionSpace::isProxy): (WebURLProtectionSpace::port): (WebURLProtectionSpace::protocol): (WebURLProtectionSpace::proxyType): (WebURLProtectionSpace::realm): (WebURLProtectionSpace::receivesCredentialSecurely): (WebURLProtectionSpace::protectionSpace): * WebURLProtectionSpace.h: Added. * WebURLResponse.cpp: Added QueryInterface for new GUID (WebURLResponse::resourceResponse): Added accessor to WebCore backer * WebURLResponse.h: Added GUID 2007-01-16 Alice Liu Added stubs to keep the boomer build from failing. * WebEditorClient.cpp: (WebEditorClient::didWriteSelectionToPasteboard): * WebEditorClient.h: 2007-01-16 Beth Dakin Reviewed by Adam. Fix for Draw context menus using CG Added new delegate calls to the UIDelegate to draw context menus that match the context menus in the app. * Interfaces/IWebUIDelegate.idl: Added five new delegate calls. They take care of asking if there is a custom menu implementation, adding custom drawing data to the menu items and tracking the popup in a custom way, measuring the items when it comes time to draw the menus, actually drawing the items, and properly destroying the custom data when the menu is destroyed. * WebView.cpp: (WebView::handleContextMenuEvent): This function now takes care of popping up the menu after the event is dispatched through WebCore. WebCore used to pop up the menu itself, but having WebKit pop up the menu matches the Mac and allows up to get rid of two functions on ContextMenu that are empty on the Mac. It also makes more sense to have this code reside in WebKit now that there are calls over the UIDelegate to draw the menus. (WebView::onMeasureItem): Helper function to call over the UIDelegate. (WebView::onDrawItem): Same. (WebView::onUninitMenuPopup): Same. (WebViewWndProc): Now that we are drawing the menus ourselves, we need to handle WM_MEASUREITEM, WM_DRAWITEM, and WM_UNINITMENUPOPUP. * WebView.h: 2007-01-16 Steve Falkenburg Reviewed by Lou. Change version numbering scheme for files from the form 3.0.521.32 to the form 3.521.32.11. This will fix our upgrade installer logic. * WebKit.vcproj/WebKit.rc: 2007-01-15 Anders Carlsson Reviewed by Adam. Fix: ASSERT when finished running iBench HTML Load Speed * WebFrame.cpp: (WebFrame::cancelledError): Return a pseudo-CFNet cancelled error instead of a null ResourceError. 2007-01-15 Anders Carlsson Reviewed by Adam. Implement WebFrame::canHandleRequest. * WebDataSource.cpp: (WebDataSource::webFrame): Implement webFrame accessor. * WebFrame.cpp: (WebFrame::canHandleRequest): * WebView.cpp: (WebView::canHandleRequest): * WebView.h: Implement canHandleRequest. 2007-01-15 Anders Carlsson Reviewed by Adam. Loader related improvements. * Interfaces/IWebFrameLoadDelegate.idl: Change method signature to match what we have on Mac more closely. * WebDataSource.cpp: (WebDataSource::pageTitle): Implement. * WebError.cpp: Added. * WebError.h: Added. Add (currently stubbed out) IWebError implementation. * WebFrame.cpp: (WebFrame::dispatchDidCancelClientRedirect): (WebFrame::dispatchWillPerformClientRedirect): (WebFrame::dispatchDidReceiveIcon): (WebFrame::dispatchUnableToImplementPolicy): (WebFrame::dispatchDidFailProvisionalLoad): (WebFrame::dispatchDidFailLoad): Implement these. * WebKit.vcproj/WebKit.vcproj: Add WebError.h and WebError.cpp 2007-01-15 Anders Carlsson Reviewed by Adam. * WebFrame.cpp: (WebFrame::postProgressStartedNotification): (WebFrame::postProgressEstimateChangedNotification): (WebFrame::postProgressFinishedNotification): * WebFrame.h: Post the correct notifications. * WebView.cpp: (WebView::estimatedProgress): Ask the progress tracker for the estimated progress. 2007-01-15 Anders Carlsson Reviewed by Adam. * Interfaces/IWebView.idl: Add progress notifications. 2007-01-15 Anders Carlsson Reviewed by Adam. Call resource load delegate methods. * Interfaces/IWebResourceLoadDelegate.idl: Use unsigned long instead of UINT. * WebBackForwardList.cpp: * WebBackForwardList.h: Get rid of the createInstance method that takes no arguments. * WebFrame.cpp: (WebFrame::assignIdentifierToInitialRequest): (WebFrame::dispatchDidReceiveResponse): (WebFrame::dispatchDidReceiveContentLength): (WebFrame::dispatchDidFinishLoading): (WebFrame::dispatchDidFailLoading): Call the right resource load delegate methods. * WebView.cpp: (WebView::setResourceLoadDelegate): (WebView::resourceLoadDelegate): (WebView::setPolicyDelegate): (WebView::policyDelegate): * WebView.h: Add getters and setters for the resource load delegate and the policy delegate. 2007-01-14 Alice Liu Reviewed by Lou. Fixed: Find: "Use selection to find" and "Jump to selection" are not implemented * Interfaces/IWebView.idl: * WebView.cpp: (WebView::selectedText): (WebView::centerSelectionInVisibleArea): * WebView.h: 2007-01-14 Adam Roben Reviewed by Steve. Fix: Implement WebKitStatistics * Interfaces/IWebKitStatistics.idl: Added. * Interfaces/WebKit.idl: Added WebKitStatistics declaration. * WebKit.vcproj/Interfaces.vcproj: Added new files. * WebKit.vcproj/WebKit.vcproj: Ditto. * WebKit.vcproj/WebKitGUID.vcproj: Ditto. * WebKitClassFactory.cpp: Updated to include WebKitStatistics. (WebKitClassFactory::CreateInstance): * WebKitDLL.cpp: Ditto. (DllGetClassObject): * WebKitStatistics.cpp: Added. (WebKitStatistics::WebKitStatistics): (WebKitStatistics::~WebKitStatistics): (WebKitStatistics::createInstance): (WebKitStatistics::QueryInterface): (WebKitStatistics::AddRef): (WebKitStatistics::Release): (WebKitStatistics::webViewCount): (WebKitStatistics::frameCount): (WebKitStatistics::dataSourceCount): (WebKitStatistics::viewCount): (WebKitStatistics::HTMLRepresentationCount): * WebKitStatistics.h: Added. * WebKitStatisticsPrivate.h: Added. Added object counting: * WebDataSource.cpp: (WebDataSource::WebDataSource): (WebDataSource::~WebDataSource): * WebFrame.cpp: (WebFrame::WebFrame): (WebFrame::~WebFrame): * WebHTMLRepresentation.cpp: (WebHTMLRepresentation::WebHTMLRepresentation): (WebHTMLRepresentation::~WebHTMLRepresentation): * WebView.cpp: (WebView::WebView): Initialize m_page member. (WebView::~WebView): 2007-01-12 Anders Carlsson Build fixes. * WebFrame.cpp: (WebFrame::assignIdentifierToInitialRequest): (WebFrame::dispatchWillSendRequest): (WebFrame::dispatchDidReceiveResponse): (WebFrame::dispatchDidReceiveContentLength): (WebFrame::dispatchDidFinishLoading): (WebFrame::dispatchDidFailLoading): (WebFrame::incrementProgress): (WebFrame::completeProgress): (WebFrame::dispatchDidReceiveAuthenticationChallenge): (WebFrame::dispatchDidCancelAuthenticationChallenge): * WebFrame.h: 2007-01-12 Ada Chan Reviewed by Steve. More Undo/Redo - Added IWebBackForwardListPrivate which contains the removeItem method, used in undo/redo of closing tabs. - Fixed a null dereference I ran into in WebFrame::dispatchDidFirstLayout. * Interfaces/IWebBackForwardListPrivate.idl: Added. * WebBackForwardList.cpp: (WebBackForwardList::QueryInterface): (WebBackForwardList::removeItem): * WebBackForwardList.h: * WebFrame.cpp: (WebFrame::dispatchDidFirstLayout): * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: 2007-01-12 Anders Carlsson Reviewed by Darin. Move WebKitWin over to the new WebCore loader. There are still some leftover functions from FrameWinClient that aren't used and should be removed. * WebDataSource.cpp: (WebDataSource::WebDataSource): (WebDataSource::~WebDataSource): (WebDataSource::createInstance): (WebDataSource::documentLoader): (WebDataSource::overrideEncoding): (WebDataSource::setOverrideEncoding): (WebDataSource::QueryInterface): (WebDataSource::initWithRequest): (WebDataSource::data): (WebDataSource::representation): (WebDataSource::webFrame): (WebDataSource::initialRequest): (WebDataSource::request): (WebDataSource::response): (WebDataSource::textEncodingName): (WebDataSource::isLoading): (WebDataSource::unreachableURL): * WebDataSource.h: * WebFrame.cpp: (WebFrame::WebFramePrivate::m_policyFunction): (WebFrame::WebFrame): (WebFrame::~WebFrame): (WebFrame::QueryInterface): (WebFrame::loadRequest): (WebFrame::loadData): (getWebDataSource): (WebFrame::dataSource): (WebFrame::provisionalDataSource): (WebFrame::stopLoading): (WebFrame::reload): (WebFrame::firstLayoutDone): (WebFrame::loadType): (WebFrame::stopMainResourceLoad): (WebFrame::canProvideDocumentSource): (WebFrame::createFrame): (WebFrame::submitForm): (WebFrame::setTitle): (WebFrame::originalRequestURL): (WebFrame::hasWebView): (WebFrame::hasFrameView): (WebFrame::dispatchDidReceiveServerRedirectForProvisionalLoad): (WebFrame::dispatchDidReceiveTitle): (WebFrame::dispatchDidFirstLayout): (WebFrame::dispatchShow): (WebFrame::cancelPolicyCheck): (WebFrame::dispatchWillSubmitForm): (WebFrame::finishedLoading): (WebFrame::canHandleRequest): (WebFrame::canShowMIMEType): (WebFrame::representationExistsForURLScheme): (WebFrame::updateGlobalHistoryForStandardLoad): (WebFrame::shouldGoToHistoryItem): (WebFrame::createDocumentLoader): (WebFrame::receivedData): (WebFrame::setUpPolicyListener): (WebFrame::receivedPolicyDecision): (WebFrame::committedLoad): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchCreatePage): (WebFrame::dispatchDidCancelAuthenticationChallenge): * WebFrame.h: * WebView.cpp: (WebView::WebView): (WebView::~WebView): (WebViewWndProc): (WebView::close): (WebView::frameLoadDelegate): (WebView::backForwardList): (WebView::setMaintainsBackForwardList): (WebView::goBack): (WebView::goForward): (WebView::goToBackForwardItem): (WebView::setCustomTextEncodingName): (WebView::customTextEncodingName): (WebView::canGoBack): (WebView::canGoForward): (WebView::frameLoadDelegatePrivate): * WebView.h: 2007-01-12 Anders Carlsson Reviewed by Geoff. More loader preparations. * WebContextMenuClient.cpp: (WebContextMenuClient::getCustomMenuFromDefaultItems): (WebContextMenuClient::contextMenuItemSelected): Use ::createInstance to create the element property bags. * WebElementPropertyBag.cpp: (WebElementPropertyBag::WebElementPropertyBag): (WebElementPropertyBag::~WebElementPropertyBag): (WebElementPropertyBag::createInstance): (convertStringToVariant): * WebElementPropertyBag.h: Fix ownership issues so WebElementPropertyBag can one day be a value in another property bag. * WebFramePolicyListener.cpp: Added. (WebFramePolicyListener::WebFramePolicyListener): (WebFramePolicyListener::~WebFramePolicyListener): (WebFramePolicyListener::createInstance): (WebFramePolicyListener::QueryInterface): (WebFramePolicyListener::AddRef): (WebFramePolicyListener::Release): (WebFramePolicyListener::use): (WebFramePolicyListener::download): (WebFramePolicyListener::ignore): (WebFramePolicyListener::continueSubmit): (WebFramePolicyListener::receivedPolicyDecision): (WebFramePolicyListener::invalidate): * WebFramePolicyListener.h: Added. Add policy listener implementation. * WebFrame.cpp: (WebFrame::receivedPolicyDecision): * WebFrame.h: Add stub to be used by the policy listener. * WebView.cpp: (WebView::WebView): (WebView::~WebView): (WebView::paint): (WebView::closeWindow): (WebView::handleMouseEvent): (WebViewWndProc): (WebView::initWithFrame): (WebView::setUIDelegate): (WebView::uiDelegate): (WebView::setFrameLoadDelegate): (WebView::frameLoadDelegate): (WebView::preferences): (WebView::elementAtPoint): (WebView::setFormDelegate): (WebView::formDelegate): (WebView::setFrameLoadDelegatePrivate): (WebView::frameLoadDelegatePrivate): * WebView.h: Cleanup, use COMPtr in a couple of places. 2007-01-11 Steve Falkenburg B&I build change - copy WebKit.resources to dstroot for installer * WebKit.vcproj/WebKit.make: 2007-01-11 Steve Falkenburg Reviewed by Lou. Implement "Make Text Normal Size". * WebView.cpp: (WebView::canMakeTextStandardSize): Added (WebView::makeTextStandardSize): Added (WebView::toggleContinuousSpellChecking): Added (WebView::toggleSmartInsertDelete): Added 2007-01-11 Brady Eidson Reviewed by NOBODY. Make it build again after my OpenSource http auth checkin * WebFrame.cpp: (WebFrame::dispatchDidReceiveAuthenticationChallenge): (WebFrame::dispatchDidCancelAuthenticationChallenge): * WebFrame.h: 2007-01-10 Anders Carlsson Another build fix. * WebContextMenuClient.cpp: (WebContextMenuClient::lookUpInDictionary): * WebContextMenuClient.h: 2007-01-10 Beth Dakin Reviewed by John. Fix for REGRESSION: Search in Google now operates on the current WebView instead of invoking Safari's service * WebContextMenuClient.cpp: (WebContextMenuClient::searchWithGoogle): Do all of the work we used to do in WebCore over here in WebKit. * WebContextMenuClient.h: 2007-01-10 Anders Carlsson Build fix. * WebFrame.cpp: (WebFrame::dispatchDidFirstLayout): * WebFrame.h: 2007-01-10 Anders Carlsson Reviewed by Darin. Add WebDocumentLoader. Implement some of the FrameLoaderClient methods. Add a resourceRequest() getter to WebMutableURLRequest. * WebDocumentLoader.cpp: Added. (WebDocumentLoader::WebDocumentLoader): (WebDocumentLoader::setDataSource): (WebDocumentLoader::dataSource): (WebDocumentLoader::attachToFrame): (WebDocumentLoader::detachFromFrame): * WebDocumentLoader.h: Added. * WebFrame.cpp: (WebFrame::dispatchWillPerformClientRedirect): (WebFrame::dispatchDidChangeLocationWithinPage): (WebFrame::dispatchWillClose): (WebFrame::dispatchDidStartProvisionalLoad): (WebFrame::dispatchDidReceiveTitle): (WebFrame::dispatchDidCommitLoad): (WebFrame::dispatchDidFinishLoad): (WebFrame::updateGlobalHistoryForStandardLoad): (WebFrame::updateGlobalHistoryForReload): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchDecidePolicyForNewWindowAction): (WebFrame::dispatchDecidePolicyForNavigationAction): (WebFrame::dispatchDidFailProvisionalLoad): (WebFrame::dispatchDidFailLoad): * WebKit.vcproj/WebKit.vcproj: * WebMutableURLRequest.cpp: (WebMutableURLRequest::resourceRequest): * WebMutableURLRequest.h: 2007-01-10 Anders Carlsson Reviewed by Brady. Make WebBackForwardList wrap a WebCore::BackForwardList. Add wrapper map to WebHistoryItem. * WebBackForwardList.cpp: (backForwardListWrappers): (WebBackForwardList::WebBackForwardList): (WebBackForwardList::~WebBackForwardList): (WebBackForwardList::createInstance): (WebBackForwardList::addItem): (WebBackForwardList::goBack): (WebBackForwardList::goForward): (WebBackForwardList::goToItem): (WebBackForwardList::backItem): (WebBackForwardList::currentItem): (WebBackForwardList::forwardItem): (WebBackForwardList::backListWithLimit): (WebBackForwardList::forwardListWithLimit): (WebBackForwardList::capacity): (WebBackForwardList::setCapacity): (WebBackForwardList::backListCount): (WebBackForwardList::forwardListCount): (WebBackForwardList::containsItem): (WebBackForwardList::itemAtIndex): (WebBackForwardList::setPageCacheSize): (WebBackForwardList::pageCacheSize): (WebBackForwardList::setDefaultPageCacheSizeIfNecessary): * WebBackForwardList.h: * WebHistoryItem.cpp: (historyItemWrappers): (WebHistoryItem::WebHistoryItem): (WebHistoryItem::~WebHistoryItem): (WebHistoryItem::createInstance): (WebHistoryItem::initFromDictionaryRepresentation): (WebHistoryItem::QueryInterface): (WebHistoryItem::initWithURLString): (WebHistoryItem::historyItem): * WebHistoryItem.h: 2007-01-09 Ada Chan Reviewed by Steve. Undo/Redo - Added new undo methods in the IWebUIDelegate. - Removed the internal WebUndoManager in WebEditorClient. Instead, we'll call methods on the ui delegate to register undo operations, execute undo/redo, etc. * English.lproj/Localizable.strings: Added localized strings for all the edit command actions. * Interfaces/IWebUIDelegate.idl: Added undo delegate callbacks. * Interfaces/IWebUndoTarget.idl: Added. Added a IWebUndoTarget interface that targets of undo operations need to implement. * WebEditorClient.cpp: Added WebEditorUndoTarget class that implements IWebUndoTarget. (WebEditorUndoTarget::WebEditorUndoTarget): (WebEditorUndoTarget::QueryInterface): (WebEditorUndoTarget::AddRef): (WebEditorUndoTarget::Release): (WebEditorUndoTarget::invoke): (WebEditorClient::WebEditorClient): (WebEditorClient::~WebEditorClient): WebEditorUndoCommand implements IWebUndoCommand and wraps an EditCommand in it. (WebEditorUndoCommand::WebEditorUndoCommand): (WebEditorUndoCommand::execute): (WebEditorUndoCommand::QueryInterface): (WebEditorUndoCommand::AddRef): (WebEditorUndoCommand::Release): (undoNameForEditAction): The undo operations in WebEditorClient now calls through to the undo methods in IWebUIDelegate rather than keeping an internal undo/redo stack. (WebEditorClient::registerCommandForUndo): (WebEditorClient::registerCommandForRedo): (WebEditorClient::clearUndoRedoOperations): (WebEditorClient::canUndo): (WebEditorClient::canRedo): (WebEditorClient::undo): (WebEditorClient::redo): * WebEditorClient.h: * WebKit.vcproj/Interfaces.vcproj: added IWebUndoTarget.idl * WebKit.vcproj/WebKitGUID.vcproj: added IWebUndoTarget_i.c * WebLocalizableStrings.h: 2007-01-09 Anders Carlsson Reviewed by Darin. Add COMPtr. Make MemoryStream backed by a SharedBuffer. Use SharedBuffer in WebFrame. * COMPtr.h: Added. (COMPtr::COMPtr): (COMPtr::~COMPtr): (COMPtr::get): (COMPtr::operator*): (COMPtr::operator->): (COMPtr::operator&): (COMPtr::operator!): (COMPtr::operator UnspecifiedBoolType): (::copyTo): (::adopt): (::operator): * MemoryStream.cpp: (MemoryStream::MemoryStream): (MemoryStream::~MemoryStream): (MemoryStream::createInstance): (MemoryStream::Clone): * MemoryStream.h: * WebFrame.cpp: (WebFrame::WebFrame): (WebFrame::didReceiveResponse): (WebFrame::didReceiveData): * WebFrame.h: (WebFrame::data): * WebKit.vcproj/WebKit.vcproj: 2007-01-09 Steve Falkenburg Reviewed by Lou. Win2K: crash when entering new URL in address field Win2K compatibility fix. SafeArrayCreateVector doesn't work correctly on older systems (Win2K, etc.) Some references to people stumbling across this bug (apologies for not being able to find a Microsoft support article): http://discuss.develop.com/archives/wa.exe?A2=ind0104a&L=dotnet&D=0&T=0&P=69575 http://www.eggheadcafe.com/ng/microsoft.public.platformsdk.com_ole/Jul2005/post22989606.asp http://www.pcreview.co.uk/forums/thread-1470025.php * MarshallingHelpers.cpp: (MarshallingHelpers::stringArrayToSafeArray): (MarshallingHelpers::intArrayToSafeArray): (MarshallingHelpers::intRectToSafeArray): (MarshallingHelpers::iunknownArrayToSafeArray): 2007-01-08 Lou Amadio Reviewed by ggaren * DOMCoreClasses.cpp: (DOMNode::createInstance): Build break * WebView.cpp: (WebView::handleMouseEvent): passing incorrect flag 2007-01-08 Anders Carlsson Reviewed by Brady. Use a WebCore HistoryItem object to back WebHistoryItem. * WebHistoryItem.cpp: (WebHistoryItem::WebHistoryItem): (WebHistoryItem::~WebHistoryItem): (WebHistoryItem::createInstance): (WebHistoryItem::initFromDictionaryRepresentation): (WebHistoryItem::dictionaryRepresentation): (WebHistoryItem::hasURLString): (WebHistoryItem::visitCount): (WebHistoryItem::setVisitCount): (WebHistoryItem::mergeAutoCompleteHints): (WebHistoryItem::setLastVisitedTimeInterval): (WebHistoryItem::setTitle): (WebHistoryItem::RSSFeedReferrer): (WebHistoryItem::setRSSFeedReferrer): (WebHistoryItem::initWithURLString): (WebHistoryItem::URLString): (WebHistoryItem::title): (WebHistoryItem::lastVisitedTimeInterval): * WebHistoryItem.h: 2007-01-05 Anders Carlsson Reviewed by Adam. Add stubs for FrameLoaderClient methods. * WebFrame.cpp: (WebFrame::setMainDocumentError): (WebFrame::cancelledError): (WebFrame::cannotShowURLError): (WebFrame::interruptForPolicyChangeError): (WebFrame::cannotShowMIMETypeError): (WebFrame::fileDoesNotExistError): (WebFrame::committedLoad): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchDecidePolicyForNewWindowAction): (WebFrame::dispatchDecidePolicyForNavigationAction): (WebFrame::dispatchUnableToImplementPolicy): (WebFrame::download): (WebFrame::willUseArchive): (WebFrame::dispatchWillSendRequest): (WebFrame::dispatchDidReceiveResponse): (WebFrame::dispatchDidReceiveContentLength): (WebFrame::dispatchDidFinishLoading): (WebFrame::dispatchDidFailLoading): (WebFrame::dispatchDidLoadResourceFromMemoryCache): (WebFrame::dispatchDidFailProvisionalLoad): (WebFrame::dispatchDidFailLoad): (WebFrame::dispatchCreatePage): (WebFrame::incrementProgress): (WebFrame::completeProgress): (WebFrame::startDownload): 2007-01-05 Alice Liu Reviewed by Lou. Fixed disable commands in the Edit menu when they're not applicable and Some editing operations should be disabled in View Source window * Interfaces/IWebView.idl: * WebView.cpp: (WebView::hasSelectedRange): (WebView::cutEnabled): (WebView::copyEnabled): (WebView::pasteEnabled): (WebView::deleteEnabled): (WebView::editingEnabled): * WebView.h: 2007-01-05 Anders Carlsson Reviewed by Adam. Add stubs for new FrameLoaderClient methods. * WebFrame.cpp: (WebFrame::createDocumentLoader): (WebFrame::setMainDocumentError): (WebFrame::cancelledError): (WebFrame::cannotShowURLError): (WebFrame::interruptForPolicyChangeError): (WebFrame::cannotShowMIMETypeError): (WebFrame::fileDoesNotExistError): (WebFrame::shouldFallBack): (WebFrame::committedLoad): * WebFrame.h: 2007-01-04 Adam Roben Reviewed by Geoff. Fix: Support tabbing between subframes Fix: Support tabbing out of the document back into the Safari UI * Interfaces/IWebUIDelegate.idl: Added declarations of new methods. * WebBackForwardList.cpp: (WebBackForwardList::backItem): Changed to return E_FAIL if returning a null pointer. (WebBackForwardList::currentItem): Ditto. (WebBackForwardList::forwardItem): Ditto. * WebChromeClient.cpp: (WebChromeClient::canTakeFocus): Added new click method. (WebChromeClient::takeFocus): Ditto. (WebChromeClient::focus): Removed unnecessary null check. (WebChromeClient::unfocus): Ditto. (WebChromeClient::createWindow): Ditto. (WebChromeClient::createModalDialog): Ditto. (WebChromeClient::show): Ditto. (WebChromeClient::canRunModal): Ditto. (WebChromeClient::runModal): Ditto. (WebChromeClient::setToolbarsVisible): Ditto. (WebChromeClient::toolbarsVisible): Ditto. (WebChromeClient::setStatusbarVisible): Ditto. (WebChromeClient::statusbarVisible): Ditto. (WebChromeClient::setMenubarVisible): Ditto. (WebChromeClient::menubarVisible): Ditto. (WebChromeClient::setResizable): Ditto. (WebChromeClient::addMessageToConsole): Ditto. * WebChromeClient.h: Added declarations. 2007-01-04 Beth Dakin Reviewed by Adam. A few changes needed to turn on WebCore context menus on the Mac. * WebContextMenuClient.cpp: Name change and have the former getCustomMenuFromDefaultItems function return the PlatformMenuDescription since it feels funny to have the client set the new platform description. (WebContextMenuClient::getCustomMenuFromDefaultItems): Same. * WebContextMenuClient.h: Same. 2007-01-02 Brady Eidson Reviewed by Lou Temporary Link Stub fix for Back/Forward cache landing in OpenSource * WebFrame.cpp: (WebFrame::setDocumentViewFromPageCache): (WebFrame::updateGlobalHistoryForStandardLoad): (WebFrame::updateGlobalHistoryForReload): (WebFrame::shouldGoToHistoryItem): (WebFrame::saveScrollPositionAndViewStateToItem): (WebFrame::saveDocumentViewToPageCache): (WebFrame::canCachePage): * WebFrame.h: 2006-12-26 Geoffrey Garen Build fix. * WebFrame.cpp: Removed willCloseDocument, which is now gone from WebCore::FrameLoaderClient. * WebFrame.h: ditto 2006-12-25 Geoffrey Garen Reviewed by Oliver Hunt. Removed WebCoreSettings, cleaned up WebCore::Settings. * WebFrame.cpp: (WebFrame::initWithWebFrameView): Used core() here, now that WebView::settings() is gone. * WebView.cpp: (WebView::updateWebCoreSettingsFromPreferences): Simplified this code, now that WebCore handles most of it. * WebView.h: Removed settings() accessor. Settings belong to the WebCore page, not the WebView. 2006-12-22 Alice Liu Reviewed by Geoff. Fixed and concerning editable link behavior * Interfaces/IWebPreferences.idl: * WebHistoryItem.cpp: (WebHistoryItem::dictionaryRepresentation): * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initialize): (WebPreferences::editableLinkBehavior): (WebPreferences::setEditableLinkBehavior): * WebPreferences.h: * WebView.cpp: (WebView::updateWebCoreSettingsFromPreferences): 2006-12-20 Adam Roben Reviewed by Mark Rowe. Fix: Status bar doesn't display correct text when WebView is scrolled. * WebView.cpp: (WebView::handleMouseEvent): Convert the event coordinates to document coordinates before calling elementAtPoint. 2006-12-19 Alice Liu In r11349 I accidentally checked in my local change to the user agent. Here I am changing it back to what it used to be. * WebView.cpp: (WebView::userAgentForKURL): 2006-12-19 Alice Liu Reviewed by Brady. add "deleteButton" image resource * WebKit.vcproj/WebKit.rc: * WebKit.vcproj/deleteButton.png: Added. * WebKit.vcproj/deleteButtonPressed.png: Added. 2006-12-19 Anders Carlsson Reviewed by Adam, Darin. logging to JS console. Add isError argument to addMessageToConsole. * Interfaces/IWebUIDelegatePrivate.idl: * WebChromeClient.cpp: (WebChromeClient::addMessageToConsole): 2006-12-19 Steve Falkenburg Reviewed by Lou, Adele. Added CLSID for WebPreferences * Interfaces/WebKit.idl: * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): * WebKitDLL.cpp: (DllGetClassObject): 2006-12-18 Ada Chan Reviewed by Adam. - Added runBeforeUnloadConfirmPanelWithMessage to IWebUIDelegate. - implemented canRunBeforeUnloadConfirmPanel, runBeforeUnloadConfirmPanel, and closeWindowSoon in WebChromeClient - implemented WebView::closeWindow(). * Interfaces/IWebUIDelegate.idl: * WebChromeClient.cpp: (WebChromeClient::canRunBeforeUnloadConfirmPanel): (WebChromeClient::runBeforeUnloadConfirmPanel): (WebChromeClient::closeWindowSoon): * WebChromeClient.h: * WebFrame.h: * WebView.cpp: (WebView::closeWindow): * WebView.h: 2006-12-18 Brady Eidson Reviewed by Alice Fixes - Wrong site icon displays for sites who don't actually have an icon We judged whether or not a site has an icon based on whether or not the IconDatabase returned a valid Image. In the case of sites without an icon, we actually get returned a valid Image with dimensions 0x0. WebKit on OS X correctly handles this case via NSImage goodness - now we manually handle it on Windows * WebIconDatabase.cpp: (WebIconDatabase::iconForURL): Check the width() as an additional case to fallback to the default icon 2006-12-18 Steve Falkenburg Reviewed by Adam. Added loadType to IWebFramePrivate. * Interfaces/IWebFramePrivate.idl: Added loadType * WebFrame.cpp: Fixed line endings (WebFrame::loadType): Added * WebFrame.h: Fixed line endings * WebKit.vcproj/WebKit.vcproj: Moved WebLocalizableStrings.h to proper folder 2006-12-18 Alice Liu Reviewed by Adam. hook up various deletion-related functions in WebView * WebView.cpp: (WebView::execCommand): Removed the case for ForwardDelete, since it shouldn't be handled there (WebView::deleteSelection): Implemented (WebView::copy): (WebView::cut): (WebView::paste): (WebView::delete_): Use the Editor's execCommand for these editor-responsible functions 2006-12-18 Kevin McCullough Reviewed by Oliver. - Remove CG header includes in open source files * WebView.cpp: 2006-12-16 Beth Dakin Reviewed by Adam. In the process of making enabled/disabled items and item state work on Boomer, we discovered that we could not get our sub-menus to work with using notify by position. This switches the Boomer context menus over to use the more conventional menu command notification of id. This sends a WM_COMMAND message instead of a WM_MENUCOMMAND message. We can differentiate the context menu WM_COMMAND messaged from the other ones because the high word of wParam is 0 when the message comes from a menu. So now WM_COMMAND handles the context menu actions. * Interfaces/IWebUIDelegate.idl: If-def not needed here. * WebContextMenuClient.cpp: (WebContextMenuClient::contextMenuItemSelected): Now takes a pointer to the parentMenu. * WebContextMenuClient.h: * WebView.cpp: (WebView::performContextMenuAction): (WebViewWndProc): 2006-12-14 Adele Peterson Reviewed by Adam. Build Fix. * WebContextMenuClient.h: 2006-12-14 Ada Chan Reviewed by Steve. Implemented WebChromeClient::pageRect() to return the bounds of the WebView. Implemented WebFrame::parentFrame(). Added a temporary implementation of WebDataSource::isLoading(). * WebChromeClient.cpp: (WebChromeClient::pageRect): * WebDataSource.cpp: (WebDataSource::isLoading): * WebFrame.cpp: (kit): (WebFrame::parentFrame): * WebView.cpp: (WebView::frameRect): * WebView.h: 2006-12-13 Geoffrey Garen Reviewed by Darin Adler, Dave Hyatt. Fixed Frame::setIsActive not called when frames are focused/unfocused Updated WebKit to use new FocusController tracking of the focused frame. * WebView.cpp: (WebViewWndProc): Fixed a minor bug where we wouldn't fire the blur event when changing focus to the location bar. 2006-12-12 Anders Carlsson * WebFrame.cpp: (WebFrame::loadDataSource): Update for changes to ResourceHandle. 2006-12-11 Beth Dakin Reviewed by Adam. Boomer WebKit support for editing sub-menu actions for WebCore context menus. * Interfaces/IWebUIDelegate.idl: Re-named some of the spelling sub-menu tags. * WebContextMenuClient.cpp: New functions for the speech sub-menu. (WebContextMenuClient::speak): (WebContextMenuClient::stopSpeaking): * WebContextMenuClient.h: * WebEditorClient.cpp: New functions to toggle spelling/grammar checking. (WebEditorClient::toggleContinuousSpellChecking): (WebEditorClient::toggleGrammarChecking): * WebEditorClient.h: 2006-12-11 Alice Liu Reviewed by ggaren. Fixed "Copy Link" and "Copy Image Address" context menu items don't work * Interfaces/IWebView.idl: Added copyURL. * WebContextMenuClient.cpp: * WebContextMenuClient.h: Removed copyLinkToClipboard * WebView.cpp: (WebView::copy): (WebView::cut): (WebView::paste): Trivial cleanup of these (WebView::copyURL): Added this. * WebView.h: Added copyURL. 2006-12-11 Darin Adler Reviewed by Brady. - http://bugs.webkit.org/show_bug.cgi?id=11794 fix lifetime problems affecting Frame's ownerElement pointer * WebFrame.h: * WebFrame.cpp: (WebFrame::initWithWebFrameView): Changed to use HTMLFrameOwnerElement. (WebFrame::createFrame): Ditto. 2006-12-08 Lou Amadio * WebView.cpp: (WebView::handleMouseEvent): Route mouse event to the delegate (WebView::initWithFrame): Removed CW_USEDEFAULT on the CreateWindow - incorrect to use on a child window. 2006-12-09 Adam Roben Reviewed by Darin. Build fix. * WebKit.vcproj/WebKit.vcproj: Added WebCore/ForwardingHeaders to the include path. * WebView.cpp: Updated to reflect the newly-flattend JSCore headers. 2006-12-08 Kevin McCullough Reviewed by Adam. - createWebViewWithRequest now increases the ref count for the new window it returns. This is standard practice for COM, and fixes a crash. * WebFrame.cpp: (WebFrame::openURL): 2006-12-07 Adam Roben Reviewed by Anders. Two small fixes for bugs discovered while implementing the Snippet Editor. * WebView.cpp: (registerWebViewWindowClass): Set the WebView's default cursor to be IDC_ARROW. (WebView::uiDelegate): Return E_FAIL if there's no UI delegate. 2006-12-07 Steve Falkenburg Reviewed by Lou. Add LPCTSTR_UI_STRING and LPCTSTR_UI_STRING_KEY. Added caching to prevent re-converting strings unnecessarily. * WebKit.vcproj/WebKit.def: Export LPCTSTR localization function * WebKit.vcproj/WebKit_debug.def: Export LPCTSTR localization function * WebLocalizableStrings.cpp: (createWebKitBundle): Added using namespace so we don't need to qualify String (WebLocalizedLPCTSTR): Added * WebLocalizableStrings.h: Added LPCTSTR localization support 2006-12-07 Beth Dakin Reviewed by Brady. Make some parameters const and const references. * WebContextMenuClient.cpp: (WebContextMenuClient::contextMenuItemSelected): (WebContextMenuClient::copyLinkToClipboard): (WebContextMenuClient::downloadURL): (WebContextMenuClient::copyImageToClipboard): * WebContextMenuClient.h: 2006-12-06 Anders Carlsson Fix the build. * WebFrame.cpp: (WebFrame::loadDataSource): (WebFrame::didReceiveData): (WebFrame::didFail): * WebFrame.h: 2006-12-06 Steve Falkenburg Rubber-stamped by Adam. Don't copy WebKit{_debug}.dll back to AppleInternal/bin (SDK) * WebKit.vcproj/WebKit.vcproj: 2006-12-04 Steve Falkenburg Reviewed by Darin. Checkpoint of Use CoreFoundation bundles w/ Localizable.strings for localization. We're using the WebKit extract-localizable-strings script to generate these files, and will use a cross-platform merged string file when we ship. * English.lproj/Localizable.strings: Added. * English.lproj/StringsNotToBeLocalized.txt: Added. * WebKit.vcproj/WebKit.def: Export WebLocalizableStrings routines * WebKit.vcproj/WebKit.vcproj: define FRAMEWORK_NAME=WebKit, added WebLocalizableStings, copy English.lproj to bin/en.lproj to get localized strings * WebKit.vcproj/WebKit_debug.def: Export WebLocalizableStrings routines * WebLocalizableStrings.cpp: Added. * WebLocalizableStrings.h: Added. 2006-12-04 Steve Falkenburg Reviewed by NOBODY (OOPS!). Checkpoint of Use CoreFoundation bundles w/ Localizable.strings for localization. We're using the WebKit extract-localizable-strings script to generate these files, and will use a cross-platform merged string file when we ship. * WebLocalizableStrings.h: Added. 2006-12-04 Anders Carlsson Reviewed by Darin, Geoff. Don't use ResourceHandle::kill(). * WebFrame.cpp: (WebFrame::stopMainResourceLoad): 2006-12-04 Alice Liu Reviewed by Oliver. Fixed clicks don't work if you move mouse immediately This bug was fixed by implementing EventHandler::handleDrag. * WebView.cpp: (WebView::WebView): Added a data member (WebView::handleMouseEvent): Create the mouse event telling it it activated the webview (WebViewWndProc): Call setMouseActivated upon receiving the relevent message * WebView.h: (WebView::setMouseActivated): Added this function so that the webview knows if it was brought to the foreground by a mouse event 2006-12-02 Steve Falkenburg Reviewed by Ada. CFNetwork crash on Vista loading any SSL page Change link order so secur32.dll is initialized prior to its indirect use in code called by CoreGraphics DllMain. To help avoid similar problems in the future, I reordered the imported DLLs by level/dependency so things like CoreFoundation is listed prior to CFNetwork and CoreGraphics. * WebKit.vcproj/WebKit.vcproj: 2006-12-01 Beth Dakin Reviewed by Adam. Changes to support sub-menus for WebCore ContextMenus. * Interfaces/IWebUIDelegate.idl: New tags. * WebContextMenuClient.cpp: (WebContextMenuClient::contextMenuItemSelected): ContextMenu::menu () is now called parentMenu() 2006-12-01 Steve Falkenburg Fix post-build step. Need to copy CoreFoundation resources. Bundles aren't config specific - removed ConfigSuffix from copy commands for resources. * WebKit.vcproj/WebKit.vcproj: 2006-11-30 Steve Falkenburg Fix build. Link against new WTF.lib * WebKit.vcproj/WebKit.vcproj: 2006-11-30 Geoffrey Garen Reviewed by Beth Dakin. Fixed Whole document leak seen running HTML iBench Copied *very nice* (NOT!) WebKit Mac idiom of calling FrameLoader::detachFromParent when closing the WebView. We need to do this so event listeners that retain the document get destroyed, and so the unload event gets dispatched. This is pretty silly. Instead, the document/frame/interpreter should be responsible for cleaning up after itself. * WebView.cpp: (WebView::close): 2006-11-30 Steve Falkenburg build WebKit.lib to proper directory * WebKit.vcproj/WebKit.vcproj: 2006-11-29 Steve Falkenburg Reviewed by Anders. Minor fix to my recent COM registration/Vista fix. Ignore errors during registration. Vista locks off more of HKCU\Software\Classes than I thought. * WebKitDLL.cpp: 2006-11-29 Adam Roben Reviewed by Adele. Give archive builds a separate set of CLSIDs so that they may be installed/run alongside B&I builds and development builds. * Interfaces/WebKit.idl: * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: Don't register WebKit.dll if ARCHIVE_BUILD or BuildBot is defined. 2006-11-28 Ada Chan Reviewed by Adam. Clear cache in WebKit - Added the IWebCache interface, which contains API to clear and disable the cache - Added implementation of WebCache which implements IWebCache. - the page cache related calls added in WebHistoryItem are just stubs right now because we haven't implemented page cache yet. * Interfaces/IWebCache.idl: Added. * Interfaces/IWebHistoryItemPrivate.idl: * Interfaces/WebKit.idl: * WebBackForwardList.cpp: (WebBackForwardList::WebBackForwardList): (WebBackForwardList::clearPageCache): (WebBackForwardList::setPageCacheSize): (WebBackForwardList::pageCacheSize): * WebBackForwardList.h: * WebCache.cpp: Added. (WebCache::WebCache): (WebCache::~WebCache): (WebCache::createInstance): (WebCache::QueryInterface): (WebCache::AddRef): (WebCache::Release): (WebCache::statistics): (WebCache::empty): (WebCache::setDisabled): * WebCache.h: Added. * WebFrame.cpp: (WebSystemMainMemory): * WebFrame.h: * WebHistoryItem.cpp: (WebHistoryItem::releaseAllPendingPageCaches): (WebHistoryItem::hasPageCache): (WebHistoryItem::setHasPageCache): * WebHistoryItem.h: * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: * WebKitClassFactory.cpp: (WebKitClassFactory::CreateInstance): * WebKitDLL.cpp: (DllGetClassObject): 2006-11-28 Geoffrey Garen Reviewed by Beth Dakin. Fixed Should clarify when to create clients in the WebCore client API All clients must now be supplied as constructor arguments. This clarifies when you need to create clients, and also guarantees that objects can't (for the most part) be in a clientless state. Layout tests pass. No leaks reported. * WebFrame.cpp: (WebFrame::initWithWebFrameView): 2006-11-28 Steve Falkenburg Reviewed by NOBODY (OOPS!). Make COM registration fall back to per-user for Vista LUA compatibility. Only affects our development builds since the installer will set these reg keys itself. * WebKitDLL.cpp: 2006-11-28 Adam Roben Reviewed by Ada and Beth. Fix: Contextual Menus (in web content) * Interfaces/IWebUIDelegate.idl: Added a new delegate method to be called when the user clicks on one of the application's context menu items. Client updates from WebCore. * WebContextMenuClient.cpp: (WebContextMenuClient::addCustomContextMenuItems): Updated for method name changes. (WebContextMenuClient::contextMenuItemSelected): New client method that calls the UI delegate. * WebContextMenuClient.h: Updated to match ContextMenuClient.h Windows context menu event handling. * WebView.cpp: (WebView::handleContextMenuEvent): New method to send a context menu event down into WebCore. (WebView::performContextMenuAction): New method to tell the ContextMenuController that the user clicked on a context menu item. (WebView::handleMouseEvent): Return a bool to signify whether the event was handled. (WebView::mouseWheel): Ditto. (WebViewWndProc): Handle WM_CONTEXTMENU and WM_MENUCOMMAND messages, and pass unhandled events to DefWindowProc. * WebView.h: New declarations. Small (but necessary) fixes. * WebElementPropertyBag.cpp: (isEqual): Fixed to deal with LPCWSTRs, which is what was being passed in anyway. (WebElementPropertyBag::Read): Use FAILED() to check the return value of QueryInterface. * WebElementPropertyBag.h: Added missing #include. 2006-11-28 Alice Liu Reviewed by Ada, Adam, and Lou. * WebEditorClient.h: * WebEditorClient.cpp: These 3 functions are, for now, hard-coded to return true, letting paste work. Commented out previous unused code because the app would crash if the editingDelegate was called (WebEditorClient::shouldDeleteRange): (WebEditorClient::shouldInsertNode): (WebEditorClient::shouldInsertText): stub impl for: (WebEditorClient::smartInsertDeleteEnabled): * WebView.cpp: moved where cut/copy/paste was handled from (WebView::execCommand): (WebViewWndProc): call the editor's version of these 4: (WebView::copy): (WebView::cut): (WebView::paste): (WebView::delete_): 2006-11-28 Geoffrey Garen Reviewed by Adam. Fixed REGRESSION: extra cross-library ref/deref calls cause .5% PLT regression. Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient from the Frame to the Page, since it's only responsible for Webview-level delegate calls. I don't really love this design, but it fixes the regression and allows a single WebKit object to implement multiple client interfaces. Layout tests pass. 2006-11-27 Beth Dakin Reviewed by Adam. Stub for canHandleRequest() to remove FIXME from ContextMenu.cpp * WebFrame.cpp: (WebFrame::canHandleRequest): * WebFrame.h: 2006-11-27 Anders Carlsson Reviewed by Adam. JavaScript window.resizeTo doesn't work * Interfaces/IWebUIDelegate.idl: Fix declarations. * WebChromeClient.cpp: (WebChromeClient::setWindowRect): (WebChromeClient::windowRect): Call the COM methods. 2006-11-26 Anders Carlsson Reviewed by Adam. Add "addMessageToConsole" method to the private ui delegate, and have the client call it. * Interfaces/IWebUIDelegatePrivate.idl: * WebFrame.cpp: (WebFrame::addMessageToConsole): * WebFrame.h: 2006-11-27 Brady Eidson Reviewed by Ada Added removeAllIcons() for cache clearing * Interfaces/IWebIconDatabase.idl: * WebIconDatabase.cpp: (WebIconDatabase::removeAllIcons): Added * WebIconDatabase.h: 2006-11-21 Anders Carlsson Reviewed by Adam. Various fixes for getting file upload working. * WebFrame.cpp: (WebFrame::loadDataSource): Set the header fields on the new request. (WebFrame::submitForm): * WebFrame.h: Update submitForm, it now takes a FrameLoadRequest. * WebMutableURLRequest.cpp: (WebMutableURLRequest::addHTTPHeaderFields): (WebMutableURLRequest::httpHeaderFields): * WebMutableURLRequest.h: New functions for getting and setting HTTP headers. 2006-11-20 Anders Carlsson Fix build. * WebEditorClient.cpp: (WebEditorClient::shouldInsertNode): (WebEditorClient::shouldInsertText): * WebEditorClient.h: 2006-11-19 Beth Dakin Reviewed by Adam. * WebContextMenuClient.cpp: Stubs for the currently client- dependent menu actions. (WebContextMenuClient::copyLinkToClipboard): (WebContextMenuClient::downloadURL): (WebContextMenuClient::copyImageToClipboard): (WebContextMenuClient::lookUpInDictionary): * WebContextMenuClient.h: * WebEditorClient.cpp: (WebEditorClient::shouldInsertText): Remove comment markers since this is implemented now on the Mac. * WebEditorClient.h: 2006-11-17 Anders Carlsson Reviewed by Adam. Make sure that all .cpp files and none of the headers include config.h. * MemoryStream.cpp: * WebBackForwardList.cpp: * WebBackForwardList.h: * WebElementPropertyBag.cpp: * WebHTMLRepresentation.cpp: * WebKitClassFactory.cpp: * WebKitDLL.cpp: * WebMutableURLRequest.cpp: * WebMutableURLRequest.h: * WebURLResponse.cpp: * WebURLResponse.h: 2006-11-18 Darin Adler Reviewed by Adele. - fix leak of Document ref count seen in updateCounterpartURLForRSS * WebScriptObject.h: Changed destructor to be virtual. Without this, when the COM object was released we wouldn't release the underlying WebCore::Node. 2006-11-18 Darin Adler Reviewed by Adele. - fix leak of WebView when you close a tab or window * Interfaces/IWebView.idl: Added a close function, like the close method we added to WebView on the Macintosh side. * WebView.h: Added close function. * WebView.cpp: (WebView::close): First cut at implementation of close. 2006-11-16 Adam Roben Reviewed by Steve, Ada. Added new WebMenuItemBaseApplicationTag to the WebMenuItemTag enum to keep WebKit apps from conflicting with WebKit context menu identifiers. * Interfaces/IWebUIDelegate.idl: 2006-11-15 Adam Roben Reviewed by Anders. Added new WebContextMenuClient class, and moved context menu-related code there from WebChromeClient. * WebChromeClient.cpp: (WebChromeClient::setResizable): * WebChromeClient.h: * WebContextMenuClient.cpp: Added. (WebContextMenuClient::create): (WebContextMenuClient::WebContextMenuClient): (WebContextMenuClient::ref): (WebContextMenuClient::deref): (WebContextMenuClient::addCustomContextMenuItems): * WebContextMenuClient.h: Added. * WebKit.vcproj/WebKit.vcproj: Added new files. * WebView.cpp: (WebView::initWithFrame): 2006-11-15 Beth Dakin & Adam Roben Reviewed by Adam and Beth. Internal side of r17796. * WebChromeClient.cpp: (WebChromeClient::addCustomContextMenuItems): * WebChromeClient.h: 2006-11-15 Ada Chan Reviewed by Steve. Fixed a bad free in DllRegisterServer. * WebKitDLL.cpp: (DllRegisterServer): 2006-11-15 Steve Falkenburg Take another pass at fixing COM registration * WebKitDLL.cpp: (substituteGUID): 2006-11-15 Anders Carlsson Reviewed by Darin. Add an undo manager to the editor client. Make it possible for applications to invoke undo/redo. * Interfaces/IWebView.idl: * WebEditorClient.cpp: (WebUndoManager::WebUndoManager): (WebUndoManager::~WebUndoManager): (WebUndoManager::clearCommands): (WebUndoManager::registerCommand): (WebUndoManager::undo): (WebUndoManager::redo): (WebUndoManager::canUndo): (WebUndoManager::canRedo): (WebUndoManager::undoOrRedo): (WebEditorClient::WebEditorClient): (WebEditorUndoCommand::WebEditorUndoCommand): (WebEditorUndoCommand::execute): (WebEditorClient::registerCommandForUndo): (WebEditorClient::registerCommandForRedo): (WebEditorClient::clearUndoRedoOperations): (WebEditorClient::canUndo): (WebEditorClient::canRedo): (WebEditorClient::undo): (WebEditorClient::redo): * WebEditorClient.h: * WebView.cpp: (WebView::execCommand): 2006-11-15 Steve Falkenburg Fix bug in my last check-in preventing proper COM registration * WebKitDLL.cpp: (DllRegisterServer): 2006-11-15 Steve Falkenburg Reviewed by Adam. Use separate CLSIDs for buildbot builds. This allows independent installs of an official build (for everyday web browsing/dogfooding) alongside a developer build (to write code, debug in Visual Studio). * Interfaces/WebKit.idl: Add a second set of CLSIDs for builbot-based builds. * WebKit.vcproj/Interfaces.vcproj: Add a preprocessor define __BUILDBOT__ set to 1 for official builds, 0 otherwise (use #if to check). * WebKitDLL.cpp: Convert CLSIDs to strings via code instead of copying string literals from elsewhere. (substituteGUID): Added. (DllUnregisterServer): Substitute CLSIDs into reg keys. (DllRegisterServer): Substitute CLSIDs into reg keys. 2006-11-15 Adam Roben It's too early in the morning to be fixing the build. * WebEditorClient.cpp: (WebEditorClient::selectWordBeforeMenuEvent): (WebEditorClient::isEditable): 2006-11-15 Adam Roben Build fix. * WebEditorClient.cpp: (selectWordBeforeMenuEvent): (isEditable): * WebEditorClient.h: 2006-11-14 Darin Adler Reviewed by Anders. - update for creation of EventHandler * WebView.cpp: (WebView::handleMouseEvent): Call methods now moved to EventHandler. (WebView::mouseWheel): Ditto. (WebView::elementAtPoint): Ditto. 2006-11-14 Anders Carlsson Build fix. * WebEditorClient.cpp: (WebEditorClient::registerCommandForUndo): (WebEditorClient::registerCommandForRedo): (WebEditorClient::clearUndoRedoOperations): (WebEditorClient::canUndo): (WebEditorClient::canRedo): (WebEditorClient::undo): (WebEditorClient::redo): * WebEditorClient.h: 2006-11-14 Brady Eidson Reviewed by Anders Additional tweek to the FormData change * WebFrame.cpp: (WebFrame::loadDataSource): 2006-11-14 Adam Roben Reviewed by Steve. Replace all instances of DebugBreak() with ASSERT_NOT_REACHED() so that it will be compiled out for Release builds. * DOMCSSClasses.cpp: * DOMCoreClasses.cpp: * DOMHTMLClasses.cpp: * WebBackForwardList.cpp: * WebDataSource.cpp: * WebFrame.cpp: * WebHTMLRepresentation.cpp: * WebHistoryItem.cpp: * WebIconDatabase.cpp: * WebMutableURLRequest.cpp: * WebNotification.cpp: * WebPreferences.cpp: * WebScriptObject.cpp: * WebView.cpp: 2006-11-13 Brady Eidson Rubberstamped by Maciej Windows half of 17755 - Make FormData shared * WebFrame.cpp: (WebFrame::loadDataSource): (WebFrame::submitForm): * WebFrame.h: * WebMutableURLRequest.cpp: (WebMutableURLRequest::setFormData): (WebMutableURLRequest::formData): * WebMutableURLRequest.h: 2006-11-13 Anders Carlsson Reviewed by Adam. Various editing fixes. * WebView.cpp: (WebView::execCommand): Use the focused frame, not the main frame. (WebView::focusedTarget): Add FIXME comment. (WebView::keyDown): Return false for unknown keydown messages when not in editing mode. 2006-11-13 Steve Falkenburg Reviewed by Anders, Lou. Bump version for submit Copy CharacterSets directory for CF * WebKit.vcproj/VERSION: Bump version * WebKit.vcproj/WebKit.vcproj: Copy CharacterSets 2006-11-13 Geoffrey Garen Reviewed by Darin Adler, Anders Carlsson. More window.open work. - Hooked up all of WebChromeClient that the App currently supports. * WebChromeClient.cpp: (WebChromeClient::scaleFactor): (WebChromeClient::focus): (WebChromeClient::unfocus): (WebChromeClient::createModalDialog): (WebChromeClient::show): (WebChromeClient::canRunModal): (WebChromeClient::runModal): (WebChromeClient::setToolbarsVisible): (WebChromeClient::toolbarsVisible): (WebChromeClient::setStatusbarVisible): (WebChromeClient::statusbarVisible): (WebChromeClient::setMenubarVisible): (WebChromeClient::menubarVisible): (WebChromeClient::setResizable): 2006-11-13 Adam Roben Fix line-endings and svn properties. * WebChromeClient.cpp: * WebChromeClient.h: 2006-11-13 Adam Roben Build fix. * MarshallingHelpers.cpp: * WebChromeClient.cpp: * WebChromeClient.h: * WebEditorClient.h: * WebMutableURLRequest.h: 2006-11-12 Geoffrey Garen * WebChromeClient.cpp: Fixed up #include. 2006-11-12 Geoffrey Garen Reviewed by Steve Falkenberg. Implemented window.open. Rough around the edges right now. - Converted WebMutableURLRequest to use a ResourceRequest as its backing store, to avoid yet another way of representing this data. - Changed WebMutableURLRequests's timeoutInterval to double, to match ResourceRequest and NSURLRequest. - Added BSTRToKURL and KURLToBSTR helper functions. - Added page accessor on WebView, and core(), for converting from WebView to page. * MarshallingHelpers.h: Removed unnecessary variable names from declarations. 2006-11-12 Geoffrey Garen Reviewed by Steve Falkenberg. Fixed up work-arounds to MSVC warning silliness. Replaced in-place disabling of "conditional expression is constant" warning with project-wide setting. (We use do { } while(0); for macro scoping.) Replaced in-place and project-wide disabling of "xxx was declared deprecated" warning with project-wide setting only to disable Microsoft's made-up deprecation warnings related to std:: functions. * WebChromeClient.cpp: (WebChromeClient::setResizable): * WebKit.vcproj/WebKit.vcproj: * WebKitDLL.h: 2006-11-11 Geoffrey Garen Reviewed by Maciej Stachowiak. - Fixed Crash in FrameLoader::~FrameLoader when navigating away from ebay.com - Changed WebKit clients to match new virtual ref/deref scheme in WebCore. - Removed WebEditorClient from the WebCore namespace because it's a WebKit class, not a WebCore class. - Standardized some header #includes to match Mac: - alphabetical - config.h, WebKitDLL.h, and class headers go together at the top - everything else comes after a line break 2006-11-11 Anders Carlsson Reviewed by Oliver. Clean up the event handling code. * WebEditorClient.cpp: (WebEditorClient::shouldBeginEditing): (WebEditorClient::shouldEndEditing): (WebEditorClient::shouldApplyStyle): Change these to return true. Eventually they will call the editing delegate. * WebView.cpp: (WebView::execCommand): Update to call the editor's execCommand. (WebView::keyUp): New function that forwards the event to FrameWin. (editCommandForKey): New function that given a key returns an edit command from a table. Eventually this table should be moved into WebCore. (WebView::handleEditingKeyboardEvent): New function that handles editing events. (WebView::keyDown): If the frame is editable, call handleEditingKeyboardEvent. (WebViewWndProc): * WebView.h: 2006-11-11 Adam Roben Reviewed by Geoff. Update WebCore #includes to use a flat directory structure. * DOMCSSClasses.cpp: * DOMCSSClasses.h: * DOMCoreClasses.cpp: * DOMEventsClasses.cpp: * DOMHTMLClasses.cpp: * MarshallingHelpers.cpp: * WebChromeClient.cpp: * WebChromeClient.h: * WebDataSource.cpp: * WebEditorClient.cpp: * WebEditorClient.h: * WebElementPropertyBag.cpp: * WebFrame.cpp: * WebFrame.h: * WebHTMLRepresentation.cpp: * WebHistory.cpp: * WebIconDatabase.cpp: * WebIconDatabase.h: * WebKit.vcproj/WebKit.vcproj: * WebKitDLL.cpp: * WebMutableURLRequest.cpp: * WebNotificationCenter.cpp: * WebPreferences.cpp: * WebURLResponse.cpp: * WebURLResponse.h: * WebView.cpp: * WebView.h: 2006-11-10 Adam Roben Reviewed by Steve. Archive builds should still copy SDK .dlls into $WebKitOutputDir. * WebKit.vcproj/WebKit.vcproj: 2006-11-10 Brady Eidson Enthousiastically review by Beth (with exclamation marks and everything!!!1!!one!) No need for WebIconDatabase to keep its own reference to the WebCore::IconDatabase * WebIconDatabase.cpp: (WebIconDatabase::WebIconDatabase): (WebIconDatabase::init): (WebIconDatabase::iconForURL): (WebIconDatabase::retainIconForURL): (WebIconDatabase::releaseIconForURL): * WebIconDatabase.h: 2006-11-10 Steve Falkenburg Bump version number for submission * WebKit.vcproj/VERSION: 2006-11-10 Brady Eidson Reviewed by Darin Keep windows build from breaking * WebFrame.cpp: (WebFrame::dispatchDidReceiveIcon): * WebFrame.h: 2006-11-10 Oliver Hunt Build fix sprintf -> format (from Maciej's earlier change to WebCore) * WebView.cpp: (osVersion): (WebView::userAgentForKURL): 2006-11-09 Steve Falkenburg Reviewed by Adam. Copy resources for CFNetwork (needed for next SDK) * WebKit.vcproj/WebKit.vcproj: 2006-11-09 Oliver Hunt Reviewed by Maciej. Fix crash on unknown protocol * WebFrame.cpp: (WebFrame::didFailWithError): 2006-11-09 Lou Amadio Reviewed by mjs Correct the broken search implementations based on original webkit * WebView.cpp: (WebView::searchFor): (WebView::generateSelectionImage): (WebView::selectionImageRect): 2006-11-09 Adam Roben Reviewed by Steve. Put the OpenSource revision in the WebKit.dll version info. * WebKit.vcproj/WebKit.vcproj: touch WebKit.rc before building to force it to recompile. * WebKit.vcproj/auto-version.sh: Get the OpenSource revision and put it in autoversion.h. 2006-11-09 Adam Roben Fix line-endings. * WebEditorClient.cpp: 2006-11-09 Oliver Hunt Reviewed by Anders. Build fixes * WebEditorClient.cpp: (WebEditorClient::respondToChangedContents): * WebEditorClient.h: 2006-11-08 Adam Roben Reviewed by Steve. Make the same change here as made in r11013. * WebKit.vcproj/auto-version.sh: 2006-11-08 Maciej Stachowiak Reviewed by Geoff. - added ResourceError class and didFailWithError client method * WebFrame.cpp: (WebFrame::didFinishLoading): (WebFrame::didFailWithError): * WebFrame.h: 2006-11-08 Adam Roben Build fix. * WebEditorClient.cpp: Added stubs for new methods from EditorClient.h. (WebEditorClient::shouldBeginEditing): (WebEditorClient::shouldEndEditing): (WebEditorClient::didBeginEditing): (WebEditorClient::didEndEditing): * WebEditorClient.h: Added new methods from EditorClient.h and cleaned up placement of *s. 2006-11-08 Beth Dakin Reviewed by Adam. Add clause for new WebElementIsContentEditableKey to the Read fucntion. * Interfaces/IWebView.idl: * WebElementPropertyBag.cpp: (WebElementPropertyBag::Read): 2006-11-07 Ada Chan Reviewed by Steve. Added a new API in IWebFramePrivate called firstLayoutDone that returns whether the frame has done its first layout. Implement that API in WebFrame. * Interfaces/IWebFramePrivate.idl: * WebFrame.cpp: (WebFrame::WebFrame): (WebFrame::firstLayoutDone): (WebFrame::loadDataSource): (WebFrame::didFirstLayout): * WebFrame.h: 2006-11-07 Lou Amadio Reviewed by sfalken, adam Implemented Find banner, overlay, bouncy. plummed some find, search and marking in WebCore & WebKit Added SDC - a DC wrapper with knowledge of CG Added button element Ported AppKit's oval button drawing code Abstracted the high performance animations * Interfaces/IWebUIDelegatePrivate.idl: * Interfaces/IWebView.idl: * WebFrame.h: * WebView.cpp: (WebView::scrollBackingStore): (incrementFrame): (WebView::searchFor): (WebView::markAllMatchesForText): (WebView::unmarkAllTextMatches): (WebView::rectsForTextMatches): (WebView::generateSelectionImage): (WebView::selectionImageRect): (EnumTextMatches::EnumTextMatches): (EnumTextMatches::QueryInterface): (EnumTextMatches::AddRef): (EnumTextMatches::Release): (EnumTextMatches::Next): (EnumTextMatches::Skip): (EnumTextMatches::Reset): (EnumTextMatches::Clone): (createMatchEnumerator): * WebView.h: 2006-11-08 Anders Carlsson Reviewed by Adam. More fiddling with midl to get our JSC API types recognized. * Interfaces/IWebFrameLoadDelegate.idl: 2006-11-07 Geoffrey Garen Reviewed by Anders. Removed ScreenClient. It was highly unpopular, risking my midterm re-election. None of Screen's responsibilities require up-calls to WebKit or delegates, so WebCore can handle it all. 2006-11-07 Darin Adler Reviewed by Geoff. - moved loader code from Frame/FrameMac to FrameLoader * WebFrame.cpp: (WebFrame::loadData): (WebFrame::loadHTMLString): (WebFrame::stopLoading): (WebFrame::reload): (WebFrame::initWithWebFrameView): (WebFrame::loadDataSource): (WebFrame::didReceiveResponse): (WebFrame::didReceiveData): (WebFrame::didFinishLoading): (WebFrame::setTitle): (WebFrame::dispatchDidHandleOnloadEvents): (WebFrame::detachFrameLoader): (WebFrame::hasWebView): (WebFrame::hasFrameView): (WebFrame::hasBackForwardList): (WebFrame::resetBackForwardList): (WebFrame::provisionalItemIsTarget): (WebFrame::loadProvisionalItemFromPageCache): (WebFrame::invalidateCurrentItemPageCache): (WebFrame::privateBrowsingEnabled): (WebFrame::makeDocumentView): (WebFrame::makeRepresentation): (WebFrame::forceLayout): (WebFrame::forceLayoutForNonHTML): (WebFrame::updateHistoryForCommit): (WebFrame::updateHistoryForBackForwardNavigation): (WebFrame::updateHistoryForReload): (WebFrame::updateHistoryForStandardLoad): (WebFrame::updateHistoryForInternalLoad): (WebFrame::updateHistoryAfterClientRedirect): (WebFrame::setCopiesOnScroll): (WebFrame::tokenForLoadErrorReset): (WebFrame::resetAfterLoadError): (WebFrame::doNotResetAfterLoadError): (WebFrame::willCloseDocument): (WebFrame::detachedFromParent1): (WebFrame::detachedFromParent2): (WebFrame::detachedFromParent3): (WebFrame::detachedFromParent4): (WebFrame::loadedFromPageCache): (WebFrame::dispatchDidReceiveServerRedirectForProvisionalLoad): (WebFrame::dispatchDidCancelClientRedirect): (WebFrame::dispatchWillPerformClientRedirect): (WebFrame::dispatchDidChangeLocationWithinPage): (WebFrame::dispatchWillClose): (WebFrame::dispatchDidStartProvisionalLoad): (WebFrame::dispatchDidReceiveTitle): (WebFrame::dispatchDidCommitLoad): (WebFrame::dispatchDidFinishLoad): (WebFrame::dispatchDidFirstLayout): (WebFrame::dispatchShow): (WebFrame::cancelPolicyCheck): (WebFrame::dispatchWillSubmitForm): (WebFrame::dispatchDidLoadMainResource): (WebFrame::clearLoadingFromPageCache): (WebFrame::isLoadingFromPageCache): (WebFrame::revertToProvisionalState): (WebFrame::clearUnarchivingState): (WebFrame::progressStarted): (WebFrame::progressCompleted): (WebFrame::setMainFrameDocumentReady): (WebFrame::willChangeTitle): (WebFrame::didChangeTitle): (WebFrame::finishedLoading): (WebFrame::finalSetupForReplace): (WebFrame::setDefersLoading): (WebFrame::isArchiveLoadPending): (WebFrame::cancelPendingArchiveLoad): (WebFrame::clearArchivedResources): (WebFrame::canShowMIMEType): (WebFrame::representationExistsForURLScheme): (WebFrame::generatedMIMETypeForURLScheme): (WebFrame::frameLoadCompleted): (WebFrame::restoreScrollPositionAndViewState): (WebFrame::provisionalLoadStarted): (WebFrame::shouldTreatURLAsSameAsCurrent): (WebFrame::addHistoryItemForFragmentScroll): (WebFrame::didFinishLoad): (WebFrame::prepareForDataSourceReplacement): (WebFrame::userAgent): * WebFrame.h: * WebView.cpp: (WebView::stringByEvaluatingJavaScriptFromString): 2006-11-07 Anders Carlsson Reviewed by Oliver. Call IWebFrameLoadDelegate::windowScriptObject available when the window script object is available. * Interfaces/IWebFrameLoadDelegate.idl: Get MIDL to understand the JSC API types. * WebFrame.cpp: (WebFrame::windowScriptObjectAvailable): Call into the delegate. * WebFrame.h: 2006-11-07 Steve Falkenburg Versioning * WebKit.vcproj/VERSION: 2006-11-06 Steve Falkenburg Reviewed by Geoff. Export JavaScriptCore C API via WebKit. * WebKit.vcproj/WebKit.def: * WebKit.vcproj/WebKit_debug.def: 2006-11-06 Kevin McCullough -Fix test fields accepting text. * WebKit.vcproj/WebKit.vcproj: 2006-11-06 Geoffrey Garen Oops. Forgot to add these files. Changed comment that Darin mentioned, too. * WebChromeClient.cpp: * WebScreenClient.cpp: Added. (WebScreenClient::create): (WebScreenClient::WebScreenClient): (WebScreenClient::depth): (WebScreenClient::depthPerComponent): (WebScreenClient::isMonochrome): (WebScreenClient::rect): (WebScreenClient::usableRect): * WebScreenClient.h: Added. 2006-11-06 Geoffrey Garen Reviewed by Darin. Stubbed out the Chrome and Screen clients. * WebChromeClient.cpp: (WebChromeClient::setWindowRect): (WebChromeClient::windowRect): (WebChromeClient::pageRect): (WebChromeClient::scaleFactor): (WebChromeClient::focus): (WebChromeClient::unfocus): (WebChromeClient::createWindow): (WebChromeClient::createModalDialog): (WebChromeClient::show): (WebChromeClient::setToolbarsVisible): (WebChromeClient::toolbarsVisible): (WebChromeClient::setStatusbarVisible): (WebChromeClient::statusbarVisible): (WebChromeClient::setScrollbarsVisible): (WebChromeClient::scrollbarsVisible): (WebChromeClient::setMenubarVisible): (WebChromeClient::menubarVisible): (WebChromeClient::setResizable): * WebChromeClient.h: * WebKit.vcproj/WebKit.vcproj: * WebView.cpp: (WebView::initWithFrame): 2006-11-06 Beth Dakin Reviewed by Anders. Oops! Silly mistake! * WebElementPropertyBag.cpp: (convertStringToVariant): 2006-11-06 Steve Falkenburg Fix build * WebMutableURLRequest.cpp: 2006-11-05 Beth Dakin Reviewed by Steve and Anders. And sort of Maciej. Here is a basic implementation of elementAtPoint for Boomer. * Interfaces/IWebView.idl: The definitions of the WebElementPropertyBag keys. * MarshallingHelpers.cpp: (MarshallingHelpers::intRectToSafeArray): New safe array creation function that creates a safe array out of an IntRect. * MarshallingHelpers.h: * WebElementPropertyBag.cpp: Added. This is the equivalent of WebElementDictionary on the Mac. (WebElementPropertyBag::WebElementPropertyBag): (WebElementPropertyBag::~WebElementPropertyBag): (WebElementPropertyBag::QueryInterface): (WebElementPropertyBag::AddRef): (WebElementPropertyBag::Release): (isEqual): (convertStringToVariant): (WebElementPropertyBag::Read): This is the bulk of the class. It compares the input key to all of the possible keys and calls the appropriate function for each. (WebElementPropertyBag::Write): Writing is not actually allowed. * WebElementPropertyBag.h: Added. * WebKit.vcproj/WebKit.vcproj: * WebView.cpp: (WebView::elementAtPoint): Call into frame to get the HitTestResult for the point and set elementDictionary to the WebElementPropertyBag for the result. 2006-11-05 Steve Falkenburg Fix build breaks * WebFrame.cpp: * WebFrame.h: 2006-11-04 Darin Adler * WebView.cpp: (WebView::initWithFrame): Removed setMainFrame call and deref of Frame, now handled by Frame's constructor. 2006-11-03 Maciej Stachowiak Reviewed by Adele. - replaced receivedRedirect with new willSendRequest delegate - removed most mac-specific loader functions - use ResourceResponse more in loader code * WebFrame.cpp: (WebFrame::willSendRequest): Rearranged from former receivedRedirect. * WebFrame.h: 2006-11-03 Anders Carlsson Build fix. * WebChromeClient.cpp: 2006-11-03 Geoffrey Garen Reviewed by Darin, Beth. Updated to use ChromeClient. * WebChromeClient.cpp: Added. (WebChromeClient::create): (WebChromeClient::WebChromeClient): (WebChromeClient::canRunModal): (WebChromeClient::runModal): * WebChromeClient.h: Added. * WebKit.vcproj/WebKit.vcproj: * WebView.cpp: (WebView::initWithFrame): 2006-11-01 Ada Chan Reviewed by sfalken. Implemented the DOM API that pubsub needs: IDOMDocument::getElementsByTagName IDOMDocument::getElementsByTagNameNS (they don't need this, but might as well add it) IDOMNodeList IDOMNode::nodeValue Added something I'll need for RSS integration: IWebHistoryItemPrivate::RSSFeedReferrer IWebHistoryItemPrivate::setRSSFeedReferrer * DOMCoreClasses.cpp: (DOMNode::nodeValue): (DOMNode::DOMNode): (DOMNode::~DOMNode): (DOMNode::createInstance): (DOMNodeList::QueryInterface): (DOMNodeList::item): (DOMNodeList::length): (DOMNodeList::DOMNodeList): (DOMNodeList::~DOMNodeList): (DOMNodeList::createInstance): (DOMDocument::getElementsByTagName): (DOMDocument::getElementsByTagNameNS): (DOMDocument::DOMDocument): (DOMDocument::~DOMDocument): (DOMElement::DOMElement): (DOMElement::~DOMElement): * DOMCoreClasses.h: (DOMNodeList::AddRef): (DOMNodeList::Release): (DOMNodeList::throwException): (DOMNodeList::callWebScriptMethod): (DOMNodeList::evaluateWebScript): (DOMNodeList::removeWebScriptKey): (DOMNodeList::stringRepresentation): (DOMNodeList::webScriptValueAtIndex): (DOMNodeList::setWebScriptValueAtIndex): (DOMNodeList::setException): * Interfaces/IWebHistoryItemPrivate.idl: * WebHistoryItem.cpp: (WebHistoryItem::WebHistoryItem): (WebHistoryItem::~WebHistoryItem): (WebHistoryItem::RSSFeedReferrer): (WebHistoryItem::setRSSFeedReferrer): * WebHistoryItem.h: 2006-10-31 Marvin Decker Reviewed by Maciej. - merged changes for: - fixed "Stop and reload don't work on the WebView" http://bugs.webkit.org/show_bug.cgi?id=11285 Most of htis was already in this tree. * WebFrame.cpp: (WebFrame::stopLoading): Implement. Added FIXME. 2006-10-31 Steve Falkenburg Bumped version to 521.29 * WebKit.vcproj/VERSION: 2006-10-30 Kevin McCullough Reviewed by Steve. - Added basic functionality for running javascript from the address bar. Currently no return results are evaluated so use alert messages to see the results. * WebView.cpp: (WebView::stringByEvaluatingJavaScriptFromString): 2006-10-31 Adam Roben Build fixes. * WebEditorClient.cpp: Add stubs for new methods. (WebEditorClient::isContinuousSpellCheckingEnabled): (WebEditorClient::isGrammarCheckingEnabled): (WebEditorClient::spellCheckerDocumentTag): * WebEditorClient.h: Add declarations for new methods. * WebFrame.cpp: Fix #includes to use new platform/graphics directory. * WebView.cpp: Ditto. * WebKit.vcproj/WebKit.vcproj: Add platform/graphics to include path. 2006-10-29 Steve Falkenburg Reviewed by Adam, Ada. Expose printing methods in IWebViewPrivate and removed LPARAM-based dispatching. Call StretchDIBits instead of BitBlt. Add a maximum DPI (currently set at 300) to speed up printing. Add support needed for print preview. * Interfaces/IWebViewPrivate.idl: added startPrintJob, endPrintJob, getPrintedPageCount, printPage * WebView.cpp: Added MAXIMUM_DPI setting to limit the size of print jobs for performance reasons (getPrintRects): Added. Factored out of print, added maximum DPI handling. (WebView::startPrintJob): Factored out of print (WebView::endPrintJob): Factored out of print (WebView::getPrintedPageCount): Factored out of print (WebView::printPage): Factored out of print. Replaced call to BitBlt with StretchDIBits (WebViewWndProc): Re-add support for printing a window (used by bug reporter code) * WebView.h: added startPrintJob, endPrintJob, getPrintedPageCount, printPage 2006-10-30 Anders Carlsson Reviewed by Adam. Add "null plugin" image resource. * WebKit.vcproj/WebKit.rc: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/nullplugin.png: Added. * WebKit.vcproj/resource.h: * WebKitDLL.cpp: (loadResourceIntoArray): 2006-10-29 Maciej Stachowiak Reviewed by Anders. - added ResourceResponse class and didReceiveResponse delegate call * WebFrame.cpp: (WebFrame::didReceiveResponse): Updated from receivedResponse. * WebFrame.h: * WebURLResponse.cpp: (WebURLResponse::WebURLResponse): Reimplemented to work in terms of WebCore::ResourceResponse (ditto for below). Uses BString to convert strings as needed. (WebURLResponse::~WebURLResponse): (WebURLResponse::createInstance): (WebURLResponse::expectedContentLength): (WebURLResponse::initWithURL): (WebURLResponse::MIMEType): (WebURLResponse::suggestedFilename): (WebURLResponse::textEncodingName): (WebURLResponse::URL): (WebURLResponse::suggestedFileExtension): * WebURLResponse.h: 2006-10-29 Maciej Stachowiak Rubber stamped by Darin. - renamed ResourceLoader to ResourceHandle (and same for related classes) * WebFrame.cpp: (WebFrame::loadDataSource): (WebFrame::receivedRedirect): (WebFrame::receivedResponse): (WebFrame::didReceiveData): (WebFrame::didFinishLoading): * WebFrame.h: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebURLResponse.h: * WebView.cpp: 2006-10-27 Steve Falkenburg Reviewed by Maciej. Tighten up warning levels by removing #pragma warning(push, 0), pop * WebBackForwardList.h: * WebFrame.h: * WebIconDatabase.h: 2006-10-25 Steve Falkenburg Reviewed by Darin. Checked in Luke's CG printing code * WebView.cpp: (WebView::print): added (WebViewWndProc): call print from WM_PRINTCLIENT * WebView.h: added print, m_pages, rearranged includes 2006-10-24 Steve Falkenburg Bump version to 521.28.6 * WebKit.vcproj/VERSION: 2006-10-24 Anders Carlsson * WebFrame.cpp: (WebFrame::loadDataSource): Forgot to save before committing. Call begin before trying to access the document. 2006-10-24 Anders Carlsson Fix build. (Update for changes to ResourceLoader) * WebFrame.cpp: (WebFrame::loadDataSource): * WebURLResponse.cpp: (WebURLResponse::createInstance): 2006-10-23 Ada Chan Reviewed by sfalken. We forgot to add a reference in WebNotificationCenter::addObserver. * WebNotificationCenter.cpp: (WebNotificationCenter::addObserver): 2006-10-23 Steve Falkenburg Reviewed by Lou. * MarshallingHelpers.cpp: (MarshallingHelpers::BSTRToCFStringRef): Fix leak in BSTRToCFStringRef * WebEditorClient.cpp: (WebEditorClient::WebEditorClient): Break dependency cycle by not holding a COM ref to the WebView (WebEditorClient::~WebEditorClient): Break dependency cycle by not holding a COM ref to the WebView * WebFrame.cpp: (WebFrame::initWithWebFrameView): (WebFrame::windowResizerRect): Fix reference leaks * WebHistory.cpp: (createUserInfoFromArray): Fixed leak of key CFStringRef. (WebHistory::setOptionalSharedHistory): Made this callable with a 0 to release shared history (_WebCoreHistoryProvider::_WebCoreHistoryProvider): Don't hold a ref to the WebHistory (_WebCoreHistoryProvider::~_WebCoreHistoryProvider): Don't hold a ref to the WebHistory (_WebCoreHistoryProvider::containsItemForURLLatin1): Don't hold a ref to the WebHistoryPrivate * WebHistoryItem.cpp: (WebHistoryItem::WebHistoryItem): Don't hold a reference to the WebIconDatabase * WebIconDatabase.cpp: (WebIconDatabase::~WebIconDatabase): Delete core icon db on delete * WebNotificationCenter.cpp: (ObserverKey::ObserverKey): Init data to 0 before calling assignment op (ObserverKey::operator=): Free old string, release old ref if needed before copy 2006-10-23 Adam Roben Build fix. * WebFrame.cpp: Change header paths to point to new platform/network directory and subdirectories. * WebFrame.h: Ditto. * WebURLResponse.cpp: Ditto. * WebURLResponse.h: Ditto. * WebView.cpp: Ditto. * WebKit.vcproj/WebKit.vcproj: Add platform/network and subdirectories to AdditionalIncludeDirectories. 2006-10-23 Maciej Stachowiak Rubber-stamped by Anders. - fixed for ResourceLoader refactoring. * WebFrame.cpp: (WebFrame::didReceiveData): (WebFrame::didFinishLoading): * WebFrame.h: 2006-10-21 Timothy Hatcher Reviewed by Geoff. Stub out the new shouldShowDeleteInterface method. * WebEditorClient.cpp: (WebEditorClient::shouldShowDeleteInterface): * WebEditorClient.h: 2006-10-20 Dave Hyatt Fix build bustage with spaces in names in cygwin home dirs with webkit's auto-version.sh script. * WebKit.vcproj/auto-version.sh: Fix a horrible memory leak with multiple windows. WebViews need to delete their backing stores. * WebView.cpp: (WebView::~WebView): 2006-10-20 Steve Falkenburg Reviewed by Hyatt. Make the auto-version script work with paths that contain spaces * WebKit.vcproj/auto-version.sh: 2006-10-20 Steve Falkenburg Build fix. * WebView.cpp: (webKitVersion): 2006-10-20 Steve Falkenburg Reviewed by Ada. Boomer userAgent string needs to support pulling in proper build #, plus customization Useragent/versioning changes Stamp auto-generated version number into DLL and into user agent. Generate a real user agent string instead of hardcoding one. Support client supplying an application name for the user agent. Support client overriding the useragent (for debug menu). Support per-URL user agents (not used at least for now). Also fixed a bug I recently introduced that broke form submit. * WebFrame.cpp: (WebFrame::loadData): stash original request URL (WebFrame::loadHTMLString): stash original request URL (WebFrame::loadDataSource): stash original request URL (WebFrame::userAgentForURL): implemented (WebFrame::originalRequestURL): implemented * WebFrame.h: Changed FrameWinClient userAgent() to userAgentForURL in case we want to serve specific URLs for compatibility, added originalRequestURL * WebKit.vcproj/PRODUCTVERSION: Added. * WebKit.vcproj/VERSION: Added. * WebKit.vcproj/WebKit.rc: Stamp autogenerated version number at build time. * WebKit.vcproj/WebKit.vcproj: Stamp autogenerated version number at build time. * WebKit.vcproj/auto-version.sh: Added. * WebKit.vcproj/autoversion.h: Removed. * WebView.cpp: (WebView::WebView): Remove some no longer needed initialization (WebView::~WebView): Remove some no longer needed cleanup (osVersion): call to return the OS version as a string (language): call to return the language as a string (webKitVersion): call to return the version of WebKit as a string (WebView::userAgentForKURL): fast version of userAgentForURL (no BSTR marshalling) (WebView::initWithFrame): Use String instead of BSTR. (WebView::setApplicationNameForUserAgent): implemented (WebView::applicationNameForUserAgent): implemented (WebView::setCustomUserAgent): implemented (WebView::customUserAgent): implemented (WebView::userAgentForURL): implemented (WebView::setCustomTextEncodingName): switch to WebCore::String storage (WebView::customTextEncodingName): switch to WebCore::String storage (WebView::setGroupName): switch to WebCore::String storage (WebView::groupName): switch to WebCore::String storage (WebView::onNotify): * WebView.h: Switch over to using WebCore::Strings instead of BSTRs in a few places, added m_applicationName, removed m_frameName. 2006-10-20 Alice Liu Reviewed by Steve and Maciej. Adding knowledge of the Editor and EditorClient to Windows WebKit * Interfaces/IWebEditingDelegate.idl: needs IWebView.idl * WebEditorClient.cpp: Added (WebEditorClient::WebEditorClient): (WebEditorClient::~WebEditorClient): (WebEditorClient::shouldDeleteRange): (WebEditorClient::shouldBeginEditingInRange): (WebEditorClient::shouldEndEditingInRange): (WebEditorClient::shouldInsertNode): (WebEditorClient::shouldApplyStyle): (WebEditorClient::shouldChangeTypingStyle): (WebEditorClient::webViewDidBeginEditing): (WebEditorClient::webViewDidChange): (WebEditorClient::webViewDidEndEditing): (WebEditorClient::webViewDidChangeTypingStyle): (WebEditorClient::webViewDidChangeSelection): * WebEditorClient.h: Added. * WebFrame.cpp: (WebFrame::initWithWebFrameView): created an editor client * WebKit.vcproj/WebKit.vcproj: added WebEditorClient files 2006-10-20 Steve Falkenburg Implement (barely) more of DOMWindow.idl. * Interfaces/DOMWindow.idl: 2006-10-20 Adam Roben Reviewed by Darin. Build fix. Stubbing out DOMWindow.idl, which was forgotten in the last checkin. * Interfaces/DOMWindow.idl: Added. 2006-10-19 Steve Falkenburg Reviewed by Adam. Holding down Ctrl when a redirect happens opens the redirected page in a new tab View Source is using syntax highlighting and should probably punt on that (due to its many issues) and show the original data in a WebView as plaintext. Also added a bunch of DOM bindings for events. * DOMEventsClasses.cpp: Added. * DOMEventsClasses.h: Added. * Interfaces/DOMEvents.idl: Added. * WebFrame.cpp: (WebFrame::loadData): Implemented (WebFrame::openURL): Added triggeringEvent parameter * WebFrame.h: Added triggeringEvent parameter * WebKit.vcproj/Interfaces.vcproj: Added DOMEvents.idl, DOMWindow.idl * WebKit.vcproj/WebKit.vcproj: Added DOMEventsClasses.cpp, DOMEventsClasses.h * WebKit.vcproj/WebKitGUID.vcproj: Added DOMEvents_i.c 2006-10-19 Anders Carlsson * WebFrame.cpp: (WebFrame::initWithWebFrameView): Build fix. 2006-10-18 Alice Liu Reviewed by Steve. Any file that #includes WebView.h also needed to include IWebURLResponse.h since IWebView.h needed it. Adding this to the IDL file. * Interfaces/IWebDataSource.idl: re-arranged imports because not all were being generated due to weird IDL file compiler bug * Interfaces/IWebView.idl: added reference to IWebURLResponse.h * WebFrame.cpp: * WebKitClassFactory.cpp: * WebView.cpp: removed reference to IWebURLResponse.h 2006-10-18 Steve Falkenburg Reviewed by Lou. Need API for setting the rendering modes Added font smoothing preference Fixed some COM interface typos Removed use of IWebImage (we use HBITMAP instead) * DOMHTMLClasses.cpp: (DOMHTMLDocument::body): fixed typos (DOMHTMLFormElement::elements): fixed typos (DOMHTMLInputElement::form): fixed typos (DOMHTMLTextAreaElement::form): fixed typos * DOMHTMLClasses.h: fixed typos * Interfaces/DOMCSS.idl: fixed typos * Interfaces/DOMHTML.idl: fixed typos * Interfaces/DOMRange.idl: fixed typos * Interfaces/IWebArchive.idl: fixed typos * Interfaces/IWebDataSource.idl: fixed typos * Interfaces/IWebDocument.idl: fixed typos * Interfaces/IWebEditingDelegate.idl: fixed typos * Interfaces/IWebFrameLoadDelegate.idl: fixed typos * Interfaces/IWebFrameView.idl: fixed typos * Interfaces/IWebHistoryItem.idl: fixed typos * Interfaces/IWebIconDatabase.idl: fixed typos * Interfaces/IWebImage.idl: Removed. * Interfaces/IWebPreferences.idl: added font smoothing getter/setter * Interfaces/IWebURLAuthenticationChallenge.idl: * Interfaces/IWebView.idl: fixed typos * Interfaces/WebKit.idl: removed IWebImage * WebDataSource.cpp: (WebDataSource::webArchive): fixed typos (WebDataSource::mainResource): fixed typos (WebDataSource::subresourceForURL): fixed typos * WebDataSource.h: fixed typos * WebHistoryItem.cpp: (WebHistoryItem::icon): fixed typos * WebHistoryItem.h: fixed typos * WebKit.vcproj/Interfaces.vcproj: removed IWebImage * WebKit.vcproj/WebKitGUID.vcproj: removed IWebImage * WebPreferenceKeysPrivate.h: added font smoothing prefs key * WebPreferences.cpp: (WebPreferences::initialize): font smoothing pref (WebPreferences::fontSmoothing): added (WebPreferences::setFontSmoothing): added * WebPreferences.h: added font smoothing getter/setter * WebView.cpp: (WebView::windowScriptObject): fixed typos (WebView::mainFrameIcon): removed IWebImage (WebView::undoManager): fixed typos * WebView.h: 2006-10-17 Steve Falkenburg Reviewed by ggaren. History menu gets borked if you visit a page with no title. The History menu is frequently utterly corrupted, with incorrect favicons next to mismatched titles. Page titles in History menu are incorrect Pages without title show an old title instead of a default title * Interfaces/IWebHistoryItemPrivate.idl: added setTitle to set title for a page after we receive it * WebFrame.cpp: Removed unnecessary WebFramePrivate::title (WebFrame::goToItem): Get back/forward list via frame-aware getter (WebFrame::receivedRedirect): Use BString (WebFrame::receivedResponse): Use BString. Get back/forward list, history via frame-aware getters. (WebFrame::createFrame): Use BString (WebFrame::submitForm): Clean up up BSTR usage (WebFrame::setTitle): Set title in back/forward, history when received (WebFrame::backForwardList): Frame-aware getter for back/forward (WebFrame::webHistory): Frame-aware getter for history * WebFrame.h: Added frame-aware getters for history, back/forward * WebHistory.cpp: Reorder includes. (WebHistory::QueryInterface): Support QI to WebHistory via CLSID (avoids yucky static cast in other places) * WebHistoryItem.cpp: (WebHistoryItem::setTitle): Added * WebHistoryItem.h: Added setTitle * WebView.cpp: (WebView::QueryInterface): Support QI to WebView via CLSID 2006-10-17 Steve Falkenburg Reviewed by Maciej. Switch over to ICU 3.6 * WebKit.vcproj/WebKit.vcproj: 2006-10-17 Oliver Hunt Reviewed by Brady. Fix flickering cursor * WebView.cpp: (registerWebViewWindowClass): 2006-10-15 Adam Roben Reviewed by Geoff, Anders. Fix crash on startup. We were crashing somewhere inside Frame::setResourceRequest. I'm not sure what change made this start crashing. * WebFrame.cpp: (WebFrame::receivedResponse): Remove useless calls to Frame::resourceRequest and Frame::setResourceRequest. 2006-10-13 Dave Hyatt Make sure the backing store is flushed when themes are changed. Reviewed by aroben * WebView.cpp: (WebViewWndProc): 2006-10-12 Adam Roben Build fix (broken by OpenSource r17006) * WebFrame.cpp: (WebFrame::receivedResponse): 2006-10-12 Dave Hyatt Implement full-blown double buffering (keeping a bitmap in the WebView that holds the backing store for it). Reviewed by mjs * WebFrame.cpp: (WebFrame::addToDirtyRegion): (WebFrame::scrollBackingStore): (WebFrame::updateBackingStore): * WebFrame.h: * WebView.cpp: (WebView::WebView): (WebView::ensureBackingStore): (WebView::addToDirtyRegion): (WebView::scrollBackingStore): (WebView::updateBackingStore): (WebView::paint): (WebView::paintIntoBackingStore): (WebView::paintIntoWindow): (WebViewWndProc): * WebView.h: (WebView::topLevelFrame): 2006-10-10 Steve Falkenburg Reviewed by Adam. Crash in CoreFoundation parsing a "corrupt" plist Prevent crash when we encounter a corrupt history plist by using structured exception handling to catch the crash and return an empty history list. * WebHistory.cpp: (WebHistory::loadHistoryGutsFromURL): 2006-10-11 Darin Adler Reviewed by Beth. - fix problem where you can't type in subframes * WebView.cpp: (WebViewWndProc): Use WebView's focusedTargetFrame() function instead of sending everything to the main frame. 2006-10-09 Brady Eidson Reviewed by Steve - WebPreferences for IconDatabase hooked up This completes the above task by implementing the icon database location preference * WebIconDatabase.cpp: (WebIconDatabase::init): Get the location from the prefs, fallback to the default via shell call * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initialize): (WebPreferences::iconDatabaseLocation): (WebPreferences::setIconDatabaseLocation): 2006-10-07 Adam Roben Reviewed by Anders. Merge of OpenSource r16884 http://bugs.webkit.org/show_bug.cgi?id=11199 Update Session History when a load is committed rather than completed. * WebFrame.cpp: (WebFrame::receivedResponse): (WebFrame::receivedAllData): 2006-10-07 Adam Roben Reviewed by Steve. Fix for failed ASSERT on iBench. * WebFrame.cpp: (WebFrame::receivedAllData): Be a bit more lenient about what ResourceLoader has called WebFrame::receivedAllData 2006-10-06 Geoffrey Garen Reviewed by Adam Roben, esq. Fixed Crash on ebay.com in Frame::didOpenURL The issue was a resource loader making a callback to a frame after the frame had been destroyed. This doesn't happen on Mac because Mac WebKit cancels all loads before tearing down frames. The solution is to add a callback to Win WebKit to allow a frame to cancel its main resource load. This is a temporary work-around. It is temporary because it doesn't address pending subresource loads. The long-term solution we anticipate is to have a legitimate loader inside WebCore. * WebFrame.cpp: (WebFrame::loadDataSource): (WebFrame::stopMainResourceLoad): (WebFrame::receivedAllData): * WebFrame.h: 006-10-06 Steve Falkenburg Use a better versioning scheme. Out version #s for Boomer are the same as the last Mac submission + the addition of "b". This first versioned submission is 521.28b * WebKit.vcproj/WebKit.rc: 2006-10-06 Steve Falkenburg Bump version number. * WebKit.vcproj/WebKit.rc: 2006-10-06 Steve Falkenburg Reviewed by Adam, Lou. Corrupt history.plist = crash on startup Fix improper CF usage that likely led to retain/release imbalances. Resizer fixes. We now properly invalidate and draw overlapping contents or opaque. * Interfaces/IWebUIDelegatePrivate.idl: * WebFrame.cpp: (WebFrame::paintGripper): * WebHistory.cpp: (WebHistory::saveHistoryGuts): * WebHistoryItem.cpp: (WebHistoryItem::dictionaryRepresentation): 2006-10-06 Steve Falkenburg Reviewed by aroben. Scrollbars now dodge resizing gripper. Resizing gripper now paints via web ui delegate. Debug vcproj fixes. Fix redirects to search.com. Add support for painting and cursor tracking of resizer. * Interfaces/IWebUIDelegatePrivate.idl: added webViewDrawResizer. * WebFrame.cpp: (WebFrame::paint): added gripper drawing code. (WebFrame::receivedResponse): tell the app when we commit a page load. (WebFrame::windowResizerRect): added. (WebFrame::paintGripper): added. * WebFrame.h: added windowResizerRect, paintGripper. * WebKit.vcproj/WebKit.vcproj: Link against debug libs, debug MSVC library in debug build. * WebView.cpp: (WebView::WebView): (WebView::~WebView): (WebView::inResizer): (WebViewWndProc): (WebView::setUIDelegate): * WebView.h: 2006-10-05 Dave Hyatt Fix clipping and transforms by making sure to propagate them as they happen on the CGContext over into the HDC. * WebFrame.cpp: (WebFrame::paintSingleRect): 2006-10-05 Adam Roben Build fix. * WebKit.vcproj/WebKitGUID.vcproj: Fix patch to IWebFramePrivate_i.c 2006-10-05 Anders Carlsson Reviewed by Maciej. A couple of changes needed for the new DumpRenderTree. * DOMCoreClasses.cpp: (DOMDocument::documentElement): Implement. * DOMHTMLClasses.cpp: (DOMHTMLElement::innerHTML): (DOMHTMLElement::setInnerHTML): (DOMHTMLElement::innerText): (DOMHTMLElement::setInnerText): * DOMHTMLClasses.h: (DOMHTMLFormElement::innerHTML): (DOMHTMLFormElement::setInnerHTML): (DOMHTMLFormElement::innerText): (DOMHTMLFormElement::setInnerText): (DOMHTMLSelectElement::innerHTML): (DOMHTMLSelectElement::setInnerHTML): (DOMHTMLSelectElement::innerText): (DOMHTMLSelectElement::setInnerText): (DOMHTMLOptionElement::innerHTML): (DOMHTMLOptionElement::setInnerHTML): (DOMHTMLOptionElement::innerText): (DOMHTMLOptionElement::setInnerText): (DOMHTMLInputElement::innerHTML): (DOMHTMLInputElement::setInnerHTML): (DOMHTMLInputElement::innerText): (DOMHTMLInputElement::setInnerText): (DOMHTMLTextAreaElement::innerHTML): (DOMHTMLTextAreaElement::setInnerHTML): (DOMHTMLTextAreaElement::innerText): (DOMHTMLTextAreaElement::setInnerText): * Interfaces/DOMHTML.idl: Implement innerText and add stubs for innerHTML, setInnerHTML and setInnerText. * Interfaces/IWebFramePrivate.idl: Added. * WebFrame.cpp: (WebFrame::QueryInterface): (WebFrame::renderTreeAsExternalRepresentation): (WebFrame::receivedAllData): Call Frame::end() before calling the frame load delegate methods. This matches the mac behavior. (WebFrame::didFirstLayout): (WebFrame::handledOnloadEvents): Add null checks for frameLoadDelegatePriv, all clients might not use it. * WebFrame.h: * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: Add new interface, IWebFramePrivate, which supports getting the render tree as text. 2006-10-05 Maciej Stachowiak Reviewed by Adam. - changed ResourceLoader to be refcounted It keeps a ref on itself while loading as well. This makes for a much saner memory management model than the previous. In addition, keep it ref'd across all of ResourceLoaderWndProc to avoid sending messages to jobs that get deleted partway. This fixes Crash in ResourceLoaderWndProc - line 232 at televisionwithoutpity.com, washingtonpost.com * WebFrame.cpp: (WebFrame::loadDataSource): 2006-10-05 Dave Hyatt Make key events work with iframes. Implement scrolling keyboard behavior. Fix a bug with mouse wheeling that made it fail on iframes nested within iframes. Reviewed by mjs * WebView.cpp: (WebView::handleMouseEvent): (WebView::focusedTarget): (WebView::focusedTargetFrame): (WebView::keyPress): (WebViewWndProc): * WebView.h: 2006-10-04 Adele Peterson Reviewed by Adam. - Fix for When typing past the end of a text field, the field doesn't auto-scroll to display the active caret Reveal the selection after inserting text. * WebView.cpp: (WebViewWndProc): 2006-10-05 Darin Adler Reviewed by Adam. - fix frame targeting not implemented. * WebFrame.h: Added newWindow parameter to openURL and changed the URL parameter to a String. * WebFrame.cpp: (WebFrame::openURL): Changed code to use BString to convert the String to a BSTR. Also respect the newWindow parameter and changed the new window code slightly, adding a FIXME. 2006-10-04 Dave Hyatt Fix painting so that we only do a layout if one is really needed. This actually fixes the non-blinking caret in text fields. * WebFrame.cpp: (WebFrame::WebFramePrivate::needsLayout): (WebFrame::paint): (WebFrame::layoutIfNeeded): (WebFrame::setNeedsLayout): * WebFrame.h: * WebView.cpp: (WebViewWndProc): 2006-10-03 Dave Hyatt Implement the same smart rect painting algorithm that I implemented on Mac a while back (where sometimes we don't use the big unioned invalidation rect but instead paint single rects out of the update region. Reviewed by anders * WebFrame.cpp: (WebFrame::paint): (WebFrame::paintSingleRect): * WebFrame.h: * WebView.cpp: (WebViewWndProc): (WebView::initWithFrame): 2006-10-03 Adam Roben Reviewed by Darin. Part of fix for Keyboard navigability Implement methods to determine tabbing preferences. * WebFrame.cpp: (WebFrame::tabsToLinks): * WebFrame.h: 2006-10-04 Darin Adler Reviewed by Adam. * WebView.cpp: (WebView::handleMouseEvent): Pass message when creating a PlatformMouseEvent. 2006-10-02 Adam Roben Backing out change from r10549 because it breaks installer builds. * WebKit.vcproj/WebKit.vcproj: 2006-10-02 Steve Falkenburg Reviewed by Geoff, Hyatt. Browser locks up while navigating to a new page Images fail to load at https://webmail.apple.com * WebFrame.cpp: Preserve old document until new doc has started loading. (WebFrame::loadDataSource): Don't destroy old document when a new load kicks off. (WebFrame::receivedResponse): Destroy old document when first data is received for new doc. * WebView.cpp: Fix painting suppression code. (WebViewWndProc): Suppress painting, mouse events until first layout instead of while loading. 2006-10-02 Adam Roben Build fix: Don't copy WebKit(_debug).dll into $WebKitSDKDir * WebKit.vcproj/WebKit.vcproj: Remove xcopy call 2006-09-30 Dave Hyatt Switch over from SetDIBBitsToDevice to BitBlt, since BitBlt is supposedly faster according to MSDN. * WebFrame.cpp: (WebFrame::paint): 2006-09-29 Steve Falkenburg Reviewed by Geoff. Allow WebKit to query for the rect of the resizer rather than just its size. * Interfaces/IWebUIDelegatePrivate.idl: 2006-09-29 Steve Falkenburg Reviewed by Adam, Geoff. Fix Plug-ins flash to white while scrolling. Set WS_CLIPCHILDREN on browser windows to clip out plug-in HWNDs when drawing. * WebView.cpp: (WebView::initWithFrame): 2006-09-29 Dave Hyatt Fix mouse event click handling to be correct. Reviewed by mjs * WebView.cpp: (WebView::handleMouseEvent): (WebViewWndProc): * WebView.h: 2006-09-28 Steve Falkenburg Reviewed by Maciej. Use $(ConfigSuffix) set via vsprops files to add _debug to end of debug filenames. Update B&I build script. Don't register WebKit.dll during official builds. * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.make: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: * WebKit.vcproj/WebKit_debug.def: Added. * WebKit.vcproj/debug.vsprops: Added. * WebKit.vcproj/release.vsprops: Added. 2006-09-27 Alice Liu Reviewed by Steve & Adam. This patch implements keyboard selection and select-all. This patch also hooks up engine side of copy/cut/paste but that won't work until we have clipboards. * Interfaces/IWebView.idl: Added enum for commands to be called by name * WebView.cpp: next 3 functions handle mouseevents so that multiple-click selection works (WebView::mouseMoved): (WebView::mouseDown): (WebView::mouseUp): (WebView::execCommand): Handled cut/copy/paste/delete/selectall (WebView::keyPress): Handled keyboard selection (WebViewWndProc): * WebView.h: Added prototype for execCommand function 2006-09-27 Steve Falkenburg Reviewed by Maciej. Leave ChickenCat SDK untouched by build. This change will become necessary once we have JavaScriptCore, WebCore, WebKit, and SafariWin in the ChickenCat SDK. Prefer pulling project dependencies from WebKitOutputDir over WebKitSDKDir. Don't copy build output back over to WebKitSDKDir. * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: * WebKit.vcproj/dstroot-to-sdk.cmd: Removed. 2006-09-27 Steve Falkenburg B&I build script tweaks. * WebKit.vcproj/WebKit.make: 2006-09-27 Brady Eidson Reviewed by Steve -Flipped the icon database back to ON by default as the crasher is resolved in WebCore -WebHistoryItems now retain/release their URLs in the Icon DB * WebHistoryItem.cpp: (WebHistoryItem::WebHistoryItem): Make sure the shared icon database has been referenced (WebHistoryItem::initFromDictionaryRepresentation): Retain/release the url (WebHistoryItem::initWithURLString): Ditto * WebHistoryItem.h: Keep a static reference to the shared icon database * WebIconDatabase.cpp: (WebIconDatabase::sharedWebIconDatabase): Added - for the shared WebIconDatabase object (WebIconDatabase::sharedIconDatabase): Changed to return the shared WebIconDatabase as the shared IWebIconDatabase * WebIconDatabase.h: * WebPreferences.cpp: (WebPreferences::initialize): IconDatabase ON by default 2006-09-27 Steve Falkenburg Reviewed by Adam. Fix . Hang using bugreporter in Boomer. Force text into simple code path in all cases. * WebFrame.cpp: (FormValuesPropertyBag::GetPropertyInfo): * WebPreferences.cpp: (WebPreferences::initialize): 2006-09-26 Steve Falkenburg Build fix for clean release build. * WebKit.vcproj/WebKitGUID.vcproj: 2006-09-27 Brady Eidson Disabled WebIconDatabase for now until I can figure out the crash...! * WebPreferences.cpp: (WebPreferences::initialize): 2006-09-26 Steve Falkenburg Build tweaks * WebKit.vcproj/WebKit.make: Added. * WebKit.vcproj/WebKit.vcproj: 2006-09-26 Sean Gies Reviewed by Brady Eidson. * WebFrame.cpp: (WebFrame::paint): Flip coordinates of CGBitmapContext. 2006-09-26 Steve Falkenburg Reviewed by Adam Roben. Fixed encoding menu. Set mime type in request. * WebFrame.cpp: (WebFrame::receivedResponse): * WebView.cpp: (WebView::setCustomTextEncodingName): 2006-09-26 Sean Gies Reviewed by Adam Roben. * WebKit.vcproj/WebKit.vcproj: Link to debug libraries for debug config. Copy debug libraries to target dir. Copy .pdb files along with .dll files. * WebKit.vcproj/WebKitGUID.vcproj: Link to Debug DLL C runtime. 2006-09-26 Steve Falkenburg Reviewed by Geoff. Don't add subframes to global history or back/forward. * WebFrame.cpp: (WebFrame::receivedAllData): (WebFrame::createFrame): 2006-09-26 Dave Hyatt Make sure we respond to Windows XP theme changes in the engine. Reviewed by andersca * WebView.cpp: (WebViewWndProc): 2006-09-25 Steve Falkenburg Add missing parameters to CG paint case. * WebFrame.cpp: (WebFrame::paint): 2006-09-24 Steve Falkenburg Implemented WM_PRINTCLIENT so we can take a screenshot of the current webpage for the "Report Bugs to Apple" sheet. Also may be useful in initial printing hook-up. * WebFrame.cpp: (WebFrame::paint): * WebFrame.h: * WebView.cpp: (WebViewWndProc): 2006-09-22 Steve Falkenburg Reviewed by Ada. Added IWebUIDelegatePrivate::webViewResizerSize so the engine can leave space for the vertical scroll bar. * Interfaces/IWebUIDelegatePrivate.idl: Added. * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: 2006-09-22 Alice Liu Reviewed by Adele. Windows release build fix * WebFrame.cpp: (WebFrame::initWithWebFrameView): 2006-09-21 Geoffrey Garen Reviewed by Maciej, Hyatt, Steve. frames! Prep work: - fixed WebFrame/WebView circular reference leak: ownership now looks like this (same as Mac): - WebView -> WebCore::Page -> WebCore::Frame -> WebFrame -> WebCore::FrameTree -> WebCore::Frame... - fixed notification center circular reference leak: The notification center no longer retains its clients; clients must take care to remove themselves upon destruction. Real work: - The WebView's onSize handler now updates the frame geometry of the main frame. This used to happen implicitly, since the WebView window and the main frame were synonymous. - Changed WebFrame painting code to use WebCore's FrameView painting code instead of rolling its own. - Removed WebFrame::initWithName from the public COM API and replaced it with the private initializer, WebFrame::initWithWebFrameView. We intend to deprecate initWithName on Mac because it's meaningless -- only WebCore should create frames. 2006-09-21 Steve Falkenburg Reviewed by Anders. Implemented JavaScript alert/confirm/prompt inside app. This is done via IWebUIDelegate. * WebFrame.cpp: (WebFrame::userAgent): (WebFrame::runJavaScriptAlert): (WebFrame::runJavaScriptConfirm): (WebFrame::runJavaScriptPrompt): * WebFrame.h: 2006-09-21 Sean Gies Reviewed by Adam Roben. Support form controls when rendering with CG. Fix some re-painting issues. * WebFrame.cpp: (WebFrame::paint): Added debug code to flash redrawn area. Construct GraphicsContext using DIB HDC, rather than a CGContext. Blit offscreen buffer using the dirty rectangle's offset. 2006-09-21 Sean Gies Reviewed by Adam Roben. * WebKit.vcproj/WebKit.vcproj: Link against CoreGraphics. 2006-09-21 Dave Hyatt Implement mouse wheel scrolling on Win32. * WebView.cpp: (WebView::mouseWheel): (WebViewWndProc): * WebView.h: 2006-09-20 Steve Falkenburg Reviewed by Ada Chan. Character encoding menu/switching Encoding menu and prefs pop-up are now hooked up and working. There's currently a problem where the encoding doesn't get picked up out of the incoming HTML document out of , so the text encoding menu comes in especially handy at the moment. * Interfaces/IWebDataSource.idl: * WebDataSource.cpp: (WebDataSource::WebDataSource): (WebDataSource::~WebDataSource): (WebDataSource::overrideEncoding): (WebDataSource::setOverrideEncoding): (WebDataSource::QueryInterface): (WebDataSource::textEncodingName): * WebDataSource.h: * WebFrame.cpp: (WebFrame::WebFrame): (WebFrame::loadRequest): (WebFrame::reloadAllowingStaleDataWithOverrideEncoding): (WebFrame::receivedResponse): (WebFrame::receivedData): (WebFrame::receivedAllData): * WebFrame.h: * WebKit.vcproj/WebKitGUID.vcproj: * WebMutableURLRequest.cpp: (WebMutableURLRequest::WebMutableURLRequest): (WebMutableURLRequest::setCachePolicy): * WebMutableURLRequest.h: * WebURLResponse.cpp: (WebURLResponse::textEncodingName): * WebView.cpp: (WebView::WebView): (WebView::supportsTextEncoding): (WebView::setCustomTextEncodingName): (WebView::customTextEncodingName): * WebView.h: 2006-09-20 Brady Eidson Reviewed by Steve Hooked up the preference for enabled/disabling the icon database * Interfaces/IWebPreferences.idl: * WebIconDatabase.cpp: (WebIconDatabase::init): * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initialize): (WebPreferences::iconDatabaseEnabled): (WebPreferences::setIconDatabaseEnabled): * WebPreferences.h: 2006-09-20 Brady Eidson Reviewed by Adam Removed an overzealous assertion that was made irrelevant by an earlier checking to WebCore::IconDatabase * WebIconDatabase.cpp: (WebIconDatabase::init): 2006-09-18 Sean Gies Reviewed by Adam Roben. * WebKit.vcproj/WebKit.vcproj: Link to CoreGraphics and copy its binaries to output dir. 2006-09-18 Adam Roben Build fix (release). * WebHistory.cpp: (_WebCoreHistoryProvider::containsItemForURLLatin1): Remove unused HRESULT. (_WebCoreHistoryProvider::containsItemForURLUnicode): Ditto. 2006-09-17 Adam Roben Build fix. * WebView.cpp: (WebView::keyPress): Add new "userTriggered" argument to calls to SelectionController::modify 2006-09-15 Adam Roben Reviewed by sfalken. Implement historyContains() on Windows (rdar://4733770) * WebHistory.cpp: Add new private _WebCoreHistoryProvider class. (WebHistory::setOptionalSharedHistory): Call WebCore::WebCoreHistory::setHistoryProvider so that WebCore can access history. (WebHistory::itemForURL): Extract itemForURLString method. (WebHistory::itemForURLString): Added. (WebHistory::containsItemForURLString): Added. (_WebCoreHistoryProvider::_WebCoreHistoryProvider): Added. (_WebCoreHistoryProvider::~_WebCoreHistoryProvider): Added. (matchLetter): Ported from Mac's WebHistory.m. (matchUnicodeLetter): Ditto. (_WebCoreHistoryProvider::containsItemForURLLatin1): Ditto. (_WebCoreHistoryProvider::containsItemForURLUnicode): Ditto. * WebHistory.h: Fix typo: IID_WebHistoryItemPrivate --> IID_WebHistoryPrivate, added new methods to IWebHistoryPrivate and WebHistory 2006-09-14 Steve Falkenburg Reviewed by Lou Amadio. iBench fix - fix null deref in form submission case without a form element. * WebFrame.cpp: (WebFrame::submitForm): 2006-09-12 Steve Falkenburg Reviewed by NOBODY (OOPS!). Get Boomer ready for B&I submission. Projects can now all build independent of one another without groping for headers or source across trees. * DOMCSSClasses.cpp: Use more explicit include paths to highlight external headers. * DOMCSSClasses.h: Use more explicit include paths to highlight external headers. * DOMCoreClasses.cpp: Use more explicit include paths to highlight external headers. * DOMHTMLClasses.cpp: Use more explicit include paths to highlight external headers. * WebDataSource.cpp: Use more explicit include paths to highlight external headers. * WebFrame.cpp: Use more explicit include paths to highlight external headers. * WebFrame.h: Use more explicit include paths to highlight external headers. * WebHTMLRepresentation.cpp: Use more explicit include paths to highlight external headers. * WebHistory.cpp: Fix capitalization of wtf. * WebKit.vcproj/Interfaces.vcproj: Updated to new obj layout. * WebKit.vcproj/WebKit.sln: Updated standalone sln for use by B&I. * WebKit.vcproj/WebKit.vcproj: Updated to new obj layout. * WebKit.vcproj/WebKitGUID.vcproj: Updated to new obj layout. * WebKit.vcproj/dstroot-to-sdk.cmd: Copy built bits back to WebKitSDKDir for dependent builds. * WebKitDLL.cpp: Use more explicit include paths to highlight external headers. * WebNotificationCenter.cpp: Use more explicit include paths to highlight external headers. * WebPreferences.cpp: Fix capitalization of wtf. * WebURLResponse.cpp: Use more explicit include paths to highlight external headers. * WebURLResponse.h: Use more explicit include paths to highlight external headers. * WebView.cpp: Use more explicit include paths to highlight external headers. 2006-09-13 Ada Chan Reviewed by sfalken - WebBackForwardList::containsItem() - we can break once we've found the item - Fixed a crashing bug with WebNotificationCenter::addObserver. * WebBackForwardList.cpp: (WebBackForwardList::containsItem): * WebNotificationCenter.cpp: (ObserverKey::ObserverKey): (ObserverKey::operator=): 2006-09-10 Brady Eidson Reviewed by Steve Falkenburg Made changes to IWebIconDatabase and implemented it in WebIconDatabase * Interfaces/IWebIconDatabase.idl: Returns HBITMAPs, not IWebImages * WebIconDatabase.cpp: (WebIconDatabase::WebIconDatabase): (userIconDatabasePath): Get the user's datapath via a shell call (WebIconDatabase::init): Initialize the WebCore::IconDatabase (WebIconDatabase::sharedIconDatabase): Get the shared IWebIconDatabase (WebIconDatabase::iconForURL): Implemented (WebIconDatabase::defaultIconWithSize): Ditto (WebIconDatabase::retainIconForURL): Ditto (WebIconDatabase::releaseIconForURL): Ditto (createDIB): Created a DIB of a given size for storage in a hash (WebIconDatabase::getOrCreateSharedBitmap): Get a "shared" bitmap from the hash, or create and store it (WebIconDatabase::getOrCreateDefaultIconBitmap): Ditto for the Default Icons HBITMAPs * WebIconDatabase.h: * WebKit.vcproj/WebKit.vcproj: 2006-09-10 Steve Falkenburg Rubber-stamp by aroben. Pick up SDK from $(WebKitSDKDir). * WebKit.vcproj/WebKit.vcproj: 2006-09-09 Steve Falkenburg Reviewed by aroben. Boomer SDK migration. Pull all external dependencies in from Boomer SDK. SDK should be installed into C:\AppleInternal (substitute your system drive letter for C - scripts don't hard-code the drive letter) Also fixed CFNetwork build variant * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: * WebURLResponse.cpp: (WebURLResponse::createInstance): 2006-09-08 Brady Eidson Reviewed by Adam Add stubs for an IconDatabase path stored as a preference * Interfaces/IWebPreferences.idl: * WebPreferences.cpp: (WebPreferences::iconDatabaseLocation): (WebPreferences::setIconDatabaseLocation): * WebPreferences.h: 2006-09-07 Steve Falkenburg Reviewed by Lou Amadio. Fix CFArray allocator usage for cases where we store CF types in the array. * WebHistory.cpp: (WebHistory::WebHistory): (WebHistory::datesArray): 2006-09-06 Brady Eidson Reviewed by Steve and Sarge Added urlIcon.png as a resource for WebCore images * WebKit.vcproj/WebKit.rc: * WebKit.vcproj/resource.h: * WebKit.vcproj/urlIcon.png: Added. * WebKitDLL.cpp: (loadResourceIntoArray): Added case for "urlIcon" 2006-09-06 Adam Roben Reviewed by Darin. Fixed various Windows build problems caused by previous checkins. * WebKitDLL.h: Disable deprecation warning triggered by using std::copy on a Vector. * WebView.cpp: (WebView::keyPress): Rename selection to selectionController. 2006-09-05 Steve Falkenburg Reviewed by Lou Amadio. File Open/Save Implemened Save As to save raw page source (we don't support web archives). Currently we are saving a copy of the raw data in the FrameView (to return when requested via IWebDataSource::data). This needs to be shared with CFNetwork once CFNetwork integration is complete. * MemoryStream.cpp: Added. (MemoryStream::MemoryStream): (MemoryStream::~MemoryStream): (MemoryStream::createInstance): (MemoryStream::QueryInterface): (MemoryStream::AddRef): (MemoryStream::Release): (MemoryStream::Read): (MemoryStream::Write): (MemoryStream::Seek): (MemoryStream::SetSize): (MemoryStream::CopyTo): (MemoryStream::Commit): (MemoryStream::Revert): (MemoryStream::LockRegion): (MemoryStream::UnlockRegion): (MemoryStream::Stat): (MemoryStream::Clone): * MemoryStream.h: Added. * WebDataSource.cpp: (WebDataSource::data): * WebFrame.cpp: (WebFrame::controlsInForm): (WebFrame::canProvideDocumentSource): (WebFrame::receivedResponse): (WebFrame::receivedData): * WebFrame.h: (WebFrame::data): * WebHTMLRepresentation.cpp: (WebHTMLRepresentation::canProvideDocumentSource): * WebKit.vcproj/WebKit.vcproj: * WebURLResponse.cpp: (WebURLResponse::createInstance): (WebURLResponse::suggestedFilename): (WebURLResponse::suggestedFileExtension): * WebURLResponse.h: 2006-09-01 Steve Falkenburg Reviewed by adachan. Process redirects received in networking layer through to application. With this change, the address bar url edit field shows the proper redirected URL. Fixed GetAsyncKeyState() calls. * WebFrame.cpp: (WebFrame::receivedRedirect): * WebMutableURLRequest.cpp: (WebMutableURLRequest::setURL): 2006-09-01 Steve Falkenburg Reviewed by kevin. Fix back/forward regression. Combining the two receivedAllData methods into one broke back/forward navigation, since we put the resetting of m_quickRedirectComing and m_loadType at the start of the combined method, but have code in the rest of receivedAllData that relies on these having their old values. * WebFrame.cpp: (WebFrame::receivedAllData): 2006-08-30 Steve Falkenburg Reviewed by Ada Chan. Forms Auto-complete checkpoint. Generic forms autocomplete drop-downs are now functional. Address book autocomplete (and credit card autocomplete) is not functional. To do: - username/password pairs autofill - address book autofill - single-click autofill - credit card autofill - keychain equivalent secure store for username/passwords and credit cards (we currently use DPAPI to encrypt the form values plist but will want to protect this more sensitive info using an additional user supplied password) DOMCoreClasses.cpp,.h: Fix typo in DOMNode::QueryInterface. Add IDOMViewCSS. Additional DOMDocument implementation. Add IDOMNodeExtensions, IDOMElementCSSInlineStyle, IDOMElementExtensions. DOMCSSClasses.h: Added. DOMHTMLClasses.cpp,.h: Additional implementation. WebFrame.cpp,.h: Added IWebFormSubmissionListener. Additional implementation. DOMPrivate.idl: Added. DOMCore.idl: Add IDOMElementCSSInlineStyle Add IDOMElementExtensions DOMExtensions.idl: Added IWebFormDelegate.idl: Fix typos. DOMCSS.idl: Added IDOMViewCSS. DOMHTML.idl: Add selectionStart, selectionEnd. DOMCSSClasses.cpp: Added. WebKitGUID.vcproj: Added DOMExtensions_i.c, DOMPrivate_i.c. Interfaces.vcproj: Added DOMExtensions.idl, DOMPrivate.idl. WebKit.vcproj: Added DOMCSSClasses.cpp. WebHTMLRepresentation.cpp: Implemented elementIsPassword, controlsInForm. * DOMCSSClasses.cpp: Added. (DOMCSSStyleDeclaration::DOMCSSStyleDeclaration): (DOMCSSStyleDeclaration::~DOMCSSStyleDeclaration): (DOMCSSStyleDeclaration::createInstance): (DOMCSSStyleDeclaration::QueryInterface): (DOMCSSStyleDeclaration::cssText): (DOMCSSStyleDeclaration::setCssText): (DOMCSSStyleDeclaration::getPropertyValue): (DOMCSSStyleDeclaration::getPropertyCSSValue): (DOMCSSStyleDeclaration::removeProperty): (DOMCSSStyleDeclaration::getPropertyPriority): (DOMCSSStyleDeclaration::setProperty): (DOMCSSStyleDeclaration::length): (DOMCSSStyleDeclaration::item): (DOMCSSStyleDeclaration::parentRule): * DOMCSSClasses.h: Added. (DOMCSSStyleDeclaration::AddRef): (DOMCSSStyleDeclaration::Release): (DOMCSSStyleDeclaration::throwException): (DOMCSSStyleDeclaration::callWebScriptMethod): (DOMCSSStyleDeclaration::evaluateWebScript): (DOMCSSStyleDeclaration::removeWebScriptKey): (DOMCSSStyleDeclaration::stringRepresentation): (DOMCSSStyleDeclaration::webScriptValueAtIndex): (DOMCSSStyleDeclaration::setWebScriptValueAtIndex): (DOMCSSStyleDeclaration::setException): * DOMCoreClasses.cpp: (DOMNode::QueryInterface): (DOMDocument::QueryInterface): (DOMDocument::getElementsByTagNameNS): (DOMDocument::getComputedStyle): (DOMDocument::DOMDocument): (DOMDocument::~DOMDocument): (DOMDocument::createInstance): (DOMElement::QueryInterface): (DOMElement::lineBoxRects): (DOMElement::focus): (DOMElement::blur): (DOMElement::style): (DOMElement::offsetLeft): (DOMElement::offsetTop): (DOMElement::offsetWidth): (DOMElement::offsetHeight): (DOMElement::offsetParent): (DOMElement::clientWidth): (DOMElement::clientHeight): (DOMElement::scrollLeft): (DOMElement::setScrollLeft): (DOMElement::scrollTop): (DOMElement::setScrollTop): (DOMElement::scrollWidth): (DOMElement::scrollHeight): (DOMElement::scrollIntoView): (DOMElement::scrollIntoViewIfNeeded): * DOMCoreClasses.h: (DOMDocument::AddRef): (DOMDocument::Release): (DOMDocument::document): * DOMHTMLClasses.cpp: (DOMHTMLSelectElement::QueryInterface): (DOMHTMLSelectElement::activateItemAtIndex): (DOMHTMLInputElement::QueryInterface): (DOMHTMLInputElement::disabled): (DOMHTMLInputElement::setValue): (DOMHTMLInputElement::select): (DOMHTMLInputElement::click): (DOMHTMLInputElement::setSelectionStart): (DOMHTMLInputElement::selectionStart): (DOMHTMLInputElement::setSelectionEnd): (DOMHTMLInputElement::selectionEnd): (DOMHTMLInputElement::isTextField): (DOMHTMLInputElement::rectOnScreen): (DOMHTMLInputElement::replaceCharactersInRange): (DOMHTMLInputElement::selectedRange): (DOMHTMLInputElement::setAutofilled): * DOMHTMLClasses.h: (DOMHTMLDocument::DOMHTMLDocument): (DOMHTMLDocument::doctype): (DOMHTMLDocument::implementation): (DOMHTMLDocument::documentElement): (DOMHTMLDocument::createElement): (DOMHTMLDocument::createDocumentFragment): (DOMHTMLDocument::createTextNode): (DOMHTMLDocument::createComment): (DOMHTMLDocument::createCDATASection): (DOMHTMLDocument::createProcessingInstruction): (DOMHTMLDocument::createAttribute): (DOMHTMLDocument::createEntityReference): (DOMHTMLDocument::getElementsByTagName): (DOMHTMLDocument::importNode): (DOMHTMLDocument::createElementNS): (DOMHTMLDocument::createAttributeNS): (DOMHTMLDocument::getElementsByTagNameNS): (DOMHTMLDocument::getElementById): (DOMHTMLElement::focus): (DOMHTMLElement::blur): (DOMHTMLFormElement::focus): (DOMHTMLFormElement::blur): (DOMHTMLSelectElement::focus): (DOMHTMLSelectElement::blur): (DOMHTMLOptionElement::focus): (DOMHTMLOptionElement::blur): (DOMHTMLInputElement::focus): (DOMHTMLInputElement::blur): (DOMHTMLTextAreaElement::focus): (DOMHTMLTextAreaElement::blur): * Interfaces/DOMCSS.idl: * Interfaces/DOMCore.idl: * Interfaces/DOMExtensions.idl: Added. * Interfaces/DOMHTML.idl: * Interfaces/DOMPrivate.idl: Added. * Interfaces/IWebFormDelegate.idl: * WebFrame.cpp: (FormValuesPropertyBag::FormValuesPropertyBag): (FormValuesPropertyBag::QueryInterface): (FormValuesPropertyBag::AddRef): (FormValuesPropertyBag::Release): (FormValuesPropertyBag::Read): (FormValuesPropertyBag::Write): (FormValuesPropertyBag::CountProperties): (FormValuesPropertyBag::GetPropertyInfo): (FormValuesPropertyBag::LoadObject): (WebFrame::WebFrame): (WebFrame::QueryInterface): (WebFrame::DOMDocument): (WebFrame::continueSubmit): (WebFrame::elementWithName): (WebFrame::formForElement): (WebFrame::elementDoesAutoComplete): (WebFrame::controlsInForm): (WebFrame::elementIsPassword): (WebFrame::submitForm): (WebFrame::doTextFieldCommandFromEvent): (WebFrame::textWillBeDeletedInTextField): (WebFrame::textDidChangeInTextArea): * WebFrame.h: * WebHTMLRepresentation.cpp: (WebHTMLRepresentation::elementIsPassword): (WebHTMLRepresentation::controlsInForm): * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: 2006-08-29 Anders Carlsson Reviewed by Ada. * WebKitDLL.cpp: (DllMain): Set the global instance handle. 2006-08-28 Ada Chan Reviewed by sfalken. Free a malloc'ed string in an error condition. * MarshallingHelpers.cpp: (MarshallingHelpers::BSTRToCFStringRef): 2006-08-25 David Hyatt Add code path for doing painting of a WebFrame using CG. * WebFrame.cpp: (WebFrame::paint): 2006-08-24 Steve Falkenburg Reviewed by Ada Chan. Forms autocomplete checkpoint DOMCoreClasses.cpp/.h Add missing DOMNode methods Add IDOMElementPrivate Implement DOMElement::boundingBox Implement DOMElement::getAttribute DOMHTMLClasses.cpp Implemented DOMHTMLInputElement::value IWebViewPrivate.idl WebView.cpp/.h Added IWebViewPrivate::scrollOffset IWebHTMLRepresentation.idl WebHTMLRepresentation.cpp/.h WebKitGUID.vcproj Interfaces.vcproj WebKit.vcproj Added IWebHTMLRepresentation WebDataSource.cpp/.h Implemented WebDataSource::representation IWebFrame.idl WebFrame.cpp/.h Fixed typos in some methods Add additional methods to support representation DOMCore.idl Add missing methods Add IDOMElementPrivate * DOMCoreClasses.cpp: (DOMNode::isSameNode): (DOMNode::isEqualNode): (DOMNode::textContent): (DOMNode::setTextContent): (DOMNode::boundingBox): (DOMNode::lineBoxRects): (DOMElement::QueryInterface): (DOMElement::boundingBox): (DOMElement::getAttribute): (DOMElement::coreElement): (DOMElement::isEqual): * DOMCoreClasses.h: (DOMDocument::isSameNode): (DOMDocument::isEqualNode): (DOMDocument::textContent): (DOMDocument::setTextContent): (DOMDocument::boundingBox): (DOMDocument::lineBoxRects): (DOMElement::isSameNode): (DOMElement::isEqualNode): (DOMElement::textContent): (DOMElement::setTextContent): (DOMElement::lineBoxRects): (DOMElement::element): * DOMHTMLClasses.cpp: (DOMHTMLInputElement::value): * DOMHTMLClasses.h: (DOMHTMLDocument::isSameNode): (DOMHTMLDocument::isEqualNode): (DOMHTMLDocument::textContent): (DOMHTMLDocument::setTextContent): (DOMHTMLDocument::boundingBox): (DOMHTMLDocument::lineBoxRects): (DOMHTMLElement::isSameNode): (DOMHTMLElement::isEqualNode): (DOMHTMLElement::textContent): (DOMHTMLElement::setTextContent): (DOMHTMLElement::boundingBox): (DOMHTMLElement::lineBoxRects): (DOMHTMLFormElement::isSameNode): (DOMHTMLFormElement::isEqualNode): (DOMHTMLFormElement::textContent): (DOMHTMLFormElement::setTextContent): (DOMHTMLFormElement::boundingBox): (DOMHTMLFormElement::lineBoxRects): (DOMHTMLSelectElement::isSameNode): (DOMHTMLSelectElement::isEqualNode): (DOMHTMLSelectElement::textContent): (DOMHTMLSelectElement::setTextContent): (DOMHTMLSelectElement::boundingBox): (DOMHTMLSelectElement::lineBoxRects): (DOMHTMLOptionElement::isSameNode): (DOMHTMLOptionElement::isEqualNode): (DOMHTMLOptionElement::textContent): (DOMHTMLOptionElement::setTextContent): (DOMHTMLOptionElement::boundingBox): (DOMHTMLOptionElement::lineBoxRects): (DOMHTMLInputElement::isSameNode): (DOMHTMLInputElement::isEqualNode): (DOMHTMLInputElement::textContent): (DOMHTMLInputElement::setTextContent): (DOMHTMLInputElement::boundingBox): (DOMHTMLInputElement::lineBoxRects): (DOMHTMLTextAreaElement::isSameNode): (DOMHTMLTextAreaElement::isEqualNode): (DOMHTMLTextAreaElement::textContent): (DOMHTMLTextAreaElement::setTextContent): (DOMHTMLTextAreaElement::boundingBox): (DOMHTMLTextAreaElement::lineBoxRects): * Interfaces/DOMCore.idl: * Interfaces/IWebFrame.idl: * Interfaces/IWebHTMLRepresentation.idl: Added. * Interfaces/IWebViewPrivate.idl: * WebDataSource.cpp: (WebDataSource::WebDataSource): (WebDataSource::~WebDataSource): (WebDataSource::createInstance): (WebDataSource::initWithRequest): (WebDataSource::representation): (WebDataSource::webFrame): * WebDataSource.h: * WebFrame.cpp: (formElementFromDOMElement): (inputElementFromDOMElement): (WebFrame::webView): (WebFrame::frameView): (WebFrame::frameElement): (WebFrame::elementWithName): (WebFrame::formForElement): (WebFrame::elementDoesAutoComplete): * WebFrame.h: * WebHTMLRepresentation.cpp: Added. (WebHTMLRepresentation::WebHTMLRepresentation): (WebHTMLRepresentation::~WebHTMLRepresentation): (WebHTMLRepresentation::createInstance): (WebHTMLRepresentation::QueryInterface): (WebHTMLRepresentation::AddRef): (WebHTMLRepresentation::Release): (WebHTMLRepresentation::supportedMIMETypes): (WebHTMLRepresentation::supportedNonImageMIMETypes): (WebHTMLRepresentation::supportedImageMIMETypes): (WebHTMLRepresentation::attributedStringFromDOMNodes): (WebHTMLRepresentation::elementWithName): (WebHTMLRepresentation::elementDoesAutoComplete): (WebHTMLRepresentation::elementIsPassword): (WebHTMLRepresentation::formForElement): (WebHTMLRepresentation::currentForm): (WebHTMLRepresentation::controlsInForm): (WebHTMLRepresentation::searchForLabels): (WebHTMLRepresentation::matchLabels): (WebHTMLRepresentation::setDataSource): (WebHTMLRepresentation::receivedData): (WebHTMLRepresentation::receivedError): (WebHTMLRepresentation::finishedLoadingWithDataSource): (WebHTMLRepresentation::canProvideDocumentSource): (WebHTMLRepresentation::documentSource): (WebHTMLRepresentation::title): * WebHTMLRepresentation.h: Added. * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: * WebKit.vcproj/WebKitGUID.vcproj: * WebView.cpp: (WebView::scrollOffset): * WebView.h: 2006-08-23 Ada Chan Reviewed by sfalken. Fixed WebHistory::removeItem() to actually remove the item from history. * WebHistory.cpp: (WebHistory::removeItem): 2006-08-22 Steve Falkenburg Reviewed by Lou Amadio. Interface changes/additions in preparation for forms autofill. IWebView.idl WebView.cpp/.h Added missing methods. IWebViewPrivate.idl Added calls to set/get FrameLoadDelegatePrivate IWebScriptObject.idl Fixed typo DOMHTML.idl WebScriptObject.cpp/.h DOMCoreClasses.cpp/.h DOMHTMLClasses.cpp/.h WebKit.vcproj Added additional DOM interfaces WebFrame.cpp/.h Fix key handling typo. Bridge IWebFormDelegate calls. Bridge IWebFrameLoadDelegatePrivate calls. TemporaryLinkStubs.cpp Removed handledOnloadEvents (now implemented). FrameWin.cpp/.h Bridge IWebFrameLoadDelegatePrivate calls. * DOMCoreClasses.cpp: Added. (DOMObject::QueryInterface): (DOMNode::QueryInterface): (DOMNode::nodeName): (DOMNode::nodeValue): (DOMNode::setNodeValue): (DOMNode::nodeType): (DOMNode::parentNode): (DOMNode::childNodes): (DOMNode::firstChild): (DOMNode::lastChild): (DOMNode::previousSibling): (DOMNode::nextSibling): (DOMNode::attributes): (DOMNode::ownerDocument): (DOMNode::insertBefore): (DOMNode::replaceChild): (DOMNode::removeChild): (DOMNode::appendChild): (DOMNode::hasChildNodes): (DOMNode::cloneNode): (DOMNode::normalize): (DOMNode::isSupported): (DOMNode::namespaceURI): (DOMNode::prefix): (DOMNode::setPrefix): (DOMNode::localName): (DOMNode::hasAttributes): (DOMDocument::QueryInterface): (DOMDocument::doctype): (DOMDocument::implementation): (DOMDocument::documentElement): (DOMDocument::createElement): (DOMDocument::createDocumentFragment): (DOMDocument::createTextNode): (DOMDocument::createComment): (DOMDocument::createCDATASection): (DOMDocument::createProcessingInstruction): (DOMDocument::createAttribute): (DOMDocument::createEntityReference): (DOMDocument::getElementsByTagName): (DOMDocument::importNode): (DOMDocument::createElementNS): (DOMDocument::createAttributeNS): (DOMDocument::getElementsByTagNameNS): (DOMDocument::getElementById): (DOMElement::QueryInterface): (DOMElement::tagName): (DOMElement::getAttribute): (DOMElement::setResult): (DOMElement::removeAttribute): (DOMElement::getAttributeNode): (DOMElement::setAttributeNode): (DOMElement::removeAttributeNode): (DOMElement::getElementsByTagName): (DOMElement::getAttributeNS): (DOMElement::setAttributeNS): (DOMElement::removeAttributeNS): (DOMElement::getAttributeNodeNS): (DOMElement::setAttributeNodeNS): (DOMElement::getElementsByTagNameNS): (DOMElement::hasAttribute): (DOMElement::hasAttributeNS): (DOMElement::DOMElement): (DOMElement::~DOMElement): (DOMElement::createInstance): * DOMCoreClasses.h: Added. (DOMObject::AddRef): (DOMObject::Release): (DOMObject::throwException): (DOMObject::callWebScriptMethod): (DOMObject::evaluateWebScript): (DOMObject::removeWebScriptKey): (DOMObject::stringRepresentation): (DOMObject::webScriptValueAtIndex): (DOMObject::setWebScriptValueAtIndex): (DOMObject::setException): (DOMNode::AddRef): (DOMNode::Release): (DOMNode::throwException): (DOMNode::callWebScriptMethod): (DOMNode::evaluateWebScript): (DOMNode::removeWebScriptKey): (DOMNode::stringRepresentation): (DOMNode::webScriptValueAtIndex): (DOMNode::setWebScriptValueAtIndex): (DOMNode::setException): (DOMDocument::AddRef): (DOMDocument::Release): (DOMDocument::throwException): (DOMDocument::callWebScriptMethod): (DOMDocument::evaluateWebScript): (DOMDocument::removeWebScriptKey): (DOMDocument::stringRepresentation): (DOMDocument::webScriptValueAtIndex): (DOMDocument::setWebScriptValueAtIndex): (DOMDocument::setException): (DOMDocument::nodeName): (DOMDocument::nodeValue): (DOMDocument::setNodeValue): (DOMDocument::nodeType): (DOMDocument::parentNode): (DOMDocument::childNodes): (DOMDocument::firstChild): (DOMDocument::lastChild): (DOMDocument::previousSibling): (DOMDocument::nextSibling): (DOMDocument::attributes): (DOMDocument::ownerDocument): (DOMDocument::insertBefore): (DOMDocument::replaceChild): (DOMDocument::removeChild): (DOMDocument::appendChild): (DOMDocument::hasChildNodes): (DOMDocument::cloneNode): (DOMDocument::normalize): (DOMDocument::isSupported): (DOMDocument::namespaceURI): (DOMDocument::prefix): (DOMDocument::setPrefix): (DOMDocument::localName): (DOMDocument::hasAttributes): (DOMElement::AddRef): (DOMElement::Release): (DOMElement::throwException): (DOMElement::callWebScriptMethod): (DOMElement::evaluateWebScript): (DOMElement::removeWebScriptKey): (DOMElement::stringRepresentation): (DOMElement::webScriptValueAtIndex): (DOMElement::setWebScriptValueAtIndex): (DOMElement::setException): (DOMElement::nodeName): (DOMElement::nodeValue): (DOMElement::setNodeValue): (DOMElement::nodeType): (DOMElement::parentNode): (DOMElement::childNodes): (DOMElement::firstChild): (DOMElement::lastChild): (DOMElement::previousSibling): (DOMElement::nextSibling): (DOMElement::attributes): (DOMElement::ownerDocument): (DOMElement::insertBefore): (DOMElement::replaceChild): (DOMElement::removeChild): (DOMElement::appendChild): (DOMElement::hasChildNodes): (DOMElement::cloneNode): (DOMElement::normalize): (DOMElement::isSupported): (DOMElement::namespaceURI): (DOMElement::prefix): (DOMElement::setPrefix): (DOMElement::localName): (DOMElement::hasAttributes): * DOMHTMLClasses.cpp: Added. (DOMHTMLCollection::QueryInterface): (DOMHTMLCollection::length): (DOMHTMLCollection::item): (DOMHTMLCollection::namedItem): (DOMHTMLOptionsCollection::QueryInterface): (DOMHTMLOptionsCollection::length): (DOMHTMLOptionsCollection::setLength): (DOMHTMLOptionsCollection::item): (DOMHTMLOptionsCollection::namedItem): (DOMHTMLDocument::QueryInterface): (DOMHTMLDocument::title): (DOMHTMLDocument::setTitle): (DOMHTMLDocument::referrer): (DOMHTMLDocument::domain): (DOMHTMLDocument::URL): (DOMHTMLDocument::body): (DOMHTMLDocument::setBody): (DOMHTMLDocument::images): (DOMHTMLDocument::applets): (DOMHTMLDocument::links): (DOMHTMLDocument::forms): (DOMHTMLDocument::anchors): (DOMHTMLDocument::cookie): (DOMHTMLDocument::setCookie): (DOMHTMLDocument::open): (DOMHTMLDocument::close): (DOMHTMLDocument::write): (DOMHTMLDocument::writeln): (DOMHTMLDocument::getElementById_): (DOMHTMLDocument::getElementsByName): (DOMHTMLElement::QueryInterface): (DOMHTMLElement::idName): (DOMHTMLElement::setIdName): (DOMHTMLElement::title): (DOMHTMLElement::setTitle): (DOMHTMLElement::lang): (DOMHTMLElement::setLang): (DOMHTMLElement::dir): (DOMHTMLElement::setDir): (DOMHTMLElement::className): (DOMHTMLElement::setClassName): (DOMHTMLFormElement::QueryInterface): (DOMHTMLFormElement::elements): (DOMHTMLFormElement::length): (DOMHTMLFormElement::name): (DOMHTMLFormElement::setName): (DOMHTMLFormElement::acceptCharset): (DOMHTMLFormElement::setAcceptCharset): (DOMHTMLFormElement::action): (DOMHTMLFormElement::setAction): (DOMHTMLFormElement::encType): (DOMHTMLFormElement::setEnctype): (DOMHTMLFormElement::method): (DOMHTMLFormElement::setMethod): (DOMHTMLFormElement::target): (DOMHTMLFormElement::setTarget): (DOMHTMLFormElement::submit): (DOMHTMLFormElement::reset): (DOMHTMLSelectElement::QueryInterface): (DOMHTMLSelectElement::type): (DOMHTMLSelectElement::selectedIndex): (DOMHTMLSelectElement::setSelectedIndx): (DOMHTMLSelectElement::value): (DOMHTMLSelectElement::setValue): (DOMHTMLSelectElement::length): (DOMHTMLSelectElement::form): (DOMHTMLSelectElement::options): (DOMHTMLSelectElement::disabled): (DOMHTMLSelectElement::setDisabled): (DOMHTMLSelectElement::multiple): (DOMHTMLSelectElement::setMultiple): (DOMHTMLSelectElement::name): (DOMHTMLSelectElement::setName): (DOMHTMLSelectElement::size): (DOMHTMLSelectElement::setSize): (DOMHTMLSelectElement::tabIndex): (DOMHTMLSelectElement::setTabIndex): (DOMHTMLSelectElement::add): (DOMHTMLSelectElement::remove): (DOMHTMLSelectElement::blur): (DOMHTMLSelectElement::focus): (DOMHTMLOptionElement::QueryInterface): (DOMHTMLOptionElement::form): (DOMHTMLOptionElement::defaultSelected): (DOMHTMLOptionElement::setDefaultSelected): (DOMHTMLOptionElement::text): (DOMHTMLOptionElement::index): (DOMHTMLOptionElement::disabled): (DOMHTMLOptionElement::setDisabled): (DOMHTMLOptionElement::label): (DOMHTMLOptionElement::setLabel): (DOMHTMLOptionElement::selected): (DOMHTMLOptionElement::setSelected): (DOMHTMLOptionElement::value): (DOMHTMLOptionElement::setValue): (DOMHTMLInputElement::QueryInterface): (DOMHTMLInputElement::defaultValue): (DOMHTMLInputElement::setDefaultValue): (DOMHTMLInputElement::defaultChecked): (DOMHTMLInputElement::setDefaultChecked): (DOMHTMLInputElement::form): (DOMHTMLInputElement::accept): (DOMHTMLInputElement::setAccept): (DOMHTMLInputElement::accessKey): (DOMHTMLInputElement::setAccessKey): (DOMHTMLInputElement::align): (DOMHTMLInputElement::setAlign): (DOMHTMLInputElement::alt): (DOMHTMLInputElement::setAlt): (DOMHTMLInputElement::checked): (DOMHTMLInputElement::setChecked): (DOMHTMLInputElement::disabled): (DOMHTMLInputElement::setDisabled): (DOMHTMLInputElement::maxLength): (DOMHTMLInputElement::setMaxLength): (DOMHTMLInputElement::name): (DOMHTMLInputElement::setName): (DOMHTMLInputElement::readOnly): (DOMHTMLInputElement::setReadOnly): (DOMHTMLInputElement::size): (DOMHTMLInputElement::setSize): (DOMHTMLInputElement::src): (DOMHTMLInputElement::setSrc): (DOMHTMLInputElement::tabIndex): (DOMHTMLInputElement::setTabIndex): (DOMHTMLInputElement::type): (DOMHTMLInputElement::setType): (DOMHTMLInputElement::useMap): (DOMHTMLInputElement::setUseMap): (DOMHTMLInputElement::value): (DOMHTMLInputElement::setValue): (DOMHTMLInputElement::blur): (DOMHTMLInputElement::focus): (DOMHTMLInputElement::select): (DOMHTMLInputElement::click): (DOMHTMLTextAreaElement::QueryInterface): (DOMHTMLTextAreaElement::defaultValue): (DOMHTMLTextAreaElement::setDefaultValue): (DOMHTMLTextAreaElement::form): (DOMHTMLTextAreaElement::accessKey): (DOMHTMLTextAreaElement::setAccessKey): (DOMHTMLTextAreaElement::cols): (DOMHTMLTextAreaElement::setCols): (DOMHTMLTextAreaElement::disabled): (DOMHTMLTextAreaElement::setDisabled): (DOMHTMLTextAreaElement::name): (DOMHTMLTextAreaElement::setName): (DOMHTMLTextAreaElement::readOnly): (DOMHTMLTextAreaElement::setReadOnly): (DOMHTMLTextAreaElement::rows): (DOMHTMLTextAreaElement::setRows): (DOMHTMLTextAreaElement::tabIndex): (DOMHTMLTextAreaElement::setTabIndex): (DOMHTMLTextAreaElement::type): (DOMHTMLTextAreaElement::value): (DOMHTMLTextAreaElement::setValue): (DOMHTMLTextAreaElement::blur): (DOMHTMLTextAreaElement::focus): (DOMHTMLTextAreaElement::select): * DOMHTMLClasses.h: Added. (DOMHTMLCollection::AddRef): (DOMHTMLCollection::Release): (DOMHTMLCollection::throwException): (DOMHTMLCollection::callWebScriptMethod): (DOMHTMLCollection::evaluateWebScript): (DOMHTMLCollection::removeWebScriptKey): (DOMHTMLCollection::stringRepresentation): (DOMHTMLCollection::webScriptValueAtIndex): (DOMHTMLCollection::setWebScriptValueAtIndex): (DOMHTMLCollection::setException): (DOMHTMLOptionsCollection::AddRef): (DOMHTMLOptionsCollection::Release): (DOMHTMLOptionsCollection::throwException): (DOMHTMLOptionsCollection::callWebScriptMethod): (DOMHTMLOptionsCollection::evaluateWebScript): (DOMHTMLOptionsCollection::removeWebScriptKey): (DOMHTMLOptionsCollection::stringRepresentation): (DOMHTMLOptionsCollection::webScriptValueAtIndex): (DOMHTMLOptionsCollection::setWebScriptValueAtIndex): (DOMHTMLOptionsCollection::setException): (DOMHTMLDocument::AddRef): (DOMHTMLDocument::Release): (DOMHTMLDocument::throwException): (DOMHTMLDocument::callWebScriptMethod): (DOMHTMLDocument::evaluateWebScript): (DOMHTMLDocument::removeWebScriptKey): (DOMHTMLDocument::stringRepresentation): (DOMHTMLDocument::webScriptValueAtIndex): (DOMHTMLDocument::setWebScriptValueAtIndex): (DOMHTMLDocument::setException): (DOMHTMLDocument::nodeName): (DOMHTMLDocument::nodeValue): (DOMHTMLDocument::setNodeValue): (DOMHTMLDocument::nodeType): (DOMHTMLDocument::parentNode): (DOMHTMLDocument::childNodes): (DOMHTMLDocument::firstChild): (DOMHTMLDocument::lastChild): (DOMHTMLDocument::previousSibling): (DOMHTMLDocument::nextSibling): (DOMHTMLDocument::attributes): (DOMHTMLDocument::ownerDocument): (DOMHTMLDocument::insertBefore): (DOMHTMLDocument::replaceChild): (DOMHTMLDocument::removeChild): (DOMHTMLDocument::appendChild): (DOMHTMLDocument::hasChildNodes): (DOMHTMLDocument::cloneNode): (DOMHTMLDocument::normalize): (DOMHTMLDocument::isSupported): (DOMHTMLDocument::namespaceURI): (DOMHTMLDocument::prefix): (DOMHTMLDocument::setPrefix): (DOMHTMLDocument::localName): (DOMHTMLDocument::hasAttributes): (DOMHTMLElement::DOMHTMLElement): (DOMHTMLElement::AddRef): (DOMHTMLElement::Release): (DOMHTMLElement::throwException): (DOMHTMLElement::callWebScriptMethod): (DOMHTMLElement::evaluateWebScript): (DOMHTMLElement::removeWebScriptKey): (DOMHTMLElement::stringRepresentation): (DOMHTMLElement::webScriptValueAtIndex): (DOMHTMLElement::setWebScriptValueAtIndex): (DOMHTMLElement::setException): (DOMHTMLElement::nodeName): (DOMHTMLElement::nodeValue): (DOMHTMLElement::setNodeValue): (DOMHTMLElement::nodeType): (DOMHTMLElement::parentNode): (DOMHTMLElement::childNodes): (DOMHTMLElement::firstChild): (DOMHTMLElement::lastChild): (DOMHTMLElement::previousSibling): (DOMHTMLElement::nextSibling): (DOMHTMLElement::attributes): (DOMHTMLElement::ownerDocument): (DOMHTMLElement::insertBefore): (DOMHTMLElement::replaceChild): (DOMHTMLElement::removeChild): (DOMHTMLElement::appendChild): (DOMHTMLElement::hasChildNodes): (DOMHTMLElement::cloneNode): (DOMHTMLElement::normalize): (DOMHTMLElement::isSupported): (DOMHTMLElement::namespaceURI): (DOMHTMLElement::prefix): (DOMHTMLElement::setPrefix): (DOMHTMLElement::localName): (DOMHTMLElement::hasAttributes): (DOMHTMLElement::tagName): (DOMHTMLElement::getAttribute): (DOMHTMLElement::setResult): (DOMHTMLElement::removeAttribute): (DOMHTMLElement::getAttributeNode): (DOMHTMLElement::setAttributeNode): (DOMHTMLElement::removeAttributeNode): (DOMHTMLElement::getElementsByTagName): (DOMHTMLElement::getAttributeNS): (DOMHTMLElement::setAttributeNS): (DOMHTMLElement::removeAttributeNS): (DOMHTMLElement::getAttributeNodeNS): (DOMHTMLElement::setAttributeNodeNS): (DOMHTMLElement::getElementsByTagNameNS): (DOMHTMLElement::hasAttribute): (DOMHTMLElement::hasAttributeNS): (DOMHTMLFormElement::DOMHTMLFormElement): (DOMHTMLFormElement::AddRef): (DOMHTMLFormElement::Release): (DOMHTMLFormElement::throwException): (DOMHTMLFormElement::callWebScriptMethod): (DOMHTMLFormElement::evaluateWebScript): (DOMHTMLFormElement::removeWebScriptKey): (DOMHTMLFormElement::stringRepresentation): (DOMHTMLFormElement::webScriptValueAtIndex): (DOMHTMLFormElement::setWebScriptValueAtIndex): (DOMHTMLFormElement::setException): (DOMHTMLFormElement::nodeName): (DOMHTMLFormElement::nodeValue): (DOMHTMLFormElement::setNodeValue): (DOMHTMLFormElement::nodeType): (DOMHTMLFormElement::parentNode): (DOMHTMLFormElement::childNodes): (DOMHTMLFormElement::firstChild): (DOMHTMLFormElement::lastChild): (DOMHTMLFormElement::previousSibling): (DOMHTMLFormElement::nextSibling): (DOMHTMLFormElement::attributes): (DOMHTMLFormElement::ownerDocument): (DOMHTMLFormElement::insertBefore): (DOMHTMLFormElement::replaceChild): (DOMHTMLFormElement::removeChild): (DOMHTMLFormElement::appendChild): (DOMHTMLFormElement::hasChildNodes): (DOMHTMLFormElement::cloneNode): (DOMHTMLFormElement::normalize): (DOMHTMLFormElement::isSupported): (DOMHTMLFormElement::namespaceURI): (DOMHTMLFormElement::prefix): (DOMHTMLFormElement::setPrefix): (DOMHTMLFormElement::localName): (DOMHTMLFormElement::hasAttributes): (DOMHTMLFormElement::tagName): (DOMHTMLFormElement::getAttribute): (DOMHTMLFormElement::setResult): (DOMHTMLFormElement::removeAttribute): (DOMHTMLFormElement::getAttributeNode): (DOMHTMLFormElement::setAttributeNode): (DOMHTMLFormElement::removeAttributeNode): (DOMHTMLFormElement::getElementsByTagName): (DOMHTMLFormElement::getAttributeNS): (DOMHTMLFormElement::setAttributeNS): (DOMHTMLFormElement::removeAttributeNS): (DOMHTMLFormElement::getAttributeNodeNS): (DOMHTMLFormElement::setAttributeNodeNS): (DOMHTMLFormElement::getElementsByTagNameNS): (DOMHTMLFormElement::hasAttribute): (DOMHTMLFormElement::hasAttributeNS): (DOMHTMLFormElement::idName): (DOMHTMLFormElement::setIdName): (DOMHTMLFormElement::title): (DOMHTMLFormElement::setTitle): (DOMHTMLFormElement::lang): (DOMHTMLFormElement::setLang): (DOMHTMLFormElement::dir): (DOMHTMLFormElement::setDir): (DOMHTMLFormElement::className): (DOMHTMLFormElement::setClassName): (DOMHTMLSelectElement::DOMHTMLSelectElement): (DOMHTMLSelectElement::AddRef): (DOMHTMLSelectElement::Release): (DOMHTMLSelectElement::throwException): (DOMHTMLSelectElement::callWebScriptMethod): (DOMHTMLSelectElement::evaluateWebScript): (DOMHTMLSelectElement::removeWebScriptKey): (DOMHTMLSelectElement::stringRepresentation): (DOMHTMLSelectElement::webScriptValueAtIndex): (DOMHTMLSelectElement::setWebScriptValueAtIndex): (DOMHTMLSelectElement::setException): (DOMHTMLSelectElement::nodeName): (DOMHTMLSelectElement::nodeValue): (DOMHTMLSelectElement::setNodeValue): (DOMHTMLSelectElement::nodeType): (DOMHTMLSelectElement::parentNode): (DOMHTMLSelectElement::childNodes): (DOMHTMLSelectElement::firstChild): (DOMHTMLSelectElement::lastChild): (DOMHTMLSelectElement::previousSibling): (DOMHTMLSelectElement::nextSibling): (DOMHTMLSelectElement::attributes): (DOMHTMLSelectElement::ownerDocument): (DOMHTMLSelectElement::insertBefore): (DOMHTMLSelectElement::replaceChild): (DOMHTMLSelectElement::removeChild): (DOMHTMLSelectElement::appendChild): (DOMHTMLSelectElement::hasChildNodes): (DOMHTMLSelectElement::cloneNode): (DOMHTMLSelectElement::normalize): (DOMHTMLSelectElement::isSupported): (DOMHTMLSelectElement::namespaceURI): (DOMHTMLSelectElement::prefix): (DOMHTMLSelectElement::setPrefix): (DOMHTMLSelectElement::localName): (DOMHTMLSelectElement::hasAttributes): (DOMHTMLSelectElement::tagName): (DOMHTMLSelectElement::getAttribute): (DOMHTMLSelectElement::setResult): (DOMHTMLSelectElement::removeAttribute): (DOMHTMLSelectElement::getAttributeNode): (DOMHTMLSelectElement::setAttributeNode): (DOMHTMLSelectElement::removeAttributeNode): (DOMHTMLSelectElement::getElementsByTagName): (DOMHTMLSelectElement::getAttributeNS): (DOMHTMLSelectElement::setAttributeNS): (DOMHTMLSelectElement::removeAttributeNS): (DOMHTMLSelectElement::getAttributeNodeNS): (DOMHTMLSelectElement::setAttributeNodeNS): (DOMHTMLSelectElement::getElementsByTagNameNS): (DOMHTMLSelectElement::hasAttribute): (DOMHTMLSelectElement::hasAttributeNS): (DOMHTMLSelectElement::idName): (DOMHTMLSelectElement::setIdName): (DOMHTMLSelectElement::title): (DOMHTMLSelectElement::setTitle): (DOMHTMLSelectElement::lang): (DOMHTMLSelectElement::setLang): (DOMHTMLSelectElement::dir): (DOMHTMLSelectElement::setDir): (DOMHTMLSelectElement::className): (DOMHTMLSelectElement::setClassName): (DOMHTMLOptionElement::DOMHTMLOptionElement): (DOMHTMLOptionElement::AddRef): (DOMHTMLOptionElement::Release): (DOMHTMLOptionElement::throwException): (DOMHTMLOptionElement::callWebScriptMethod): (DOMHTMLOptionElement::evaluateWebScript): (DOMHTMLOptionElement::removeWebScriptKey): (DOMHTMLOptionElement::stringRepresentation): (DOMHTMLOptionElement::webScriptValueAtIndex): (DOMHTMLOptionElement::setWebScriptValueAtIndex): (DOMHTMLOptionElement::setException): (DOMHTMLOptionElement::nodeName): (DOMHTMLOptionElement::nodeValue): (DOMHTMLOptionElement::setNodeValue): (DOMHTMLOptionElement::nodeType): (DOMHTMLOptionElement::parentNode): (DOMHTMLOptionElement::childNodes): (DOMHTMLOptionElement::firstChild): (DOMHTMLOptionElement::lastChild): (DOMHTMLOptionElement::previousSibling): (DOMHTMLOptionElement::nextSibling): (DOMHTMLOptionElement::attributes): (DOMHTMLOptionElement::ownerDocument): (DOMHTMLOptionElement::insertBefore): (DOMHTMLOptionElement::replaceChild): (DOMHTMLOptionElement::removeChild): (DOMHTMLOptionElement::appendChild): (DOMHTMLOptionElement::hasChildNodes): (DOMHTMLOptionElement::cloneNode): (DOMHTMLOptionElement::normalize): (DOMHTMLOptionElement::isSupported): (DOMHTMLOptionElement::namespaceURI): (DOMHTMLOptionElement::prefix): (DOMHTMLOptionElement::setPrefix): (DOMHTMLOptionElement::localName): (DOMHTMLOptionElement::hasAttributes): (DOMHTMLOptionElement::tagName): (DOMHTMLOptionElement::getAttribute): (DOMHTMLOptionElement::setResult): (DOMHTMLOptionElement::removeAttribute): (DOMHTMLOptionElement::getAttributeNode): (DOMHTMLOptionElement::setAttributeNode): (DOMHTMLOptionElement::removeAttributeNode): (DOMHTMLOptionElement::getElementsByTagName): (DOMHTMLOptionElement::getAttributeNS): (DOMHTMLOptionElement::setAttributeNS): (DOMHTMLOptionElement::removeAttributeNS): (DOMHTMLOptionElement::getAttributeNodeNS): (DOMHTMLOptionElement::setAttributeNodeNS): (DOMHTMLOptionElement::getElementsByTagNameNS): (DOMHTMLOptionElement::hasAttribute): (DOMHTMLOptionElement::hasAttributeNS): (DOMHTMLOptionElement::idName): (DOMHTMLOptionElement::setIdName): (DOMHTMLOptionElement::title): (DOMHTMLOptionElement::setTitle): (DOMHTMLOptionElement::lang): (DOMHTMLOptionElement::setLang): (DOMHTMLOptionElement::dir): (DOMHTMLOptionElement::setDir): (DOMHTMLOptionElement::className): (DOMHTMLOptionElement::setClassName): (DOMHTMLInputElement::DOMHTMLInputElement): (DOMHTMLInputElement::AddRef): (DOMHTMLInputElement::Release): (DOMHTMLInputElement::throwException): (DOMHTMLInputElement::callWebScriptMethod): (DOMHTMLInputElement::evaluateWebScript): (DOMHTMLInputElement::removeWebScriptKey): (DOMHTMLInputElement::stringRepresentation): (DOMHTMLInputElement::webScriptValueAtIndex): (DOMHTMLInputElement::setWebScriptValueAtIndex): (DOMHTMLInputElement::setException): (DOMHTMLInputElement::nodeName): (DOMHTMLInputElement::nodeValue): (DOMHTMLInputElement::setNodeValue): (DOMHTMLInputElement::nodeType): (DOMHTMLInputElement::parentNode): (DOMHTMLInputElement::childNodes): (DOMHTMLInputElement::firstChild): (DOMHTMLInputElement::lastChild): (DOMHTMLInputElement::previousSibling): (DOMHTMLInputElement::nextSibling): (DOMHTMLInputElement::attributes): (DOMHTMLInputElement::ownerDocument): (DOMHTMLInputElement::insertBefore): (DOMHTMLInputElement::replaceChild): (DOMHTMLInputElement::removeChild): (DOMHTMLInputElement::appendChild): (DOMHTMLInputElement::hasChildNodes): (DOMHTMLInputElement::cloneNode): (DOMHTMLInputElement::normalize): (DOMHTMLInputElement::isSupported): (DOMHTMLInputElement::namespaceURI): (DOMHTMLInputElement::prefix): (DOMHTMLInputElement::setPrefix): (DOMHTMLInputElement::localName): (DOMHTMLInputElement::hasAttributes): (DOMHTMLInputElement::tagName): (DOMHTMLInputElement::getAttribute): (DOMHTMLInputElement::setResult): (DOMHTMLInputElement::removeAttribute): (DOMHTMLInputElement::getAttributeNode): (DOMHTMLInputElement::setAttributeNode): (DOMHTMLInputElement::removeAttributeNode): (DOMHTMLInputElement::getElementsByTagName): (DOMHTMLInputElement::getAttributeNS): (DOMHTMLInputElement::setAttributeNS): (DOMHTMLInputElement::removeAttributeNS): (DOMHTMLInputElement::getAttributeNodeNS): (DOMHTMLInputElement::setAttributeNodeNS): (DOMHTMLInputElement::getElementsByTagNameNS): (DOMHTMLInputElement::hasAttribute): (DOMHTMLInputElement::hasAttributeNS): (DOMHTMLInputElement::idName): (DOMHTMLInputElement::setIdName): (DOMHTMLInputElement::title): (DOMHTMLInputElement::setTitle): (DOMHTMLInputElement::lang): (DOMHTMLInputElement::setLang): (DOMHTMLInputElement::dir): (DOMHTMLInputElement::setDir): (DOMHTMLInputElement::className): (DOMHTMLInputElement::setClassName): (DOMHTMLTextAreaElement::DOMHTMLTextAreaElement): (DOMHTMLTextAreaElement::AddRef): (DOMHTMLTextAreaElement::Release): (DOMHTMLTextAreaElement::throwException): (DOMHTMLTextAreaElement::callWebScriptMethod): (DOMHTMLTextAreaElement::evaluateWebScript): (DOMHTMLTextAreaElement::removeWebScriptKey): (DOMHTMLTextAreaElement::stringRepresentation): (DOMHTMLTextAreaElement::webScriptValueAtIndex): (DOMHTMLTextAreaElement::setWebScriptValueAtIndex): (DOMHTMLTextAreaElement::setException): (DOMHTMLTextAreaElement::nodeName): (DOMHTMLTextAreaElement::nodeValue): (DOMHTMLTextAreaElement::setNodeValue): (DOMHTMLTextAreaElement::nodeType): (DOMHTMLTextAreaElement::parentNode): (DOMHTMLTextAreaElement::childNodes): (DOMHTMLTextAreaElement::firstChild): (DOMHTMLTextAreaElement::lastChild): (DOMHTMLTextAreaElement::previousSibling): (DOMHTMLTextAreaElement::nextSibling): (DOMHTMLTextAreaElement::attributes): (DOMHTMLTextAreaElement::ownerDocument): (DOMHTMLTextAreaElement::insertBefore): (DOMHTMLTextAreaElement::replaceChild): (DOMHTMLTextAreaElement::removeChild): (DOMHTMLTextAreaElement::appendChild): (DOMHTMLTextAreaElement::hasChildNodes): (DOMHTMLTextAreaElement::cloneNode): (DOMHTMLTextAreaElement::normalize): (DOMHTMLTextAreaElement::isSupported): (DOMHTMLTextAreaElement::namespaceURI): (DOMHTMLTextAreaElement::prefix): (DOMHTMLTextAreaElement::setPrefix): (DOMHTMLTextAreaElement::localName): (DOMHTMLTextAreaElement::hasAttributes): (DOMHTMLTextAreaElement::tagName): (DOMHTMLTextAreaElement::getAttribute): (DOMHTMLTextAreaElement::setResult): (DOMHTMLTextAreaElement::removeAttribute): (DOMHTMLTextAreaElement::getAttributeNode): (DOMHTMLTextAreaElement::setAttributeNode): (DOMHTMLTextAreaElement::removeAttributeNode): (DOMHTMLTextAreaElement::getElementsByTagName): (DOMHTMLTextAreaElement::getAttributeNS): (DOMHTMLTextAreaElement::setAttributeNS): (DOMHTMLTextAreaElement::removeAttributeNS): (DOMHTMLTextAreaElement::getAttributeNodeNS): (DOMHTMLTextAreaElement::setAttributeNodeNS): (DOMHTMLTextAreaElement::getElementsByTagNameNS): (DOMHTMLTextAreaElement::hasAttribute): (DOMHTMLTextAreaElement::hasAttributeNS): (DOMHTMLTextAreaElement::idName): (DOMHTMLTextAreaElement::setIdName): (DOMHTMLTextAreaElement::title): (DOMHTMLTextAreaElement::setTitle): (DOMHTMLTextAreaElement::lang): (DOMHTMLTextAreaElement::setLang): (DOMHTMLTextAreaElement::dir): (DOMHTMLTextAreaElement::setDir): (DOMHTMLTextAreaElement::className): (DOMHTMLTextAreaElement::setClassName): * Interfaces/DOMHTML.idl: * Interfaces/IWebScriptObject.idl: * WebFrame.cpp: (WebFrame::openURL): (WebFrame::textFieldDidBeginEditing): (WebFrame::textFieldDidEndEditing): (WebFrame::textDidChangeInTextField): (WebFrame::doTextFieldCommandFromEvent): (WebFrame::textWillBeDeletedInTextField): (WebFrame::textDidChangeInTextArea): * WebKit.vcproj/WebKit.vcproj: * WebScriptObject.cpp: Added. (WebScriptObject::WebScriptObject): (WebScriptObject::~WebScriptObject): (WebScriptObject::QueryInterface): (WebScriptObject::AddRef): (WebScriptObject::Release): (WebScriptObject::throwException): (WebScriptObject::callWebScriptMethod): (WebScriptObject::evaluateWebScript): (WebScriptObject::removeWebScriptKey): (WebScriptObject::stringRepresentation): (WebScriptObject::webScriptValueAtIndex): (WebScriptObject::setWebScriptValueAtIndex): (WebScriptObject::setException): * WebScriptObject.h: Added. * WebURLResponse.cpp: (WebURLResponse::WebURLResponse): (WebURLResponse::~WebURLResponse): (WebURLResponse::createInstance): (WebURLResponse::QueryInterface): (WebURLResponse::AddRef): (WebURLResponse::Release): (WebURLResponse::expectedContentLength): (WebURLResponse::initWithURL): (WebURLResponse::MIMEType): (WebURLResponse::suggestedFilename): (WebURLResponse::textEncodingName): (WebURLResponse::URL): * WebView.cpp: (WebView::setFormDelegate): (WebView::formDelegate): * WebView.h: 2006-08-17 Anders Carlsson Reviewed by Maciej. * WebKit.vcproj/WebKit.vcproj: Add version.lib 2006-08-15 Steve Falkenburg Fix this to build in my tree. * WebFrame.cpp: (WebFrame::textFieldDidBeginEditing): (WebFrame::doTextFieldCommandFromEvent): (WebFrame::textWillBeDeletedInTextField): * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.sln: * WebKit.vcproj/WebKit.vcproj: 2006-08-15 Steve Falkenburg Initial check-in. * CFDictionaryPropertyBag.cpp: Added. (CFDictionaryPropertyBag::CFDictionaryPropertyBag): (CFDictionaryPropertyBag::~CFDictionaryPropertyBag): (CFDictionaryPropertyBag::createInstance): (CFDictionaryPropertyBag::setDictionary): (CFDictionaryPropertyBag::QueryInterface): (CFDictionaryPropertyBag::AddRef): (CFDictionaryPropertyBag::Release): (ConvertCFTypeToVariant): (ConvertVariantToCFType): (CFDictionaryPropertyBag::Read): (CFDictionaryPropertyBag::Write): * CFDictionaryPropertyBag.h: Added. * ChangeLog: Added. * Interfaces/DOMCSS.idl: Added. * Interfaces/DOMCore.idl: Added. * Interfaces/DOMHTML.idl: Added. * Interfaces/DOMRange.idl: Added. * Interfaces/IWebArchive.idl: Added. * Interfaces/IWebAttributedString.idl: Added. * Interfaces/IWebBackForwardList.idl: Added. * Interfaces/IWebDataSource.idl: Added. * Interfaces/IWebDocument.idl: Added. * Interfaces/IWebDownload.idl: Added. * Interfaces/IWebEditingDelegate.idl: Added. * Interfaces/IWebError.idl: Added. * Interfaces/IWebFormDelegate.idl: Added. * Interfaces/IWebFrame.idl: Added. * Interfaces/IWebFrameLoadDelegate.idl: Added. * Interfaces/IWebFrameLoadDelegatePrivate.idl: Added. * Interfaces/IWebFrameView.idl: Added. * Interfaces/IWebHistory.idl: Added. * Interfaces/IWebHistoryItem.idl: Added. * Interfaces/IWebHistoryItemPrivate.idl: Added. * Interfaces/IWebIconDatabase.idl: Added. * Interfaces/IWebImage.idl: Added. * Interfaces/IWebMutableURLRequest.idl: Added. * Interfaces/IWebNotification.idl: Added. * Interfaces/IWebNotificationCenter.idl: Added. * Interfaces/IWebNotificationObserver.idl: Added. * Interfaces/IWebPolicyDelegate.idl: Added. * Interfaces/IWebPreferences.idl: Added. * Interfaces/IWebResource.idl: Added. * Interfaces/IWebResourceLoadDelegate.idl: Added. * Interfaces/IWebScriptObject.idl: Added. * Interfaces/IWebUIDelegate.idl: Added. * Interfaces/IWebURLAuthenticationChallenge.idl: Added. * Interfaces/IWebURLRequest.idl: Added. * Interfaces/IWebURLResponse.idl: Added. * Interfaces/IWebUndoManager.idl: Added. * Interfaces/IWebView.idl: Added. * Interfaces/IWebViewPrivate.idl: Added. * Interfaces/WebKit.idl: Added. * MarshallingHelpers.cpp: Added. (MarshallingHelpers::BSTRToCFURLRef): (MarshallingHelpers::BSTRToCFStringRef): (MarshallingHelpers::CFStringRefToBSTR): (MarshallingHelpers::CFNumberRefToInt): (MarshallingHelpers::intToCFNumberRef): (MarshallingHelpers::windowsEpochAbsoluteTime): (MarshallingHelpers::DATEToCFAbsoluteTime): (MarshallingHelpers::CFAbsoluteTimeToDATE): (MarshallingHelpers::stringArrayToSafeArray): (MarshallingHelpers::intArrayToSafeArray): (MarshallingHelpers::iunknownArrayToSafeArray): (MarshallingHelpers::safeArrayToStringArray): (MarshallingHelpers::safeArrayToIntArray): (MarshallingHelpers::safeArrayToIUnknownArray): (MarshallingHelpers::IUnknownRetainCallback): (MarshallingHelpers::IUnknownReleaseCallback): * MarshallingHelpers.h: Added. * WebBackForwardList.cpp: Added. (WebBackForwardList::WebBackForwardList): (WebBackForwardList::~WebBackForwardList): (WebBackForwardList::createInstance): (WebBackForwardList::QueryInterface): (WebBackForwardList::AddRef): (WebBackForwardList::Release): (WebBackForwardList::addItem): (WebBackForwardList::goBack): (WebBackForwardList::goForward): (WebBackForwardList::goToItem): (WebBackForwardList::backItem): (WebBackForwardList::currentItem): (WebBackForwardList::forwardItem): (WebBackForwardList::backListWithLimit): (WebBackForwardList::forwardListWithLimit): (WebBackForwardList::capacity): (WebBackForwardList::setCapacity): (WebBackForwardList::backListCount): (WebBackForwardList::forwardListCount): (WebBackForwardList::containsItem): (WebBackForwardList::itemAtIndex): (WebBackForwardList::setPageCacheSize): (WebBackForwardList::pageCacheSize): * WebBackForwardList.h: Added. * WebDataSource.cpp: Added. (WebDataSource::WebDataSource): (WebDataSource::~WebDataSource): (WebDataSource::createInstance): (WebDataSource::setResponse): (WebDataSource::QueryInterface): (WebDataSource::AddRef): (WebDataSource::Release): (WebDataSource::initWithRequest): (WebDataSource::data): (WebDataSource::representation): (WebDataSource::webFrame): (WebDataSource::initialRequest): (WebDataSource::request): (WebDataSource::response): (WebDataSource::textEncodingName): (WebDataSource::isLoading): (WebDataSource::pageTitle): (WebDataSource::unreachableURL): (WebDataSource::webArchive): (WebDataSource::mainResource): (WebDataSource::subresources): (WebDataSource::subresourceForURL): (WebDataSource::addSubresource): * WebDataSource.h: Added. * WebFrame.cpp: Added. (WebFrame::WebFramePrivate::WebFramePrivate): (WebFrame::WebFramePrivate::~WebFramePrivate): (WebFrame::WebFrame): (WebFrame::~WebFrame): (WebFrame::createInstance): (WebFrame::QueryInterface): (WebFrame::AddRef): (WebFrame::Release): (WebFrame::initWithName): (WebFrame::name): (WebFrame::webView): (WebFrame::frameView): (WebFrame::DOMDocument): (WebFrame::frameElement): (WebFrame::loadRequest): (WebFrame::loadData): (WebFrame::loadHTMLString): (WebFrame::loadAlternateHTMLString): (WebFrame::loadArchive): (WebFrame::dataSource): (WebFrame::provisionalDataSource): (WebFrame::stopLoading): (WebFrame::reload): (WebFrame::findFrameNamed): (WebFrame::parentFrame): (WebFrame::childFrames): (WebFrame::paint): (WebFrame::impl): (WebFrame::loadDataSource): (WebFrame::loading): (WebFrame::goToItem): (WebFrame::loadItem): (WebSystemMainMemory): (WebFrame::getObjectCacheSize): (WebFrame::invalidate): (WebFrame::setTextSizeMultiplier): (WebFrame::inViewSourceMode): (WebFrame::setInViewSourceMode): (WebFrame::receivedRedirect): (WebFrame::receivedResponse): (WebFrame::receivedData): (WebFrame::receivedAllData): (WebFrame::openURL): (WebFrame::submitForm): (WebFrame::setTitle): (WebFrame::setStatusText): (WebFrame::textFieldDidBeginEditing): (WebFrame::textFieldDidEndEditing): (WebFrame::textDidChangeInTextField): (WebFrame::doTextFieldCommandFromEvent): (WebFrame::textWillBeDeletedInTextField): (WebFrame::textDidChangeInTextArea): * WebFrame.h: Added. * WebHistory.cpp: Added. (areEqualOrClose): (createUserInfoFromArray): (createUserInfoFromHistoryItem): (releaseUserInfo): (WebHistory::WebHistory): (WebHistory::~WebHistory): (WebHistory::createInstance): (WebHistory::postNotification): (WebHistory::getNotificationString): (WebHistory::QueryInterface): (WebHistory::AddRef): (WebHistory::Release): (WebHistory::optionalSharedHistory): (WebHistory::setOptionalSharedHistory): (WebHistory::loadFromURL): (WebHistory::loadHistoryGutsFromURL): (WebHistory::saveToURL): (WebHistory::saveHistoryGuts): (WebHistory::datesArray): (WebHistory::addItems): (WebHistory::removeItems): (dictReleaseApplier): (WebHistory::removeAllItems): (WebHistory::orderedLastVisitedDays): (WebHistory::orderedItemsLastVisitedOnDay): (WebHistory::itemForURL): (WebHistory::setHistoryItemLimit): (WebHistory::historyItemLimit): (WebHistory::setHistoryAgeInDaysLimit): (WebHistory::historyAgeInDaysLimit): (WebHistory::removeItem): (WebHistory::addItem): (WebHistory::addItemForURL): (WebHistory::removeItemForURLString): (WebHistory::addItemToDateCaches): (WebHistory::removeItemFromDateCaches): (WebHistory::findIndex): (WebHistory::insertItem): (WebHistory::timeToDate): (WebHistory::ageLimitDate): (WebHistory::optionalSharedHistoryInternal): * WebHistory.h: Added. (WebHistory::): * WebHistoryItem.cpp: Added. (WebHistoryItem::WebHistoryItem): (WebHistoryItem::~WebHistoryItem): (WebHistoryItem::createInstance): (WebHistoryItem::initFromDictionaryRepresentation): (WebHistoryItem::dictionaryRepresentation): (WebHistoryItem::hasURLString): (WebHistoryItem::visitCount): (WebHistoryItem::setVisitCount): (WebHistoryItem::mergeAutoCompleteHints): (WebHistoryItem::setLastVisitedTimeInterval): (WebHistoryItem::QueryInterface): (WebHistoryItem::AddRef): (WebHistoryItem::Release): (WebHistoryItem::initWithURLString): (WebHistoryItem::originalURLString): (WebHistoryItem::URLString): (WebHistoryItem::title): (WebHistoryItem::lastVisitedTimeInterval): (WebHistoryItem::setAlternateTitle): (WebHistoryItem::alternateTitle): (WebHistoryItem::icon): * WebHistoryItem.h: Added. * WebIconDatabase.cpp: Added. (WebIconDatabase::WebIconDatabase): (WebIconDatabase::~WebIconDatabase): (WebIconDatabase::createInstance): (WebIconDatabase::QueryInterface): (WebIconDatabase::AddRef): (WebIconDatabase::Release): (WebIconDatabase::sharedIconDatabase): (WebIconDatabase::iconForURL): (WebIconDatabase::defaultIconWithSize): (WebIconDatabase::retainIconForURL): (WebIconDatabase::releaseIconForURL): (WebIconDatabase::delayDatabaseCleanup): (WebIconDatabase::allowDatabaseCleanup): * WebIconDatabase.h: Added. * WebKit.vcproj/Interfaces.vcproj: Added. * WebKit.vcproj/WebKit.def: Added. * WebKit.vcproj/WebKit.rc: Added. * WebKit.vcproj/WebKit.sln: Added. * WebKit.vcproj/WebKit.vcproj: Added. * WebKit.vcproj/WebKitGUID.vcproj: Added. * WebKit.vcproj/autoversion.h: Added. * WebKit.vcproj/missingImage.png: Added. * WebKit.vcproj/resource.h: Added. * WebKit.vcproj/textAreaResizeCorner.png: Added. * WebKitClassFactory.cpp: Added. (WebKitClassFactory::WebKitClassFactory): (WebKitClassFactory::~WebKitClassFactory): (WebKitClassFactory::QueryInterface): (WebKitClassFactory::AddRef): (WebKitClassFactory::Release): (WebKitClassFactory::CreateInstance): (WebKitClassFactory::LockServer): * WebKitClassFactory.h: Added. * WebKitDLL.cpp: Added. (DllMain): (DllGetClassObject): (DllCanUnloadNow): (DllUnregisterServer): (DllRegisterServer): (loadResourceIntoArray): * WebKitDLL.h: Added. * WebMutableURLRequest.cpp: Added. (WebMutableURLRequest::WebMutableURLRequest): (WebMutableURLRequest::~WebMutableURLRequest): (WebMutableURLRequest::createInstance): (WebMutableURLRequest::QueryInterface): (WebMutableURLRequest::AddRef): (WebMutableURLRequest::Release): (WebMutableURLRequest::requestWithURL): (WebMutableURLRequest::allHTTPHeaderFields): (WebMutableURLRequest::cachePolicy): (WebMutableURLRequest::HTTPBody): (WebMutableURLRequest::HTTPBodyStream): (WebMutableURLRequest::HTTPMethod): (WebMutableURLRequest::HTTPShouldHandleCookies): (WebMutableURLRequest::initWithURL): (WebMutableURLRequest::mainDocumentURL): (WebMutableURLRequest::timeoutInterval): (WebMutableURLRequest::URL): (WebMutableURLRequest::valueForHTTPHeaderField): (WebMutableURLRequest::addValue): (WebMutableURLRequest::setAllHTTPHeaderFields): (WebMutableURLRequest::setCachePolicy): (WebMutableURLRequest::setHTTPBody): (WebMutableURLRequest::setHTTPBodyStream): (WebMutableURLRequest::setHTTPMethod): (WebMutableURLRequest::setHTTPShouldHandleCookies): (WebMutableURLRequest::setMainDocumentURL): (WebMutableURLRequest::setTimeoutInterval): (WebMutableURLRequest::setURL): (WebMutableURLRequest::setValue): (WebMutableURLRequest::setFormData): (WebMutableURLRequest::formData): * WebMutableURLRequest.h: Added. * WebNotification.cpp: Added. (WebNotification::WebNotification): (WebNotification::~WebNotification): (WebNotification::createInstance): (WebNotification::QueryInterface): (WebNotification::AddRef): (WebNotification::Release): (WebNotification::notificationWithName): (WebNotification::name): (WebNotification::getObject): (WebNotification::userInfo): * WebNotification.h: Added. * WebNotificationCenter.cpp: Added. (ObserverKey::ObserverKey): (ObserverKey::~ObserverKey): (ObserverKey::operator==): (ObserverKeyTraits::deletedValue): (ObserverHash::equal): (ObserverHash::hash): (WebNotificationCenter::WebNotificationCenter): (WebNotificationCenter::~WebNotificationCenter): (WebNotificationCenter::createInstance): (WebNotificationCenter::QueryInterface): (WebNotificationCenter::AddRef): (WebNotificationCenter::Release): (WebNotificationCenter::defaultCenterInternal): (WebNotificationCenter::postNotificationInternal): (WebNotificationCenter::defaultCenter): (WebNotificationCenter::addObserver): (WebNotificationCenter::postNotification): (WebNotificationCenter::postNotificationName): (WebNotificationCenter::removeObserver): * WebNotificationCenter.h: Added. * WebPreferenceKeysPrivate.h: Added. * WebPreferences.cpp: Added. (WebPreferences::WebPreferences): (WebPreferences::~WebPreferences): (WebPreferences::createInstance): (WebPreferences::postPreferencesChangesNotification): (WebPreferences::getInstanceForIdentifier): (WebPreferences::initialize): (WebPreferences::valueForKey): (WebPreferences::stringValueForKey): (WebPreferences::integerValueForKey): (WebPreferences::boolValueForKey): (WebPreferences::floatValueForKey): (WebPreferences::setStringValue): (WebPreferences::webPreferencesChangedNotification): (WebPreferences::setIntegerValue): (WebPreferences::setBoolValue): (WebPreferences::save): (WebPreferences::load): (WebPreferences::preferencesPath): (WebPreferences::safeCreateFileWithData): (WebPreferences::QueryInterface): (WebPreferences::AddRef): (WebPreferences::Release): (WebPreferences::standardPreferences): (WebPreferences::initWithIdentifier): (WebPreferences::identifier): (WebPreferences::standardFontFamily): (WebPreferences::setStandardFontFamily): (WebPreferences::fixedFontFamily): (WebPreferences::setFixedFontFamily): (WebPreferences::serifFontFamily): (WebPreferences::setSerifFontFamily): (WebPreferences::sansSerifFontFamily): (WebPreferences::setSansSerifFontFamily): (WebPreferences::cursiveFontFamily): (WebPreferences::setCursiveFontFamily): (WebPreferences::fantasyFontFamily): (WebPreferences::setFantasyFontFamily): (WebPreferences::defaultFontSize): (WebPreferences::setDefaultFontSize): (WebPreferences::defaultFixedFontSize): (WebPreferences::setDefaultFixedFontSize): (WebPreferences::minimumFontSize): (WebPreferences::setMinimumFontSize): (WebPreferences::minimumLogicalFontSize): (WebPreferences::setMinimumLogicalFontSize): (WebPreferences::defaultTextEncodingName): (WebPreferences::setDefaultTextEncodingName): (WebPreferences::userStyleSheetEnabled): (WebPreferences::setUserStyleSheetEnabled): (WebPreferences::userStyleSheetLocation): (WebPreferences::setUserStyleSheetLocation): (WebPreferences::isJavaEnabled): (WebPreferences::setJavaEnabled): (WebPreferences::isJavaScriptEnabled): (WebPreferences::setJavaScriptEnabled): (WebPreferences::javaScriptCanOpenWindowsAutomatically): (WebPreferences::setJavaScriptCanOpenWindowsAutomatically): (WebPreferences::arePlugInsEnabled): (WebPreferences::setPlugInsEnabled): (WebPreferences::allowsAnimatedImages): (WebPreferences::setAllowsAnimatedImages): (WebPreferences::allowAnimatedImageLooping): (WebPreferences::setAllowAnimatedImageLooping): (WebPreferences::setLoadsImagesAutomatically): (WebPreferences::loadsImagesAutomatically): (WebPreferences::setAutosaves): (WebPreferences::autosaves): (WebPreferences::setShouldPrintBackgrounds): (WebPreferences::shouldPrintBackgrounds): (WebPreferences::setPrivateBrowsingEnabled): (WebPreferences::privateBrowsingEnabled): (WebPreferences::setTabsToLinks): (WebPreferences::tabsToLinks): (WebPreferences::textAreasAreResizable): (WebPreferences::setTextAreasAreResizable): (WebPreferences::historyItemLimit): (WebPreferences::setHistoryItemLimit): (WebPreferences::historyAgeInDaysLimit): (WebPreferences::setHistoryAgeInDaysLimit): (WebPreferences::pageCacheSize): (WebPreferences::objectCacheSize): * WebPreferences.h: Added. * WebURLResponse.cpp: Added. (WebURLResponse::WebURLResponse): (WebURLResponse::~WebURLResponse): (WebURLResponse::createInstance): (WebURLResponse::QueryInterface): (WebURLResponse::AddRef): (WebURLResponse::Release): (WebURLResponse::expectedContentLength): (WebURLResponse::initWithURL): (WebURLResponse::MIMEType): (WebURLResponse::suggestedFilename): (WebURLResponse::textEncodingName): (WebURLResponse::URL): * WebURLResponse.h: Added. * WebView.cpp: Added. (WebView::WebView): (WebView::~WebView): (WebView::createInstance): (WebView::mouseMoved): (WebView::mouseDown): (WebView::mouseUp): (WebView::mouseDoubleClick): (WebView::keyPress): (registerWebView): (WebViewWndProc): (calculateScrollDelta): (scrollMessageForKey): (WebView::goToItem): (WebView::updateWebCoreSettingsFromPreferences): (WebView::settings): (WebView::QueryInterface): (WebView::AddRef): (WebView::Release): (WebView::canShowMIMEType): (WebView::canShowMIMETypeAsHTML): (WebView::MIMETypesShownAsHTML): (WebView::setMIMETypesShownAsHTML): (WebView::URLFromPasteboard): (WebView::URLTitleFromPasteboard): (WebView::initWithFrame): (WebView::setUIDelegate): (WebView::uiDelegate): (WebView::setResourceLoadDelegate): (WebView::resourceLoadDelegate): (WebView::setDownloadDelegate): (WebView::downloadDelegate): (WebView::setFrameLoadDelegate): (WebView::frameLoadDelegate): (WebView::setPolicyDelegate): (WebView::policyDelegate): (WebView::mainFrame): (WebView::backForwardList): (WebView::setMaintainsBackForwardList): (WebView::goBack): (WebView::goForward): (WebView::goToBackForwardItem): (WebView::setTextSizeMultiplier): (WebView::textSizeMultiplier): (WebView::setApplicationNameForUserAgent): (WebView::applicationNameForUserAgent): (WebView::setCustomUserAgent): (WebView::customUserAgent): (WebView::userAgentForURL): (WebView::supportsTextEncoding): (WebView::setCustomTextEncodingName): (WebView::customTextEncodingName): (WebView::setMediaStyle): (WebView::mediaStyle): (WebView::stringByEvaluatingJavaScriptFromString): (WebView::windowScriptObject): (WebView::setPreferences): (WebView::preferences): (WebView::setPreferencesIdentifier): (WebView::preferencesIdentifier): (WebView::setHostWindow): (WebView::hostWindow): (WebView::searchFor): (WebView::registerViewClass): (WebView::takeStringURLFrom): (WebView::stopLoading): (WebView::reload): (WebView::canGoBack): (WebView::canGoForward): (WebView::canMakeTextLarger): (WebView::makeTextLarger): (WebView::canMakeTextSmaller): (WebView::makeTextSmaller): (WebView::computedStyleForElement): (WebView::editableDOMRangeForPoint): (WebView::setSelectedDOMRange): (WebView::selectedDOMRange): (WebView::selectionAffinity): (WebView::setEditable): (WebView::isEditable): (WebView::setTypingStyle): (WebView::typingStyle): (WebView::setSmartInsertDeleteEnabled): (WebView::smartInsertDeleteEnabled): (WebView::setContinuousSpellCheckingEnabled): (WebView::isContinuousSpellCheckingEnabled): (WebView::spellCheckerDocumentTag): (WebView::undoManager): (WebView::setEditingDelegate): (WebView::editingDelegate): (WebView::styleDeclarationWithText): (WebView::replaceSelectionWithNode): (WebView::replaceSelectionWithText): (WebView::replaceSelectionWithMarkupString): (WebView::replaceSelectionWithArchive): (WebView::deleteSelection): (WebView::applyStyle): (WebView::copy): (WebView::cut): (WebView::paste): (WebView::copyFont): (WebView::pasteFont): (WebView::delete_): (WebView::pasteAsPlainText): (WebView::pasteAsRichText): (WebView::changeFont): (WebView::changeAttributes): (WebView::changeDocumentBackgroundColor): (WebView::changeColor): (WebView::alignCenter): (WebView::alignJustified): (WebView::alignLeft): (WebView::alignRight): (WebView::checkSpelling): (WebView::showGuessPanel): (WebView::performFindPanelAction): (WebView::startSpeaking): (WebView::stopSpeaking): (WebView::onNotify): (WebView::setInViewSourceMode): (WebView::inViewSourceMode): (WebView::viewWindow): (WebView::setFormDelegate): (WebView::formDelegate): * WebView.h: Added.