2011-12-08 Elliot Poger Chromium DEPS roll 112974 -> 113603 https://bugs.webkit.org/show_bug.cgi?id=74105 Reviewed by Adam Barth. * DEPS: 2011-12-08 Tony Chang [chromium] remove headers from WebKit.gyp that moved into WebKit/chromium/public/platform https://bugs.webkit.org/show_bug.cgi?id=74106 Reviewed by Darin Fisher. * WebKit.gyp: 2011-12-08 Peter Beverloo [Chromium] Exclude the four RenderTableCellDeathTest death tests for Android https://bugs.webkit.org/show_bug.cgi?id=73997 The ASSERT_DEATH macro is not yet available in Google Test when building for Android, which causes compilation errors. This code will be removed once support lands in the GTest version Chromium uses. See https://bugs.webkit.org/show_bug.cgi?id=74089. Reviewed by Julien Chaffraix. * tests/RenderTableCellTest.cpp: 2011-12-08 Joshua Bell IndexedDB: WebKit API addition of IDBObjectStore.count() and IDBIndex.count() https://bugs.webkit.org/show_bug.cgi?id=73685 Reviewed by Darin Fisher. Implementation to follow - this just extends the WebKit API. * public/WebIDBIndex.h: (WebKit::WebIDBIndex::count): * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::count): 2011-12-07 Alexandre Elias [chromium] Add page-scale animation support to Impl thread https://bugs.webkit.org/show_bug.cgi?id=72996 Reviewed by James Robinson. This adds a new math helper class to compute the progress of the animation, and code in the CCLayerTreeHostImpl to apply the animation frame by frame. No new tests. (https://bugs.webkit.org/show_bug.cgi?id=71529 filed.) * public/WebCompositor.h: * public/WebInputEvent.h: (WebKit::WebPageScaleAnimationEvent::WebPageScaleAnimationEvent): * public/android/WebInputEventFactory.h: * src/WebCompositorImpl.cpp: (WebKit::WebCompositorImpl::handlePageScaleAnimationEvent): * src/WebCompositorImpl.h: * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::handleInputEvent): * src/android/WebInputEventFactory.cpp: (WebKit::WebInputEventFactory::pageScaleAnimationEvent): 2011-12-07 Fady Samuel [Chromium] Plumb DPI info into PlatformScreen https://bugs.webkit.org/show_bug.cgi?id=70556 Reviewed by Darin Fisher. Make DPI information accessible from WebKit through PlatformScreen. This is useful when making scaling computations on various devices (e.g. Viewport meta tag). This patch adds DPI plumbing on Chromium Win/Mac/Linux platforms. * public/WebScreenInfo.h: (WebKit::WebScreenInfo::WebScreenInfo): * src/PlatformSupport.cpp: (WebCore::PlatformSupport::screenHorizontalDPI): (WebCore::PlatformSupport::screenVerticalDPI): * src/mac/WebScreenInfoFactory.mm: (WebKit::WebScreenInfoFactory::screenInfo): * src/win/WebScreenInfoFactory.cpp: (WebKit::WebScreenInfoFactory::screenInfo): * src/x11/WebScreenInfoFactory.cpp: (WebKit::WebScreenInfoFactory::screenInfo): 2011-12-07 Alexandre Elias [chromium] Preserve original pageScale limits in WebViewImpl https://bugs.webkit.org/show_bug.cgi?id=72983 Reviewed by Darin Fisher. Preserve the originally viewport-tag specified page scale limits, and compute the final ones in a new private method computePageScaleFactorLimits(). This is then called when contents size change (which can affect the minimum). Also clean up several minor bugs, namely clamping issues (reorder clampNegativeToZero to avoid negative scroll offsets, and force max to be greater than min), and incorrect behavior in the presence of "solid" scrollbars. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::contentsSizeChanged): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::clampPageScaleFactorToLimits): (WebKit::WebViewImpl::clampOffsetAtScale): (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset): (WebKit::WebViewImpl::setPageScaleFactor): (WebKit::WebViewImpl::setPageScaleFactorLimits): (WebKit::WebViewImpl::computePageScaleFactorLimits): (WebKit::WebViewImpl::didChangeContentsSize): * src/WebViewImpl.h: 2011-12-07 Chris Sharp Exposing boundsInScreenSpace in WebElement. https://bugs.webkit.org/show_bug.cgi?id=71579 Exposing boundsInScreenSpace through a new function, boundsInViewportSpace, to assist in moving the Autofill UI out of WebKit in Chromium. Renamed the exposed function to provide a better meaning of what the function does in the Chromium code. More information can be found at: http://crbug.com/51644 Reviewed by Darin Fisher. * public/WebElement.h: * src/WebElement.cpp: (WebKit::WebElement::boundsInViewportSpace): 2011-12-07 Adam Klein [MutationObservers] Enable in Chromium trunk https://bugs.webkit.org/show_bug.cgi?id=73851 Reviewed by Ojan Vafai. Re-landing after fixing Chromium unit test crashes in r102171 and inspector debugger crash in r102264. * features.gypi: 2011-12-07 Jonathan Backer [chromium] Plumb damage from WebExternalTextureLayer and WebPluginContainer to CCDamageTracker https://bugs.webkit.org/show_bug.cgi?id=73485 Reviewed by Darin Fisher. * public/platform/WebExternalTextureLayer.h: * src/WebExternalTextureLayer.cpp: (WebKit::WebExternalTextureLayer::invalidateRect): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::commitBackingTexture): 2011-12-06 Dirk Pranke Fix typo in WebKit.gyp introduced in previous change. Unreviewed, build fix. * WebKit.gyp: 2011-12-06 Dirk Pranke binaries in webkit.gyp should be split into a new file to break circular dependencies on webkit_support https://bugs.webkit.org/show_bug.cgi?id=73382 Reviewed by Tony Chang. XCode (and hence GYP) can't handle circular dependencies between files (and projects). Accordingly, although the binaries in WebKit.gyp depend on webkit_support and webkit_support depends on webkit, we don't mention the latter dependency in the file. To fix this, this change moves the binaries like DRT into a new GYP file, and modifies gyp_webkit to build from that file instead of WebKit.gyp. * WebKit.gyp: * All.gyp: * WebKitUnitTests.gyp: * gyp_webkit: 2011-12-06 Adrienne Walker [chromium] setNeedsCommit on non-composited host layers should trigger commit https://bugs.webkit.org/show_bug.cgi?id=73711 Reviewed by James Robinson. Add some tests to make sure that modifying the noncomposited content host triggers commits. Properties that trigger setNeedsCommit should only do so when the property changes. Additionally, make more property changes properly trigger commits. * tests/LayerChromiumTest.cpp: 2011-12-06 David Reveman [Chromium] Implement tile-sized painting using SkPicture. https://bugs.webkit.org/show_bug.cgi?id=71869 Reviewed by James Robinson. Add perTilePainting setting that is used by compositor to determine what texture uploader to use. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): (WebKit::WebSettingsImpl::setPerTilePainting): * src/WebSettingsImpl.h: (WebKit::WebSettingsImpl::perTilePainting): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): 2011-12-06 Dana Jansens [chromium] Set opaque flag for ImageLayerChromium https://bugs.webkit.org/show_bug.cgi?id=72964 Reviewed by James Robinson. * WebKit.gypi: * tests/DragImageTest.cpp: (WebCore::TestImage::TestImage): (WebCore::TestImage::nativeImageForCurrentFrame): * tests/ImageLayerChromiumTest.cpp: Added. (WebCore::MockGraphicsLayerClient::notifyAnimationStarted): (WebCore::MockGraphicsLayerClient::notifySyncRequired): (WebCore::MockGraphicsLayerClient::paintContents): (WebCore::MockGraphicsLayerClient::showDebugBorders): (WebCore::MockGraphicsLayerClient::showRepaintCounter): (WebCore::TestImage::create): (WebCore::TestImage::TestImage): (WebCore::TestImage::isBitmapImage): (WebCore::TestImage::currentFrameHasAlpha): (WebCore::TestImage::size): (WebCore::TestImage::nativeImageForCurrentFrame): (WebCore::TestImage::destroyDecodedData): (WebCore::TestImage::decodedSize): (WebCore::TestImage::draw): (WebCore::TEST): 2011-12-06 Adam Klein [chromium] Guard access to WebKitPlatformSupport::currentThread with a null check https://bugs.webkit.org/show_bug.cgi?id=73937 Reviewed by Adam Barth. Though |currentThread| is never null in production code, it is null in unit tests (such as Chromium's unit_tests) that call WebKit::initialize() without first constructing a MessageLoop. * src/WebKit.cpp: (WebKit::initialize): (WebKit::shutdown): 2011-12-06 Alexandre Elias [chromium] Apply sent deltas on finishCommit https://bugs.webkit.org/show_bug.cgi?id=73884 Reviewed by James Robinson. This moves scroll and pageScale "sent" deltas to be applied to the layer at the end of the commit, instead of the beginning. This has several advantages, especially for page scale: - When pageScale changes, no longer any need to change the scroll's coordinate space at beginning of commit, which is complex and prone to bugs (this fixes a problem where we were forgetting to modify the scrollPosition before). - No need for non-commit-related code to consider the "sent" values. m_pageScale is now always the content scale factor, and m_pageScaleDelta is the scale to be on the impl-side matrix. - This will make it easy to send arbitrary fake or future delta values for example while pinch zooming out. The scroll logic is similarly altered for consistency's sake. Note that I also moved the tree synchronize to the beginning of finishCommit in order to avoid having to change the pageScale coordinate space of sentScrollDelta in adjustScrollsForPageScaleChange(). * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): 2011-12-06 Adam Barth Remove forwarding header now that downstream has been fixed to refer to the actual location of this header. * public/WebRect.h: Removed. 2011-12-06 Dimitri Glazkov Unreviewed, rolling out r102091. http://trac.webkit.org/changeset/102091 https://bugs.webkit.org/show_bug.cgi?id=73711 Caused Clang Linux compile failure. * tests/LayerChromiumTest.cpp: 2011-12-06 Sheriff Bot Unreviewed, rolling out r102102. http://trac.webkit.org/changeset/102102 https://bugs.webkit.org/show_bug.cgi?id=73925 Causes segmentation fault on chromium unit_tests, content_unittests, sync_unit_tests (Requested by vsevik on #webkit). * features.gypi: 2011-12-06 Vsevolod Vlasov Unreviewed chromium expectations update. * tests/KURLTest.cpp: (ComponentCase::TEST): 2011-12-06 Eric Penner [chromium] Set texture limits as multiples of viewport size instead of hardcoded values https://bugs.webkit.org/show_bug.cgi?id=72202 Reviewed by James Robinson. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2011-12-06 Sheriff Bot Unreviewed, rolling out r102043. http://trac.webkit.org/changeset/102043 https://bugs.webkit.org/show_bug.cgi?id=73898 Breaks chromium mac-cg compilation. (Requested by vsevik on #webkit). * WebKit.gypi: * tests/ImageLayerChromiumTest.cpp: Removed. 2011-12-05 Rafael Weinstein [MutationObservers] Enable in Chromium trunk https://bugs.webkit.org/show_bug.cgi?id=73851 Reviewed by Ojan Vafai. * features.gypi: 2011-12-05 James Robinson chromium build fix * src/WebLayerTreeView.cpp: 2011-12-05 James Robinson Rollout http://trac.webkit.org/changeset/102019, dependent has not landed in chromium * WebKit.gyp: * public/WebContentLayer.h: Added. * public/WebExternalTextureLayer.h: Added. * public/WebLayer.h: Added. * public/WebLayerClient.h: Added. * public/WebLayerTreeView.h: Added. * public/WebLayerTreeViewClient.h: Added. * src/WebLayerTreeView.cpp: * src/WebLayerTreeViewImpl.cpp: 2011-12-05 Dana Jansens Set opaque flag for WebGLLayerChromium https://bugs.webkit.org/show_bug.cgi?id=73876 Reviewed by James Robinson. * WebKit.gypi: * tests/WebGLLayerChromiumTest.cpp: Added. (WebKit::CompositorMockWebGraphicsContext3D::create): (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent): (WebKit::CompositorMockWebGraphicsContext3D::createProgram): (WebKit::CompositorMockWebGraphicsContext3D::createShader): (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv): (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv): (WebKit::CompositorMockWebGraphicsContext3D::getContextAttributes): (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D): (WebKit::createGraphicsContext): (WebKit::TEST): 2011-12-05 Adrienne Walker [chromium] setNeedsCommit on non-composited host layers should trigger commit https://bugs.webkit.org/show_bug.cgi?id=73711 Reviewed by James Robinson. Add some tests to make sure that modifying the noncomposited content host triggers commits. Properties that trigger setNeedsCommit should only do so when the property changes. Additionally, make more property changes properly trigger commits. * tests/LayerChromiumTest.cpp: 2011-12-05 Stephen White Allow the ImageBuffers used by SVG filters to be accelerated https://bugs.webkit.org/show_bug.cgi?id=73842 Reviewed by Kenneth Russell. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setAcceleratedFiltersEnabled): * src/WebSettingsImpl.h: 2011-12-05 Adam Barth [Chromium] Chromium fails to compile due to missing WebContentLayerClient.h https://bugs.webkit.org/show_bug.cgi?id=73881 This patch adds a forwarding header to fix the downstream Windows build: http://build.chromium.org/p/chromium.webkit/builders/Win%20Builder/builds/12955/steps/compile/logs/stdio * public/WebContentLayerClient.h: Added. 2011-12-05 Adam Barth Add a shim to fix the downstream Chromium compile. The real fix should be made downstream via http://codereview.chromium.org/8801036/, but the Chromium tree is closed at the moment. * public/WebRect.h: Added. 2011-12-01 Vangelis Kokkevis Use ANGLE's texture_usage and texture_storage extensions when allocating compositor textures. https://bugs.webkit.org/show_bug.cgi?id=73621 Add the necessary entry points and enums to GraphicsContext3D. Reviewed by Kenneth Russell. * public/platform/WebGraphicsContext3D.h: * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::texStorage2DEXT): * src/GraphicsContext3DChromium.cpp: * src/GraphicsContext3DPrivate.h: * tests/MockWebGraphicsContext3D.h: (WebKit::MockWebGraphicsContext3D::texStorage2DEXT): 2011-12-05 Adam Barth Another attempted build fix. * src/linux/WebFontInfo.cpp: 2011-12-05 Adam Barth Fix Linux build. * public/linux/WebFontInfo.h: 2011-12-05 Adam Barth [Chromium] Remove no-longer-used forwarding headers in the WebKit API https://bugs.webkit.org/show_bug.cgi?id=73845 Reviewed by Darin Fisher. Delete unused forwarding headers and update includes to the new header locations. * WebKit.gyp: * bridge/PeerConnectionHandlerInternal.cpp: * bridge/PeerConnectionHandlerInternal.h: * public/WebArrayBuffer.h: * public/WebArrayBufferView.h: Removed. * public/WebAudioBus.h: Removed. * public/WebAudioDevice.h: Removed. * public/WebBlobData.h: Removed. * public/WebBlobRegistry.h: Removed. * public/WebCString.h: Removed. * public/WebCanvas.h: Removed. * public/WebClipboard.h: Removed. * public/WebColor.h: Removed. * public/WebColorName.h: Removed. * public/WebCommon.h: Removed. * public/WebCompositorInputHandler.h: * public/WebCookie.h: Removed. * public/WebCookieJar.h: Removed. * public/WebData.h: Removed. * public/WebDragData.h: Removed. * public/WebFileSystem.h: Removed. * public/WebFloatPoint.h: Removed. * public/WebFloatQuad.h: Removed. * public/WebFloatRect.h: Removed. * public/WebGamepad.h: Removed. * public/WebGamepads.h: Removed. * public/WebGraphicsContext3D.h: Removed. * public/WebHTTPBody.h: Removed. * public/WebHTTPHeaderVisitor.h: Removed. * public/WebHTTPLoadInfo.h: Removed. * public/WebIDBCallbacks.h: * public/WebImage.h: Removed. * public/WebIntent.h: * public/WebIntentServiceInfo.h: * public/WebKitPlatformSupport.h: Removed. * public/WebLocalizedString.h: Removed. * public/WebMediaStreamDescriptor.h: Removed. * public/WebMimeRegistry.h: Removed. * public/WebNonCopyable.h: Removed. * public/WebPageOverlay.h: * public/WebPeerConnectionHandler.h: Removed. * public/WebPeerConnectionHandlerClient.h: Removed. * public/WebPoint.h: Removed. * public/WebPrivateOwnPtr.h: Removed. * public/WebPrivatePtr.h: Removed. * public/WebRect.h: Removed. * public/WebSerializedScriptValue.h: Removed. * public/WebSize.h: Removed. * public/WebSocketStreamError.h: Removed. * public/WebSocketStreamHandle.h: Removed. * public/WebSocketStreamHandleClient.h: Removed. * public/WebString.h: Removed. * public/WebThread.h: Removed. * public/WebThreadSafeData.h: Removed. * public/WebURL.h: Removed. * public/WebURLError.h: Removed. * public/WebURLLoadTiming.h: Removed. * public/WebURLLoader.h: Removed. * public/WebURLLoaderClient.h: Removed. * public/WebURLRequest.h: Removed. * public/WebURLResponse.h: Removed. * public/WebVector.h: Removed. * public/WebWorkerRunLoop.h: * public/android/WebThemeEngine.h: Removed. * public/linux/WebFontFamily.h: Removed. * public/linux/WebThemeEngine.h: Removed. * public/mac/WebThemeEngine.h: Removed. * public/win/WebThemeEngine.h: Removed. * src/ApplicationCacheHost.cpp: * src/ApplicationCacheHostInternal.h: * src/AssertMatchingEnums.cpp: * src/AssociatedURLLoader.cpp: * src/AssociatedURLLoader.h: * src/AsyncFileSystemChromium.cpp: * src/AsyncFileWriterChromium.cpp: * src/AudioDestinationChromium.cpp: * src/AudioDestinationChromium.h: * src/AutofillPopupMenuClient.cpp: * src/BlobRegistryProxy.cpp: * src/CCThreadImpl.cpp: * src/ChromeClientImpl.cpp: * src/ChromiumCurrentTime.cpp: * src/ChromiumOSRandomSource.cpp: * src/ChromiumThreading.cpp: * src/CompositionUnderlineBuilder.h: * src/CompositionUnderlineVectorBuilder.h: * src/ContextMenuClientImpl.cpp: * src/DragClientImpl.cpp: * src/DragScrollTimer.h: * src/ExternalPopupMenu.cpp: * src/FrameLoaderClientImpl.cpp: * src/GraphicsContext3DChromium.cpp: * src/IDBCallbacksProxy.cpp: * src/IDBCursorBackendProxy.cpp: * src/IDBFactoryBackendProxy.cpp: * src/IDBObjectStoreBackendProxy.cpp: * src/InspectorClientImpl.cpp: * src/InspectorFrontendClientImpl.cpp: * src/LocalFileSystemChromium.cpp: * src/LocalizedStrings.cpp: * src/NotificationPresenterImpl.cpp: * src/PlatformMessagePortChannel.cpp: * src/PlatformSupport.cpp: * src/ResourceHandle.cpp: * src/ResourceHandleInternal.h: * src/ScrollbarGroup.cpp: * src/SharedWorkerRepository.cpp: * src/SocketStreamHandle.cpp: * src/SpeechInputClientImpl.cpp: * src/StorageAreaProxy.cpp: * src/StorageEventDispatcherChromium.cpp: * src/StorageNamespaceProxy.cpp: * src/WebAccessibilityObject.cpp: * src/WebAnimationControllerImpl.cpp: * src/WebArrayBufferView.cpp: * src/WebAttribute.cpp: * src/WebAudioBus.cpp: * src/WebBindings.cpp: * src/WebBlobData.cpp: * src/WebCString.cpp: * src/WebColor.cpp: * src/WebCommon.cpp: * src/WebCompositorImpl.cpp: * src/WebCompositorInputHandlerImpl.cpp: * src/WebContentLayerImpl.cpp: * src/WebDOMEventListenerPrivate.h: * src/WebDOMMessageEvent.cpp: * src/WebDOMStringList.cpp: * src/WebData.cpp: * src/WebDataSourceImpl.cpp: * src/WebDatabase.cpp: * src/WebDevToolsAgentImpl.cpp: * src/WebDocument.cpp: * src/WebDocumentType.cpp: * src/WebDragData.cpp: * src/WebEntities.cpp: * src/WebExternalTextureLayerImpl.cpp: * src/WebFileChooserCompletionImpl.h: * src/WebFileSystemCallbacksImpl.cpp: * src/WebFileSystemCallbacksImpl.h: * src/WebFloatQuad.cpp: * src/WebFontImpl.cpp: * src/WebFormElement.cpp: * src/WebFrameImpl.cpp: * src/WebGeolocationError.cpp: * src/WebGeolocationPermissionRequest.cpp: * src/WebGraphicsContext3D.cpp: * src/WebHTTPBody.cpp: * src/WebHTTPLoadInfo.cpp: * src/WebHistoryItem.cpp: * src/WebIDBCallbacksImpl.cpp: * src/WebIDBCursorImpl.h: * src/WebIDBDatabaseCallbacksImpl.cpp: * src/WebIDBDatabaseCallbacksImpl.h: * src/WebIDBDatabaseError.cpp: * src/WebIDBDatabaseImpl.h: * src/WebIDBIndexImpl.h: * src/WebIDBKey.cpp: * src/WebIDBKeyPath.cpp: * src/WebIDBObjectStoreImpl.cpp: * src/WebIDBObjectStoreImpl.h: * src/WebIDBTransactionImpl.h: * src/WebIconLoadingCompletionImpl.h: * src/WebImageCG.cpp: * src/WebImageDecoder.cpp: * src/WebImageSkia.cpp: * src/WebInputElement.cpp: * src/WebKit.cpp: * src/WebLabelElement.cpp: * src/WebLayer.cpp: * src/WebLayerTreeView.cpp: * src/WebLayerTreeViewImpl.cpp: * src/WebMediaPlayerClientImpl.cpp: * src/WebMediaStreamDescriptor.cpp: * src/WebMediaStreamRegistry.cpp: * src/WebMediaStreamSource.cpp: * src/WebNode.cpp: * src/WebNotification.cpp: * src/WebOptionElement.cpp: * src/WebPageSerializer.cpp: * src/WebPageSerializerImpl.cpp: * src/WebPageSerializerImpl.h: * src/WebPluginContainerImpl.cpp: * src/WebPluginListBuilderImpl.cpp: * src/WebPluginLoadObserver.h: * src/WebPopupMenuImpl.cpp: * src/WebPopupMenuImpl.h: * src/WebRange.cpp: * src/WebRegularExpression.cpp: * src/WebScriptController.cpp: * src/WebScrollbarImpl.cpp: * src/WebSecurityOrigin.cpp: * src/WebSecurityPolicy.cpp: * src/WebSelectElement.cpp: * src/WebSerializedScriptValue.cpp: * src/WebSettingsImpl.cpp: * src/WebSharedWorkerImpl.cpp: * src/WebSocketImpl.cpp: * src/WebSocketImpl.h: * src/WebSpeechInputControllerMockImpl.cpp: * src/WebSpeechInputControllerMockImpl.h: * src/WebStorageAreaImpl.cpp: * src/WebStorageEventDispatcherImpl.cpp: * src/WebStorageNamespaceImpl.cpp: * src/WebString.cpp: * src/WebTextCheckingCompletionImpl.cpp: * src/WebThreadSafeData.cpp: * src/WebURL.cpp: * src/WebURLError.cpp: * src/WebURLLoadTiming.cpp: * src/WebURLRequest.cpp: * src/WebURLResponse.cpp: * src/WebURLResponsePrivate.h: * src/WebUserMediaRequest.cpp: * src/WebViewImpl.cpp: * src/WebViewImpl.h: * src/WebWorkerClientImpl.cpp: * src/WebWorkerClientImpl.h: * src/WebWorkerImpl.cpp: * src/WorkerAsyncFileSystemChromium.cpp: * src/WorkerAsyncFileWriterChromium.cpp: * src/WorkerFileSystemCallbacksBridge.cpp: * src/WorkerFileSystemCallbacksBridge.h: * src/WorkerFileWriterCallbacksBridge.cpp: * src/WrappedResourceRequest.h: * src/WrappedResourceResponse.h: * src/mac/WebSubstringUtil.mm: * tests/AssociatedURLLoaderTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/FrameTestHelpers.cpp: * tests/MockWebGraphicsContext3D.h: * tests/PopupMenuTest.cpp: * tests/RunAllTests.cpp: * tests/WebLayerTest.cpp: * tests/WebPageNewSerializerTest.cpp: * tests/WebPageSerializerTest.cpp: * tests/WebURLRequestTest.cpp: * tests/WebUnitTests.h: * tests/WebViewTest.cpp: 2011-12-05 Dana Jansens [chromium] Set opaque flag for ImageLayerChromium https://bugs.webkit.org/show_bug.cgi?id=72964 Reviewed by James Robinson. * WebKit.gypi: * tests/ImageLayerChromiumTest.cpp: Added. (WebCore::MockGraphicsLayerClient::notifyAnimationStarted): (WebCore::MockGraphicsLayerClient::notifySyncRequired): (WebCore::MockGraphicsLayerClient::paintContents): (WebCore::MockGraphicsLayerClient::showDebugBorders): (WebCore::MockGraphicsLayerClient::showRepaintCounter): (WebCore::TestImage::create): (WebCore::TestImage::TestImage): (WebCore::TestImage::~TestImage): (WebCore::TestImage::isBitmapImage): (WebCore::TestImage::currentFrameHasAlpha): (WebCore::TestImage::size): (WebCore::TestImage::nativeImageForCurrentFrame): (WebCore::TestImage::destroyDecodedData): (WebCore::TestImage::decodedSize): (WebCore::TestImage::draw): (WebCore::TEST): 2011-12-02 James Robinson [chromium] Remove forwarding headers for WebLayer APIs https://bugs.webkit.org/show_bug.cgi?id=73729 Reviewed by Adam Barth. These are no longer necessary. * WebKit.gyp: * public/WebContentLayer.h: Removed. * public/WebContentLayerClient.h: Removed. * public/WebExternalTextureLayer.h: Removed. * public/WebLayer.h: Removed. * public/WebLayerClient.h: Removed. * public/WebLayerTreeView.h: Removed. * public/WebLayerTreeViewClient.h: Removed. * src/WebLayerTreeView.cpp: * src/WebLayerTreeViewImpl.cpp: * tests/WebLayerTest.cpp: 2011-12-05 Vsevolod Vlasov Unreviewed, fixed chromium DEPS syntax. * DEPS: 2011-12-05 Vsevolod Vlasov Unreviewed. Rolled DEPS. * DEPS: 2011-12-05 Eric Carlson WebKit/chromium part of: Add WebKit preferences for text track settings https://bugs.webkit.org/show_bug.cgi?id=73721 Reviewed by John Sullivan. * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::shouldDisplaySubtitles): Added. (WebKit::WebSettingsImpl::shouldDisplayCaptions): Ditto. (WebKit::WebSettingsImpl::shouldDisplayTextDescriptions): Ditto. * src/WebSettingsImpl.h: 2011-12-04 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2011-12-02 Sheriff Bot Unreviewed, rolling out r101906. http://trac.webkit.org/changeset/101906 https://bugs.webkit.org/show_bug.cgi?id=73736 Failing chromium webkit_unit_tests (Requested by scheib on #webkit). * WebKit.gypi: * tests/DispatchEventTest.cpp: Removed. * tests/data/event_target.html: Removed. 2011-12-02 Dave Michael Add a unit test for creating, listening for, and dispatching events via the chromium API. https://bugs.webkit.org/show_bug.cgi?id=72988 Reviewed by Darin Fisher. * WebKit.gypi: * tests/DispatchEventTest.cpp: Added. (WebKit::MockListener::MockListener): (WebKit::MockListener::~MockListener): (WebKit::MockListener::events): (WebKit::DispatchEventTest::DispatchEventTest): (WebKit::DispatchEventTest::TearDown): (WebKit::TEST_F): 2011-12-02 Nate Chapin Don't call FocusController:setActive() in WebViewImpl::setFocus(), since being active and being focused are different concepts and chromium now properly sends setActive IPCs on all platforms. https://bugs.webkit.org/show_bug.cgi?id=73687 Reviewed by Eric Seidel. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setFocus): * tests/WebViewTest.cpp: Test how different combinations of setIsActive() and setFocus() affect whether the document has focus. 2011-12-02 Dave Michael Add WebArrayBuffer to chromium API https://bugs.webkit.org/show_bug.cgi?id=73593 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebArrayBuffer.h: Added. (WebKit::WebArrayBuffer::~WebArrayBuffer): (WebKit::WebArrayBuffer::WebArrayBuffer): (WebKit::WebArrayBuffer::operator=): (WebKit::WebArrayBuffer::isNull): * public/WebBindings.h: * src/WebArrayBuffer.cpp: Added. (WebKit::WebArrayBuffer::create): (WebKit::WebArrayBuffer::reset): (WebKit::WebArrayBuffer::assign): (WebKit::WebArrayBuffer::data): (WebKit::WebArrayBuffer::byteLength): (WebKit::WebArrayBuffer::toV8Value): (WebKit::WebArrayBuffer::WebArrayBuffer): (WebKit::WebArrayBuffer::operator=): (WebKit::WebArrayBuffer::operator WTF::PassRefPtr): * src/WebBindings.cpp: (WebKit::getArrayBufferImpl): (WebKit::WebBindings::getArrayBuffer): 2011-12-02 David Grogan Grant workers experimental access to IndexedDB. https://bugs.webkit.org/show_bug.cgi?id=73609 Reviewed by Nate Chapin. * src/IDBFactoryBackendProxy.cpp: (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread): Return true while behind a runtime flag, and while we figure out how to check permission in a thread-safe manner. (WebKit::IDBFactoryBackendProxy::openFromWorker): Using the webFrame from the worker seems to satisfy the weak condition in chromium that neither it nor it's associated RenderView is NULL. * src/IDBFactoryBackendProxy.h: 2011-12-01 James Robinson [chromium] Move WebLayer APIs to platform directory https://bugs.webkit.org/show_bug.cgi?id=73610 Reviewed by Darin Fisher. * public/WebContentLayer.h: * public/WebContentLayerClient.h: * public/WebExternalTextureLayer.h: * public/WebLayer.h: * public/WebLayerClient.h: * public/WebLayerTreeView.h: * public/WebLayerTreeViewClient.h: * public/platform/WebContentLayer.h: Copied from Source/WebKit/chromium/public/WebContentLayer.h. (WebKit::WebContentLayer::WebContentLayer): (WebKit::WebContentLayer::~WebContentLayer): (WebKit::WebContentLayer::operator=): * public/platform/WebContentLayerClient.h: Copied from Source/WebKit/chromium/public/WebContentLayerClient.h. (WebKit::WebContentLayerClient::~WebContentLayerClient): * public/platform/WebExternalTextureLayer.h: Copied from Source/WebKit/chromium/public/WebExternalTextureLayer.h. (WebKit::WebExternalTextureLayer::WebExternalTextureLayer): (WebKit::WebExternalTextureLayer::~WebExternalTextureLayer): (WebKit::WebExternalTextureLayer::operator=): * public/platform/WebLayer.h: Copied from Source/WebKit/chromium/public/WebLayer.h. (WebKit::WebLayer::WebLayer): (WebKit::WebLayer::~WebLayer): (WebKit::WebLayer::operator=): (WebKit::WebLayer::isNull): (WebKit::WebLayer::to): (WebKit::WebLayer::toConst): (WebKit::WebLayer::unwrap): (WebKit::WebLayer::constUnwrap): (WebKit::operator==): (WebKit::operator!=): * public/platform/WebLayerClient.h: Copied from Source/WebKit/chromium/public/WebLayerClient.h. (WebKit::WebLayerClient::~WebLayerClient): * public/platform/WebLayerTreeView.h: Copied from Source/WebKit/chromium/public/WebLayerTreeView.h. (WebKit::WebLayerTreeView::Settings::Settings): (WebKit::WebLayerTreeView::WebLayerTreeView): (WebKit::WebLayerTreeView::~WebLayerTreeView): (WebKit::WebLayerTreeView::operator=): (WebKit::operator==): (WebKit::operator!=): * public/platform/WebLayerTreeViewClient.h: Copied from Source/WebKit/chromium/public/WebLayerTreeViewClient.h. (WebKit::WebLayerTreeViewClient::~WebLayerTreeViewClient): * public/platform/WebPrivatePtr.h: * src/WebContentLayer.cpp: * src/WebContentLayerImpl.cpp: * src/WebExternalTextureLayer.cpp: * src/WebExternalTextureLayerImpl.cpp: * src/WebLayer.cpp: * src/WebLayerImpl.cpp: * src/WebLayerTreeView.cpp: * src/WebLayerTreeViewImpl.h: 2011-12-02 Karl Koscher [chromium] add setOpener method to WebFrame https://bugs.webkit.org/show_bug.cgi?id=73379 Reviewed by Darin Fisher. * public/WebFrame.h: (WebKit::WebFrame::clearOpener): now an inline call to setOpener(0) * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::setOpener): sets window.opener * src/WebFrameImpl.h: 2011-12-02 Kent Tamura Unreviewed, rolling out r101337. http://trac.webkit.org/changeset/101337 https://bugs.webkit.org/show_bug.cgi?id=73189 It's a wrong way to fix the problem * src/WebViewImpl.cpp: (WebKit::WebViewImpl::popupOpened): 2011-12-02 Kausalya Madhusudhanan Added helper method to identify whether the page has custom page size style. https://bugs.webkit.org/show_bug.cgi?id=73585 Reviewed by Darin Fisher. * public/WebFrame.h: * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::hasCustomPageSizeStyle): * src/WebFrameImpl.h: 2011-12-02 Tony Chang [Chromium] GYP fix for Windows 2010 build https://bugs.webkit.org/show_bug.cgi?id=73483 Reviewed by Adam Barth. Patch by Carlos Pizano. * WebKit.gyp: Exclude the android directory and remove a file match that doesn't match anything. 2011-12-01 Alok Priyadarshi [chromium] CCLayerQuad does not return FloatQuad in correct order https://bugs.webkit.org/show_bug.cgi?id=73247 Reviewed by James Robinson. * WebKit.gypi: * tests/CCLayerQuadTest.cpp: Added. (WebCore::TEST): 2011-11-30 Adam Klein [chromium] WebKitMutationObserver::deliverAllMutations should be exposed through the Chromium API https://bugs.webkit.org/show_bug.cgi?id=71242 Reviewed by Darin Fisher. Relanding, depends on http://codereview.chromium.org/8748015/ to fix a sandboxing issue on Chromium/Linux. Add addTaskObserver and removeTaskObserver to WebThread, along with a new WebThread::TaskObserver interface. For mutation observers, add a TaskObserver to the main thread to deliver mutations after each task runs. The Chromium implementation of the new WebThread methods is in http://codereview.chromium.org/8586038/. * public/platform/WebThread.h: (WebKit::WebThread::TaskObserver::~TaskObserver): * src/WebKit.cpp: (WebKit::initialize): (WebKit::shutdown): 2011-12-02 Sheriff Bot Unreviewed, rolling out r101833. http://trac.webkit.org/changeset/101833 https://bugs.webkit.org/show_bug.cgi?id=73678 test_expectations file invalid: run Tools/Scripts/new-run- webkit-tests --lint-test-files (Requested by scheib on #webkit). * WebKit.gypi: * tests/CCLayerQuadTest.cpp: Removed. 2011-12-02 Alok Priyadarshi [chromium] CCLayerQuad does not return FloatQuad in correct orientation https://bugs.webkit.org/show_bug.cgi?id=73247 Reviewed by James Robinson. * WebKit.gypi: * tests/CCLayerQuadTest.cpp: Added. (WebCore::TEST): 2011-12-02 Daniel Cheng [chromium] Add plumbing for supporting custom MIME types in DataTransfer. https://bugs.webkit.org/show_bug.cgi?id=73594 Reviewed by David Levin. * public/platform/WebClipboard.h: (WebKit::WebClipboard::readCustomData): * public/platform/WebDragData.h: * src/PlatformSupport.cpp: (WebCore::PlatformSupport::clipboardReadCustomData): * src/WebDragData.cpp: (WebKit::WebDragData::customData): (WebKit::WebDragData::setCustomData): 2011-12-02 Joshua Bell IndexedDB: Rename "multientry" to "multiEntry" per spec change https://bugs.webkit.org/show_bug.cgi?id=73578 Reviewed by Darin Fisher. * public/WebIDBIndex.h: (WebKit::WebIDBIndex::multiEntry): * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::createIndex): * src/IDBIndexBackendProxy.cpp: (WebKit::IDBIndexBackendProxy::multiEntry): * src/IDBIndexBackendProxy.h: * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::createIndex): * src/IDBObjectStoreBackendProxy.h: * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::multiEntry): * src/WebIDBIndexImpl.h: * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::createIndex): * src/WebIDBObjectStoreImpl.h: 2011-12-02 Sami Kyostila [chromium] Make CCInputHandler scrolling stateful https://bugs.webkit.org/show_bug.cgi?id=73345 This change makes the scrolling part of CCInputHandler stateful by replacing scrollRootLayer() with scrollBegin(), scrollBy() and scrollEnd(). This is done in preparation for scrollable sublayers. Specifically, scrollBegin() will allow CCLayerTreeHostImpl to perform input event hit testing to find the layer to be scrolled. Reviewed by Steve Block. * src/WebCompositorImpl.cpp: (WebKit::WebCompositorImpl::handleInputEvent): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): 2011-12-02 Pavel Feldman Web Inspector [chromium]: provisional fix for interactive ui tests https://bugs.webkit.org/show_bug.cgi?id=73633 Reviewed by Yury Semikhatsky. * src/js/Tests.js: (.): (.TestSuite.prototype._executeCodeWhenScriptsAreParsed): 2011-12-01 David Levin [chromium] Add WebKit API's to support the autosize algorithm in renderer process. https://bugs.webkit.org/show_bug.cgi?id=73058 Reviewed by Darin Fisher. * public/WebView.h: Expose the auto-resize method. * public/WebWidgetClient.h: (WebKit::WebWidgetClient::didAutoResize): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::createFrameView): Set the auto-resize state on the new view. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::resize): Extracted sendResizeEventAndRepaint, so that it can be used by layoutUpdated. (WebKit::WebViewImpl::queueBothResizeEventAndPaint): Ditto. (WebKit::WebViewImpl::hasHorizontalScrollbar): Added for testing purposes. (WebKit::WebViewImpl::hasVerticalScrollbar): Ditto. (WebKit::WebViewImpl::enableAutoResizeMode): Set-up auto-resize. (WebKit::WebViewImpl::layoutUpdated): Handle the auto-resize case by sending events and invalidation. * src/WebViewImpl.h: Expose the aut-reosize information. (WebKit::WebViewImpl::shouldAutoResize): (WebKit::WebViewImpl::minAutoSize): (WebKit::WebViewImpl::maxAutoSize): * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::createWebViewAndLoad): Added the ability to specify the WebViewClient. * tests/FrameTestHelpers.h: Ditto. * tests/WebViewTest.cpp: Added a simple test for auto-resize. (WebKit::TestData::setWebView): (WebKit::TestData::setSize): Capture the new size. (WebKit::TestData::hasHorizontalScrollbar): (WebKit::TestData::hasVerticalScrollbar): (WebKit::TestData::width): (WebKit::TestData::height): (WebKit::AutoResizeWebViewClient::didAutoResize): Handle the resize event. (WebKit::AutoResizeWebViewClient::testData): (WebKit::TEST_F): The actual test. * tests/data/specify_size.html: Added. 2011-12-02 Xiyuan Xia [Chromium] Support adding/removing page overlay to WebView https://bugs.webkit.org/show_bug.cgi?id=73235 Reviewed by James Robinson. * WebKit.gyp: * public/WebPageOverlay.h: Added. (WebKit::WebPageOverlay::~WebPageOverlay): * public/WebView.h: * src/PageOverlay.cpp: (WebKit::PageOverlay::create): (WebKit::PageOverlay::PageOverlay): (WebKit::OverlayGraphicsLayerClientImpl::create): (WebKit::OverlayGraphicsLayerClientImpl::paintContents): (WebKit::OverlayGraphicsLayerClientImpl::OverlayGraphicsLayerClientImpl): (WebKit::PageOverlay::update): (WebKit::PageOverlay::paintWebFrame): (WebKit::PageOverlay::invalidateWebFrame): * src/PageOverlay.h: (WebKit::PageOverlay::overlay): (WebKit::PageOverlay::setOverlay): (WebKit::PageOverlay::zOrder): (WebKit::PageOverlay::setZOrder): * src/PageOverlayList.cpp: Added. (WebKit::PageOverlayList::create): (WebKit::PageOverlayList::PageOverlayList): (WebKit::PageOverlayList::~PageOverlayList): (WebKit::PageOverlayList::add): (WebKit::PageOverlayList::remove): (WebKit::PageOverlayList::update): (WebKit::PageOverlayList::paintWebFrame): (WebKit::PageOverlayList::find): * src/PageOverlayList.h: Added. (WebKit::PageOverlayList::empty): * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::paintPageOverlay): (WebKit::WebDevToolsAgentImpl::highlight): (WebKit::WebDevToolsAgentImpl::hideHighlight): * src/WebDevToolsAgentImpl.h: * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::paintWithContext): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::composite): (WebKit::WebViewImpl::addPageOverlay): (WebKit::WebViewImpl::removePageOverlay): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::didRecreateGraphicsContext): * src/WebViewImpl.h: (WebKit::WebViewImpl::pageOverlays): 2011-12-01 Jochen Eisinger [chromium] add referrer policy to WebContextMenuData https://bugs.webkit.org/show_bug.cgi?id=73567 Reviewed by Darin Fisher. * public/WebContextMenuData.h: * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2011-12-01 Kelly Norton More void functions eager to return values in RenderObject & WebFrameImpl https://bugs.webkit.org/show_bug.cgi?id=73571 Reviewed by Adam Barth. * src/WebFrameImpl.cpp: (WebKit::ChromePrintContext::computePageRects): 2011-12-01 Daniel Sievers [Chromium] Early returns in calculateDrawTransformsAndVisibilityInternal() are not respected by parent. https://bugs.webkit.org/show_bug.cgi?id=73270 Non-drawing child trees should not be added to the parent render surface's layer list and should neither extend the parent layer's drawable content rect. This also fixes assertions from the content texture residency logic, which doesn't like it if we try to use a render surface through a parent, while that surface itself was never 'used' in the same frame. Reviewed by James Robinson. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): 2011-12-01 David Reveman [Chromium] Use contentBounds instead of bounds for invalidation. https://bugs.webkit.org/show_bug.cgi?id=73525 Reviewed by James Robinson. Use setNeedsDisplay() instead of setNeedsDisplayRect() when possible. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::repaint): 2011-12-01 Elliot Poger webkit->chromium DEPS roll 111575->112463 https://bugs.webkit.org/show_bug.cgi?id=73231 Reviewed by Yury Semikhatsky. * DEPS: 2011-12-01 Pavel Feldman Web Inspector: further align front-end configurations: get rid of saveAsAvailable preference, inline drag glass pane. https://bugs.webkit.org/show_bug.cgi?id=73555 Reviewed by Yury Semikhatsky. * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::canSaveAs): * src/InspectorFrontendClientImpl.h: * src/js/DevTools.js: 2011-12-01 Pavel Feldman Web Inspector: query backend for capabilities explicitly. https://bugs.webkit.org/show_bug.cgi?id=73442 Reviewed by Yury Semikhatsky. * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::canClearBrowserCache): (WebKit::InspectorClientImpl::canClearBrowserCookies): * src/InspectorClientImpl.h: * src/js/DevTools.js: 2011-11-29 Hans Wennborg IndexedDB: Cursor pre-fetching https://bugs.webkit.org/show_bug.cgi?id=73025 Reviewed by Darin Fisher. Add plumbing for new pre-fetching related functions. * public/WebIDBCallbacks.h: (WebKit::WebIDBCallbacks::onSuccessWithPrefetch): * public/WebIDBCursor.h: (WebKit::WebIDBCursor::deleteFunction): (WebKit::WebIDBCursor::prefetchContinue): (WebKit::WebIDBCursor::prefetchReset): (WebKit::WebIDBCursor::postSuccessHandlerCallback): * public/WebIDBTransaction.h: (WebKit::WebIDBTransaction::addPendingEvents): * src/IDBCallbacksProxy.cpp: (WebKit::IDBCallbacksProxy::onSuccessWithPrefetch): * src/IDBCallbacksProxy.h: * src/IDBCursorBackendProxy.cpp: (WebKit::IDBCursorBackendProxy::postSuccessHandlerCallback): * src/IDBCursorBackendProxy.h: (WebKit::IDBCursorBackendProxy::prefetchContinue): (WebKit::IDBCursorBackendProxy::prefetchReset): * src/IDBTransactionBackendProxy.h: (WebKit::IDBTransactionBackendProxy::addPendingEvents): * src/WebIDBCursorImpl.cpp: (WebKit::WebIDBCursorImpl::prefetchContinue): (WebKit::WebIDBCursorImpl::prefetchReset): * src/WebIDBCursorImpl.h: 2011-12-01 Hans Wennborg IndexedDB: Fix WebIDBObjectStore::createIndex() after r101602 https://bugs.webkit.org/show_bug.cgi?id=73543 Reviewed by Tony Gentilcore. r101602 introduces a new signature for createIndex(). Until Chromium has been updated to override that function, the default implementation must call the old version. * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::createIndex): 2011-11-30 David Reveman [Chromium] Improve tile invalidation. https://bugs.webkit.org/show_bug.cgi?id=71872 Reviewed by James Robinson. Remove public API function WebContentLayer::invalidRect(). Add new test case to LayerChromiumTest.checkSetNeedsDisplayCausesCorrectBehavior that verifies that calling setNeedsDisplay() on a LayerChromium with empty bounds is handled correctly. * public/WebContentLayer.h: * src/WebContentLayer.cpp: (WebKit::WebContentLayer::invalidateRect): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::repaint): * tests/LayerChromiumTest.cpp: 2011-11-30 Takashi Toyoshima Add didUpdateBufferedAmount callback to WebSocketClient API https://bugs.webkit.org/show_bug.cgi?id=73306 Reviewed by Darin Fisher. * public/WebSocketClient.h: Add didUpdateBufferedAmount and default implementations for all callbacks. (WebKit::WebSocketClient::didConnect): (WebKit::WebSocketClient::didReceiveMessage): (WebKit::WebSocketClient::didReceiveBinaryData): (WebKit::WebSocketClient::didReceiveMessageError): (WebKit::WebSocketClient::didUpdateBufferedAmount): (WebKit::WebSocketClient::didStartClosingHandshake): (WebKit::WebSocketClient::didClose): * src/WebSocketImpl.cpp: (WebKit::WebSocketImpl::didUpdateBufferedAmount): * src/WebSocketImpl.h: 2011-11-30 Scott Violet [chromium] Expose WebLayerTreeView::setRootLayer as a call through to same method on CCLayerTreeHost. https://bugs.webkit.org/show_bug.cgi?id=73506 Reviewed by James Robinson. * public/WebLayerTreeView.h: Adds setRootLayer. * src/WebLayerTreeView.cpp: Ditto. (WebKit::WebLayerTreeView::setRootLayer): 2011-11-30 Alexey Proskuryakov Remove an unneeded argument from FrameLoaderClient::download https://bugs.webkit.org/show_bug.cgi?id=73486 Reviewed by Andreas Kling. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::download): * src/FrameLoaderClientImpl.h: Updated for the change. 2011-11-30 Joshua Bell IndexedDB: Implement IDBIndex multientry feature https://bugs.webkit.org/show_bug.cgi?id=73232 Reviewed by Tony Chang. Adds the multientry IDBIndex flag to the WebKit API. A version of the createIndex() method without this flag is retained until all callers are updated. * public/WebIDBIndex.h: (WebKit::WebIDBIndex::multientry): * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::createIndex): * src/IDBIndexBackendProxy.cpp: (WebKit::IDBIndexBackendProxy::multientry): * src/IDBIndexBackendProxy.h: * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::createIndex): * src/IDBObjectStoreBackendProxy.h: * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::multientry): * src/WebIDBIndexImpl.h: * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::createIndex): * src/WebIDBObjectStoreImpl.h: (WebKit::WebIDBObjectStoreImpl::createIndex): 2011-11-30 David Reveman [Chromium] Add support for painting into an SkPicture and then rasterizing into tile-sized chunks. https://bugs.webkit.org/show_bug.cgi?id=71388 Reviewed by James Robinson. Track changes to texture updater. * tests/TiledLayerChromiumTest.cpp: (WTF::FakeLayerTextureUpdater::Texture::Texture): (WTF::FakeLayerTextureUpdater::Texture::~Texture): (WTF::FakeLayerTextureUpdater::Texture::updateRect): (WTF::FakeLayerTextureUpdater::createTexture): 2011-11-30 Gregg Tavares Implement draft WEBGL_compressed_textures WebGL extension https://bugs.webkit.org/show_bug.cgi?id=72086 Reviewed by Kenneth Russell. * public/WebGraphicsContext3D.h: * src/GraphicsContext3DChromium.cpp: * src/GraphicsContext3DPrivate.h: * tests/MockWebGraphicsContext3D.h: (WebKit::MockWebGraphicsContext3D::compressedTexImage2D): (WebKit::MockWebGraphicsContext3D::compressedTexSubImage2D): 2011-11-18 Nat Duca [chromium] Enable threaded compositing via CCThreadProxy::hasThread only https://bugs.webkit.org/show_bug.cgi?id=70838 Reviewed by James Robinson. * public/WebCompositor.h: * public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): * public/WebSettings.h: * src/WebCompositorImpl.cpp: (WebKit::WebCompositor::initialize): (WebKit::WebCompositor::shutdown): (WebKit::WebCompositor::fromIdentifier): * src/WebKit.cpp: (WebKit::initializeWithoutV8): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): (WebKit::WebLayerTreeView::composite): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): * src/WebSettingsImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::animate): (WebKit::WebViewImpl::composite): (WebKit::WebViewImpl::scheduleAnimation): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::createLayerTreeHostContext3D): (WebKit::WebViewImpl::scheduleComposite): (WebKit::WebViewImpl::graphicsContext3D): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::runTest): 2011-11-30 David Levin [chromium] Move didUpdateLayout from WebFrameClient to WebViewClient. https://bugs.webkit.org/show_bug.cgi?id=73415 Reviewed by Darin Fisher. * public/WebFrameClient.h: Move didUpdateLayout to WebViewClient. * public/WebViewClient.h: (WebKit::WebViewClient::didUpdateLayout): Ditto. * src/ChromeClientImpl.cpp: Call WebViewImpl now. (WebKit::ChromeClientImpl::layoutUpdated): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::layoutUpdated): * src/WebViewImpl.h: Added layoutUpdated. 2011-11-30 Pavel Feldman Web Inspector: get rid of deferred backend->front-end commands processing. https://bugs.webkit.org/show_bug.cgi?id=73439 Reviewed by Yury Semikhatsky. * src/WebDevToolsFrontendImpl.cpp: (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl): (WebKit::WebDevToolsFrontendImpl::frontendLoaded): (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend): * src/WebDevToolsFrontendImpl.h: 2011-11-30 Michael Nordman [chromium] WebSQLDatabase could use some better error reporting. Instruments the database classes to report errors a the DatabaseObserver. https://bugs.webkit.org/show_bug.cgi?id=73258 Reviewed by David Levin. * public/WebDatabase.h: * public/WebDatabaseObserver.h: (WebKit::WebDatabaseObserver::reportOpenDatabaseResult): (WebKit::WebDatabaseObserver::reportChangeVersionResult): (WebKit::WebDatabaseObserver::reportStartTransactionResult): (WebKit::WebDatabaseObserver::reportCommitTransactionResult): (WebKit::WebDatabaseObserver::reportExecuteStatementResult): (WebKit::WebDatabaseObserver::reportVacuumDatabaseResult): * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::reportOpenDatabaseResult): (WebCore::DatabaseObserver::reportChangeVersionResult): (WebCore::DatabaseObserver::reportStartTransactionResult): (WebCore::DatabaseObserver::reportCommitTransactionResult): (WebCore::DatabaseObserver::reportExecuteStatementResult): (WebCore::DatabaseObserver::reportVacuumDatabaseResult): * src/WebDatabase.cpp: (WebKit::WebDatabase::isSyncDatabase): 2011-11-30 Sheriff Bot Unreviewed, rolling out r101440 and r101442. http://trac.webkit.org/changeset/101440 http://trac.webkit.org/changeset/101442 https://bugs.webkit.org/show_bug.cgi?id=73429 multiple crashes on layout tests (Requested by hayato on #webkit). * WebKit.gyp: * WebKit.gypi: * public/WebCompositor.h: * public/WebCompositorClient.h: * public/WebCompositorInputHandler.h: Removed. * public/WebCompositorInputHandlerClient.h: Removed. * public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): * public/WebSettings.h: * src/WebCompositorImpl.cpp: (WebCore::CCInputHandler::create): (WebKit::WebCompositor::setThread): (WebKit::WebCompositor::fromIdentifier): (WebKit::WebCompositorImpl::fromIdentifier): (WebKit::WebCompositorImpl::WebCompositorImpl): (WebKit::WebCompositorImpl::~WebCompositorImpl): (WebKit::WebCompositorImpl::setClient): (WebKit::WebCompositorImpl::handleInputEvent): (WebKit::WebCompositorImpl::identifier): (WebKit::WebCompositorImpl::willDraw): * src/WebCompositorImpl.h: (WebKit::WebCompositorImpl::create): * src/WebCompositorInputHandlerImpl.cpp: Removed. * src/WebCompositorInputHandlerImpl.h: Removed. * src/WebKit.cpp: (WebKit::initializeWithoutV8): (WebKit::shutdown): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): (WebKit::WebLayerTreeView::composite): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): (WebKit::WebSettingsImpl::setUseThreadedCompositor): * src/WebSettingsImpl.h: (WebKit::WebSettingsImpl::useThreadedCompositor): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::animate): (WebKit::WebViewImpl::composite): (WebKit::WebViewImpl::scheduleAnimation): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::createLayerTreeHostContext3D): (WebKit::WebViewImpl::scheduleComposite): (WebKit::WebViewImpl::graphicsContext3D): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::onEndTest): (WTF::CCLayerTreeHostTest::runTest): (WTF::CCLayerTreeHostTest::doBeginTest): (WTF::CCLayerTreeHostTestShortlived1::beginTest): (WTF::CCLayerTreeHostTestShortlived2::beginTest): (WTF::CCLayerTreeHostTestShortlived3::beginTest): (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest): (WTF::CCLayerTreeHostTestOpacityChange::afterTest): * tests/WebCompositorImplTest.cpp: Renamed from Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp. 2011-11-30 Daniel Sievers [Chromium] Avoid ASSERT_NOT_REACHED() from creating FBO with content texture of size 0 https://bugs.webkit.org/show_bug.cgi?id=73266 Reviewed by James Robinson. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): 2011-11-30 Pavel Feldman Web Inspector: do not report worker-related events unless inspector agent is enabled. https://bugs.webkit.org/show_bug.cgi?id=73411 Reviewed by Yury Semikhatsky. * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgent::disconnectEventAsText): 2011-11-30 Fady Samuel [Chromium] Fix broken DRT build for Aura Linux https://bugs.webkit.org/show_bug.cgi?id=72667 Reviewed by Tony Chang. * WebKit.gyp: 2011-11-29 Nat Duca Unreviewed. Fix clang build by using raw pointers instead of static OwnPtrs for WebCompositor managment. * src/WebCompositorImpl.cpp: (WebKit::WebCompositorImpl::initialize): (WebKit::WebCompositorImpl::shutdown): * src/WebCompositorImpl.h: 2011-11-18 Nat Duca [chromium] Enable threaded compositing via CCThreadProxy::hasThread only https://bugs.webkit.org/show_bug.cgi?id=70838 Reviewed by James Robinson. * public/WebCompositor.h: * public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): * public/WebSettings.h: * src/WebCompositorImpl.cpp: (WebKit::WebCompositor::initialize): (WebKit::WebCompositor::shutdown): (WebKit::WebCompositor::fromIdentifier): * src/WebKit.cpp: (WebKit::initializeWithoutV8): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): (WebKit::WebLayerTreeView::composite): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): * src/WebSettingsImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::animate): (WebKit::WebViewImpl::composite): (WebKit::WebViewImpl::scheduleAnimation): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::createLayerTreeHostContext3D): (WebKit::WebViewImpl::scheduleComposite): (WebKit::WebViewImpl::graphicsContext3D): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::runTest): 2011-11-29 Sheriff Bot Unreviewed, rolling out r101418. http://trac.webkit.org/changeset/101418 https://bugs.webkit.org/show_bug.cgi?id=73372 Chromium renderer crashes with ENABLE(MUTATION_OBSERVERS) (Requested by aklein on #webkit). * public/platform/WebThread.h: * src/WebKit.cpp: (WebKit::initialize): (WebKit::shutdown): 2011-11-29 Dirk Pranke add webkit_user_agent to DRT and webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=73362 Reviewed by Tony Chang. In preparation for building webkit_glue as a separate component, we need to explicitly declare DRT's and webkit_unit_tests' dependencies on webkit_user_agent. * WebKit.gyp: 2011-11-28 Adam Klein [chromium] WebKitMutationObserver::deliverAllMutations should be exposed through the Chromium API https://bugs.webkit.org/show_bug.cgi?id=71242 Reviewed by Darin Fisher. Add addTaskObserver and removeTaskObserver to WebThread, along with a new WebThread::TaskObserver interface. For mutation observers, add a TaskObserver to the main thread to deliver mutations after each task runs. The Chromium side of this patch is http://codereview.chromium.org/8586038/ * public/platform/WebThread.h: (WebKit::WebThread::TaskObserver::~TaskObserver): * src/WebKit.cpp: (WebKit::initialize): (WebKit::shutdown): 2011-11-29 Pavel Feldman Web Inspector: split Preferences into Preferences and Capabilities. https://bugs.webkit.org/show_bug.cgi?id=73321 Reviewed by Yury Semikhatsky. * src/js/DevTools.js: 2011-11-29 Jing Zhao Assertion fails when opening two popup menus https://bugs.webkit.org/show_bug.cgi?id=73189 Reviewed by Kent Tamura. By using element.dispatchEvent(), a user written script can open two popup menus, which causes the assertion in WebViewImpl::popupOpened() fail. Check if there is an opened popup menu before opening a popup menu. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::popupOpened): 2011-11-28 David Grogan WebWorkerRunLoop wrapper around WorkerRunLoop https://bugs.webkit.org/show_bug.cgi?id=71757 This allows the embedder to post tasks to webcore-created worker threads. WebWorkerRunLoop is a thin wrapper that just holds a WorkerRunLoop*. As such, it is not heap allocated and can be copied. Reviewed by Darin Fisher. * WebKit.gyp: Added WebWorkerRunLoop.{cpp,h} * public/WebWorkerRunLoop.h: Added. Interface the embedder will use to post Tasks to worker threads created in WebCore. (WebKit::WebWorkerRunLoop::Task::~Task): (WebKit::operator==): These are the operators necessary to allow WebWorkerRunLoop to be used as a key in a std::map using the value of the underlying WebCore::WorkerRunLoop* for the meaningful comparisons. (WebKit::operator<): * public/platform/WebKitPlatformSupport.h: Stubs for the embedder to implement. (WebKit::WebKitPlatformSupport::didStartWorkerRunLoop): (WebKit::WebKitPlatformSupport::didStopWorkerRunLoop): * src/PlatformSupport.cpp: Wrap incoming WorkerRunLoop objects in WebWorkerRunLoopImpl objects, forward them to WebKitPlatformSupport. (WebCore::PlatformSupport::didStartWorkerRunLoop): (WebCore::PlatformSupport::didStopWorkerRunLoop): * src/WebWorkerRunLoop.cpp: Added. (WebKit::WebWorkerRunLoop::WebWorkerRunLoop): Store incoming WorkerRunLoop pointer. (WebKit::WebWorkerRunLoop::postTask): Wrap incoming Task in ScriptExecutionContext::Task, post to stored WorkerRunLoop. (WebKit::WebWorkerRunLoop::equals): Support for the operators mentioned above. (WebKit::WebWorkerRunLoop::lessThan): Ditto. 2011-11-29 Roland Steiner