2010-05-31 Pavel Podivilov Reviewed by Pavel Feldman. Chromium: save inspector settings as dictionary, not as string. https://bugs.webkit.org/show_bug.cgi?id=32118 * public/WebView.h: * public/WebViewClient.h: (WebKit::WebViewClient::didUpdateInspectorSetting): * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::populateSetting): (WebKit::InspectorClientImpl::storeSetting): * src/InspectorClientImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::inspectorSetting): (WebKit::WebViewImpl::setInspectorSetting): * src/WebViewImpl.h: 2010-05-31 James Robinson Reviewed by Darin Fisher. Expose html5 parser enabled flag in WebSettings https://bugs.webkit.org/show_bug.cgi?id=39913 * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setHTML5ParserEnabled): * src/WebSettingsImpl.h: 2010-05-31 Lyon Chen Reviewed by Kent Tamura. Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts. https://bugs.webkit.org/show_bug.cgi?id=35530 Change enum EAlteration from { MOVE, EXTEND } to { AlterationMove, AlterationExtend } and enum EDirection { FORWARD, BACKWARD, RIGHT, LEFT} to { DirectionForward, DirectionBackward, DirectionRight, DirectionLeft } to avoid macro conflict, and also better coding style conformance. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::executeCommand): 2010-05-31 Roland Steiner Bug 39977 - Missing Chromium bindings for InspectorController methods introduced in r60443 https://bugs.webkit.org/show_bug.cgi?id=39977 add missing InspectorController JS bindings: - getStyleSheet - getRuleRangesForStyleSheetId Tests: inspector/styles-source-offsets.html * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): 2010-05-31 Sheriff Bot Unreviewed, rolling out r60456. http://trac.webkit.org/changeset/60456 https://bugs.webkit.org/show_bug.cgi?id=39974 Broke Chromium Linux/Max build (Requested by tkent on #webkit). * DEPS: 2010-05-31 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Checking out lighttpd https://bugs.webkit.org/show_bug.cgi?id=39948 - Checking out lighttpd only on Windows. It is used by new-run-webkit-tests. - Update Chromium revision to use Windows resource query code * DEPS: 2010-05-31 Yury Semikhatsky Reviewed by Pavel Feldman. Web Inspector: allow hiding Scripts panel from Chromium code. This is needed to support v8 debugging protocol which has an implementation that conflicts with debugger provided by the inspector. https://bugs.webkit.org/show_bug.cgi?id=39952 * public/WebDevToolsAgentClient.h: (WebKit::WebDevToolsAgentClient::exposeV8DebuggerProtocol): * public/WebDevToolsFrontendClient.h: (WebKit::WebDevToolsFrontendClient::WebDevToolsFrontendClient): (WebKit::WebDevToolsFrontendClient::sendMessageToAgent): (WebKit::WebDevToolsFrontendClient::sendDebuggerCommandToAgent): (WebKit::WebDevToolsFrontendClient::sendDebuggerPauseScript): (WebKit::WebDevToolsFrontendClient::activateWindow): (WebKit::WebDevToolsFrontendClient::closeWindow): (WebKit::WebDevToolsFrontendClient::requestDockWindow): (WebKit::WebDevToolsFrontendClient::requestUndockWindow): (WebKit::WebDevToolsFrontendClient::hideScriptsPanel): * src/DebuggerAgentManager.cpp: (WebKit::DebuggerAgentManager::debugAttach): (WebKit::DebuggerAgentManager::debugDetach): (WebKit::DebuggerAgentManager::setExposeV8DebuggerProtocol): * src/DebuggerAgentManager.h: * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::hiddenPanels): * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::WebDevToolsAgentImpl): (WebKit::WebDevToolsAgentImpl::attach): 2010-05-30 Lyon Chen Reviewed by Kent Tamura. This is a coding style cleanup before fixing to bug 35530. Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts. https://bugs.webkit.org/show_bug.cgi?id=35530 * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::find): (WebKit::WebFrameImpl::scopeStringMatches): (WebKit::WebFrameImpl::createChildFrame): (WebKit::WebFrameImpl::shouldScopeMatches): 2010-05-30 Daniel Bates Unreviewed, attempt to fix the build after http://trac.webkit.org/changeset/60418. I missed a few call sites in the Chromium source when I landed http://trac.webkit.org/changeset/60419. Credit to Chris Jerdonek for looking over both this patch and the patch committed in r60419. * src/WebSearchableFormData.cpp: (WebCore::GetButtonToActivate): (WebCore::HasSuitableTextElement): 2010-05-30 Daniel Bates Unreviewed, attempt to fix the build after http://trac.webkit.org/changeset/60418. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::autofill): * src/WebFormControlElement.cpp: (WebKit::WebFormControlElement::formControlName): (WebKit::WebFormControlElement::formControlType): * src/WebFormElement.cpp: (WebKit::WebFormElement::getFormControlElements): * src/WebPasswordFormUtils.cpp: (WebKit::findPasswordFormFields): 2010-05-30 Jessie Berlin Reviewed by Pavel Feldman. https://bugs.webkit.org/show_bug.cgi?id=39224 Bug 39224 - Web Inspector: There should be a way to clean up profiles * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): 2010-05-29 Vangelis Kokkevis Reviewed by Darin Fisher. Adding support for a runtime flag to enable accelerated compositing in chromium. https://bugs.webkit.org/show_bug.cgi?id=39917 * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setAcceleratedCompositingEnabled): * src/WebSettingsImpl.h: 2010-05-28 Aaron Boodman Reviewed by Darin Fisher. Add isXHTMLDocument() to WebDocument. https://bugs.webkit.org/show_bug.cgi?id=39887 * public/WebDocument.h: Add isXHTMLDocument(). * src/WebDocument.cpp: ditto. (WebKit::WebDocument::isXHTMLDocument): dittorama. 2010-05-27 Jeremy Orlow Reviewed by Steve Block. Add IndexedDB's IDBIndex https://bugs.webkit.org/show_bug.cgi?id=39850 Add WebKit layer for IDBIndex. * WebKit.gyp: * public/WebCommon.h: * public/WebIDBCallbacks.h: (WebKit::WebIDBCallbacks::onError): (WebKit::WebIDBCallbacks::onSuccess): * public/WebIDBDatabase.h: * public/WebIDBIndex.h: Added. (WebKit::WebIDBIndex::~WebIDBIndex): (WebKit::WebIDBIndex::name): (WebKit::WebIDBIndex::keyPath): (WebKit::WebIDBIndex::unique): * src/IDBCallbacksProxy.cpp: (WebCore::IDBCallbacksProxy::onSuccess): * src/IDBCallbacksProxy.h: * src/IDBDatabaseProxy.cpp: * src/IDBDatabaseProxy.h: * src/IDBIndexProxy.cpp: Added. (WebCore::IDBIndexProxy::create): (WebCore::IDBIndexProxy::IDBIndexProxy): (WebCore::IDBIndexProxy::~IDBIndexProxy): (WebCore::IDBIndexProxy::name): (WebCore::IDBIndexProxy::keyPath): (WebCore::IDBIndexProxy::unique): * src/IDBIndexProxy.h: Added. * src/WebIDBCallbacksImpl.cpp: (WebCore::WebIDBCallbacksImpl::onSuccess): * src/WebIDBCallbacksImpl.h: * src/WebIDBDatabaseImpl.cpp: * src/WebIDBDatabaseImpl.h: * src/WebIDBIndexImpl.cpp: Added. (WebKit::WebIDBIndexImpl::WebIDBIndexImpl): (WebKit::WebIDBIndexImpl::~WebIDBIndexImpl): (WebKit::WebIDBIndexImpl::name): (WebKit::WebIDBIndexImpl::keyPath): (WebKit::WebIDBIndexImpl::unique): * src/WebIDBIndexImpl.h: Added. 2010-05-28 Yury Semikhatsky Reviewed by Pavel Feldman. Web Inspector: check that ClientMessageLoopAdapter is not 0 before accessing its fileds from inspectedViewClosed method. It may be 0 if inspector frontend has not been open. https://bugs.webkit.org/show_bug.cgi?id=39876 * src/WebDevToolsAgentImpl.cpp: (WebKit::): 2010-05-27 Eric Uhrhane Reviewed by Adam Barth. Add v8 bindings for async DB API in workers https://bugs.webkit.org/show_bug.cgi?id=39145 * src/DatabaseObserver.cpp: We should check that we're on the context thread now, not the main thread. (WebCore::DatabaseObserver::databaseOpened): (WebCore::DatabaseObserver::databaseModified): (WebCore::DatabaseObserver::databaseClosed): 2010-05-27 Yury Semikhatsky Reviewed by Pavel Feldman. Resume script execution if user tries to navigate to another URL https://bugs.webkit.org/show_bug.cgi?id=39842 * src/WebDevToolsAgentImpl.cpp: (WebKit::): (WebKit::WebDevToolsAgentImpl::didNavigate): 2010-05-27 Zhenyao Mo Reviewed by Dimitri Glazkov. Implement lazy clearing of renderbuffers https://bugs.webkit.org/show_bug.cgi?id=36248 * src/WebGraphicsContext3DDefaultImpl.cpp: (WebKit::WebGraphicsContext3DDefaultImpl::reshape): Clear WebGL internal buffers. 2010-05-26 Roland Steiner Reviewed by NOBODY (layout test crashing fix). Bug 39811 - WebPluginListBuilderImpl::addMediaTypeToLastPlugin does not initialize pluginIndex https://bugs.webkit.org/show_bug.cgi?id=39811 Initialize the pluginIndex field (quick fix). Tests: covered by fast/dom/prototype-inheritance-2.html (crashed under Chromium Linux and Windows) * src/WebPluginListBuilderImpl.cpp: (WebKit::WebPluginListBuilderImpl::addMediaTypeToLastPlugin): 2010-05-26 Anders Carlsson Reviewed by Darin Adler. Clean up MimeClassInfo and PluginInfo https://bugs.webkit.org/show_bug.cgi?id=39700 Update for WebCore changes. * src/WebPluginListBuilderImpl.cpp: (WebKit::WebPluginListBuilderImpl::addPlugin): (WebKit::WebPluginListBuilderImpl::addMediaTypeToLastPlugin): (WebKit::WebPluginListBuilderImpl::addFileExtensionToLastMediaType): * src/WebPluginListBuilderImpl.h: (WebKit::WebPluginListBuilderImpl::WebPluginListBuilderImpl): 2010-05-26 Jeremy Orlow Unreviewed chromium build fix https://bugs.webkit.org/show_bug.cgi?id=39739 The backwards compat function needs to take in a WebSecurityOrigin instead of a WebString. * public/WebIndexedDatabase.h: (WebKit::WebIndexedDatabase::open): 2010-05-26 Jeremy Orlow Reviewed by Darin Fisher. Implement WebDOMStorageList and make WebIDBDatabase use it https://bugs.webkit.org/show_bug.cgi?id=39731 * WebKit.gyp: * public/WebDOMStringList.h: Added. (WebKit::WebDOMStringList::~WebDOMStringList): (WebKit::WebDOMStringList::WebDOMStringList): (WebKit::WebDOMStringList::operator=): * public/WebIDBDatabase.h: (WebKit::WebIDBDatabase::objectStores): * src/IDBDatabaseProxy.cpp: (WebCore::IDBDatabaseProxy::objectStores): * src/WebDOMStringList.cpp: Added. (WebKit::WebDOMStringList::reset): (WebKit::WebDOMStringList::assign): (WebKit::WebDOMStringList::append): (WebKit::WebDOMStringList::length): (WebKit::WebDOMStringList::item): (WebKit::WebDOMStringList::WebDOMStringList): (WebKit::WebDOMStringList::operator=): (WebKit::WebDOMStringList::operator WTF::PassRefPtr): * src/WebIDBDatabaseImpl.cpp: (WebKit::WebIDBDatabaseImpl::objectStores): * src/WebIDBDatabaseImpl.h: 2010-05-24 Jeremy Orlow Reviewed by Steve Block. Add IDBDatabase's attributes https://bugs.webkit.org/show_bug.cgi?id=39602 Plumbing to hook up the synchronous attribute requests on IDBDatabase. * public/WebIDBDatabase.h: (WebKit::WebIDBDatabase::name): (WebKit::WebIDBDatabase::description): (WebKit::WebIDBDatabase::version): (WebKit::WebIDBDatabase::objectStores): * src/IDBDatabaseProxy.cpp: (WebCore::IDBDatabaseProxy::name): (WebCore::IDBDatabaseProxy::description): (WebCore::IDBDatabaseProxy::version): (WebCore::IDBDatabaseProxy::objectStores): * src/IDBDatabaseProxy.h: * src/WebIDBDatabaseImpl.cpp: (WebKit::WebIDBDatabaseImpl::WebIDBDatabaseImpl): (WebKit::WebIDBDatabaseImpl::name): (WebKit::WebIDBDatabaseImpl::description): (WebKit::WebIDBDatabaseImpl::version): (WebKit::WebIDBDatabaseImpl::objectStores): * src/WebIDBDatabaseImpl.h: 2010-05-24 Dirk Pranke Reviewed by Dimitri Glazkov. Re-commit r58765 - it had been rolled out to see if it was causing a perf regression (in r59787 and r59789), but that does not seem to have been the case. * public/WebNotification.h: * src/WebNotification.cpp: (WebKit::WebNotification::dir): (WebKit::WebNotification::replaceId): 2010-05-25 Brett Wilson Reviewed by Darin Fisher. Remove obsolete code for Mac & Windows plugin creation in the Chromium port. This non-Windows code was to prevent a crash which we no longer seem to have, and it is preventing other types of plugins from working. https://bugs.webkit.org/show_bug.cgi?id=39684 * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::createPlugin): 2010-05-25 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Enable 3D_CANVAS, FILTERS, METER_TAG and PROGRESS_TAG https://bugs.webkit.org/show_bug.cgi?id=39652 3D_CANVAS and FILTERS have been enabled for Chromium tree build. They fix dozens of unexpected test results in a case of upstreaming build. Enable METER_TAG and PROGRESS_TAG too because they will be enabled in Chromium tree in the near future. * features.gypi: 2010-05-25 Vangelis Kokkevis Reviewed by Darin Fisher. The GraphicsContext that serves as a backing store for the root layer updates when doing accelerated compositing is now stored in LayerRendererChromium instead of the Layer itself. Updating code in WebViewImpl to reflect that change. https://bugs.webkit.org/show_bug.cgi?id=39640 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::updateRootLayerContents): 2010-05-24 Yury Semikhatsky Reviewed by Pavel Feldman. ScriptDebugServer is now implemented as DebugEventListener which means it doesn't depend on v8 debugging protocol, instead it uses ExecState to collect debugging info and pass it to the listeners. New implementation of ScriptDebugServer uses methods provided by client to dispatch its messages while JS is paused(previously the messages was dispatched in a callback passed to v8 along with DebugEventHandler). Pause command is dispatched on IO thread. https://bugs.webkit.org/show_bug.cgi?id=39594 * public/WebDevToolsAgentClient.h: (WebKit::WebDevToolsAgentClient::ClientMessageLoop::~ClientMessageLoop): (WebKit::WebDevToolsAgentClient::createClientMessageLoop): Returns an object that allows to run nested client message loop while script execution is paused on a breakpoint. * src/DebuggerAgentManager.cpp: (WebKit::DebuggerAgentManager::setMessageLoopDispatchHandler): * src/DebuggerAgentManager.h: * src/WebDevToolsAgentImpl.cpp: (WebKit::): (WebKit::WebDevToolsAgentImpl::~WebDevToolsAgentImpl): (WebKit::WebDevToolsAgentImpl::attach): * src/js/DebuggerScript.js: (debuggerScriptConstructor.DebuggerScript.getAfterCompileScript): (debuggerScriptConstructor.DebuggerScript.stepIntoStatement): (debuggerScriptConstructor.DebuggerScript.stepOverStatement): (debuggerScriptConstructor.DebuggerScript.stepOutOfFunction): * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): (else.devtools.InspectorBackendImpl.prototype.pauseInDebugger): Pause command should be handled on IO thread so that script can be paused even if it's in an infinite loop. 2010-05-25 Yury Semikhatsky Reviewed by Pavel Feldman. Add memory graph to Timeline overview pane. https://bugs.webkit.org/show_bug.cgi?id=37879 * src/js/devTools.css: (.timeline-category-statusbar-item input): 2010-05-24 Tony Chang Reviewed by David Levin. [chromium] Fix zoom tests after r60104 https://bugs.webkit.org/show_bug.cgi?id=39645 m_zoomFactor moved from Frame to FrameView. FrameView has separate notions of page zoom and text zoom. In my hurried compile fix, I assumed that m_zoomFactor was for page zoom, but it's not always. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setZoomLevel): 2010-05-24 Kent Tamura Unreviewed. Sort features. * features.gypi: 2010-05-24 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Import layout_test_helper for Windows https://bugs.webkit.org/show_bug.cgi?id=39581 * WebKit.gyp: Add a build rule for LayoutTestHelper.exe for Windows. 2010-05-24 Marcus Bulach Reviewed by Kent Tamura. [chromium] Adds WebGeolocationServiceMockImpl to remove public dependency on wtf/HashMap.h https://bugs.webkit.org/show_bug.cgi?id=39587 * public/WebGeolocationServiceMock.h: * src/WebGeolocationServiceMock.cpp: (WebKit::WebGeolocationServiceMockImpl::~WebGeolocationServiceMockImpl): (WebKit::WebGeolocationServiceMock::createWebGeolocationServiceMock): (WebKit::WebGeolocationServiceMockImpl::requestPermissionForFrame): (WebKit::WebGeolocationServiceMockImpl::attachBridge): (WebKit::WebGeolocationServiceMockImpl::detachBridge): 2010-05-24 Tony Chang Reviewed by Kent Tamura. [chromium] setup fonts on chromium linux DRT https://bugs.webkit.org/show_bug.cgi?id=39644 * WebKit.gyp: 2010-05-24 Tony Chang Not reviewed, build fix. Fix the chromium compile due to pageZoomFactor refactoring. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setZoomLevel): 2010-05-24 Darin Adler Reviewed by Eric Seidel. Move view-related functions from Frame to FrameView https://bugs.webkit.org/show_bug.cgi?id=39366 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setZoomLevel): Call setZoomLevel on FrameView. 2010-05-24 Anders Carlsson Attempt to fix the Chromium build. * src/WebViewImpl.cpp: 2010-05-21 Tony Chang Reviewed by Ojan Vafai. [chromium] if keydown is prevented, don't update the IME and clear the IME state https://bugs.webkit.org/show_bug.cgi?id=39475 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleCompositionEvent): 2010-05-23 Roman Gershman Reviewed by Darin Fisher. [Chromium] Suggestion popup is not closed when the view is scrolled. https://bugs.webkit.org/show_bug.cgi?id=38640 This bug appears on both Windows and Linux platforms. Mac OS, however handles window messages differently and closes popup menu in RenderWidgetHostViewMac::Destroy(). No tests were added because test_shell does not support suggestion popup. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::invalidateContentsForSlowScroll): (WebKit::ChromeClientImpl::scroll): 2010-05-23 Marcus Bulach Reviewed by Kent Tamura. [chromium] Adds Geolocation support to DumpRenderTree. https://bugs.webkit.org/show_bug.cgi?id=39440 Existing LayoutTests/fast/dom/Geolocation/* should pass. * public/WebGeolocationServiceMock.h: * src/WebGeolocationServiceMock.cpp: (WebKit::WebGeolocationServiceMock::setMockGeolocationPermission): (WebKit::WebGeolocationServiceMock::requestPermissionForFrame): (WebKit::WebGeolocationServiceMock::attachBridge): (WebKit::WebGeolocationServiceMock::detachBridge): 2010-05-22 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Link resources and load Ahem font for Windows https://bugs.webkit.org/show_bug.cgi?id=39473 * WebKit.gyp: Add net and webkit resources for Windows. Copy AHEM____.TTF to DumpRenderTree.exe directory. 2010-05-21 Steve Block Reviewed by Jeremy Orlow. Add DeviceOrientation and DeviceOrientationClient https://bugs.webkit.org/show_bug.cgi?id=39479 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2010-05-20 Viet-Trung Luu Reviewed by Darin Fisher. [Chromium] Don't rely on focused node to route mouse events to plugins. https://bugs.webkit.org/show_bug.cgi?id=39375 http://crbug.com/43935 On mouse down, do a hit test and check if a plugin was hit. If so, then save the node for future mouse events (until mouse up or capture lost). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::mouseDown): (WebKit::WebViewImpl::handleInputEvent): (WebKit::WebViewImpl::mouseCaptureLost): * src/WebViewImpl.h: Remove m_haveMouseCapture; add m_mouseCaptureNode. 2010-05-20 Dominic Mazzoni Reviewed by Darin Fisher. Add headingLevel and setFocused methods. https://bugs.webkit.org/show_bug.cgi?id=39238 * public/WebAccessibilityObject.h: * src/WebAccessibilityObject.cpp: (WebKit::WebAccessibilityObject::headingLevel): (WebKit::WebAccessibilityObject::setFocused): 2010-05-20 Zhenyao Mo Reviewed by Dimitri Glazkov. Map RGBA4/RGB5_A1 to RGBA and RGB565 to RGB in RenderbufferStorage https://bugs.webkit.org/show_bug.cgi?id=39077 * src/WebGraphicsContext3DDefaultImpl.cpp: (WebKit::WebGraphicsContext3DDefaultImpl::renderbufferStorage): Mapping the enums. 2010-05-20 Abhishek Arya Reviewed by Adam Barth. Added method to WebSecurityOrigin for invoking SecurityOrigin::canAccessPasswordManager. https://bugs.webkit.org/show_bug.cgi?id=38916 * public/WebSecurityOrigin.h: * src/WebSecurityOrigin.cpp: (WebKit::WebSecurityOrigin::canAccessPasswordManager): 2010-05-20 Darin Fisher Reviewed by Nate Chapin. [chromium] Provide a way to catch exceptions thrown while interacting with a NPObject via WebBindings methods. https://bugs.webkit.org/show_bug.cgi?id=39378 * public/WebBindings.h: * src/WebBindings.cpp: (WebKit::WebBindings::pushExceptionHandler): (WebKit::WebBindings::popExceptionHandler): 2010-05-20 Jian Li Reviewed by David Levin. Rename GenericWorkerTask.h to CrossThreadTask.h and move it to dom directory. https://bugs.webkit.org/show_bug.cgi?id=39135 * src/WebSharedWorkerImpl.cpp: * src/WebWorkerBase.cpp: * src/WebWorkerClientImpl.cpp: * src/WebWorkerImpl.cpp: 2010-05-20 Martin Robinson Reviewed by Ojan Vafai. Expose the editing behavior setting in DRT to test all editing code paths https://bugs.webkit.org/show_bug.cgi?id=38603 * public/WebSettings.h: (WebKit::WebSettings::): Added an enum for EditingBehavior types. * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setEditingBehavior): Added. * src/WebSettingsImpl.h: 2010-05-19 Vangelis Kokkevis Reviewed by Darin Fisher. Modifying WebViewImpl to support new hardware compositing for LayerChromium layers. https://bugs.webkit.org/show_bug.cgi?id=38783 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::paint): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::updateRootLayerContents): (WebKit::WebViewImpl::setRootLayerNeedsDisplay): 2010-05-19 Tony Chang Reviewed by Kent Tamura. [chromium] disable spelling suggestions if spellcheck=false https://bugs.webkit.org/show_bug.cgi?id=39402 This is the Chromium fix for bug 25639 that was fixed in the other ports in r59585. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2010-05-19 Darin Fisher Revert r59790 due to failing Chromium npruntime tests. * public/WebBindings.h: * src/WebBindings.cpp: 2010-05-19 Darin Fisher Reviewed by Nate Chapin. [chromium] Provide a way to catch exceptions thrown while interacting with a NPObject via WebBindings methods. https://bugs.webkit.org/show_bug.cgi?id=39378 * public/WebBindings.h: * src/WebBindings.cpp: (WebKit::WebBindings::pushExceptionHandler): (WebKit::WebBindings::popExceptionHandler): 2010-05-19 Dirk Pranke Try again to roll out r58765. * public/WebNotification.h: * src/WebNotification.cpp: 2010-05-19 Sheriff Bot Unreviewed, rolling out r59782. http://trac.webkit.org/changeset/59782 https://bugs.webkit.org/show_bug.cgi?id=39379 broke DRT build (Requested by dpranke on #webkit). * public/WebNotification.h: * src/WebNotification.cpp: (WebKit::WebNotification::dir): (WebKit::WebNotification::replaceId): 2010-05-19 Jian Li Reviewed by Darin Fisher. Remove obsolete ChromiumBridge code that routes FileSystem calls to WebKitClient. https://bugs.webkit.org/show_bug.cgi?id=39332 * public/WebKitClient.h: * src/ChromiumBridge.cpp: (WebCore::ChromiumBridge::fileExists): (WebCore::ChromiumBridge::deleteFile): (WebCore::ChromiumBridge::deleteEmptyDirectory): (WebCore::ChromiumBridge::getFileSize): (WebCore::ChromiumBridge::getFileModificationTime): (WebCore::ChromiumBridge::directoryName): (WebCore::ChromiumBridge::pathByAppendingComponent): (WebCore::ChromiumBridge::makeAllDirectories): (WebCore::ChromiumBridge::getAbsolutePath): (WebCore::ChromiumBridge::isDirectory): (WebCore::ChromiumBridge::filePathToURL): 2010-05-19 Marcus Bulach Reviewed by Steve Block. [chromium] Adds supports for layout tests using GeolocationServiceMock. https://bugs.webkit.org/show_bug.cgi?id=39081 Allows injection of GeolocationServiceMock factory. Tests: existing fast/dom/Geolocation/* * WebKit.gyp: * public/WebGeolocationServiceMock.h: Added. * src/WebGeolocationServiceMock.cpp: Added. (WebCore::GeolocationServiceChromiumMock::create): (WebCore::GeolocationServiceChromiumMock::GeolocationServiceChromiumMock): (WebCore::GeolocationServiceChromiumMock::startUpdating): (WebCore::GeolocationServiceChromiumMock::stopUpdating): (WebCore::GeolocationServiceChromiumMock::lastPosition): (WebCore::GeolocationServiceChromiumMock::lastError): (WebCore::GeolocationServiceChromiumMock::geolocationServicePositionChanged): (WebCore::GeolocationServiceChromiumMock::geolocationServiceErrorOccurred): (WebKit::WebGeolocationServiceMock::setMockGeolocationPosition): (WebKit::WebGeolocationServiceMock::setMockGeolocationError): 2010-05-17 Jeremy Orlow Reviewed by Darin Fisher. Hook Chromium's WebIndexedDatabaseImpl up to IndexedDatabaseImpl https://bugs.webkit.org/show_bug.cgi?id=39216 Web____Impl is for re-entering the WebKit layer from the browser layer. Thus the previous IDBCallbacksProxy was mis-named (and should have been WebIDBCallbacksImpl). This patch renames it and then implements the proper proxy (which is for going from WebCore to WebKit). Also change using security origin strings to using WebSecurityOrigin objects. This patch also implements the glue between WebIndexedDatabaseImpl and IndexedDatabaseImpl. * WebKit.gyp: * src/IDBCallbacksProxy.cpp: (WebCore::IDBCallbacksProxy::create): (WebCore::IDBCallbacksProxy::IDBCallbacksProxy): (WebCore::IDBCallbacksProxy::onError): (WebCore::IDBCallbacksProxy::onSuccess): * src/IDBCallbacksProxy.h: * src/IndexedDatabaseProxy.cpp: (WebCore::IndexedDatabaseProxy::open): * src/IndexedDatabaseProxy.h: * src/WebIDBCallbacksImpl.cpp: Added. (WebCore::WebIDBCallbacksImpl::WebIDBCallbacksImpl): (WebCore::WebIDBCallbacksImpl::~WebIDBCallbacksImpl): (WebCore::WebIDBCallbacksImpl::onError): (WebCore::WebIDBCallbacksImpl::onSuccess): * src/WebIDBCallbacksImpl.h: Added. * src/WebIDBDatabaseImpl.cpp: Added. (WebKit::WebIDBDatabaseImpl::WebIDBDatabaseImpl): (WebKit::WebIDBDatabaseImpl::~WebIDBDatabaseImpl): * src/WebIDBDatabaseImpl.h: Added. * src/WebIndexedDatabaseImpl.cpp: (WebKit::WebIndexedDatabaseImpl::WebIndexedDatabaseImpl): (WebKit::WebIndexedDatabaseImpl::open): * src/WebIndexedDatabaseImpl.h: 2010-05-18 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Fix a repaint issue and textarea tests https://bugs.webkit.org/show_bug.cgi?id=39054 * DEPS: Update to Chromium r47248 to use a fix for CommandLine assertion and textAreaResizeCorner.png * WebKit.gyp: Add textAreaResizeCorner.png as a Mac resource 2010-05-18 Tony Chang Reviewed by Ojan Vafai. [chromium] ignore IME events if the keydown event was prevented https://bugs.webkit.org/show_bug.cgi?id=37692 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleCompositionEvent): 2010-05-18 MORITA Hajime Reviewed by Kent Tamura. [Chromium] Windows: Determinate progress bar should have glossy overlay https://bugs.webkit.org/show_bug.cgi?id=39269 Changed WebThemeEngine::drawProgressBar() signature to delegate theme implementation detail to the engine. Chromium side will come to http://crbug.com/44430. No new tests, animation effect can be confirmed only manually. * public/WebThemeEngine.h: (WebKit::WebThemeEngine::paintProgressBar): * src/ChromiumBridge.cpp: (WebCore::ChromiumBridge::paintProgressBar): 2010-05-16 Mike Belshe Reviewed by Dimitri Glazkov. Add a flag to the ResourceResponse for tracking if a request was fetched via the TLS/Next-Protocol-Negotiation mechanism. Also cleaned up the style in ResourceResponse to group the flags together (and alphabetically) and hopefully improve readability of the file. https://bugs.webkit.org/show_bug.cgi?id=39078 * public/WebURLResponse.h: * src/WebURLResponse.cpp: (WebKit::WebURLResponse::wasNpnNegotiated): (WebKit::WebURLResponse::setWasNpnNegotiated): 2010-05-16 Eric Seidel Unreviewed, rolling out r59571. http://trac.webkit.org/changeset/59571 https://bugs.webkit.org/show_bug.cgi?id=39054 Broke Cr Win, but we didn't notice immediately due to https://bugs.webkit.org/show_bug.cgi?id=38926. It's possible that this didn't actually break Cr Win, but rather that bug 38926 necessitates a clean compile after this and sucessive checkins only produced a partial recompile and thus failed to build. * DEPS: * WebKit.gyp: * features.gypi: 2010-05-16 Sheriff Bot Unreviewed, rolling out r59574. http://trac.webkit.org/changeset/59574 https://bugs.webkit.org/show_bug.cgi?id=39176 Supposedly broke cr-win, but the errors seems somewhat unrelated (Requested by abarth on #webkit). * public/WebURLResponse.h: * src/WebURLResponse.cpp: 2010-05-16 Mike Belshe Reviewed by Dimitri Glazkov. Add a flag to the ResourceResponse for tracking if a request was fetched via the TLS/Next-Protocol-Negotiation mechanism. Also cleaned up the style in ResourceResponse to group the flags together (and alphabetically) and hopefully improve readability of the file. https://bugs.webkit.org/show_bug.cgi?id=39078 * public/WebURLResponse.h: * src/WebURLResponse.cpp: (WebKit::WebURLResponse::wasNpnNegotiated): (WebKit::WebURLResponse::setWasNpnNegotiated): 2010-05-16 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Fix repaint, WebGL, textarea tests https://bugs.webkit.org/show_bug.cgi?id=39054 * DEPS: Update to Chromium r47248 to use a fix for CommandLine assertion and textAreaResizeCorner.png * WebKit.gyp: Add textAreaResizeCorner.png as a Mac resource * features.gypi: Enable ENABLE_3D_CANVAS. 2010-05-15 Darin Fisher Reviewed by Adam Barth. [chromium] Expose element accessor on WebPluginContainer https://bugs.webkit.org/show_bug.cgi?id=39152 * public/WebPluginContainer.h: * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::element): * src/WebPluginContainerImpl.h: 2010-05-15 Jochen Eisinger Reviewed by Dmitry Titov. Implement canEstablishDatabase call for workers. https://bugs.webkit.org/show_bug.cgi?id=38742 * public/WebCommonWorkerClient.h: * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::canEstablishDatabase): * src/WebWorkerBase.cpp: (WebKit::WebWorkerBase::allowDatabase): (WebKit::WebWorkerBase::allowDatabaseTask): (WebKit::WebWorkerBase::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge): (WebKit::WebWorkerBase::AllowDatabaseMainThreadBridge::cancel): (WebKit::WebWorkerBase::AllowDatabaseMainThreadBridge::result): (WebKit::WebWorkerBase::AllowDatabaseMainThreadBridge::signalCompleted): (WebKit::WebWorkerBase::AllowDatabaseMainThreadBridge::didComplete): * src/WebWorkerBase.h: * src/WebWorkerClientImpl.h: (WebKit::WebWorkerClientImpl::allowDatabase): 2010-05-15 Jay Civelli Reviewed by Darin Fisher. [chromium] Adding a notification on WebViewClient when a new node gets focused. https://bugs.webkit.org/show_bug.cgi?id=38508 * public/WebViewClient.h: (WebKit::WebViewClient::focusedNodeChanged): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::focusedNodeChanged): 2010-05-15 Evan Stade Reviewed by Adam Barth. [chromium] "Check spelling in this field" context menu item always checked https://bugs.webkit.org/show_bug.cgi?id=39018 Initialize all POD members of WebContextMenuData in a default constructor. No tests because this code would need some major refactoring to unit test, and AFAICT it's not testable via layout tests. See note at top of getCustomMenuFromDefaultItems. * public/WebContextMenuData.h: (WebKit::WebContextMenuData::WebContextMenuData): * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2010-05-14 Darin Fisher Reviewed by Dimitri Glazkov. [chromium] Remove temporary relative include paths https://bugs.webkit.org/show_bug.cgi?id=38776 * public/WebPasswordAutocompleteListener.h: * src/FrameLoaderClientImpl.h: * src/PlatformMessagePortChannel.h: * src/WebAnimationControllerImpl.h: * src/WebBindings.cpp: * src/WebDataSourceImpl.h: * src/WebDevToolsAgentPrivate.h: * src/WebFileChooserCompletionImpl.h: * src/WebFrameImpl.h: * src/WebInputEventConversion.h: * src/WebPluginContainerImpl.h: * src/WebPluginLoadObserver.h: * src/WebPopupMenuImpl.h: * src/WebSettingsImpl.h: * src/WebViewImpl.h: * src/WebWorkerClientImpl.h: * src/WrappedResourceRequest.h: * src/WrappedResourceResponse.h: 2010-05-14 Anton Muhin Reviewed by Darin Fisher. [Chromium] Consider implementing addOriginAccessWhitelistEntry method https://bugs.webkit.org/show_bug.cgi?id=37578 Remove deprecated methods. * public/WebSecurityPolicy.h: * src/WebSecurityPolicy.cpp: 2010-05-14 Kenneth Russell Reviewed by Darin Adler. Rename WebGLArray types to TypedArray types https://bugs.webkit.org/show_bug.cgi?id=39091 Extended functionality of do-webcore-rename script and used it to rename the WebGLArray types to the TypedArray naming convention. The only source files which were touched by hand, and which are being manually reviewed, are: WebCore/page/DOMWindow.idl WebCore/bindings/generic/RuntimeEnabledFeatures.h (script's changes undone) WebKit/WebCore/bindings/js/JSDOMWindowCustom.cpp WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp These only needed to be touched to update the aliases between the WebGLArray and TypedArray names introduced in bug 39036. (It was not feasible to have do-webcore-rename handle this as it would introduce circular renamings.) These aliases will be removed in roughly a month once existing WebGL content has been updated. No new tests; covered under existing WebGL tests. Updated constructed-objects-prototypes and prototype-inheritance-2 tests. Ran all layout tests in Safari and all WebGL tests in Chromium. * src/GraphicsContext3D.cpp: (WebCore::GraphicsContext3DInternal::bufferData): (WebCore::GraphicsContext3DInternal::bufferSubData): 2010-05-14 Jochen Eisinger Reviewed by Eric Seidel. Make ImageDiff depend on webkit (again). https://bugs.webkit.org/show_bug.cgi?id=39000 * WebKit.gyp: 2010-05-14 James Simonsen Reviewed by Darin Fisher. [chromium] Expose volume through WebMediaPlayerClient https://bugs.webkit.org/show_bug.cgi?id=38947 * public/WebMediaPlayerClient.h: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::volume): * src/WebMediaPlayerClientImpl.h: 2010-05-14 Tony Gentilcore Reviewed by Darin Fisher. [chromium] Update chromium port to send/receive cached metadata https://bugs.webkit.org/show_bug.cgi?id=38665 * public/WebKitClient.h: (WebKit::WebKitClient::cacheMetadata): * public/WebURLLoaderClient.h: (WebKit::WebURLLoaderClient::didReceiveCachedMetadata): * public/WebURLResponse.h: * src/ChromiumBridge.cpp: (WebCore::ChromiumBridge::cacheMetadata): * src/ResourceHandle.cpp: (WebCore::ResourceHandleInternal::didReceiveCachedMetadata): (WebCore::ResourceHandle::cacheMetadata): * src/WebURLResponse.cpp: (WebKit::WebURLResponse::responseTime): (WebKit::WebURLResponse::setResponseTime): 2010-05-13 Tony Chang Reviewed by Kent Tamura. [chromium] enable DRT build in chromium (for the last time) https://bugs.webkit.org/show_bug.cgi?id=39109 * WebKit.gyp: 2010-05-13 Pavel Feldman Reviewed by Yury Semikhatsky. Web Inspector: main inspector toolbar takes noticeable time to expand. https://bugs.webkit.org/show_bug.cgi?id=39013 * src/js/DevTools.js: (devtools.domContentLoaded): 2010-05-12 Hans Wennborg Reviewed by Jeremy Orlow. [Chromium] Remove transitional functions from WebStorageNamespace and WebViewClient. https://bugs.webkit.org/show_bug.cgi?id=38985 These functions are no longer called as of Chromium revision 47020. This is part of resolving http://crbug.com/42740 * public/WebStorageNamespace.h: * public/WebViewClient.h: (WebKit::WebViewClient::createSessionStorageNamespace): 2010-05-12 Tony Chang Reviewed by Kent Tamura. [chromium] disable DRT in chromium again https://bugs.webkit.org/show_bug.cgi?id=39049 * WebKit.gyp: 2010-05-12 John Abd-El-Malek Reviewed by Darin Fisher. [chromium] Disable WebScrollbarImpl's scrollbar if it's not needed https://bugs.webkit.org/show_bug.cgi?id=39025 * src/WebScrollbarImpl.cpp: (WebKit::WebScrollbarImpl::setLocation): (WebKit::WebScrollbarImpl::setDocumentSize): 2010-05-12 Dumitru Daniliuc Reviewed by Dimitri Glazkov. Removing the unnecessary dirfd parameter. https://bugs.webkit.org/show_bug.cgi?id=38869 * public/WebKitClient.h: (WebKit::WebKitClient::databaseOpenFile): * src/ChromiumBridge.cpp: (WebCore::ChromiumBridge::databaseOpenFile): 2010-05-12 Jeremy Orlow Reviewed by Steve Block. [Chromium] Pass the origin parameter for WebIndexedDatabase::open https://bugs.webkit.org/show_bug.cgi?id=38983 * public/WebIndexedDatabase.h: * src/IndexedDatabaseProxy.cpp: (WebCore::IndexedDatabaseProxy::open): * src/WebIndexedDatabaseImpl.cpp: (WebKit::WebIndexedDatabaseImpl::open): * src/WebIndexedDatabaseImpl.h: 2010-05-10 yael aharon Reviewed by Darin Adler. Support control attribute of HTMLLabelElement https://bugs.webkit.org/show_bug.cgi?id=38688 Renamed HTMLLabelElement::correspondingControl to HTMLLabelElement::control * src/WebLabelElement.cpp: (WebKit::WebLabelElement::correspondingControl): 2010-05-12 MORITA Hajime Reviewed by Kent Tamura. [Chromium] Support HTML5 element on Windows. https://bugs.webkit.org/show_bug.cgi?id=37308 Extended ChromiumBridge to handle progress bar painting, and added delegations to it. No new tests. Test cases should be shared with existing ones for progress element. Expectaions will be added after PROGRESS_TAG is enabled on Chromium tree. * public/WebThemeEngine.h: (WebKit::WebThemeEngine::paintProgressBar): * src/ChromiumBridge.cpp: (WebCore::ChromiumBridge::paintProgressBar): 2010-05-12 Marcus Bulach Reviewed by Steve Block. Attaches the geolocation bridge later on startUpdating(). This prevents a page requesting permission when it has just accessed navigator.geolocation (without calling navigator.geolocation.getCurrentPosition/watchPosition). Note: when Geolocation::haveSuitableCachedPosition(), WebGeolocationServiceBridgeImpl::startUpdating() is not called, so we attach the bridge if needed at requestGeolocationPermissionForFrame(). https://bugs.webkit.org/show_bug.cgi?id=38323 http://crbug.com/42789 * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::requestGeolocationPermissionForFrame): * src/WebGeolocationServiceBridgeImpl.cpp: (WebKit::WebGeolocationServiceBridgeImpl::attachBridgeIfNeeded): (WebKit::WebGeolocationServiceBridgeImpl::setLastPosition): 2010-05-12 Tony Chang Reviewed by Kent Tamura. [chromium] add DRT back to the chromium build https://bugs.webkit.org/show_bug.cgi?id=38978 * WebKit.gyp: 2010-05-11 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Apply recent changes of test_shell to DRT https://bugs.webkit.org/show_bug.cgi?id=38895 * DEPS: Update Chromium revision to use the recent webkit_support change. * WebKit.gyp: Add JavaScriptCore/wtf to 'include' section. * src/WebGraphicsContext3D.cpp: Remove ENABLE(3D_CANVAS) to provide an empty implementation of WebGraphicsContext3D::createDefault(). 2010-05-11 Avi Drissman Reviewed by Darin Fisher. [Chromium] Pipe RTL info into WebPopupMenuInfo https://bugs.webkit.org/show_bug.cgi?id=38749 * public/WebPopupMenuInfo.h: * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::getPopupMenuInfo): 2010-05-11 David Holloway Reviewed by Darin Fisher. [chromium] Add size method to WebInputElement class, providing same data as HTMLInputElement::size(). During form AutoFill Chromium needs to access the input element's size attribute in aid of form matching and filling heuristics. https://bugs.webkit.org/show_bug.cgi?id=38825 * public/WebInputElement.h: * src/WebInputElement.cpp: (WebKit::WebInputElement::size): 2010-05-11 Nate Chapin Reviewed by Adam Barth. Crash fix in WebPageSerializerImpl::serialize(). https://bugs.webkit.org/show_bug.cgi?id=38543 The relevant test is a test_shell_test in src.chromium.org, because neither DRT nor the Chromium webkit unit tests can currently cover the serializer functionality. * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::serialize): Check each frame's url before using it, since they are not guaranteed to be valid (e.g., if the frame was treated as a download). 2010-05-11 Jian Li Reviewed by Dmitry Titov. Expose FileReader interface. https://bugs.webkit.org/show_bug.cgi?id=38609 * features.gypi: turn on building FileReader for Chromium. 2010-05-10 Tony Chang Reviewed by Kent Tamura. [chromium] don't build DRT in chromium checkouts due to a circular gyp dependency https://bugs.webkit.org/show_bug.cgi?id=38889 * WebKit.gyp: 2010-05-10 John Abd-El-Malek Reviewed by Darin Fisher. [chromium] Add WebKitScrollbar interface to allow Chromium code to reuse the scrollbar code https://bugs.webkit.org/show_bug.cgi?id=38854 * public/WebScrollbar.h: Added. (WebKit::WebScrollbar::): (WebKit::WebScrollbar::~WebScrollbar): * public/WebScrollbarClient.h: Added. * public/WebThemeEngine.h: * src/AssertMatchingEnums.cpp: * src/WebScrollbarImpl.cpp: Added. (WebKit::WebScrollbar::create): (WebKit::WebScrollbar::defaultThickness): (WebKit::WebScrollbarImpl::WebScrollbarImpl): (WebKit::WebScrollbarImpl::~WebScrollbarImpl): (WebKit::WebScrollbarImpl::setLocation): (WebKit::WebScrollbarImpl::value): (WebKit::WebScrollbarImpl::setValue): (WebKit::WebScrollbarImpl::setDocumentSize): (WebKit::WebScrollbarImpl::scroll): (WebKit::WebScrollbarImpl::paint): (WebKit::WebScrollbarImpl::handleInputEvent): (WebKit::WebScrollbarImpl::onMouseDown): (WebKit::WebScrollbarImpl::onMouseUp): (WebKit::WebScrollbarImpl::onMouseMove): (WebKit::WebScrollbarImpl::onMouseLeave): (WebKit::WebScrollbarImpl::onMouseWheel): (WebKit::WebScrollbarImpl::onKeyDown): (WebKit::WebScrollbarImpl::valueChanged): (WebKit::WebScrollbarImpl::invalidateScrollbarRect): (WebKit::WebScrollbarImpl::isActive): (WebKit::WebScrollbarImpl::scrollbarCornerPresent): (WebKit::WebScrollbarImpl::getTickmarks): * src/WebScrollbarImpl.h: Added. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::scrollViewWithKeyboard): (WebKit::WebViewImpl::mapKeyCodeForScroll): * src/WebViewImpl.h: 2010-05-10 Tony Gentilcore Reviewed by Adam Barth. Provide mechanism to cache metadata for a resource https://bugs.webkit.org/show_bug.cgi?id=37874 * src/ResourceHandle.cpp: (WebCore::ResourceHandle::cacheMetadata): 2010-05-10 Hans Wennborg Reviewed by Jeremy Orlow. [Chromium] Add quota parameter to WebViewClient::createSessionStorageNamespace() https://bugs.webkit.org/show_bug.cgi?id=38750 Put a per-origin quota on session storage since it is using memory in the browser process, and should not be allowed to grow arbitrarily large. See also http://trac.webkit.org/changeset/58828. * public/WebStorageNamespace.h: * public/WebViewClient.h: (WebKit::WebViewClient::createSessionStorageNamespace): * src/StorageNamespaceProxy.cpp: (WebCore::StorageNamespace::sessionStorageNamespace): 2010-05-10 Jeremy Orlow Reviewed by Nate Chapin. Change IndexedDB to use events instead of callbacks https://bugs.webkit.org/show_bug.cgi?id=38594 Change the glue here to match the changes I made in WebCore. * WebKit.gyp: * public/WebIDBCallbacks.h: * public/WebIndexedDatabase.h: * src/IDBCallbacksProxy.cpp: Added. (WebCore::IDBCallbacksProxy::IDBCallbacksProxy): (WebCore::IDBCallbacksProxy::~IDBCallbacksProxy): (WebCore::IDBCallbacksProxy::onError): (WebCore::IDBCallbacksProxy::onSuccess): * src/IDBCallbacksProxy.h: * src/IndexedDatabaseProxy.cpp: (WebCore::IndexedDatabaseProxy::open): * src/IndexedDatabaseProxy.h: * src/WebIndexedDatabaseImpl.cpp: (WebKit::WebIndexedDatabaseImpl::open): * src/WebIndexedDatabaseImpl.h: 2010-05-08 Jens Alfke Reviewed by Darin Fisher. [chromium] WebFrame::registerPasswordListener shouldn't assert on duplicate listener. https://bugs.webkit.org/show_bug.cgi?id=38765 * public/WebFrame.h: (WebKit::WebFrameImpl::registerPasswordListener): Changed return type to bool. Updated comment. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::registerPasswordListener): Return false instead of asserting. * src/WebFrameImpl.h: (WebKit::WebFrameImpl::registerPasswordListener): Changed return type to bool. 2010-05-08 Michael Nordman Reviewed by Dmitry Titov. Add an additional parameter to the WebSharedWorker::startWorkerContext method to indicate which appcache the shared worker script resource was loaded from, and provide that value when calling out to chrome via this interface. https://bugs.webkit.org/show_bug.cgi?id=38605 I'm keeping the old method around until patches can land in both repositories that make the old method obsolete and unneeded. There's a FIXME for that. Also somewhat related but independent change to propagate the runtime enabled flag thru to the page settings instance used by the 'shadow page'. * public/WebSharedWorker.h: Add the new param (but keep the old interface around for now too) (WebKit::WebSharedWorker::startWorkerContext): * src/SharedWorkerRepository.cpp: Provide the value when calling out to chrome. (WebCore::SharedWorkerScriptLoader::notifyFinished): * src/WebSharedWorkerImpl.cpp: (WebKit::WebSharedWorkerImpl::startWorkerContext): * src/WebSharedWorkerImpl.h: * src/WebWorkerBase.cpp: Propagate runtime enabled flag thru to the page settings. (WebKit::WebWorkerBase::initializeLoader): 2010-05-07 Darin Fisher Fix build bustage. Update to Chromium code that avoids a bad dependency from net/ on chrome/. * DEPS: 2010-05-07 Darin Fisher Fix build bustage. Update to Chromium code that no longer uses deprecated methods. * DEPS: 2010-05-07 Darin Fisher Reviewed by Dimitri Glazkov. [chromium] clear out more deprecated methods that are no longer used https://bugs.webkit.org/show_bug.cgi?id=38702 * public/WebFrame.h: * public/WebNode.h: * src/WebFrameImpl.cpp: * src/WebFrameImpl.h: * src/WebNode.cpp: 2010-05-07 Finnur Thorarinsson Reviewed by Dimitri Glazkov. [chromium]: Fixing Find in page crash on sites.google.com https://bugs.webkit.org/show_bug.cgi?id=38591 setMarkerActive should not try to set a collapsed marker as active. This can happen when you Edit a Sites page after doing a Find operation and then you press FindNext. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::setMarkerActive): 2010-05-06 Kent Tamura Reviewed by Dimitri Glazkov. [DRT/Chromium] Add support for resources on Mac https://bugs.webkit.org/show_bug.cgi?id=38637 * DEPS: Check out tools/data_pack. 2010-05-06 Pavel Feldman Reviewed by Timothy Hatcher. Chromium Dev Tools: Large toolbar icons flash when dev tools is opened in docked mode. https://bugs.webkit.org/show_bug.cgi?id=38631 * src/js/DevTools.js: (devtools.domContentLoaded): 2010-05-06 Adam Barth Reviewed by Eric Seidel. drop support for sessionStorage in sandbox iframes https://bugs.webkit.org/show_bug.cgi?id=38151 Update client of sessionStorage to handle exceptions. * src/StorageAreaProxy.cpp: (WebCore::StorageAreaProxy::storageEvent): 2010-05-05 Darin Fisher Reviewed by Dimitri Glazkov. [chromium] clear out deprecated methods that are no longer used https://bugs.webkit.org/show_bug.cgi?id=38610 * public/WebFormElement.h: * public/WebInputElement.h: * public/WebKitClient.h: * public/WebView.h: * public/WebViewClient.h: (WebKit::WebViewClient::createPopupMenu): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): * src/WebFormElement.cpp: * src/WebInputElement.cpp: (WebKit::WebInputElement::setSelectionRange): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::hideSuggestionsPopup): * src/WebViewImpl.h: 2010-05-05 Hans Wennborg Reviewed by Jeremy Orlow. [chromium] Add quota parameter to WebStorageNamespace::createSessionStorageNamespace https://bugs.webkit.org/show_bug.cgi?id=38589 * public/WebStorageNamespace.h: (WebKit::WebStorageNamespace::createSessionStorageNamespace): * src/WebStorageNamespaceImpl.cpp: (WebKit::WebStorageNamespace::createSessionStorageNamespace): 2010-05-05 Stuart Morgan Reviewed by Darin Fisher. Update the plugin container's setFocus implementation to pass the new boolean argument to the next layer. https://bugs.webkit.org/show_bug.cgi?id=37961 * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::setFocus): * src/WebPluginContainerImpl.h: 2010-05-04 Vangelis Kokkevis Reviewed by Darin Fisher. Provide an API for querying whether a WebWidget is using gpu accelerated compositing. Also changed: isAcceleratedCompositing to: isAcceleratedCompositingActive. https://bugs.webkit.org/show_bug.cgi?id=38220 * public/WebWidget.h: * src/WebPopupMenuImpl.h: (WebKit::WebPopupMenuImpl::isAcceleratedCompositingActive): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::paint): (WebKit::WebViewImpl::isAcceleratedCompositingActive): (WebKit::WebViewImpl::setRootGraphicsLayer): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::updateRootLayerContents): * src/WebViewImpl.h: 2010-04-29 John Gregg Reviewed by Dmitry Titov. notifications should have dir and replaceId attributes https://bugs.webkit.org/show_bug.cgi?id=38336 * public/WebNotification.h: * src/WebNotification.cpp: (WebKit::WebNotification::dir): (WebKit::WebNotification::replaceId): 2010-05-04 Jay Civelli Reviewed by David Levin. [chromium] Make the select popup not close on right/middle clicks. https://bugs.webkit.org/show_bug.cgi?id=38473 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::mouseDown): 2010-05-03 Abhishek Arya Reviewed by Adam Barth. Add support for controlling clipboard access from javascript. Clipboard access from javascript is disabled by default. https://bugs.webkit.org/show_bug.cgi?id=27751 * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setJavaScriptCanAccessClipboard): * src/WebSettingsImpl.h: 2010-05-03 Jens Alfke Reviewed by Darin Fisher. [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient https://bugs.webkit.org/show_bug.cgi?id=38397 No tests (functionality is exposed only through native WebKit API.) * public/WebFrameClient.h: (WebKit::WebFrameClient::willSendSubmitEvent): New empty method * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchWillSendSubmitEvent): Delegate to client * src/FrameLoaderClientImpl.h: 2010-05-02 Michael Nordman Reviewed by Dmitry Titov. Define two new ResourceRequestBase TargetTypes for worker and shared worker main resources. Use the new target types where appropiate. Add logic to marshal the target type specified by requests initiated on a background worker thread. https://bugs.webkit.org/show_bug.cgi?id=38295 * src/SharedWorkerRepository.cpp: use TargetIsSharedWorker (WebCore::SharedWorkerScriptLoader::SharedWorkerScriptLoader): 2010-05-02 Rafael Weinstein Reviewed by Darin Fisher. Include WebWindowFeatures in call to WebViewClient::createView. https://bugs.webkit.org/show_bug.cgi?id=38301 * public/WebViewClient.h: (WebKit::WebViewClient::createView): * public/WebWindowFeatures.h: * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::createWindow): 2010-05-01 Evan Stade Reviewed by David Levin [chromium] Skia needs to fade DragImages https://bugs.webkit.org/show_bug.cgi?id=38008 * tests/DragImageTest.cpp: (DragImageTest.CreateDragImage): test that the drag image is a deep copy 2010-04-30 Jian Li Reviewed by Darin Fisher. [chromium] Add WebFileSystem interface and hook up with all FileSystem methods. https://bugs.webkit.org/show_bug.cgi?id=38228 * WebKit.gyp: * public/WebFileSystem.h: Added. * public/WebKitClient.h: (WebKit::WebKitClient::fileSystem): * src/ChromiumBridge.cpp: (WebCore::ChromiumBridge::fileExists): (WebCore::ChromiumBridge::deleteFile): (WebCore::ChromiumBridge::deleteEmptyDirectory): (WebCore::ChromiumBridge::getFileSize): (WebCore::ChromiumBridge::getFileModificationTime): (WebCore::ChromiumBridge::directoryName): (WebCore::ChromiumBridge::pathByAppendingComponent): (WebCore::ChromiumBridge::makeAllDirectories): (WebCore::ChromiumBridge::getAbsolutePath): (WebCore::ChromiumBridge::isDirectory): (WebCore::ChromiumBridge::filePathToURL): (WebCore::ChromiumBridge::openFile): (WebCore::ChromiumBridge::closeFile): (WebCore::ChromiumBridge::seekFile): (WebCore::ChromiumBridge::truncateFile): (WebCore::ChromiumBridge::readFromFile): (WebCore::ChromiumBridge::writeToFile): 2010-04-29 Jeremy Orlow Reviewed by Darin Fisher. Change StorageEvent.uri to StorageEvent.url to match the spec https://bugs.webkit.org/show_bug.cgi?id=38331 Get rid of a stale FIXME and combine 2 lines that needn't be split. * src/StorageEventDispatcherImpl.cpp: (WebCore::StorageEventDispatcherImpl::dispatchStorageEvent): 2010-04-29 Anton Muhin Reviewed by Darin Fisher. [Chromium] Consider implementing addOriginAccessWhitelistEntry method http://trac.webkit.org/changeset/57537 introduced a new method to manage whitelisting of origins. Expose this method in Chromium's bridge. https://bugs.webkit.org/show_bug.cgi?id=37578 * public/WebSecurityPolicy.h: Start renaming (keep old function names) and add new removeOriginAccessWhitelistEntry method * src/WebSecurityPolicy.cpp: Start renaming (keep old function names) and add new removeOriginAccessWhitelistEntry method 2010-04-29 Sheriff Bot Unreviewed, rolling out r58498. http://trac.webkit.org/changeset/58498 https://bugs.webkit.org/show_bug.cgi?id=38332 "Broke a bunch of tests on Chromium canaries" (Requested by dglazkov on #webkit). * public/WebViewClient.h: (WebKit::WebViewClient::createView): * public/WebWindowFeatures.h: * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::createWindow): 2010-04-29 Adam Langley Unreviewed, DEPS roll. WebKit's r58517 needs OTS's r30 which was rolled into Chromium in r45932. * DEPS: Use Chromium r45932. 2010-04-29 Rafael Weinstein Reviewed by Darin Fisher. Include WindowFeatures in call to WebViewClient::createView. https://bugs.webkit.org/show_bug.cgi?id=38301 * public/WebViewClient.h: (WebKit::WebViewClient::createView): * public/WebWindowFeatures.h: * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::createWindow): 2010-04-29 Garret Kelly Reviewed by Darin Fisher. Expose the RuntimeFeature for touch events through the WebRuntimeFeatures mechanism. https://bugs.webkit.org/show_bug.cgi?id=37486 * public/WebRuntimeFeatures.h: * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableTouch): (WebKit::WebRuntimeFeatures::isTouchEnabled): 2010-04-29 Zhenyao Mo Reviewed by Dimitri Glazkov. Remove the unnecessary texImage2D function with Image as input in GraphicsContext3D https://bugs.webkit.org/show_bug.cgi?id=38235 * src/GraphicsContext3D.cpp: Remove tex*image implementation with Image input. 2010-04-28 Pavel Feldman Reviewed by Yury Semikhatsky. Web Inspector: Allow editing script resources when resource tracking is enabled. http://bugs.webkit.org/show_bug.cgi?id=38269 * src/js/DebuggerAgent.js: * src/js/InspectorControllerImpl.js: (.devtools.InspectorBackendImpl.prototype.setBreakpoint): (.devtools.InspectorBackendImpl.prototype.editScriptSource): 2010-04-28 Darin Fisher Reviewed by David Levin. [Chromium] callOnMainThread should equate to MessageLoop::PostTask https://bugs.webkit.org/show_bug.cgi?id=38276 * public/WebKitClient.h: (WebKit::WebKitClient::callOnMainThread): * src/ChromiumThreading.cpp: (WTF::ChromiumThreading::callOnMainThread): 2010-04-27 John Abd-El-Malek Reviewed by Darin Fisher. Make WebThemeEngine::paint take a const ref of ExtraParams https://bugs.webkit.org/show_bug.cgi?id=38242 * public/WebThemeEngine.h: (WebKit::WebThemeEngine::paint): 2010-04-28 Andrey Kosyakov Reviewed by Pavel Feldman. Fixed passing breakpoints to V8. https://bugs.webkit.org/show_bug.cgi?id=38266 * src/js/InspectorControllerImpl.js: (.devtools.InspectorBackendImpl.prototype.setBreakpoint): 2010-04-28 Yury Semikhatsky Reviewed by Pavel Feldman. Support pause on exceptions in v8 implementation of ScriptDebugServer. https://bugs.webkit.org/show_bug.cgi?id=38205 * src/js/DebuggerScript.js: (debuggerScriptConstructor.DebuggerScript.getScripts): (debuggerScriptConstructor.DebuggerScript.pauseOnExceptionsState): (debuggerScriptConstructor.DebuggerScript.setPauseOnExceptionsState): (debuggerScriptConstructor.DebuggerScript._v8ToWebkitLineNumber): (debuggerScriptConstructor): 2010-04-27 Jens Alfke Reviewed by Eric Seidel. [chromium] Fix bug that prevents autosave of forms without action attribute https://bugs.webkit.org/show_bug.cgi?id=38014 Change is in the Chromium WebKit API so it can't be tested with a JS-based layout test. It needs a native unit test, which would go in the Chromium repo, not WebKit. * src/WebPasswordFormData.cpp: (WebKit::WebPasswordFormData::WebPasswordFormData): Set correct URL if action is NULL 2010-04-27 Michael Nordman Reviewed by Dmitry Titov. [Chromium] Add two things to the webkit API to support appcaches in workers. 1) WebURLRequest TargetTypes for worker and shared worker main resources. 2) Factory method on class WebCommonWorkerClient to createApplicationCacheHost() for the associated worker. https://bugs.webkit.org/show_bug.cgi?id=38147 * public/WebCommonWorkerClient.h: add the factory method * public/WebURLRequest.h: add the TargetTypes * src/WebWorkerBase.cpp: call the embedder's factory when needed (WebKit::WebWorkerBase::didCreateDataSource) (WebKit::WebWorkerBase::createApplicationCacheHost) * src/WebWorkerBase.h: ditto * src/WebWorkerClientImpl.h: add a stub impl of the factory method (WebKit::WebWorkerClientImpl::createApplicationCacheHost): 2010-04-27 Kent Tamura Reviewed by Shinichiro Hamaji. [DRT/Chromium] Enable Windows project generation https://bugs.webkit.org/show_bug.cgi?id=38103 - Avoid platform.system(), which causes a crash with python.exe in depot_tools. Use sys.platform instead. - Process DumpRenderTree.gyp on all platforms. * gyp_webkit: 2010-04-27 Jay Civelli Reviewed by Darin Fisher. Makes clicking a select element close its associated popup if it is open. https://bugs.webkit.org/show_bug.cgi?id=38105 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::mouseDown): 2010-04-27 Jay Civelli Reviewed by Darin Fisher. [chromium] Merged the WebView public method to close suggestion popups into a single method to close all popups (select and suggestions). That ensures select popups are closed when the browser window is moved or resized. https://bugs.webkit.org/show_bug.cgi?id=37837 * public/WebView.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::hidePopups): (WebKit::WebViewImpl::hideSuggestionsPopup): * src/WebViewImpl.h: 2010-04-27 John Abd-El-Malek Reviewed by Darin Adler. Remove unnecessary header now that Chrome is updated https://bugs.webkit.org/show_bug.cgi?id=38211 * public/win/WebThemeEngine.h: Removed. 2010-04-27 Jens Alfke Reviewed by Darin Fisher. [Chromium] Add some notifications and an accessor to WebKit API https://bugs.webkit.org/show_bug.cgi?id=37625 * public/WebFrameClient.h: (WebKit::WebFrameClient::didFirstLayout): (WebKit::WebFrameClient::didFirstVisuallyNonEmptyLayout): * public/WebNode.h: * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchDidFirstLayout): (WebKit::FrameLoaderClientImpl::dispatchDidFirstVisuallyNonEmptyLayout): * src/WebElement.cpp: * src/WebNode.cpp: (WebKit::WebNode::hasNonEmptyBoundingBox): 2010-04-27 Darin Fisher Reviewed by Dimitri Glazkov. [Chromium] Remove deprecated form of didChangeLocationWithinPage https://bugs.webkit.org/show_bug.cgi?id=38178 * public/WebFrameClient.h: * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchDidNavigateWithinPage): 2010-04-27 Evan Martin Reviewed by David Levin. [chromium] bold bengali text not rendered properly on Linux Roll forward Chrome DEPS so we get new Skia API. * DEPS: update Chrome to r45696. 2010-04-27 Andrey Kosyakov Reviewed by Pavel Feldman. Restore breakpoints associated with script's URL once script is parsed. https://bugs.webkit.org/show_bug.cgi?id=38132 * src/js/DebuggerAgent.js: (devtools.DebuggerAgent.prototype.initUI): (devtools.DebuggerAgent.prototype.addBreakpoint): (devtools.DebuggerAgent.prototype.addScriptInfo_): (devtools.DebuggerAgent.prototype.restoreBreakpoints_): (devtools.BreakpointInfo): (devtools.BreakpointInfo.prototype.enabled): (devtools.BreakpointInfo.prototype.condition): 2010-04-27 Pavel Feldman Reviewed by Yury Semikhatsky. Chrome Dev Tools: Further beautify themes. https://bugs.webkit.org/show_bug.cgi?id=38187 * src/js/DevTools.js: (WebInspector.setToolbarColors): * src/js/devTools.css: (body.platform-windows #toolbar, body.platform-windows.inactive #toolbar): 2010-04-26 John Abd-El-Malek Reviewed by Darin Fisher. [chromium] Prepare to making WebThemeEngine cross-platform https://bugs.webkit.org/show_bug.cgi?id=38077 * WebKit.gyp: * public/WebThemeEngine.h: Added. * public/win/WebThemeEngine.h: 2010-04-26 Darin Fisher Reviewed by Adam Barth. [Chromium] Crash after calling window.print() on a window object that has been closed. https://bugs.webkit.org/show_bug.cgi?id=38148 It is unfortunately not possible to write a layout test for this as the crash occurs in an API that is only called by Chrome while showing a print dialog. * src/WebViewImpl.cpp: (WebKit::WebView::willEnterModalLoop): (WebKit::WebView::didExitModalLoop): 2010-04-25 Sam Weinig Reviewed by Maciej Stachowiak. Fix for https://bugs.webkit.org/show_bug.cgi?id=38097 Disentangle initializing the main thread from initializing threading * src/WebKit.cpp: (WebKit::initialize): Add call to initializeMainThread. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): Ditto. 2010-04-26 Roman Gershman Reviewed by Adam Barth. [Chromium] Font size in suggestions popup menu should be correlated with the font size of its text field. https://bugs.webkit.org/show_bug.cgi?id=37977 * src/SuggestionsPopupMenuClient.cpp: (WebKit::SuggestionsPopupMenuClient::initialize): 2010-04-26 Pavel Feldman Reviewed by Yury Semikhatsky. Chromium Dev Tools: brush up images. https://bugs.webkit.org/show_bug.cgi?id=38124 * WebKit.gypi: * src/js/DevTools.js: (WebInspector.setToolbarColors): * src/js/Images/segmentChromium.png: * src/js/Images/segmentChromium2.png: Removed. * src/js/Images/segmentHoverChromium2.png: Removed. * src/js/Images/segmentSelectedChromium2.png: Removed. * src/js/Images/statusbarBackgroundChromium.png: * src/js/Images/statusbarBackgroundChromium2.png: Removed. * src/js/Images/statusbarBottomBackgroundChromium.png: * src/js/Images/statusbarButtonsChromium.png: * src/js/Images/statusbarMenuButtonChromium.png: * src/js/Images/statusbarMenuButtonChromium2.png: Removed. * src/js/devTools.css: (.section > .header): (.console-group-messages .section > .header): (#resources-filter): (.crumbs .crumb): (.crumbs .crumb.end): (.crumbs .crumb.selected): (.crumbs .crumb.selected:hover): (.crumbs .crumb.selected.end, .crumbs .crumb.selected.end:hover): (.crumbs .crumb:hover): (.crumbs .crumb.dimmed:hover): (.crumbs .crumb.end:hover): (body.drawer-visible #main-status-bar): (.status-bar): (button.status-bar-item): (select.status-bar-item:active): (#drawer): (select.status-bar-item): 2010-04-23 Zhenyao Mo Reviewed by Darin Fisher. Add isGLES2Compliant to GraphicsContext3D: make the method const. https://bugs.webkit.org/show_bug.cgi?id=37872 * src/GraphicsContext3D.cpp: Make isGLES2Compliant() const. (WebCore::GraphicsContext3DInternal::isGLES2Compliant): (WebCore::GraphicsContext3D::isGLES2Compliant): 2010-04-23 Rafael Weinstein Reviewed by Darin Fisher. This patch adds a WebWindowFeatures binding struct for the chromium client in anticipation of a follow-on patch which will pass it to WebViewClient::createWindow. https://bugs.webkit.org/show_bug.cgi?id=38013 * public/WebViewClient.h: (WebKit::WebViewClient::createView): * public/WebWindowFeatures.h: Added. (WebKit::WebWindowFeatures::WebWindowFeatures): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::createWindow): 2010-04-22 Zhenyao Mo Reviewed by Darin Fisher. Add isGLES2Compliant to GraphicsContext3D https://bugs.webkit.org/show_bug.cgi?id=37872 * public/WebGraphicsContext3D.h: Add isGLES2Compliant(). * src/GraphicsContext3D.cpp: Ditto. * src/WebGraphicsContext3DDefaultImpl.cpp: Ditto. (WebKit::WebGraphicsContext3DDefaultImpl::isGLES2Compliant): * src/WebGraphicsContext3DDefaultImpl.h: Ditto. 2010-04-22 Dave Moore Reviewed by Dimitri Glazkov. Added notification when the favicons for a page are changed from a script. The Document object will notify the frame loader, which will notify the client. Implementations of FrameLoaderClient will have to add one method; dispatchDidChangeIcons(). https://bugs.webkit.org/show_bug.cgi?id=33812 * public/WebFrameClient.h: (WebKit::WebFrameClient::didChangeIcons): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchDidChangeIcons): * src/FrameLoaderClientImpl.h: 2010-04-22 Zhenyao Mo Reviewed by Dimitri Glazkov. Emulate GL_IMPLEMENTATION_COLOR_READ_FORMAT/TYPE for glGet https://bugs.webkit.org/show_bug.cgi?id=37281 * src/WebGraphicsContext3DDefaultImpl.cpp: (WebKit::WebGraphicsContext3DDefaultImpl::getIntegerv): Emulate two enums. 2010-04-22 Adam Barth Unreviewed, rolling out r58069. http://trac.webkit.org/changeset/58069 https://bugs.webkit.org/show_bug.cgi?id=27751 Broke compile on Windows. * public/WebSettings.h: * src/WebSettingsImpl.cpp: * src/WebSettingsImpl.h: 2010-04-22 Tony Chang Reviewed by Shinichiro Hamaji. [chromium] roll chromium deps to pick up some windows build fixes https://bugs.webkit.org/show_bug.cgi?id=37972 * DEPS: 2010-04-22 Abhishek Arya Reviewed by Adam Barth. Add support for controlling clipboard access from javascript. Clipboard access from javascript is disabled by default. https://bugs.webkit.org/show_bug.cgi?id=27751 * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setJavaScriptCanAccessClipboard): * src/WebSettingsImpl.h: 2010-04-21 Tony Chang Reviewed by Shinichiro Hamaji. [chromium] gyp_webkit should be executable https://bugs.webkit.org/show_bug.cgi?id=37971 * gyp_webkit: Added property svn:executable. 2010-04-21 Jay Civelli Reviewed by Darin Fisher. [Chromium] Don't notify the WebView that a popup was opened when the popup is handled externally, as the popup is in that case transparent to the WebView. The notification was causing an ASSERT on Mac (where the popup is handled externally) as there would be no notification that the popup was closed. https://bugs.webkit.org/show_bug.cgi?id=37825 * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): 2010-04-21 Sheriff Bot Unreviewed, rolling out r58028. http://trac.webkit.org/changeset/58028 https://bugs.webkit.org/show_bug.cgi?id=37962 broke the chromium build (Requested by tony^work on #webkit). * DEPS: 2010-04-21 Evan Martin Unreviewed, just a dependency change. [chromium] roll skia forward to r538 https://bugs.webkit.org/show_bug.cgi?id=37960 This will cause a bunch of pixel tests to fail due to bulleted lists rendering slightly differently. I will grab new baselines from the bots and check them in in a followup. * DEPS: 2010-04-21 Evan Stade Reviewed by Darin Fisher. [chromium] Web page serializer saves tag names in upper case https://bugs.webkit.org/show_bug.cgi?id=37940 Simply convert all tags to lower case. This is tested by chrome tests: - save page browser tests - encoding ui tests - web page serializer test shell tests * src/WebPageSerializer.cpp: (WebKit::WebPageSerializer::generateMetaCharsetDeclaration): (WebKit::WebPageSerializer::generateBaseTagDeclaration): * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::openTagToString): (WebKit::WebPageSerializerImpl::endTagToString): 2010-04-20 Adam Barth Reviewed by Eric Seidel. Factor DocumentWriter out of FrameLoader https://bugs.webkit.org/show_bug.cgi?id=37175 Update these callsites because the method moved to DocumentWriter. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::finishedLoading): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::encoding): (WebKit::WebFrameImpl::commitDocumentData): * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag): (WebKit::WebPageSerializerImpl::serialize): * src/WebSearchableFormData.cpp: (WebCore::GetFormEncoding): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::pageEncoding): 2010-04-20 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: add basic script editing capabilities to the front-end. https://bugs.webkit.org/show_bug.cgi?id=37875 * src/js/DebuggerAgent.js: (devtools.DebuggerAgent.prototype.resolveScriptSource.this.requestSeqToCallback_.cmd.getSequenceNumber): (devtools.DebuggerAgent.prototype.resolveScriptSource): (devtools.DebuggerAgent.prototype.editScriptLine.this.requestSeqToCallback_.cmd.getSequenceNumber): (devtools.DebuggerAgent.prototype.editScriptLine): (devtools.DebuggerAgent.prototype.handleDebuggerOutput_): * src/js/DevTools.js: * src/js/InspectorControllerImpl.js: (.devtools.InspectorBackendImpl.prototype.editScriptLine): 2010-04-20 Kent Tamura Reviewed by Darin Adler. Change a parameter type of chooseIconForFiles() https://bugs.webkit.org/show_bug.cgi?id=37504 * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::chooseIconForFiles): * src/ChromeClientImpl.h: 2010-04-20 Jay Civelli Reviewed by Dimitri Glazkov. [chromium] Tests that pressing tab now closes the select popup. https://bugs.webkit.org/show_bug.cgi?id=37721 * tests/PopupMenuTest.cpp: (WebKit::TEST_F): 2010-04-20 Evan Stade Reviewed by David Levin. [chromium] crash when dragging images https://bugs.webkit.org/show_bug.cgi?id=37715 Added unit tests for DragImageChromiumSkia. * WebKit.gyp: * tests/DragImageTest.cpp: Added. (WebCore::TestImage::TestImage): (WebCore::TestImage::~TestImage): (WebCore::TestImage::size): (WebCore::TestImage::nativeImageForCurrentFrame): (WebCore::TestImage::destroyDecodedData): (WebCore::TestImage::decodedSize): (WebCore::TestImage::draw): (WebCore::TEST): 2010-04-20 Stuart Morgan Reviewed by David Levin. Remove a workaround in plugin cursor setting that was obsoleted by the change in https://bugs.webkit.org/show_bug.cgi?id=35132 https://bugs.webkit.org/show_bug.cgi?id=37811 * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::ChromeClientImpl): (WebKit::ChromeClientImpl::setCursor): (WebKit::ChromeClientImpl::setCursorForPlugin): * src/ChromeClientImpl.h: 2010-04-19 Ada Chan Reviewed by Jeremy Orlow. https://bugs.webkit.org/show_bug.cgi?id=37717 Changes needed now that StorageNamespaceImpl::sessionStorageNamespace() and StorageNamespace::sessionStorageNamespace() take in a quota parameter. * src/StorageNamespaceProxy.cpp: (WebCore::StorageNamespace::sessionStorageNamespace): * src/WebStorageNamespaceImpl.cpp: (WebKit::WebStorageNamespace::createSessionStorageNamespace): 2010-04-17 Vangelis Kokkevis Reviewed by Dimitri Glazkov. Adding the implementation of GLES2Context class which provides WebCore access to a GL ES context. https://bugs.webkit.org/show_bug.cgi?id=37541 * WebKit.gyp: * public/WebGLES2Context.h: Added. (WebKit::WebGLES2Context::~WebGLES2Context): * src/GLES2Context.cpp: Added. (WebCore::GLES2ContextInternal::GLES2ContextInternal): (WebCore::GLES2ContextInternal::~GLES2ContextInternal): (WebCore::GLES2ContextInternal::getWebGLES2Context): (WebCore::GLES2ContextInternal::initialize): (WebCore::GLES2Context::create): (WebCore::GLES2Context::~GLES2Context): (WebCore::GLES2Context::initialize): (WebCore::GLES2Context::makeCurrent): (WebCore::GLES2Context::destroy): (WebCore::GLES2Context::swapBuffers): 2010-04-16 Dumitru Daniliuc Reviewed by Eric Seidel. Get rid of the UNUSED_PARAM macro in GraphicsContext3D.cpp. https://bugs.webkit.org/show_bug.cgi?id=37733 * src/GraphicsContext3D.cpp: (WebCore::GraphicsContext3D::GraphicsContext3D): 2010-04-16 Dumitru Daniliuc Reviewed by Jeremy Orlow. Changing the return type of WebSecurityOrigin::createFromDatabaseIdentifier(). https://bugs.webkit.org/show_bug.cgi?id=34466 Changing the return type of WebSecurityOrigin::createFromDatabaseIdentifier() from WebSecurityOrigin* to WebSecurityOrigin, to make it more consistent with the other WebSecurityOrigin methods. * public/WebSecurityOrigin.h: * src/WebDatabase.cpp: (WebKit::WebDatabase::closeDatabaseImmediately): * src/WebSecurityOrigin.cpp: (WebKit::WebSecurityOrigin::createFromDatabaseIdentifier): 2010-04-16 Dmitry Titov Reviewed by Yury Semikhatsky. [v8] In Workers, script errors right after close() are not delivered to the Worker.onerror https://bugs.webkit.org/show_bug.cgi?id=37691 * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::createWorkerContextProxy): Don't need to pull V8 proxy to retrieve current WorkerContext. 2010-04-16 Albert J. Wong Not reviewed. Build fix. [chromium] Compile fix. Missing include header, and missing type conversion. * src/GraphicsContext3D.cpp: (WebCore::GraphicsContext3DInternal::beginPaint): 2010-04-16 Jarkko Sakkinen Reviewed by Simon Hausmann. [Qt] WebGL is not visible when QGLWidget viewport is used https://bugs.webkit.org/show_bug.cgi?id=37070 Added HostWindow parameter to the constructor of GraphicsContext3D. Shared OpenGL context is initialized with parent QGLWidget. * src/GraphicsContext3D.cpp: (WebCore::GraphicsContext3D::GraphicsContext3D): 2010-04-16 Fumitoshi Ukai Reviewed by Jian Li. [chromium] WebKit::WebURLResponse::addHTTPHeaderField will crash if response is invalid UTF-8 https://bugs.webkit.org/show_bug.cgi?id=37687 * src/WebURLResponse.cpp: (WebKit::WebURLResponse::addHTTPHeaderField): ignore if name or value is null string. 2010-04-16 Jay Civelli Reviewed by Dimitri Glazkov. [chromium] Select popups would assert when destroyed. Also adding unit-tests for the select popup code. https://bugs.webkit.org/show_bug.cgi?id=37436 * WebKit.gyp: * src/WebViewImpl.h: (WebKit::WebViewImpl::selectPopup): * tests/PopupMenuTest.cpp: Added. 2010-04-16 Tony Chang Reviewed by Dimitri Glazkov. [chromium] build DRT on Linux https://bugs.webkit.org/show_bug.cgi?id=37690 * DEPS: Need to roll deps to remove a dependency on src/chrome * gyp_webkit: generate makefiles for DRT.gyp on Linux 2010-04-15 Tony Chang Reviewed by Dimitri Glazkov. build DRT on chromium mac https://bugs.webkit.org/show_bug.cgi?id=37639 * gyp_webkit: generate build files for DRT on mac 2010-04-15 Yury Semikhatsky Reviewed by Pavel Feldman. Support basic debugging capabilities including step in/over/out in v8 implementation of ScriptDebugServer. https://bugs.webkit.org/show_bug.cgi?id=37604 * WebKit.gypi: * src/DebuggerAgent.h: * src/DebuggerAgentImpl.cpp: (WebKit::DebuggerAgentImpl::setDebuggerScriptSource): * src/DebuggerAgentImpl.h: * src/DebuggerAgentManager.cpp: (WebKit::DebuggerAgentManager::hostDispatchHandler): (WebKit::DebuggerAgentManager::debugAttach): (WebKit::DebuggerAgentManager::debugDetach): (WebKit::DebuggerAgentManager::setMessageLoopDispatchHandler): * src/DebuggerAgentManager.h: * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::windowObjectCleared): * src/js/DebuggerScript.js: Added. (debuggerScriptConstructor.DebuggerScript.getAfterCompileScript): (debuggerScriptConstructor.DebuggerScript.getScripts): (debuggerScriptConstructor.DebuggerScript._formatScript): (debuggerScriptConstructor.DebuggerScript.setBreakpoint): (debuggerScriptConstructor.DebuggerScript.removeBreakpoint): (debuggerScriptConstructor.DebuggerScript.currentCallFrame): (debuggerScriptConstructor.DebuggerScript.stepIntoStatement): (debuggerScriptConstructor.DebuggerScript.stepOverStatement): (debuggerScriptConstructor.DebuggerScript.stepOutOfFunction): (debuggerScriptConstructor.DebuggerScript.clearBreakpoints): (debuggerScriptConstructor.DebuggerScript.setBreakpointsActivated): (debuggerScriptConstructor.DebuggerScript._frameMirrorToJSCallFrame): (debuggerScriptConstructor.DebuggerScript._webkitToV8LineNumber): (debuggerScriptConstructor.DebuggerScript._v8ToWwebkitLineNumber): (debuggerScriptConstructor): * src/js/DevTools.js: (WebInspector.loaded): (.): (): * src/js/DevToolsHostStub.js: (.RemoteDebuggerAgentStub.prototype.setDebuggerScriptSource): * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): 2010-04-15 Matt Perry Reviewed by Dimitri Glazkov. Implement layoutTestController's addUserStyleSheet and setAuthorAndUserStylesEnabled on Chromium port. https://bugs.webkit.org/show_bug.cgi?id=37595 * public/WebSettings.h: * public/WebView.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setAuthorAndUserStylesEnabled): * src/WebSettingsImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::addUserStyleSheet): * src/WebViewImpl.h: 2010-04-15 Zhenyao Mo Reviewed by Dimitri Glazkov. Must enable GL_VERTEX_PROGRAM_POINT_SIZE during initialization https://bugs.webkit.org/show_bug.cgi?id=37178 * src/WebGraphicsContext3DDefaultImpl.cpp: Enable GL_VERTEX_PROGRAM_POINT_SIZE during initialization. (WebKit::WebGraphicsContext3DDefaultImpl::initialize): 2010-04-15 Albert J. Wong Unreviewed, rolling out r57660. http://trac.webkit.org/changeset/57660 https://bugs.webkit.org/show_bug.cgi?id=37604 Broke a large number of inspector layout tests in chromium. * WebKit.gypi: * src/DebuggerAgent.h: * src/DebuggerAgentImpl.cpp: * src/DebuggerAgentImpl.h: * src/DebuggerAgentManager.cpp: (WebKit::DebuggerAgentManager::debugAttach): (WebKit::DebuggerAgentManager::debugDetach): (WebKit::DebuggerAgentManager::setMessageLoopDispatchHandler): * src/DebuggerAgentManager.h: * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::windowObjectCleared): * src/js/DebuggerScript.js: Removed. * src/js/DevTools.js: (WebInspector.loaded): (WebInspector.UnresolvedPropertyValue): (): * src/js/DevToolsHostStub.js: * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): 2010-04-15 Yury Semikhatsky Reviewed by Pavel Feldman. Support basic debugging capabilities including step in/over/out in v8 implementation of ScriptDebugServer. https://bugs.webkit.org/show_bug.cgi?id=37604 * WebKit.gypi: * src/DebuggerAgent.h: * src/DebuggerAgentImpl.cpp: (WebKit::DebuggerAgentImpl::setDebuggerScriptSource): * src/DebuggerAgentImpl.h: * src/DebuggerAgentManager.cpp: (WebKit::DebuggerAgentManager::hostDispatchHandler): (WebKit::DebuggerAgentManager::debugAttach): (WebKit::DebuggerAgentManager::debugDetach): (WebKit::DebuggerAgentManager::setMessageLoopDispatchHandler): * src/DebuggerAgentManager.h: * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::windowObjectCleared): * src/js/DebuggerScript.js: Added. (debuggerScriptConstructor.DebuggerScript.getAfterCompileScript): (debuggerScriptConstructor.DebuggerScript.getScripts): (debuggerScriptConstructor.DebuggerScript._formatScript): (debuggerScriptConstructor.DebuggerScript.setBreakpoint): (debuggerScriptConstructor.DebuggerScript.removeBreakpoint): (debuggerScriptConstructor.DebuggerScript.currentCallFrame): (debuggerScriptConstructor.DebuggerScript.stepIntoStatement): (debuggerScriptConstructor.DebuggerScript.stepOverStatement): (debuggerScriptConstructor.DebuggerScript.stepOutOfFunction): (debuggerScriptConstructor.DebuggerScript.clearBreakpoints): (debuggerScriptConstructor.DebuggerScript.setBreakpointsActivated): (debuggerScriptConstructor.DebuggerScript._frameMirrorToJSCallFrame): (debuggerScriptConstructor.DebuggerScript._webkitToV8LineNumber): (debuggerScriptConstructor.DebuggerScript._v8ToWwebkitLineNumber): (debuggerScriptConstructor): * src/js/DevTools.js: (WebInspector.loaded): (.): (): * src/js/DevToolsHostStub.js: (.RemoteDebuggerAgentStub.prototype.setDebuggerScriptSource): * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): 2010-04-15 Ben Murdoch Unreviewed, rolling out r57652. http://trac.webkit.org/changeset/57652 https://bugs.webkit.org/show_bug.cgi?id=37609 Caused a build break on Chromium Mac and Layout Test fail on Qt * src/WebInputEventConversion.cpp: (WebKit::toPlatformTouchPointState): 2010-04-14 Ben Murdoch Reviewed by Kenneth Rohde Christiansen. The TouchStationary state of WebCore::PlatformTouchPoint is not handled inside the touch event handler. https://bugs.webkit.org/show_bug.cgi?id=37609 After discussions at the WebKit contributors meeting, we decided that this is a currently unused state without a good future use case in the Touch API and thus decided to remove it. This patch actions that decision. * src/WebInputEventConversion.cpp: (WebKit::toPlatformTouchPointState): Remove TouchStationary. 2010-04-12 Tony Chang Reviewed by Darin Fisher. [chromium] update chromium DEPS for upstream compile https://bugs.webkit.org/show_bug.cgi?id=36578 * DEPS: Pull sub deps from chromium's DEPS file 2010-04-14 Sheriff Bot Unreviewed, rolling out r57599. http://trac.webkit.org/changeset/57599 https://bugs.webkit.org/show_bug.cgi?id=37605 "Broke Chromium build" (Requested by dglazkov on #webkit). * WebKit.gyp: * src/WebViewImpl.h: * tests/PopupMenuTest.cpp: Removed. 2010-04-14 Aaron Boodman Reviewed by David Levin. Support relative URLs for notifications on Chromium. They weren't working previously because WebCore was inserting the relative URL into a KURL instance, but when KURL is backed by GURL as it is on Chromium, relative URLs are unsupported. Fixed by resolving the relative URL first. https://bugs.webkit.org/show_bug.cgi?id=36623 Adding tests for this is difficult because we don't currently have DRT support for notifications on Mac, only Windows. * public/WebNotification.h: Remove deprecated icon() method. * src/WebNotification.cpp: Ditto. 2010-04-14 Jay Civelli Reviewed by Dimitri Glazkov. [chromium] Select popups would assert when destroyed. Also adding unit-tests for the select popup code. https://bugs.webkit.org/show_bug.cgi?id=37436 * WebKit.gyp: * src/WebViewImpl.h: (WebKit::WebViewImpl::selectPopup): * tests/PopupMenuTest.cpp: Added. 2010-04-14 Zhenyao Mo Reviewed by Dimitri Glazkov. readPixels must take PACK_ALIGNMENT into account https://bugs.webkit.org/show_bug.cgi?id=34718 * src/GraphicsContext3D.cpp: Refactor readPixels. * src/WebGraphicsContext3DDefaultImpl.cpp: (WebKit::WebGraphicsContext3DDefaultImpl::readBackFramebuffer): Temporarily disable pack alignment for glReadPixels. (WebKit::WebGraphicsContext3DDefaultImpl::readPixels): Move array allocation and alpha fix to WebGLRenderingContext; flush before read pixels. 2010-04-14 Mikhail Naganov Reviewed by Pavel Feldman. Re-write testProfilerTab to match the new implementation. https://bugs.webkit.org/show_bug.cgi?id=37516 * src/js/Tests.js: (.TestSuite.prototype.testProfilerTab.findDisplayedNode): (.TestSuite.prototype.testProfilerTab.findVisibleView): (.TestSuite.prototype.testProfilerTab): 2010-04-13 Timothy Hatcher Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry. And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists. SecurityOrigin needs a way to remove individual OriginAccessEntries https://bugs.webkit.org/show_bug.cgi?id=37449 Reviewed by Dave Hyatt. * src/WebSecurityPolicy.cpp: (WebKit::WebSecurityPolicy::whiteListAccessFromOrigin): (WebKit::WebSecurityPolicy::resetOriginAccessWhiteLists): 2010-04-13 Mikhail Naganov Reviewed by Pavel Feldman. Fix search behavior in Heap profiles. https://bugs.webkit.org/show_bug.cgi?id=37498 * src/js/HeapProfilerPanel.js: 2010-04-13 Jeremy Moskovich Reviewed by David Levin. 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-04-13 Mikhail Naganov Unreviewed Chromium build fix: pin to a newer V8 revision (4386). * DEPS: 2010-04-12 Mikhail Naganov Reviewed by Yury Semikhatsky. Replace hand-written JavaScriptProfile* bindings with idl-based, and in Chromium port, bind them to the new V8's profiler API that is aligned with JSC. https://bugs.webkit.org/show_bug.cgi?id=37448 * src/js/InspectorControllerImpl.js: (devtools.InspectorBackendImpl): * src/js/ProfilerAgent.js: (devtools.ProfilerAgent): (devtools.ProfilerAgent.prototype.initializeProfiling): (devtools.ProfilerAgent.prototype._didGetActiveProfilerModules): (devtools.ProfilerAgent.prototype._didGetLogLines): * src/js/Tests.js: 2010-04-11 Sheriff Bot Unreviewed, rolling out r57468. http://trac.webkit.org/changeset/57468 https://bugs.webkit.org/show_bug.cgi?id=37433 Broke the world... Must have applied the patch wrong (Requested by abarth on #webkit). * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::finishedLoading): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::encoding): (WebKit::WebFrameImpl::commitDocumentData): * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag): (WebKit::WebPageSerializerImpl::serialize): * src/WebSearchableFormData.cpp: (WebCore::GetFormEncoding): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::pageEncoding): 2010-04-11 Adam Barth Reviewed by Eric Seidel. Factor DocumentWriter out of FrameLoader https://bugs.webkit.org/show_bug.cgi?id=37175 Update these callsites because the method moved to DocumentWriter. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::finishedLoading): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::encoding): (WebKit::WebFrameImpl::commitDocumentData): * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag): (WebKit::WebPageSerializerImpl::serialize): * src/WebSearchableFormData.cpp: (WebCore::GetFormEncoding): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::pageEncoding): 2010-04-11 Sheriff Bot Unreviewed, rolling out r57460. http://trac.webkit.org/changeset/57460 https://bugs.webkit.org/show_bug.cgi?id=37424 broke chromium builders (Requested by tony^work on #webkit). * DEPS: * gyp_webkit: 2010-04-11 Tony Chang Reviewed by Darin Fisher. [chromium] update chromium DEPS for upstream compile https://bugs.webkit.org/show_bug.cgi?id=36578 * DEPS: * gyp_webkit: Add DumpRenderTree.gyp so we generate xcode projects for DRT. 2010-04-10 Vangelis Kokkevis Reviewed by Dimitri Glazkov. Include file change as a result of renaming LayerRenderSkia.h to LayerRenderChromium.h https://bugs.webkit.org/show_bug.cgi?id=37231 * src/WebViewImpl.h: 2010-04-10 Rafael Weinstein Reviewed by Eric Seidel. Cleanup after chromium breakage. All interface methods are returned to being abstract. * public/WebNotificationPresenter.h: 2010-04-09 Evan Stade Reviewed by Eric Seidel. [chromium] Linux: respect the scale factor during printing https://bugs.webkit.org/show_bug.cgi?id=37168 Chromium doesn't support testing .pdfs from printing at the moment, so this change is not covered by any tests. * src/WebFrameImpl.cpp: (WebKit::ChromePrintContext::spoolPage): 2010-04-09 Aaron Boodman Reviewed by Eric Seidel. Remove applicationID() from WebDocument as it is Chromium-specific. https://bugs.webkit.org/show_bug.cgi?id=37350 * public/WebDocument.h: * src/WebDocument.cpp: 2010-04-09 Jeremy Orlow Reviewed by Darin Adler. Move the IDB::open ExceptionCode paramter to be last https://bugs.webkit.org/show_bug.cgi?id=37277 Move the ExceptionCode paramter to the last position in IndexedDatabaseRequest::open and friends. It should definitely go after the callbacks to keep the parameters that come directly from javascript together. And having output parameters appear last is done often in the code base, so it makes sense to push it past the Frame* param as well. * public/WebIndexedDatabase.h: * src/IndexedDatabaseProxy.cpp: (WebCore::IndexedDatabaseProxy::open): * src/IndexedDatabaseProxy.h: * src/WebIndexedDatabaseImpl.cpp: (WebKit::WebIndexedDatabaseImpl::open): * src/WebIndexedDatabaseImpl.h: 2010-04-09 Jochen Eisinger Reviewed by Darin Fisher. Complete move of createApplicationCacheHost from WebKitClient to WebFrameClient. https://bugs.webkit.org/show_bug.cgi?id=37330 * public/WebApplicationCacheHost.h: * public/WebKitClient.h: * src/ApplicationCacheHostInternal.h: (WebCore::ApplicationCacheHostInternal::ApplicationCacheHostInternal): 2010-04-09 Marcus Bulach Reviewed by Jeremy Orlow. Crash on WebKit::WebGeolocationServiceBridgeImpl::stopUpdating() during frame disconnection Should not try to access WebViewClient if the frame has already been disconnected. https://bugs.webkit.org/show_bug.cgi?id=37318 * src/WebGeolocationServiceBridgeImpl.cpp: (WebKit::WebGeolocationServiceBridgeImpl::stopUpdating): 2010-04-09 Jochen Eisinger Reviewed by Adam Barth. Expose SecurityOrigin::canRequest in WebSecurityOrigin. https://bugs.webkit.org/show_bug.cgi?id=37271 * public/WebSecurityOrigin.h: * src/WebSecurityOrigin.cpp: (WebKit::WebSecurityOrigin::canRequest): 2010-04-09 Zhenyao Mo Reviewed by Dimitri Glazkov. Must resolve multisampled back buffer during copyTexImage2D and copyTexSubImage2D https://bugs.webkit.org/show_bug.cgi?id=37174 Test: fast/canvas/webgl/copy-tex-image-and-sub-image-2d.html * src/WebGraphicsContext3DDefaultImpl.cpp: Resolve multisampled back buffer during copyTexImage2D and copyTexSubImage2D. (WebKit::WebGraphicsContext3DDefaultImpl::copyTexImage2D): (WebKit::WebGraphicsContext3DDefaultImpl::copyTexSubImage2D): 2010-04-07 Pavel Feldman Reviewed by Yury Semikhatsky. Chromium: support themes in devtools window. https://bugs.webkit.org/attachment.cgi?bugid=37216 * WebKit.gypi: * src/js/DevTools.js: (WebInspector.setToolbarColors): (WebInspector.resetToolbarColors): * src/js/Images/segmentChromium2.png: Added. * src/js/Images/segmentHoverChromium2.png: Added. * src/js/Images/segmentSelectedChromium2.png: Added. * src/js/Images/statusbarBackgroundChromium2.png: Added. * src/js/Images/statusbarMenuButtonChromium2.png: Added. 2010-04-07 Andrey Kosyakov Reviewed by Yury Semikhatsky. Removed inspector methods from ScriptExecutionContext and derived classes. Removed MessageDestination parameter from console-related calls (we now always log to the same destination(s)). Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest() https://bugs.webkit.org/show_bug.cgi?id=36949 * public/WebCommonWorkerClient.h: (WebKit::WebCommonWorkerClient::postConsoleMessageToWorkerObject): * src/FrameLoaderClientImpl.cpp: * src/FrameLoaderClientImpl.h: * src/WebWorkerBase.cpp: (WebKit::WebWorkerBase::postConsoleMessageToWorkerObject): (WebKit::WebWorkerBase::postConsoleMessageTask): * src/WebWorkerBase.h: * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObject): (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObjectTask): * src/WebWorkerClientImpl.h: 2010-04-07 Jeremy Orlow Reviewed by Darin Fisher. [Chromium] WebIDBDatabaseError::assign doesn't work correctly https://bugs.webkit.org/show_bug.cgi?id=37209 * src/WebIDBDatabaseError.cpp: (WebKit::WebIDBDatabaseError::assign): 2010-04-07 Dawit Alemayehu Reviewed by Simon Hausmann. https://bugs.webkit.org/show_bug.cgi?id=36827 Updated the WebCore::shouldTreatAsAttachement function call with the new more generic replacement WebCore::contentDispositionType. See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395 * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForMIMEType): 2010-04-07 Jochen Eisinger Reviewed by Darin Fisher. Add createApplicationCacheHost to WebFrameClient so the ApplicationCacheHost has access to its frame. https://bugs.webkit.org/show_bug.cgi?id=36882 * public/WebFrameClient.h: (WebKit::WebFrameClient::createApplicationCacheHost): * src/ApplicationCacheHostInternal.h: (WebCore::ApplicationCacheHostInternal::ApplicationCacheHostInternal): 2010-04-06 Nicolas Weber Reviewed by Dimitri Glazkov. Use drag images on OS X as well. https://bugs.webkit.org/show_bug.cgi?id=37069 * src/DragClientImpl.cpp: (WebKit::DragClientImpl::startDrag): 2010-04-06 Vangelis Kokkevis Reviewed by Dimitri Glazkov. Changing references to Graphics Layer related classes from *Skia to *Chromium. https://bugs.webkit.org/show_bug.cgi?id=37116 * src/WebViewImpl.cpp: (WebKit::WebViewImpl::paint): (WebKit::WebViewImpl::setAcceleratedCompositing): (WebKit::WebViewImpl::updateRootLayerContents): * src/WebViewImpl.h: 2010-04-06 James Hawkins Reviewed by Adam Barth. [Chromium] Implement WebInputElement::maxLength. https://bugs.webkit.org/show_bug.cgi?id=37172 * public/WebInputElement.h: * src/WebInputElement.cpp: (WebKit::WebInputElement::maxLength): 2010-04-06 Evan Stade Reviewed by Dimitri Glazkov. [chromium] need DragImage implementation https://bugs.webkit.org/show_bug.cgi?id=35811 Basic implementation using SkBitmap. Transformations are not supported yet. No implementation for mac. This was previously committed but rolled back for breaking layout tests. * public/WebViewClient.h: (WebKit::WebViewClient::startDragging): * src/DragClientImpl.cpp: (WebKit::DragClientImpl::startDrag): new: check for null dragImage. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::startDragging): * src/WebViewImpl.h: 2010-04-06 James Hawkins Reviewed by Dimitri Glazkov. [Chromium] Move the getElementsByTagName from WebDocument to WebNode. https://bugs.webkit.org/show_bug.cgi?id=37161 * public/WebDocument.h: * public/WebNode.h: * src/WebDocument.cpp: * src/WebNode.cpp: (WebKit::WebNode::getElementsByTagName): 2010-04-06 Ilya Tikhonovsky Unreviewed build fix for Chromium DEPS. * DEPS: 2010-04-06 Ilya Tikhonovsky Unreviewed: build fix. * DEPS: 2010-04-06 Mattias Nissler Reviewed by Pavel Feldman. Handle docking requests from the developer tools and forward them to WebDevToolsFrontendClient. https://bugs.webkit.org/show_bug.cgi?id=36944 * public/WebDevToolsFrontendClient.h: (WebKit::WebDevToolsFrontendClient::requestDockWindow): * src/WebDevToolsFrontendImpl.cpp: (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl): (WebKit::WebDevToolsFrontendImpl::jsRequestAttachWindow): * src/WebDevToolsFrontendImpl.h: 2010-04-06 Andrey Kosyakov Reviewed by Yury Semikhatsky. Fixed logging of unhndled worker exceptions. https://bugs.webkit.org/show_bug.cgi?id=37143 * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::postExceptionToWorkerObject): 2010-04-05 Alexey Proskuryakov Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=37111 Draw replacement text when plug-in host crashes * src/LocalizedStrings.cpp: (WebCore::crashedPluginText): Added a stub string for plug-in failure. 2010-04-04 Pavel Feldman Not reviewed. Rolling out chromium changes r57028 and r57032 for breaking chromium layout tests. * public/WebViewClient.h: (WebKit::WebViewClient::startDragging): * src/DragClientImpl.cpp: (WebKit::DragClientImpl::startDrag): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::startDragging): * src/WebViewImpl.h: 2010-04-03 Darin Fisher Add default implementations of WebNotificationPresenter methods to repair the downstream Chromium build. * public/WebNotificationPresenter.h: (WebKit::WebNotificationPresenter::show): (WebKit::WebNotificationPresenter::cancel): (WebKit::WebNotificationPresenter::objectDestroyed): (WebKit::WebNotificationPresenter::checkPermission): (WebKit::WebNotificationPresenter::requestPermission): 2010-04-02 Michael Nordman Reviewed by Nate Chapin. Set the close policy used by the DatabaseCloseTask at this callsite to RemoveDatabaseFromContext. This restores its behavior to what it was prior to r56293. https://bugs.webkit.org/show_bug.cgi?id=37037 * src/WebDatabase.cpp: (WebKit::WebDatabase::closeDatabaseImmediately): 2010-04-02 Evan Stade Reviewed by Eric Seidel. [chromium] need DragImage implementation https://bugs.webkit.org/show_bug.cgi?id=35811 Use the DragImageRef that the DragController passes to us. * public/WebViewClient.h: (WebKit::WebViewClient::startDragging): * src/DragClientImpl.cpp: (WebKit::DragClientImpl::startDrag): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::startDragging): * src/WebViewImpl.h: 2010-04-02 Rafael Weinstein Reviewed by Adam Barth. Clean up unused calls after changes to checkPermission and requestPermission argument lists. * public/WebNotificationPresenter.h: * src/NotificationPresenterImpl.cpp: (WebKit::NotificationPresenterImpl::checkPermission): (WebKit::NotificationPresenterImpl::requestPermission): 2010-04-02 Zhenyao Mo Reviewed by Eric Seidel. Implement and test new framebuffer object attachment behavior. https://bugs.webkit.org/show_bug.cgi?id=35611 Test: fast/canvas/webgl/framebuffer-object-attachment.html * src/WebGraphicsContext3DDefaultImpl.cpp: Map to correct DEPTH_STENCIL format. (WebKit::WebGraphicsContext3DDefaultImpl::framebufferRenderbuffer): (WebKit::WebGraphicsContext3DDefaultImpl::getFramebufferAttachmentParameteriv): (WebKit::WebGraphicsContext3DDefaultImpl::renderbufferStorage): 2010-04-02 Jay Civelli Reviewed by Darin Fisher. The popup type (select or suggestion) is now passed to the WebClient::createPopupMenu() method. This is required for Chromium on Linux to make the select popups work correctly. https://bugs.webkit.org/show_bug.cgi?id=37013 * WebKit.gyp: * public/WebPopupType.h: Added. (WebKit::): * public/WebViewClient.h: (WebKit::WebViewClient::createPopupMenu): * src/ChromeClientImpl.cpp: (WebCore::convertPopupType): (WebKit::ChromeClientImpl::popupOpened): 2010-04-02 Yury Semikhatsky Reviewed by Pavel Feldman. Implement InspectorFrontendClient in Chromium and remove all custom bindings for the host methods from WebDevToolsFrontendImpl. https://bugs.webkit.org/show_bug.cgi?id=36817 * WebKit.gyp: * src/InspectorFrontendClientImpl.cpp: Added. (WebKit::InspectorFrontendClientImpl::InspectorFrontendClientImpl): (WebKit::InspectorFrontendClientImpl::~InspectorFrontendClientImpl): (WebKit::InspectorFrontendClientImpl::windowObjectCleared): (WebKit::InspectorFrontendClientImpl::frontendLoaded): (WebKit::InspectorFrontendClientImpl::moveWindowBy): (WebKit::InspectorFrontendClientImpl::localizedStringsURL): (WebKit::InspectorFrontendClientImpl::hiddenPanels): (WebKit::InspectorFrontendClientImpl::bringToFront): (WebKit::InspectorFrontendClientImpl::closeWindow): (WebKit::InspectorFrontendClientImpl::canAttachWindow): (WebKit::InspectorFrontendClientImpl::attachWindow): (WebKit::InspectorFrontendClientImpl::detachWindow): (WebKit::InspectorFrontendClientImpl::changeAttachedWindowHeight): (WebKit::InspectorFrontendClientImpl::inspectedURLChanged): * src/InspectorFrontendClientImpl.h: Added. * src/WebDevToolsFrontendImpl.cpp: (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl): (WebKit::WebDevToolsFrontendImpl::~WebDevToolsFrontendImpl): (WebKit::WebDevToolsFrontendImpl::frontendLoaded): * src/WebDevToolsFrontendImpl.h: * src/js/DebuggerAgent.js: (devtools.DebuggerAgent.prototype.doHandleBacktraceResponse_): * src/js/DevTools.js: (): 2010-04-01 Jay Civelli Reviewed by David Levin. Adds a method to WebFrame to execute JavaScript and get the value it evaluates to. https://bugs.webkit.org/show_bug.cgi?id=36907 * public/WebFrame.h: * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::executeScriptAndReturnValue): * src/WebFrameImpl.h: 2010-04-01 Kinuko Yasuda Reviewed by Dmitry Titov. Add FileThread for async file operation support in FileReader and FileWriter https://bugs.webkit.org/show_bug.cgi?id=36896 Add ENABLE_FILE_READER and ENABLE_FILE_WRITER flags. * features.gypi: 2010-04-01 Finnur Thorarinsson Reviewed by Eric Seidel. [chromium] FindInPage on multi-frame pages wasn't always updating tickmarks on scrollbars for the subframes. It was calling invalidateRect on the View and specifying a rect that's in window coordinates, whereas the invalidateRect expects frame coordinates. https://bugs.webkit.org/show_bug.cgi?id=36982 * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::invalidateArea): 2010-04-01 Finnur Thorarinsson Reviewed by Dimitri Glazkov. [chromium] FindInPage should clear the focused node when a match has been found. This is because WebFrameImpl::setFocus will try to refocus editable elements if it thinks they have focus, causing the page to scroll. https://bugs.webkit.org/show_bug.cgi?id=36923 * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::find): 2010-04-01 Marcus Bulach Reviewed by Jeremy Orlow. As a follow up on https://bugs.webkit.org/show_bug.cgi?id=36535, remove: GeolocationServiceBridgeChromium.h dettachBridge() getGeolocationService() https://bugs.webkit.org/show_bug.cgi?id=36895 * WebKit.gyp: * public/GeolocationServiceBridgeChromium.h: Removed. * public/WebGeolocationService.h: (WebKit::WebGeolocationService::detachBridge): * public/WebViewClient.h: (WebKit::WebViewClient::geolocationService): 2010-03-31 Jeremy Orlow Reviewed by Nate Chapin. Misc IndexedDatabase cleanup https://bugs.webkit.org/show_bug.cgi?id=36889 Plumb the Frame* so Chromium knows where the request originated from. * public/WebIndexedDatabase.h: * src/IndexedDatabaseProxy.cpp: (WebCore::IndexedDatabaseProxy::open): * src/IndexedDatabaseProxy.h: * src/WebIndexedDatabaseImpl.cpp: (WebKit::WebIndexedDatabaseImpl::open): * src/WebIndexedDatabaseImpl.h: 2010-03-31 Alpha Lam Not reviewed. Build fix. Fixing a build break caused by 56872. One of the Chromium bots doesn't like std::strstr(). Includes string.h and use strstr() instead. * src/WebGraphicsContext3DDefaultImpl.cpp: (WebKit::WebGraphicsContext3DDefaultImpl::validateAttributes): Includes string.h and use strstr(). 2010-03-31 Zhenyao Mo Reviewed by Darin Fisher. Hook up WebGLContextAttributes to OpenGL context creation code https://bugs.webkit.org/show_bug.cgi?id=33416 * src/WebGraphicsContext3DDefaultImpl.cpp: Hook up WebGLContextAttributes to OpenGL context creation code for Chrome. (WebKit::WebGraphicsContext3DDefaultImpl::WebGraphicsContext3DDefaultImpl): (WebKit::WebGraphicsContext3DDefaultImpl::~WebGraphicsContext3DDefaultImpl): (WebKit::WebGraphicsContext3DDefaultImpl::initialize): (WebKit::WebGraphicsContext3DDefaultImpl::validateAttributes): (WebKit::WebGraphicsContext3DDefaultImpl::reshape): (WebKit::WebGraphicsContext3DDefaultImpl::readBackFramebuffer): (WebKit::WebGraphicsContext3DDefaultImpl::bindFramebuffer): (WebKit::WebGraphicsContext3DDefaultImpl::readPixels): Deal with wrong returned alpha values in Mac. * src/WebGraphicsContext3DDefaultImpl.h: Add a function. 2010-03-31 Darin Fisher Reviewed by David Levin. [chromium] including WebKit.gyp:webkit should automatically add Skia and NPAPI include paths https://bugs.webkit.org/show_bug.cgi?id=36887 * WebKit.gyp: 2010-03-31 Marcus Bulach Reviewed by Jeremy Orlow. Implements cancelGeolocationPermissionRequestForFrame. https://bugs.webkit.org/show_bug.cgi?id=35031 * public/WebGeolocationService.h: (WebKit::WebGeolocationService::cancelPermissionRequestForFrame): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::cancelGeolocationPermissionRequestForFrame): * src/ChromeClientImpl.h: 2010-03-31 Pavel Feldman Not reviewed. Rolling out r56829 since it broke chromium layout tests. [REGRESSION] Inspector tests started crashing since r56829 https://bugs.webkit.org/show_bug.cgi?id=36888 * public/WebFrameClient.h: * src/FrameLoaderClientImpl.cpp: * src/FrameLoaderClientImpl.h: 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