2011-12-02 Steve Falkenburg Reviewed by Darin Adler. Changes to localStorageDatabasePath don't have any effect on Windows https://bugs.webkit.org/show_bug.cgi?id=73606 * WebView.cpp: (WebView::notifyPreferencesChanged): Propagate local storage path change to m_page's settings. 2011-11-30 Alexey Proskuryakov Remove an unneeded argument from FrameLoaderClient::download https://bugs.webkit.org/show_bug.cgi?id=73486 Reviewed by Andreas Kling. * WebFrame.cpp: (WebFrame::download): * WebFrame.h: Updated for the change. 2011-11-26 Pavel Feldman Web Inspector: remove disconnectFromBackend from the protocol. https://bugs.webkit.org/show_bug.cgi?id=73127 Reviewed by Yury Semikhatsky. * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::inspectorDestroyed): (WebInspectorClient::closeInspectorFrontend): * WebCoreSupport/WebInspectorClient.h: 2011-11-26 Sheriff Bot Unreviewed, rolling out r101193. http://trac.webkit.org/changeset/101193 https://bugs.webkit.org/show_bug.cgi?id=73158 Breaks Windows and Qt minimal. (Requested by pfeldman on #webkit). * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::inspectorDestroyed): (WebInspectorFrontendClient::disconnectFromBackend): * WebCoreSupport/WebInspectorClient.h: 2011-11-26 Pavel Feldman Web Inspector: remove disconnectFromBackend from the protocol. https://bugs.webkit.org/show_bug.cgi?id=73127 Reviewed by Yury Semikhatsky. * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::inspectorDestroyed): (WebInspectorClient::closeInspectorFrontend): * WebCoreSupport/WebInspectorClient.h: 2011-11-22 Pavel Feldman Web Inspector: remove Inspector::bringToFront from the protocol. https://bugs.webkit.org/show_bug.cgi?id=72937 Reviewed by Yury Semikhatsky. * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::bringFrontendToFront): * WebCoreSupport/WebInspectorClient.h: 2011-11-21 Pavel Feldman Not reviewed: an attempt to fix windows build. * WebInspector.cpp: (WebInspector::isJavaScriptProfilingEnabled): (WebInspector::setJavaScriptProfilingEnabled): 2011-06-20 Pavel Feldman Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu. https://bugs.webkit.org/show_bug.cgi?id=62985 Both: inspector protocol and WebCore/InspectorController have a number of unnecessary methods for plumbing the menu action handlers through the WebKit and WebCore. I intend to remove this menu support from the protocol and WebCore/InspectorController API. I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port. WebKit/win and WebKit2 to follow. Reviewed by Yury Semikhatsky. * WebInspector.cpp: (WebInspector::createInstance): (WebInspector::WebInspector): (WebInspector::webViewClosed): (WebInspector::showConsole): (WebInspector::isDebuggingJavaScript): (WebInspector::toggleDebuggingJavaScript): (WebInspector::isProfilingJavaScript): (WebInspector::toggleProfilingJavaScript): (WebInspector::isJavaScriptProfilingEnabled): (WebInspector::setJavaScriptProfilingEnabled): (WebInspector::isTimelineProfilingEnabled): (WebInspector::setTimelineProfilingEnabled): * WebInspector.h: * WebView.cpp: (WebView::WebView): (WebView::close): (WebView::initWithFrame): (WebView::inspector): * WebView.h: 2011-10-17 Antonio Gomes Pass a Frame* parameter in EditorClient::respondToChangedSelection https://bugs.webkit.org/show_bug.cgi?id=70248 Reviewed by Ryosuke Niwa. * WebCoreSupport/WebEditorClient.cpp: Make use of the newly added Frame* parameter. (WebEditorClient::respondToChangedSelection): * WebCoreSupport/WebEditorClient.h: 2011-11-15 Jochen Eisinger Rename ReferrerPolicy to clarify its meaning https://bugs.webkit.org/show_bug.cgi?id=72420 Reviewed by Nate Chapin. * WebCoreSupport/WebContextMenuClient.cpp: (WebContextMenuClient::searchWithGoogle): 2011-11-15 Anders Carlsson HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen https://bugs.webkit.org/show_bug.cgi?id=72397 Reviewed by Dan Bernstein. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::rootViewToScreen): (WebChromeClient::screenToRootView): * WebCoreSupport/WebChromeClient.h: 2011-11-14 Anders Carlsson HostWindow invalidation functions should use root view coordinates https://bugs.webkit.org/show_bug.cgi?id=72338 Reviewed by Dan Bernstein. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::invalidateRootView): (WebChromeClient::invalidateContentsAndRootView): * WebCoreSupport/WebChromeClient.h: 2011-11-07 Adam Barth Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp https://bugs.webkit.org/show_bug.cgi?id=71755 Reviewed by Eric Seidel. * WebView.cpp: (WebView::addOriginAccessWhitelistEntry): (WebView::removeOriginAccessWhitelistEntry): (WebView::resetOriginAccessWhitelists): 2011-11-07 Adam Barth Move DomainRelaxationForbidden scheme registry to SchemeRegistry https://bugs.webkit.org/show_bug.cgi?id=71750 Reviewed by Eric Seidel. * WebView.cpp: (WebView::setDomainRelaxationForbiddenForURLScheme): 2011-11-07 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=71490 Support uiStateTransitionProgress for scrollbars -and corresponding- Reviewed by Sam Weinig. Scrollbar::mouseUp() now takes a PlatformMouseEvent as a parameter. * WebScrollBar.cpp: (WebScrollBar::handleMouseEvent): 2011-11-02 Darin Adler Change remaining callers of releaseRef to call leakRef https://bugs.webkit.org/show_bug.cgi?id=71422 Reviewed by Darin Fisher. * WebCache.cpp: (WebCache::statistics): * WebDatabaseManager.cpp: (WebDatabaseManager::origins): (WebDatabaseManager::databasesWithOrigin): * WebHistoryItem.cpp: (WebHistoryItem::redirectURLs): * WebKitClassFactory.cpp: (leakRefFromCreateInstance): (WebKitClassFactory::CreateInstance): * WebScriptWorld.cpp: (WebScriptWorld::standardWorld): Use leakRef. 2011-11-02 Jon Lee Expand DragController to provide more information about the dragging session https://bugs.webkit.org/show_bug.cgi?id=71324 Reviewed by Darin Adler. * WebView.cpp: (WebView::DragEnter): Minor refactoring because operation is stored in new DragSession struct. (WebView::DragOver): Ditto. 2011-11-02 Tom Sepez XSSAuditor is silent https://bugs.webkit.org/show_bug.cgi?id=70973 Reviewed by Adam Barth. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::didDetectXSS): * WebCoreSupport/WebFrameLoaderClient.h: 2011-10-28 Jochen Eisinger Rename a number of methods mentioning JavaScript to just Script instead https://bugs.webkit.org/show_bug.cgi?id=71105 Reviewed by Adam Barth. * WebFrame.cpp: (WebFrame::dispatchDidClearWindowObjectInWorld): * WebView.cpp: (WebView::notifyPreferencesChanged): 2011-10-24 Geoffrey Garen Build fix: removed some cases of threadsafeCopy() that I missed in my previous patch. * WebDatabaseManager.cpp: (DidModifyOriginData::dispatchToMainThread): * WebDownloadCFNet.cpp: (WebDownload::initToResumeWithBundle): * WebIconDatabase.cpp: (WebIconDatabase::didImportIconURLForPageURL): 2011-10-24 Ryosuke Niwa threadsafeCopy has been renamed to isolatedCopy. * WebDatabaseManager.cpp: (DidModifyOriginData::dispatchToMainThread): 2011-10-24 Adam Barth Attempt to fix Windows build by updating to the new interface. * DOMEventsClasses.cpp: (DOMEvent::createInstance): 2011-10-18 Adam Barth Always enable ENABLE(XPATH) https://bugs.webkit.org/show_bug.cgi?id=70217 Reviewed by Eric Seidel. * Interfaces/DOMWindow.idl: 2011-10-14 Julien Chaffraix Remove layerX / layerY from the Windows API https://bugs.webkit.org/show_bug.cgi?id=70051 Reviewed by Darin Adler. Renamed layerX to unused1 and layerY to unused2 to keep the binary compatibility. * DOMEventsClasses.cpp: (DOMUIEvent::unused1): (DOMUIEvent::unused2): * DOMEventsClasses.h: (DOMKeyboardEvent::unused1): (DOMKeyboardEvent::unused2): (DOMMouseEvent::unused1): (DOMMouseEvent::unused2): (DOMWheelEvent::unused1): (DOMWheelEvent::unused2): * Interfaces/DOMEvents.idl: 2011-10-11 Simon Fraser Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms https://bugs.webkit.org/show_bug.cgi?id=68134 Reviewed by Darin Adler. Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled. Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method that reads the setting, and returns the mock theme if set. All callers now use theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build. * WebScrollBar.cpp: (WebScrollBar::requestedWidth): (WebScrollBar::requestedHeight): * WebView.cpp: (WebView::WebViewWndProc): 2011-10-03 Anders Carlsson Remove custom scrollbar painting hooks https://bugs.webkit.org/show_bug.cgi?id=69163 Reviewed by Alexey Proskuryakov. Remove now unused WebPreferences and ChromeClient overrides. * Interfaces/IWebPreferences.idl: * WebCoreSupport/WebChromeClient.cpp: * WebCoreSupport/WebChromeClient.h: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::unused3): (WebPreferences::unused4): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2011-09-23 Adam Roben Remove WebKitAPITest WebKit part of WebKitAPITest and TestWebKitAPI have duplicate functionality (and names!) Reviewed by Anders Carlsson. * WebKit.vcproj/WebKit.sln: Removed WebKitAPITest.vcproj. Changed WebKitLauncherWin, which formerly depended on WebKitAPITest, to now depend on DumpRenderTree, which WebKitAPITest depended on. 2011-09-24 Adam Barth Always enable ENABLE(OFFLINE_WEB_APPLICATIONS) https://bugs.webkit.org/show_bug.cgi?id=68767 Reviewed by Eric Seidel. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::reachedApplicationCacheOriginQuota): * WebCoreSupport/WebChromeClient.h: 2011-09-22 Adam Roben Remove FindSafari from all our .sln files It isn't used anymore, so there's no point in building it. Part of Remove FindSafari Reviewed by Steve Falkenburg. * WebKit.vcproj/WebKit.sln: Also relinearized the build order while I was at it. 2011-09-22 Adam Roben Add testRegExp.vcproj to WebKit.sln Fixes Windows bots don't build testRegExp.vcproj Reviewed by Brian Weinstein. * WebKit.vcproj/WebKit.sln: Added testRegExp. Made it build just after jsc, just like it does when built as part of JavaScriptCore.sln. 2011-09-21 Steve Falkenburg Branch builds don't launch on Windows when run against trunk WebKit https://bugs.webkit.org/show_bug.cgi?id=68546 Reviewed by Darin Adler. * Interfaces/IWebPreferences.idl: Swap avFoundation and pictographicFontFamily in IDL for binary compatibility between branch and trunk. 2011-09-21 Andras Becsi [Qt] Remove Qt specific code from css/SelectorChecker.cpp https://bugs.webkit.org/show_bug.cgi?id=67702 Reviewed by Csaba Osztrogonác. * WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype. (WebPlatformStrategies::isLinkVisited): * WebCoreSupport/WebPlatformStrategies.h: Ditto. 2011-09-17 Mihai Parparita FrameLoaderClient BackForwardList-related methods are unsued https://bugs.webkit.org/show_bug.cgi?id=68293 Reviewed by Darin Adler. Remove FrameLoaderClient methods that were added by r51629, since only the old (since-deleted) Android port needed them. * WebCoreSupport/WebFrameLoaderClient.cpp: * WebCoreSupport/WebFrameLoaderClient.h: 2011-09-15 Adam Barth Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE) https://bugs.webkit.org/show_bug.cgi?id=68205 Reviewed by Eric Seidel. * ForEachCoClass.h: * WebCoreSupport/WebChromeClient.cpp: * WebCoreSupport/WebChromeClient.h: * WebDatabaseManager.cpp: * WebDatabaseManager.h: * WebSecurityOrigin.cpp: (WebSecurityOrigin::usage): (WebSecurityOrigin::quota): (WebSecurityOrigin::setQuota): * WebView.cpp: (WebView::initWithFrame): (WebView::notifyPreferencesChanged): 2011-09-15 Kentaro Hara A single line must not be split into two pages. https://bugs.webkit.org/show_bug.cgi?id=65005 Reviewed by David Hyatt. When the document width of a page is overflowed, the last line of the page can be split into the next page. This is the regression caused by r88737. r88737 tried to fix rounding errors in rendering calculations by expanding and shrinking a page using one common method, resizePageRectsKeepingRatio(), but overlooked the case where a document width gets overflowed. Test: printing/single-line-must-not-be-split-into-two-pages.html * WebFrame.cpp: (WebFrame::setPrinting): Passes an original page size to setPrinting(). (WebFrame::setInPrintingMode): Ditto. * WebFrame.h: 2011-09-06 Ryosuke Niwa Rename confirmCompositionWithoutDisturbingSelection to cancelComposition https://bugs.webkit.org/show_bug.cgi?id=67569 Reviewed by Antonio Gomes. * WebView.cpp: (WebView::resetIME): 2011-08-29 Alexey Proskuryakov DumpRenderTree should begin each test with an empty cookie store https://bugs.webkit.org/show_bug.cgi?id=63545 Reviewed by Darin Adler. * WebCookieManagerCFNet.cpp: (WebCookieManager::cookieStorage): (WebCookieManager::setCookieStorage): Changed the API to work with new functions in WebCore. It's a bit ugly, because cookieStorage() returns an unretained reference, which we cannot provide any more, but it should not be a practical issue. * WebView.cpp: (updateSharedSettingsFromPreferencesIfNeeded): Updated to use currentCFHTTPCookieStorage() instead of currentCookieStorage(). 2011-08-30 Kaustubh Atrawalkar The unused ScrollView* argument can and should be removed from scrollRectIntoView. https://bugs.webkit.org/show_bug.cgi?id=67117 Reviewed by Darin Adler. * WebCoreSupport/WebChromeClient.h: (WebChromeClient::scrollRectIntoView): 2011-08-29 Ryosuke Niwa Move setInnerTextValue from RenderTextControl to HTMLTextFormControlElement https://bugs.webkit.org/show_bug.cgi?id=67152 Reviewed by Darin Adler. Updated call sites of lastChangeWasUserEdit since it's moved from RenderTextControl to HTMLTextFormControlElement. * DOMHTMLClasses.cpp: (DOMHTMLInputElement::isUserEdited): (DOMHTMLTextAreaElement::isUserEdited): 2011-08-29 Sheriff Bot Unreviewed, rolling out r93987, r93992, r93995, r93998, and r93999. http://trac.webkit.org/changeset/93987 http://trac.webkit.org/changeset/93992 http://trac.webkit.org/changeset/93995 http://trac.webkit.org/changeset/93998 http://trac.webkit.org/changeset/93999 https://bugs.webkit.org/show_bug.cgi?id=67147 Many failing tests (Requested by ap on #webkit). * WebCookieManagerCFNet.cpp: (WebCookieManager::cookieStorage): (WebCookieManager::setCookieStorage): * WebView.cpp: (updateSharedSettingsFromPreferencesIfNeeded): 2011-08-29 Alexey Proskuryakov Windows build fix. * WebView.cpp: (updateSharedSettingsFromPreferencesIfNeeded): Updated for new function name and signature: currentCFHTTPCookieStorage(). 2011-08-26 Alexey Proskuryakov DumpRenderTree should begin each test with an empty cookie store https://bugs.webkit.org/show_bug.cgi?id=63545 Reviewed by Darin Adler. * WebCookieManagerCFNet.cpp: (WebCookieManager::cookieStorage): (WebCookieManager::setCookieStorage): Changed the API to work with new functions in WebCore. It's a bit ugly, because cookieStorage() returns an unretained reference, which we cannot provide any more, but it should not be a practical issue. 2011-08-17 Adam Roben Make WebCore keep track of the current device scale factor Fixes WebCore requires every WebKit port to keep track of the device scale factor Reviewed by Darin Adler. * WebCoreSupport/WebChromeClient.cpp: * WebCoreSupport/WebChromeClient.h: Removed deviceScaleFactor. 2011-08-15 Dmitry Titov FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters https://bugs.webkit.org/show_bug.cgi?id=66165 Reviewed by Darin Fisher. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::transferLoadingResourceFromPage): * WebCoreSupport/WebFrameLoaderClient.h: 2011-08-15 Adam Roben Touch a file to trigger a Windows build I'm trying to ferret out some issues with our Debug builder. * WebView.cpp: Sorted #includes. 2011-08-10 Adam Roben Clear up scale factor terminology WebKit by and large deals with two scale factors: one intrinsic to the device on which the software is running, and one that is per-Page and can be controlled via API calls. This patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the code use those names. It should introduce no behavior changes. Fixes WebKit uses multiple conflicting names to refer to the device scale factor Reviewed by Simon Fraser. * WebCoreSupport/WebChromeClient.cpp: * WebCoreSupport/WebChromeClient.h: 2011-08-13 Dan Bernstein Changed the value of WebKitShowsToolTipOverTruncatedTextPreferenceKey to match the naming everywhere else. Reviewed by Joseph Pecoraro. * WebPreferenceKeysPrivate.h: 2011-08-13 Dan Bernstein Build fix. * WebView.cpp: (WebView::notifyPreferencesChanged): 2011-08-12 Dan Bernstein Add an option to automatically show tooltips (with the full text) over truncated text https://bugs.webkit.org/show_bug.cgi?id=66178 Reviewed by Simon Fraser. * Interfaces/IWebPreferencesPrivate.idl: Added accessors. * WebPreferenceKeysPrivate.h: Defined a preference key. * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): Added a default value of false for the ShowsToolTipOverTruncatedText preference. (WebPreferences::showsToolTipOverTruncatedText): Added this getter. (WebPreferences::setShowsToolTipOverTruncatedText): Added this setter. * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): Added call to Settings::setShowsToolTipOverTruncatedText(). 2011-08-05 Brent Fulgham WebView::performLayeredWindowUpdate() crashes with NULL pointer when using layered window updates. https://bugs.webkit.org/show_bug.cgi?id=60618 Reviewed by Adam Roben. During resize operations, the backing store will be destroyed if the window's size (either height or width) is set to zero. The bug was identified when a user first resized a WebView to zero dimensions, then attempted to perform a MoveWindow. The paint message triggered by the MoveWindow attempted to use the layered window update logic, which encountered the nulled backing store. * WebView.cpp: (WebView::performLayeredWindowUpdate): Add an early return when there is no backing store to blend with. 2011-08-05 Anders Carlsson Remove PluginHalter https://bugs.webkit.org/show_bug.cgi?id=65729 Reviewed by Darin Adler. Remove plug-in halter and associated classes. * Interfaces/IWebPluginHalterDelegate.idl: Removed. * Interfaces/IWebPreferencesPrivate.idl: * Interfaces/IWebViewPrivate.idl: * Interfaces/WebKit.idl: * WebCoreSupport/WebPluginHalterClient.cpp: Removed. * WebCoreSupport/WebPluginHalterClient.h: Removed. * WebKit.vcproj/Interfaces.vcproj: * WebKit.vcproj/WebKit.vcproj: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): * WebPreferences.h: * WebView.cpp: (WebView::close): (WebView::initWithFrame): (WebView::notifyPreferencesChanged): (WebView::unused1): (WebView::unused2): (WebView::unused3): (WebView::unused4): (WebView::unused5): * WebView.h: 2011-08-04 Jeff Miller Add support for setting and getting whether AVFoundation is enabled to IWebPreferences https://bugs.webkit.org/show_bug.cgi?id=65718 Reviewed by Adam Roben. * Interfaces/IWebPreferences.idl: Added setAVFoundationEnabled() and avFoundationEnabled(). * WebPreferenceKeysPrivate.h: Added WebKitAVFoundationEnabledPreferenceKey. * WebPreferences.cpp: (WebPreferences::avFoundationEnabled): Added. (WebPreferences::setAVFoundationEnabled): Added. * WebPreferences.h: Added setAVFoundationEnabled() and avFoundationEnabled(). * WebView.cpp: (WebView::notifyPreferencesChanged): Keep settings for AVFoundation being enabled in sync. 2011-08-03 Kent Tamura [Windows] Fix build without ENABLE_VIDEO. * WebView.cpp: (WebView::enterFullscreenForNode): 2011-08-03 Kent Tamura Fix incorrect checks for HTMLMediaElement https://bugs.webkit.org/show_bug.cgi?id=65590 Reviewed by Dimitri Glazkov.