2010-10-20 Dumitru Daniliuc Reviewed by David Levin. Repost the DatabaseTracker notifications to the main thread, if needed. https://bugs.webkit.org/show_bug.cgi?id=40655 * WebDatabaseManager.cpp: (DidModifyOriginData::dispatchToMainThread): (DidModifyOriginData::DidModifyOriginData): (DidModifyOriginData::dispatchDidModifyOriginOnMainThread): (WebDatabaseManager::dispatchDidModifyOrigin): (WebDatabaseManager::dispatchDidModifyDatabase): 2010-10-20 Dirk Schulze Reviewed by Nikolas Zimmermann. Merge ColorSpace and ImageColorSpace enums https://bugs.webkit.org/show_bug.cgi?id=47922 Renamed ColorSpace enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB to follow webkit style rules. * FullscreenVideoController.cpp: (HUDButton::draw): (HUDSlider::draw): (FullscreenVideoController::draw): * WebCoreSupport/WebDragClient.cpp: (WebDragClient::createDragImageForLink): * WebKitGraphics.cpp: (WebDrawText): 2010-10-18 Pavel Podivilov Reviewed by Timothy Hatcher. Web Inspector: disable private browsing for inspector https://bugs.webkit.org/show_bug.cgi?id=47827 * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::openInspectorFrontend): 2010-10-17 Adam Barth Reviewed by Dimitri Glazkov. FrameLoader doesn't need an explicit userGesture parameter https://bugs.webkit.org/show_bug.cgi?id=47777 Update for the new API. * WebCoreSupport/WebContextMenuClient.cpp: (WebContextMenuClient::searchWithGoogle): 2010-10-15 Brian Weinstein Reviewed by Sam Weinig. REGRESSION(r69850) Loading apple.com/startpage in WebKit on Windows gets a bad request. https://bugs.webkit.org/show_bug.cgi?id=47753 VerQueryValue returns a null terminated string, but we need to strip off the null terminating character when we turn it into a WebCore string, or else concatenation using this string will break. * WebView.cpp: 2010-10-15 Jessie Berlin Windows build fix. Unreviewed. * WebCoreSupport/WebInspectorClient.cpp: Add a missing include. 2010-10-15 Nikolas Zimmermann Reviewed by Dirk Schulze. Replace some String::format() usages by StringConcatenate in WebKit https://bugs.webkit.org/show_bug.cgi?id=47714 * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorFrontendClient::updateWindowTitle): * WebView.cpp: (WebView::standardUserAgentWithApplicationName): (osVersion): 2010-10-14 Ilya Tikhonovsky Reviewed by Pavel Feldman. Web Inspector: inspector settings/properties/states management should be extracted into separate class. We have a lot of flags/values in InspectorController. Some flags are persisting into profile. Others are part of inspector state for frontend. All these flags should keep their values after navigation. It'd be better to extract these flags/values into separate class which will care about theirs lifetime. https://bugs.webkit.org/show_bug.cgi?id=47275 * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorFrontendClient::attachWindow): (WebInspectorFrontendClient::detachWindow): (WebInspectorFrontendClient::showWindowWithoutNotifications): 2010-10-13 Gavin Barraclough Reviewed by Oliver Hunt. https://bugs.webkit.org/show_bug.cgi?id=43987 Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder to construct their internal result string. Remove ScriptString (this is now redundant). * WebCoreSupport/WebFrameLoaderClient.cpp: 2010-10-12 Adam Roben Build TestWebKitAPI on Windows Fixes Make TestWebKitAPI work on Windows Reviewed by Sam Weinig. * WebKit.vcproj/WebKit.sln: Added TestWebKitAPI and TestWebKitAPIGenerated and made them build just after WebKitTestRunner. 2010-10-11 Shinichiro Hamaji Attempt to fix windows build failure. Remove WebIconFetcher from WebKit and IconFetcher from WebCore https://bugs.webkit.org/show_bug.cgi?id=47523 * Interfaces/IWebFramePrivate.idl: s/unused1/unused2/ * Interfaces/WebKit.idl: Touched. * WebFrame.cpp: s/unused1/unused2/ (WebFrame::unused2): * WebFrame.h: s/unused1/unused2/ 2010-10-11 Anders Carlsson Reviewed by Darin Adler. Remove WebIconFetcher from WebKit and IconFetcher from WebCore https://bugs.webkit.org/show_bug.cgi?id=47523 Remove all traces of the WebKit WebIconFetcher class. It's SPI that nobody uses. * Interfaces/IWebFramePrivate.idl: * Interfaces/IWebIconFetcher.idl: Removed. * Interfaces/WebKit.idl: * WebFrame.cpp: (WebFrame::unused1): * WebFrame.h: * WebIconFetcher.cpp: Removed. * WebIconFetcher.h: Removed. * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: 2010-10-11 Jessie Berlin Reviewed by Darin Adler. Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal representation of a WebKit1 WebSerializedJSValue. https://bugs.webkit.org/show_bug.cgi?id=47439 * Interfaces/IWebSerializedJSValuePrivate.idl: Because it is taking a void** parameter, getInternalRepresentation must be declared [local]. * WebSerializedJSValue.cpp: (WebSerializedJSValue::getInternalRepresentation): * WebSerializedJSValue.h: 2010-10-07 Jessie Berlin Reviewed by Sam Weinig. Add Private API for creating a WebKit1 WebSerializedJSValue from the internal representation of a WebKit2 WebSerializedScriptValue. https://bugs.webkit.org/show_bug.cgi?id=47390 * Interfaces/WebKit.idl: Generate IWebSerializedJSValuePrivate. * Interfaces/IWebSerializedJSValuePrivate.idl: Added. Because it is taking a void* parameter, setInternalRepresentation must be declared [local]. * WebKit.vcproj/Interfaces.vcproj: Add IWebSerializedJSValue.idl and IWebSerializedJSValuePrivate.idl. * WebSerializedJSValue.cpp: (WebSerializedJSValue::QueryInterface): Since there are now two interfaces that inherit from IUnknown, do not try to cast to IUnknown* anymore. Cast to IWebSerializedJSValue* instead. (WebSerializedJSValue::setInternalRepresentation): Only set the internal representation if it hasn't already been set. * WebSerializedJSValue.h: 2010-10-04 Jon Honeycutt Prevent an assertion failure when trying to create a protection space for file/data URLs. Reviewed by Sam Weinig. * WebURLProtectionSpace.cpp: (WebURLProtectionSpace::initWithHost): Remove the ASSERT_NOT_REACHED(). 2010-10-05 Brent Fulgham Unreviewed build correction. * WebKit.vcproj/WebKit.sln: Turn the QTMovieWin project off for WinCairo release builds. Somehow this was incorrectly turned on. 2010-10-01 Mark Rowe Build fix. Clear the executable bit from a number of source files. * WebView.cpp: * WebView.h: 2010-09-30 Darin Adler Reviewed by Sam Weinig. Remove remaining calls to deprecatedParseURL https://bugs.webkit.org/show_bug.cgi?id=26599 * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidFailToStartPlugin): Call stripLeadingAndTrailingHTMLSpaces instead of deprecatedParseURL. 2010-09-28 Jenn Braithwaite Reviewed by Dmitry Titov. Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument. https://bugs.webkit.org/show_bug.cgi?id=46663 * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::didTransferChildFrameToNewDocument): * WebCoreSupport/WebFrameLoaderClient.h: 2010-09-27 Andrey Kosyakov Unreviewed build fix (win; broken in r68371) * WebFrame.cpp: remove include 2010-09-23 Matthew Delaney Reviewed by Simon Fraser. Reduce minimum DOMTimer interval https://bugs.webkit.org/show_bug.cgi?id=45362 * WebView.cpp: Updating set interval call to use Settings' static version inside one time init block. 2010-09-23 Nate Chapin Unreviewed, build fix. Move hyperlinkAuditingEnabled to IWebPreferencesPrivate.idl and touch WebKit.idl * Interfaces/IWebPreferences.idl: * Interfaces/IWebPreferencesPrivate.idl: * Interfaces/WebKit.idl: * WebView.cpp: (WebView::notifyPreferencesChanged): 2010-09-23 Nate Chapin Unreviewed, build fix. Look for hyperlinkAuditingEnabled in the right set of preferences. * WebView.cpp: (WebView::notifyPreferencesChanged): 2010-09-23 Nate Chapin Reviewed by Darin Fisher. Add hyperlink auditing settings (i.e., ). https://bugs.webkit.org/show_bug.cgi?id=30458 * Interfaces/IWebPreferences.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::hyperlinkAuditingEnabled): (WebPreferences::setHyperlinkAuditingEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2010-09-23 Matthew Delaney Reviewed by Adam Roben. Create one time initialization block for WebView's initWithFrame https://bugs.webkit.org/show_bug.cgi?id=46307 * WebView.cpp: Added one time initialization block for webview code that needs only be run once and not for each webview. This is just as the mac version WebView.mm does. 2010-09-22 Brent Fulgham Reviewed by Martin Robinson. [WinCairo] Part 2: Update WebKitTestRunner and DumpRenderTree Build. https://bugs.webkit.org/show_bug.cgi?id=46303. * WebKit.vcproj/WebKit.sln: Update overall Debug_Cairo and Release_Cairo configurations to select appropriate build targets for WebKitTestRunner and MiniBrowser. 2010-09-22 Brent Fulgham Reviewed by Martin Robinson. [WinCairo] Update WebKitTestRunner and DumpRenderTree Build.rt https://bugs.webkit.org/show_bug.cgi?id=46303. * WebKit.vcproj/WebKit.sln: Update overall Debug_Cairo and Release_Cairo configurations to select appropriate build targets for InjectionBundle. 2010-09-22 Balazs Kelemen Reviewed by Kenneth Rohde Christiansen. PluginStrategy should satisfy the needs of Qt https://bugs.webkit.org/show_bug.cgi?id=45857 No new functionality so no new tests. * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::getPluginInfo): * WebCoreSupport/WebPlatformStrategies.h: 2010-09-20 Philippe Normand Reviewed by Eric Carlson. [GTK] enhanced context menu for media elements https://bugs.webkit.org/show_bug.cgi?id=45021 New localized strings for the media element context-menu. * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow): (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow): (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagToggleMediaControls): (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop): (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen): (WebPlatformStrategies::contextMenuItemTagMediaPlay): (WebPlatformStrategies::contextMenuItemTagMediaPause): (WebPlatformStrategies::contextMenuItemTagMediaMute): * WebCoreSupport/WebPlatformStrategies.h: 2010-09-17 Darin Adler Reviewed by Sam Weinig. REGRESSION (r60104): Zoom level is unexpectedly reset on page reload https://bugs.webkit.org/show_bug.cgi?id=42863 * WebView.cpp: (WebView::setZoomMultiplier): Call functions on Frame instead of FrameView. 2010-09-17 Matthew Delaney Reviewed by Simon Fraser. Reduce minimum DOMTimer interval https://bugs.webkit.org/show_bug.cgi?id=45362 * WebView.cpp: Added in a call to set the mimimum allowed DOMTimer to 4ms. 2010-09-17 Simon Fraser Reviewed by Chris Marrin. Remove scroll and clip layers for WKCACFLayerRenderer https://bugs.webkit.org/show_bug.cgi?id=45922 WKCACFLayerRenderer no longer needs its own layers for managing scrolling and clipping, because RenderLayerCompositor provides this functionality. * WebView.cpp: (WebView::sizeChanged): Moved code that handles the WM_SIZE message into this method. Use it to resize the layer renderer. (WebView::WebViewWndProc): Call sizeChanged(). (WebView::updateRootLayerContents): No need to call setScrollFrame() any more. (WebView::layerRendererBecameVisible): Move this from the header (no need to be inline). * WebView.h: 2010-09-16 Darin Adler Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * WebFrame.cpp: (WebFrame::elementDoesAutoComplete): Use isPasswordField. (WebFrame::elementIsPassword): Use isPasswordField. 2010-09-14 Ada Chan Reviewed by Adam Roben. Add an IWebFramePrivate API to load string as plain text into the WebFrame. https://bugs.webkit.org/show_bug.cgi?id=45782 * Interfaces/IWebFramePrivate.idl: * Interfaces/WebKit.idl: Touch the file. * WebFrame.cpp: (WebFrame::loadPlainTextString): * WebFrame.h: 2010-09-13 Enrica Casucci Reviewed by Sam Weinig. Paste should be implemented in WebCore like Copy and Cut for Mac also. https://bugs.webkit.org/show_bug.cgi?id=45494 On the Mac platform, the implementation of the paste operation is all done at the WebKit level. In order to support it on WebKit2 it is necessary to refactor the code and move this functionality at the level of WebCore like we already have on Windows. The original code relies on some in AppKit functions that call back into WebKit causing problems in WebKit2. All this functionality has been moved at the level of the editor client where it can be dealt with appropriately. * WebFrame.cpp: (WebFrame::canShowMIMETypeASHTML): Added. 2010-09-11 Adam Barth Reviewed by Sam Weinig. Make SecurityOrigin::canDisplay an instance function https://bugs.webkit.org/show_bug.cgi?id=45219 * WebFrame.cpp: (WebFrame::allowsFollowingLink): 2010-09-10 Jesus Sanchez-Palencia Reviewed by Darin Adler. Add NetworkingContext to avoid layer violations https://bugs.webkit.org/show_bug.cgi?id=42292 * WebCoreSupport/WebFrameNetworkingContext.cpp: (WebFrameNetworkingContext::blockedError): * WebCoreSupport/WebFrameNetworkingContext.h: 2010-09-10 Jer Noble Reviewed by Simon Fraser. Movies with track or movie matrices don't display in