2010-03-31 Yury Semikhatsky Reviewed by Pavel Feldman. Add stubs for moveWindowBy and setAttachedWindowHeight. https://bugs.webkit.org/show_bug.cgi?id=36842 * src/WebDevToolsFrontendImpl.cpp: (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl): (WebKit::WebDevToolsFrontendImpl::jsSetAttachedWindowHeight): (WebKit::WebDevToolsFrontendImpl::jsMoveWindowBy): * src/WebDevToolsFrontendImpl.h: 2010-03-31 John Gregg Reviewed by Darin Fisher. [chromium] add logging of cross-frame property accesses for site isolation https://bugs.webkit.org/show_bug.cgi?id=35773 * public/WebFrameClient.h: (WebKit::WebFrameClient::logCrossFramePropertyAccess): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::logCrossFramePropertyAccess): * src/FrameLoaderClientImpl.h: 2010-03-30 Gavin Barraclough Rubber stamped by Sam Weinig. https://bugs.webkit.org/show_bug.cgi?id=36866 Move CString to WTF * public/WebCString.h: * src/FrameLoaderClientImpl.cpp: * src/GraphicsContext3D.cpp: * src/WebCString.cpp: (WebKit::WebCString::assign): (WebKit::WebCString::WebCString): (WebKit::WebCString::operator=): (WebKit::WebCString::operator WTF::CString): * src/WebMediaPlayerClientImpl.cpp: * src/WebString.cpp: * src/WebURLError.cpp: 2010-03-30 Marcus Bulach Reviewed by Darin Fisher. Rename / tidy up Geolocation bridge: Rename GeolocationServiceBridgeChromium.cpp to WebGeolocationServiceBridgeImpl.cpp Uses a temporary compatibility layer in GeolocationServiceBridgeChromium.h. https://bugs.webkit.org/show_bug.cgi?id=36535 * WebKit.gyp: * public/GeolocationServiceBridgeChromium.h: * public/WebGeolocationService.h: Copied from WebKit/chromium/public/GeolocationServiceBridgeChromium.h. (WebKit::WebGeolocationService::detachBridge): * public/WebGeolocationServiceBridge.h: Copied from WebKit/chromium/public/GeolocationServiceBridgeChromium.h. * public/WebViewClient.h: (WebKit::WebViewClient::geolocationService): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::requestGeolocationPermissionForFrame): * src/ChromiumBridge.cpp: * src/GeolocationServiceBridgeChromium.cpp: Removed. * src/WebGeolocationServiceBridgeImpl.cpp: Copied from WebKit/chromium/src/GeolocationServiceBridgeChromium.cpp. (WebKit::createGeolocationServiceBridgeImpl): (WebKit::WebGeolocationServiceBridgeImpl::WebGeolocationServiceBridgeImpl): (WebKit::WebGeolocationServiceBridgeImpl::~WebGeolocationServiceBridgeImpl): (WebKit::WebGeolocationServiceBridgeImpl::startUpdating): (WebKit::WebGeolocationServiceBridgeImpl::stopUpdating): (WebKit::WebGeolocationServiceBridgeImpl::suspend): (WebKit::WebGeolocationServiceBridgeImpl::resume): (WebKit::WebGeolocationServiceBridgeImpl::getBridgeId): (WebKit::WebGeolocationServiceBridgeImpl::setIsAllowed): (WebKit::WebGeolocationServiceBridgeImpl::setLastPosition): (WebKit::WebGeolocationServiceBridgeImpl::setLastError): (WebKit::WebGeolocationServiceBridgeImpl::getWebViewClient): * src/WebGeolocationServiceBridgeImpl.h: Copied from WebKit/chromium/public/GeolocationServiceBridgeChromium.h. 2010-03-30 Jochen Eisinger Reviewed by Jeremy Orlow. Remove dysfunctional implementation of canEstablishDatabase for Workers. I postpone this implementation until Workers can actually access Web Databases. https://bugs.webkit.org/show_bug.cgi?id=36795 * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::canEstablishDatabase): * src/WebWorkerBase.h: 2010-03-29 Jeremy Orlow Reviewed by Darin Fisher. More IndexedDB work https://bugs.webkit.org/show_bug.cgi?id=36770 Start the implementation of WebIndexedDatabase (for entrance back into WebKit). * WebKit.gyp: * public/WebIndexedDatabase.h: * src/WebIndexedDatabaseImpl.cpp: Added. (WebKit::WebIndexedDatabase::create): (WebKit::WebIndexedDatabaseImpl::~WebIndexedDatabaseImpl): (WebKit::WebIndexedDatabaseImpl::open): * src/WebIndexedDatabaseImpl.h: Added. 2010-03-29 Rafael Weinstein Reviewed by Adam Barth. Change NotificationPresenter::checkPermission() to take the source frames full KURL, rather than its SecurityOrigin. This will aid chromium in having more fine grained permissions to control notification spam. * public/WebNotificationPresenter.h: (WebKit::WebNotificationPresenter::checkPermission): * src/NotificationPresenterImpl.cpp: (WebKit::NotificationPresenterImpl::checkPermission): * src/NotificationPresenterImpl.h: 2010-03-29 Dawit Alemayehu Reviewed by Simon Hausmann. Factored out the 'ShouldTreatAsAttachment' function to HTTPParsers.* and replacted local version with the factored out version. The code was factored out to make possible its use in other implementations such as QtWebKit. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForMIMEType): 2010-03-29 Jochen Eisinger Reviewed by Darin Fisher. Pass a WebFrame to WebFrameClient::allowDatabase instead of a WebSecurityOrigin https://bugs.webkit.org/show_bug.cgi?id=36743 * public/WebFrameClient.h: (WebKit::WebFrameClient::allowDatabase): * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::canEstablishDatabase): 2010-03-24 Jeremy Orlow Reviewed by Darin Fisher. More IndexedDB plumbing https://bugs.webkit.org/show_bug.cgi?id=36546 Plumbing work towards the goal of making IndexedDatabase::open work. * WebKit.gyp: * public/WebIDBCallbacks.h: Added. (WebKit::WebIDBCallbacks::~WebIDBCallbacks): * public/WebIDBDatabase.h: Added. (WebKit::WebIDBDatabase::~WebIDBDatabase): * public/WebIDBDatabaseError.h: Added. (WebKit::WebIDBDatabaseError::WebIDBDatabaseError): (WebKit::WebIDBDatabaseError::operator=): * public/WebIndexedDatabase.h: * public/WebKitClient.h: (WebKit::WebKitClient::indexedDatabase): * public/WebSerializedScriptValue.h: * src/IDBCallbacksProxy.h: Added. (WebCore::IDBCallbacksProxy::IDBCallbacksProxy): (WebCore::IDBCallbacksProxy::~IDBCallbacksProxy): (WebCore::IDBCallbacksProxy::onSuccess): (WebCore::IDBCallbacksProxy::onError): * src/IDBDatabaseProxy.cpp: Added. (WebCore::IDBDatabaseProxy::create): (WebCore::IDBDatabaseProxy::IDBDatabaseProxy): (WebCore::IDBDatabaseProxy::~IDBDatabaseProxy): * src/IDBDatabaseProxy.h: Added. * src/IndexedDatabaseProxy.cpp: (WebCore::IndexedDatabaseProxy::IndexedDatabaseProxy): (WebCore::IndexedDatabaseProxy::open): * src/IndexedDatabaseProxy.h: * src/WebIDBDatabaseError.cpp: Added. (WebKit::WebIDBDatabaseError::~WebIDBDatabaseError): (WebKit::WebIDBDatabaseError::WebIDBDatabaseError): (WebKit::WebIDBDatabaseError::assign): (WebKit::WebIDBDatabaseError::code): (WebKit::WebIDBDatabaseError::message): (WebKit::WebIDBDatabaseError::operator=): (WebKit::WebIDBDatabaseError::operator PassRefPtr): 2010-03-29 Mikhail Naganov Reviewed by Pavel Feldman. Remove a possibility of confusion from Profiles panel Welcome screen by turning buttons into non-clickable glyphs. Also, span instructions alongside panel width. https://bugs.webkit.org/show_bug.cgi?id=34319 * src/js/HeapProfilerPanel.js: (WebInspector.HeapSnapshotProfileType.prototype.get welcomeMessage): 2010-03-28 Alexey Proskuryakov Build fix. Removed extraneous includes of KeyboardCodesWin.h and KeyboardCodesPosix.h - these no longer exist, but they weren't needed even before reshuffling KeyboardCodes headers. * src/WebViewImpl.cpp: 2010-03-27 Kenneth Russell Reviewed by Darin Fisher. Use WebKitClient to instantiate WebGraphicsContext3D https://bugs.webkit.org/show_bug.cgi?id=36669 * src/GraphicsContext3D.cpp: (WebCore::GraphicsContext3DInternal::initialize): 2010-03-24 James Hawkins Reviewed by Darin Fisher. [Chromium] Implement WebFormControlElement and WebSelectElement. Add a getFormControlElements method to WebFormElement. https://bugs.webkit.org/show_bug.cgi?id=36562 * WebKit.gyp: * public/WebElement.h: * public/WebFormControlElement.h: Added. * public/WebFormElement.h: * public/WebInputElement.h: (WebKit::WebInputElement::WebInputElement): (WebKit::WebInputElement::operator=): (WebKit::WebInputElement::assign): * public/WebSelectElement.h: Added. * src/WebElement.cpp: (WebKit::WebElement::isFormControlElement): * src/WebFormControlElement.cpp: Added. * src/WebFormElement.cpp: (WebKit::WebFormElement::getFormControlElements): * src/WebInputElement.cpp: (WebKit::WebInputElement::WebInputElement): * src/WebSelectElement.cpp: Added. 2010-03-26 Andrey Kosyakov Reviewed by Pavel Feldman. Send worker resource content to inspector to enable display of web workers in inspector's resource tab. https://bugs.webkit.org/show_bug.cgi?id=36658 * src/SharedWorkerRepository.cpp: (WebCore::SharedWorkerScriptLoader::notifyFinished): 2010-03-25 Tony Chang Reviewed by David Levin. [chromium] correctly handle move drag operations https://bugs.webkit.org/show_bug.cgi?id=36484 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::dragTargetDragEnter): (WebKit::WebViewImpl::dragTargetDragOver): (WebKit::WebViewImpl::dragTargetDragEnterOrOver): Combine common code into a helper method and properly mask against the drag effect. (WebKit::WebViewImpl::createUniqueIdentifierForRequest): * src/WebViewImpl.h: 2010-03-25 Drew Wilson Reviewed by Nate Chapin. [v8] Error in getScriptExecutionContext() when worker context is terminating https://bugs.webkit.org/show_bug.cgi?id=36565 Test: Existing worker tests suffice. * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::createWorkerContextProxy): Changed to use WorkerScriptController::controllerForContext() instead of WorkerScriptExecutionProxy::retrieve(). 2010-03-25 Jeremy Orlow Reviewed by Darin Fisher. [Chromium] Add an ASSERT macro to the Chromium WebKit API https://bugs.webkit.org/show_bug.cgi?id=36545 * WebKit.gyp: Add WebCommon.cpp * public/WebCommon.h: Add the Macro. * public/WebPrivatePtr.h: (WebKit::WebPrivatePtr::~WebPrivatePtr): Verify the pointer is now 0. * src/WebCommon.cpp: Added. (WebKit::failedAssertion): Calls the WTF assert function and then crashes. 2010-03-25 Jochen Eisinger Reviewed by Jeremy Orlow. Remove ASSERT(isMainThread()) which is violated for workers and not necessary at this point. https://bugs.webkit.org/show_bug.cgi?id=36614 * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::canEstablishDatabase): 2010-03-25 Jochen Eisinger Reviewed by Jeremy Orlow. Forward DatabaseTracker::canEstablishDatabase to chromium layer. https://bugs.webkit.org/show_bug.cgi?id=36595 * public/WebFrameClient.h: (WebKit::WebFrameClient::allowDatabase): * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::canEstablishDatabase): * src/WebWorkerBase.h: (WebKit::WebWorkerBase::allowDatabase): 2010-03-10 John Abd-El-Malek Reviewed by Darin Fisher. [chromium] Fix up WebMouseWheelEventBuilder to properly calculate the units https://bugs.webkit.org/show_bug.cgi?id=35989 * src/WebInputEventConversion.cpp: 2010-03-24 Vangelis Kokkevis Reviewed by Dimitri Glazkov. Eliminate unecessary redraws of GraphicsLayer contents when doing accelerated compositing: https://bugs.webkit.org/show_bug.cgi?id=36470 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::paint): Remove call that forced redrawing the contents of the entire layer hierarchy. 2010-03-24 Dmitry Titov No review, rolling out r56453. http://trac.webkit.org/changeset/56453 https://bugs.webkit.org/show_bug.cgi?id=36426 In Chromium port, it broke invalid-image-data-standalone.html invalid-image-data.html multipart-wait-before-boundary.html stop-crash.html win-boundary-crash.html * src/ResourceHandle.cpp: (WebCore::ResourceHandleInternal::ResourceHandleInternal): (WebCore::ResourceHandleInternal::start): (WebCore::ResourceHandleInternal::cancel): (WebCore::ResourceHandleInternal::didReceiveResponse): (WebCore::ResourceHandleInternal::didReceiveData): (WebCore::ResourceHandleInternal::didFinishLoading): (WebCore::ResourceHandleInternal::didFail): 2010-03-24 John Abd-El-Malek Reviewed by Darin Fisher. [chromium]WebKit side of adding search support to Pepper. https://bugs.webkit.org/show_bug.cgi?id=36434 * WebKit.gyp: * public/WebDocument.h: * public/WebNode.h: (WebKit::WebNode::to): (WebKit::WebNode::toConst): * public/WebPluginDocument.h: Added. (WebKit::WebPluginDocument::WebPluginDocument): (WebKit::WebPluginDocument::operator=): (WebKit::WebPluginDocument::assign): * src/WebDocument.cpp: (WebKit::WebDocument::isPluginDocument): * src/WebPluginDocument.cpp: Added. (WebKit::WebPluginDocument::plugin): (WebKit::WebPluginDocument::WebPluginDocument): (WebKit::WebPluginDocument::operator=): (WebKit::WebPluginDocument::operator PassRefPtr): 2010-03-24 Jeremy Moskovich Reviewed by Jeremy Orlow. Add some diagnostics to try to track down cause of crash in ArchiveFactory::isArchiveMimeType(). https://bugs.webkit.org/show_bug.cgi?id=36426 * src/ResourceHandle.cpp: Track state across ResourceHandle invocations. (WebCore::ResourceHandleInternal::ResourceHandleInternal): (WebCore::ResourceHandleInternal::): (WebCore::ResourceHandleInternal::start): (WebCore::ResourceHandleInternal::cancel): (WebCore::ResourceHandleInternal::didReceiveResponse): (WebCore::ResourceHandleInternal::didReceiveData): (WebCore::ResourceHandleInternal::didFinishLoading): (WebCore::ResourceHandleInternal::didFail): 2010-03-24 Jay Campan Reviewed by Darin Fisher. Making Chromium select popups not steal activation from the browser. Select popups are now like autocomplete popups, shown in non-activated windows. https://bugs.webkit.org/show_bug.cgi?id=36062 * public/WebViewClient.h: (WebKit::WebViewClient::createPopupMenu): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): (WebKit::ChromeClientImpl::popupClosed): * src/ChromeClientImpl.h: * src/WebViewImpl.cpp: (WebKit::): (WebKit::WebViewImpl::mouseDown): (WebKit::WebViewImpl::keyEvent): (WebKit::WebViewImpl::selectPopupHandleKeyEvent): (WebKit::WebViewImpl::hideSelectPopup): (WebKit::WebViewImpl::popupOpened): (WebKit::WebViewImpl::popupClosed): (WebKit::WebViewImpl::setFocus): (WebKit::WebViewImpl::applyAutoFillSuggestions): (WebKit::WebViewImpl::applyAutocompleteSuggestions): * src/WebViewImpl.h: 2010-03-24 Alexander Pavlov Reviewed by Pavel Feldman. Web Inspector: [Chromium] Audits never complete https://bugs.webkit.org/show_bug.cgi?id=36544 * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): 2010-03-24 Alexander Pavlov Reviewed by Pavel Feldman. [Chromium] Fix VKEY_F10, VKEY_F11 translation in WebInputEvent.cpp https://bugs.webkit.org/show_bug.cgi?id=36524 * src/WebInputEvent.cpp: (WebKit::staticKeyIdentifiers): 2010-03-24 Kent Tamura Reviewed by Darin Adler. Make Icon::createIconForFiles() optional. https://bugs.webkit.org/show_bug.cgi?id=35072 - Rename iconForFiles() to chooseIconForFiles(). - Call Icon::createIconForFiles() from chooseIconForFiles(). * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::chooseIconForFiles): * src/ChromeClientImpl.h: 2010-03-23 Kenneth Russell Unreviewed build fix. Add #include to fix Chromium Linux build. * src/WebGraphicsContext3DDefaultImpl.cpp: 2010-03-23 Nate Chapin Unreviewed, revert r56376. This revision introduced a crash in a couple of layout tests on Chromium Linux. * public/WebViewClient.h: (WebKit::WebViewClient::createPopupMenu): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): * src/ChromeClientImpl.h: * src/WebViewImpl.cpp: (WebKit::): (WebKit::WebViewImpl::mouseDown): (WebKit::WebViewImpl::keyEvent): (WebKit::WebViewImpl::setFocus): (WebKit::WebViewImpl::applyAutoFillSuggestions): (WebKit::WebViewImpl::applyAutocompleteSuggestions): * src/WebViewImpl.h: 2010-03-23 Sergey Ulanov Reviewed by Dmitry Titov. Changes needed to implement Show/Hide Controls command for