2012-02-27 James Kozianski Add missing parameter to didCreateScriptContext() so it overrides base class again. https://bugs.webkit.org/show_bug.cgi?id=79742 Reviewed by Kent Tamura. * tests/WebFrameTest.cpp: 2012-02-27 Kenichi Ishibashi [Chromium] Unreviewed gardening, Disable TransparencyWin.OpaqueCompositeLayerPixel * tests/TransparencyWinTest.cpp: (WebCore::TEST): 2012-02-27 Kinuko Yasuda [chromium] Add createSnapshotFile API to WebFileSystem to create File snapshots for filesystem files https://bugs.webkit.org/show_bug.cgi?id=79394 Reviewed by Darin Fisher. * public/platform/WebFileSystem.h: (WebKit::WebFileSystem::createSnapshotFileAndReadMetadata): Added. 2012-02-27 James Kozianski [chromium] Plumb extensionGroup into didCreateScriptContext(). https://bugs.webkit.org/show_bug.cgi?id=79072 Reviewed by Darin Fisher. * public/WebFrameClient.h: (WebKit::WebFrameClient::didCreateScriptContext): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::didCreateScriptContext): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-02-27 Adrienne Walker [chromium] Unreviewed gardening, disable TransparencyWinTest unit tests https://bugs.webkit.org/show_bug.cgi?id=79718 * tests/TransparencyWinTest.cpp: 2012-02-26 Hajime Morrita Move ChromeClient::showContextMenu() to ContextMenuClient https://bugs.webkit.org/show_bug.cgi?id=79427 Reviewed by Adam Barth. * src/ChromeClientImpl.h: (ChromeClientImpl): 2012-02-26 James Robinson Take 2 build fix. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): 2012-02-26 James Robinson Compile fix for CCLayerTreeHostImpl test. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): 2012-02-26 James Robinson [chromium] Wire up shouldUpdateScrollPositionOnMainThread and nonFastScrollableRegion to compositor https://bugs.webkit.org/show_bug.cgi?id=79155 Reviewed by Adam Barth. Add new tests for shouldScrollOnMainThread and nonFastScrollableRegion properties. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): (WebKit): * tests/LayerChromiumTest.cpp: 2012-02-25 Adrienne Walker [chromium] Unreviewed gardening, fix Linux Clang OwnPtr breakage https://bugs.webkit.org/show_bug.cgi?id=78404 r108886 doesn't compile on Linux Clang due to OwnPtr's public copy constructor (i.e. "has internal linkage but is not defined"). Fixed locally by changing copy initialization to direct initialization. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-02-24 Tien-Ren Chen [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure https://bugs.webkit.org/show_bug.cgi?id=78404 Reviewed by James Robinson. * tests/CCDamageTrackerTest.cpp: (WebKitTests::executeCalculateDrawTransformsAndVisibility): (WebKitTests::emulateDrawingOneFrame): (WebKitTests::createTestTreeWithOneSurface): (WebKitTests::createTestTreeWithTwoSurfaces): (WebKitTests::createAndSetUpTestTreeWithOneSurface): (WebKitTests::createAndSetUpTestTreeWithTwoSurfaces): (WebKitTests::TEST_F): * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerIteratorTest.cpp: * tests/CCLayerSorterTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::CCLayerTreeHostImplTest::setupScrollAndContentsLayers): (WebKit::TEST_F): (WebKit::DidDrawCheckLayer::create): (WebKit::BlendStateCheckLayer::create): * tests/CCRenderSurfaceTest.cpp: (WebCore::TEST): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::createLayer): (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): * tests/TreeSynchronizerTest.cpp: (WebKitTests::MockCCLayerImpl::create): (WebKitTests::MockLayerChromium::createCCLayerImpl): (WebKitTests::expectTreesAreIdentical): (WebKitTests::TEST): 2012-02-08 James Robinson [chromium] Make WebViewImpl depend on WebLayerTreeView instead of CCLayerTreeHost https://bugs.webkit.org/show_bug.cgi?id=75591 Reviewed by Kenneth Russell. This converts WebViewImpl from depending on CCLayerTreeHost to WebLayerTreeView in order to provide better isolation and allow for future refactorings. The changes to WebViewImpl are mostly mechanical. The WebLayerTreeView and WebLayerTreeViewClient interfaces have both grown and changed slightly: - Setup path for WebLayerTreeView changed to expose an initialize() function instead of a create() factory function. The new model is that a WebLayerTreeView when constructed is in a null state. Calling initialize() attempts to re-initialize the WLTV, which can either fail or succeed. All other functions must be called on a successfully initialized view. - WebLayerTreeView expanded to include functionality that CCLayerTreeHost exposes but WebLayerTreeView did not. Some of this is only valid for the single thread case and will be removed when we invert the scheduling control logic, these bits are commented. - WebLayerTreeViewClient expanded with some flow-control related APIs. Refactor only, no change in behavior. * public/platform/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (WebKit::WebLayerTreeView::isNull): * public/platform/WebLayerTreeViewClient.h: * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::scheduleCompositingLayerSync): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::initialize): (WebKit::WebLayerTreeView::compositorIdentifier): (WebKit::WebLayerTreeView::setVisible): (WebKit::WebLayerTreeView::setNeedsAnimate): (WebKit::WebLayerTreeView::updateAnimations): (WebKit::WebLayerTreeView::setNeedsRedraw): (WebKit::WebLayerTreeView::setPageScaleFactorAndLimits): (WebKit::WebLayerTreeView::startPageScaleAnimation): (WebKit::WebLayerTreeView::finishAllRendering): (WebKit::WebLayerTreeView::context): (WebKit::WebLayerTreeView::loseCompositorContext): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::didRecreateGraphicsContext): (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame): (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::animate): (WebKit::WebViewImpl::doPixelReadbackToCanvas): (WebKit::WebViewImpl::paint): (WebKit::WebViewImpl::composite): (WebKit::WebViewImpl::loseCompositorContext): (WebKit::WebViewImpl::computePageScaleFactorLimits): (WebKit::WebViewImpl::addPageOverlay): (WebKit::WebViewImpl::removePageOverlay): (WebKit::WebViewImpl::setRootGraphicsLayer): (WebKit::WebViewImpl::scheduleCompositingLayerSync): (WebKit::WebViewImpl::scrollRootLayerRect): (WebKit::WebViewImpl::invalidateRootLayerRect): (WebKit::WebViewImpl::scheduleAnimation): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::createContext3D): (WebKit::WebViewImpl::applyScrollAndScale): (WebKit::WebViewImpl::didRebindGraphicsContext): (WebKit::WebViewImpl::updateLayerTreeViewport): (WebKit::WebViewImpl::graphicsContext3D): (WebKit::WebViewImpl::setVisibilityState): * src/WebViewImpl.h: * tests/WebLayerTest.cpp: 2012-02-24 Ian Vollick [chromium] Plumb animation started notifications from CCLayerTreeHost to GraphicsLayerChromium https://bugs.webkit.org/show_bug.cgi?id=77646 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (TestHooks): (WTF::TestHooks::notifyAnimationStarted): (WTF::TestHooks::notifyAnimationFinished): (WTF::MockLayerTreeHost::create): (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::animateLayers): (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationStarted): (CCLayerTreeHostTestAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationFinished): 2012-02-24 James Robinson [chromium] WebKit::setColorNames is a client API https://bugs.webkit.org/show_bug.cgi?id=79539 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebColorName.h: Renamed from Source/Platform/chromium/public/WebColorName.h. (WebKit): * public/platform/WebColorName.h: * src/WebColor.cpp: 2012-02-24 Sheriff Bot Unreviewed, rolling out r108860. http://trac.webkit.org/changeset/108860 https://bugs.webkit.org/show_bug.cgi?id=79544 "Breaks Linux compile" (Requested by enne on #webkit). * WebKit.gyp: * public/platform/WebColorName.h: * src/WebColor.cpp: Renamed from Source/WebKit/chromium/src/WebColorName.cpp. (WebKit): (WebKit::toCSSValueKeyword): (WebKit::setNamedColors): 2012-02-24 James Robinson [chromium] WebKit::setColorNames is a client API https://bugs.webkit.org/show_bug.cgi?id=79539 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebColorName.h: Renamed from Source/Platform/chromium/public/WebColorName.h. (WebKit): * public/platform/WebColorName.h: * src/WebColor.cpp: 2012-02-22 James Robinson [chromium] Move WebGraphicsContext3D header into the Platform directory https://bugs.webkit.org/show_bug.cgi?id=79301 Reviewed by Adam Barth. Moves WebGraphicsContext3D and WebNonCopyable (which WGC3D depends on). * public/platform/WebGraphicsContext3D.h: * public/platform/WebNonCopyable.h: 2012-02-24 Michal Mocny [chromium] Purge Skia's GPU texture cache using GL_CHROMIUM_gpu_memory_manager https://bugs.webkit.org/show_bug.cgi?id=78265 Reviewed by Stephen White. * src/GraphicsContext3DChromium.cpp: (GrMemoryAllocationChangedCallback): (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback): (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged): (WebCore): (WebCore::GraphicsContext3DPrivate::grContext): 2012-02-24 James Robinson [chromium] Remove deprecated and unused WebGraphicsContext3D::initialize call https://bugs.webkit.org/show_bug.cgi?id=79296 Reviewed by Kenneth Russell. The old way to initialize a WebGraphicsContext3D from inside WebKit was to call initialize() on it with a WebView*. The new way to do this is via the WebViewClient interface. This deletes the old, unused path. * public/platform/WebGraphicsContext3D.h: (WebKit): * tests/CCLayerTreeHostImplTest.cpp: * tests/FakeWebGraphicsContext3D.h: 2012-02-23 James Robinson [chromium] Move Web*Layer* headers into Platform https://bugs.webkit.org/show_bug.cgi?id=79425 Reviewed by Adam Barth. Adds forwarding headers for Web*Layer* APIs and their dependencies. The forwarding headers for the Web*Layer* APIs are temporary since Web*Layer* is not exposed in the client interface. The other headers (such as WebColor) are exposed in both the client and platform APIs, so the forwarding headers are permanent, although we might move them back down to public/ at some point. * public/platform/WebCanvas.h: * public/platform/WebColor.h: * public/platform/WebColorName.h: * public/platform/WebContentLayer.h: * public/platform/WebContentLayerClient.h: * public/platform/WebExternalTextureLayer.h: * public/platform/WebLayer.h: * public/platform/WebLayerTreeView.h: * public/platform/WebLayerTreeViewClient.h: * public/platform/WebPrivatePtr.h: * public/platform/WebSolidColorLayer.h: 2012-02-24 Peter Collingbourne [chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup. https://bugs.webkit.org/show_bug.cgi?id=77307 Reviewed by Tony Chang. This function is currently used to build markup in order to print the selection, and will also be used to build markup for the clipboard. Without this change, the markup will refer to (for example) nonexistent CSS classes and invalid relative paths and therefore will not be interpreted correctly. Chromium bug: http://crbug.com/23329 * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::selectionAsMarkup): 2012-02-24 Pavel Feldman Not reviewed: chromium image for inspector status bar button updated. * src/js/Images/segmentSelectedEndChromium.png: 2012-02-24 Shinya Kawanaka SpellCheckRequest needs to know the context where the spellcheck happened. https://bugs.webkit.org/show_bug.cgi?id=79320 Reviewed by Hajime Morita. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::requestCheckingOfString): * src/EditorClientImpl.h: (EditorClientImpl): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::requestTextChecking): 2012-02-23 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-02-23 Ian Vollick [chromium] Implement keyframed animations for the cc thread. https://bugs.webkit.org/show_bug.cgi?id=77229 Reviewed by James Robinson. * WebKit.gypi: * tests/CCAnimationTestCommon.cpp: (WebCore): (WebCore::addOpacityTransition): (WebKitTests::addOpacityTransitionToController): (WebKitTests::addOpacityTransitionToLayer): * tests/CCAnimationTestCommon.h: (WebCore): (WebKitTests): * tests/CCKeyframedAnimationCurveTest.cpp: Added. (WebCore): (WebCore::expectTranslateX): (WebCore::TEST): * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::expectTranslateX): (WebKitTests): (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::dispatchAddAnimation): (WTF::CCLayerTreeHostTest::doBeginTest): 2012-02-23 James Robinson [chromium] Clean up GraphicsContext3D initialization paths https://bugs.webkit.org/show_bug.cgi?id=79321 Reviewed by Kenneth Russell. This simplifies the GraphicsContext3D initialization paths down to two simple codepaths, one for offscreen contexts initialized from WebCore and one for onscreen (compositor) contexts initialized by WebViewImpl or WebLayerTreeViewImpl. Offscreen initialization path: 1) WebCore code calls WebCore::GraphicsContext3D::create(), implemented in GraphicsContext3DChromium.cpp 2) GraphicsContext3D::create() instantiates a WebGraphicsContext3D via the static WebKitPlatformSupport interface 3) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a GraphicsContext3D's m_private pointer. Onscreen initialization path: 1) WebViewImpl or WebLayerTreeViewImpl request an onscreen WebGraphicsContext3D from either their WebViewClient or WebLayerTreeViewClient, respectively 2) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a GraphicsContext3D's m_private pointer. There are no other initialization paths. Specifically, we do not support instantiating onscreen contexts from within WebCore. * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate): (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext): (WebCore): (WebCore::GraphicsContext3DPrivate::platformTexture): (WebCore::GraphicsContext3D::create): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D): * src/WebViewImpl.cpp: (std::getCompositorContextAttributes): (WebKit::WebViewImpl::createCompositorGraphicsContext3D): (WebKit): (WebKit::WebViewImpl::createLayerTreeHostContext3D): (WebKit::WebViewImpl::graphicsContext3D): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::CCLayerTreeHostImplTest::createContext): (CCLayerTreeHostImplTest): (WebKit::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/CompositorFakeGraphicsContext3D.h: (WebCore::createCompositorMockGraphicsContext3D): * tests/FakeGraphicsContext3DTest.cpp: (TEST): 2012-02-23 Jonathan Backer [chromium] Plumb video damage to the damage tracker. https://bugs.webkit.org/show_bug.cgi?id=79373 Reviewed by James Robinson. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::repaint): 2012-02-21 James Robinson [chromium] Notify compositor of wheel event registration via ScrollingCoordinator https://bugs.webkit.org/show_bug.cgi?id=79133 Reviewed by Dimitri Glazkov. Rips out old wheel event notification and adds unit tests for new LayerChromium property. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::setViewport): * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleInputEvent): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::numberOfWheelEventHandlersChanged): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * src/WebViewImpl.h: * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): (WebKit): * tests/LayerChromiumTest.cpp: * tests/WebCompositorInputHandlerImplTest.cpp: 2012-02-23 Adrienne Walker Unreviewed, rolling out r108666. http://trac.webkit.org/changeset/108666 https://bugs.webkit.org/show_bug.cgi?id=79321 Breaks webplugin tests: http://goo.gl/CoHIi * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate): (WebCore): (WebCore::GraphicsContext3DPrivate::create): (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext): (WebCore::GraphicsContext3DPrivate::createGraphicsContextForAnotherThread): (WebCore::GraphicsContext3DPrivate::platformTexture): (WebCore::GraphicsContext3D::create): * src/GraphicsContext3DPrivate.h: (WebKit): (GraphicsContext3DPrivate): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D): * src/WebViewImpl.cpp: (std::getCompositorContextAttributes): (WebKit::WebViewImpl::createLayerTreeHostContext3D): (WebKit::WebViewImpl::graphicsContext3D): * tests/CCLayerTreeHostImplTest.cpp: (CCLayerTreeHostImplTest): (WebKit::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/CompositorFakeGraphicsContext3D.h: (WebCore::createCompositorMockGraphicsContext3D): * tests/FakeGraphicsContext3DTest.cpp: (TEST): 2012-02-23 Daniel Sievers [Chromium] Add video stream texture support https://bugs.webkit.org/show_bug.cgi?id=78398 This upstreams the abstraction used on Android for hardware video decoding with the compositor. Most of the interfaces are kept generic and the core of this change is to allow texturing from an external texture while receiving notifications (on the compositor thread if we are running it) when there are new frames to be displayed. Reviewed by James Robinson. * WebKit.gyp: * public/WebMediaPlayer.h: (WebKit): (WebKit::WebMediaPlayer::setStreamTextureClient): (WebMediaPlayer): * public/WebStreamTextureClient.h: Copied from Source/WebKit/chromium/public/WebVideoFrame.h. (WebKit): (WebStreamTextureClient): (WebKit::WebStreamTextureClient::~WebStreamTextureClient): * public/WebVideoFrame.h: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl): (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient): (WebKit::WebMediaPlayerClientImpl::didReceiveFrame): (WebKit): (WebKit::WebMediaPlayerClientImpl::didUpdateMatrix): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-02-22 James Robinson [chromium] Clean up GraphicsContext3D initialization paths https://bugs.webkit.org/show_bug.cgi?id=79321 Reviewed by Kenneth Russell. This simplifies the GraphicsContext3D initialization paths down to two simple codepaths, one for offscreen contexts initialized from WebCore and one for onscreen (compositor) contexts initialized by WebViewImpl or WebLayerTreeViewImpl. Offscreen initialization path: 1) WebCore code calls WebCore::GraphicsContext3D::create(), implemented in GraphicsContext3DChromium.cpp 2) GraphicsContext3D::create() instantiates a WebGraphicsContext3D via the static WebKitPlatformSupport interface 3) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a GraphicsContext3D's m_private pointer. Onscreen initialization path: 1) WebViewImpl or WebLayerTreeViewImpl request an onscreen WebGraphicsContext3D from either their WebViewClient or WebLayerTreeViewClient, respectively 2) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a GraphicsContext3D's m_private pointer. There are no other initialization paths. Specifically, we do not support instantiating onscreen contexts from within WebCore. * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate): (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext): (WebCore): (WebCore::GraphicsContext3DPrivate::platformTexture): (WebCore::GraphicsContext3D::create): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D): * src/WebViewImpl.cpp: (std::getCompositorContextAttributes): (WebKit::WebViewImpl::createLayerTreeHostContext3D): (WebKit::WebViewImpl::graphicsContext3D): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::CCLayerTreeHostImplTest::createContext): (CCLayerTreeHostImplTest): (WebKit::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/CompositorFakeGraphicsContext3D.h: (WebCore::createCompositorMockGraphicsContext3D): * tests/FakeGraphicsContext3DTest.cpp: (TEST): 2012-02-23 Greg Billock Add UserGestureIndicator capability to Chromium API. https://bugs.webkit.org/show_bug.cgi?id=77690 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebScopedUserGesture.h: Added. * src/WebScopedUserGesture.cpp: Added. 2012-02-23 Peter Beverloo Unreviewed, rolling out r108627 and r108630. https://bugs.webkit.org/show_bug.cgi?id=79367 ffmpeg is creating issues and was just reverted upstream as well. * DEPS: 2012-02-23 Peter Beverloo Unreviewed build fix. Remove the ffmpeg binary directory from the Chromium-Windows DEPS file, following the commit done in the Chromium repository: http://src.chromium.org/viewvc/chrome?view=rev&revision=123123 * DEPS: 2012-02-23 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-02-22 Hajime Morrita NOTIFICATIONS should be implemented as PageSupplement https://bugs.webkit.org/show_bug.cgi?id=79052 Reviewed by Adam Barth. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-02-22 Dana Jansens [chromium] Add unit test for surface occlusion https://bugs.webkit.org/show_bug.cgi?id=79302 Reviewed by James Robinson. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TEST): (WebCore): 2012-02-22 James Robinson Remove GraphicsContext3D::paintsIntoCanvasBuffer and unify WebGL and canvas 2d logic https://bugs.webkit.org/show_bug.cgi?id=79317 Reviewed by Kenneth Russell. Remove paintsIntoCanvasBuffer() implementations. * src/GraphicsContext3DChromium.cpp: (WebCore): * src/GraphicsContext3DPrivate.h: 2012-02-22 Yuta Kitamura Unreviewed, rolling out r108590. http://trac.webkit.org/changeset/108590 I mistakenly disabled tests even though the fix was already in. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TEST): 2012-02-22 Yuta Kitamura [Chromium] Unreviewed. Disable two tests from CCOcclusionTrackerTest which cause assertion failures. * tests/CCOcclusionTrackerTest.cpp: (WebCore): (WebCore::TEST): 2012-02-22 Dana Jansens [chromium] Fix CCOcclusionTracker unit test assertion https://bugs.webkit.org/show_bug.cgi?id=79275 Reviewed by James Robinson. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TEST): 2012-02-22 Ian Vollick [chromium] Plumb from GraphicsLayer to the cc thread animation code https://bugs.webkit.org/show_bug.cgi?id=75874 Reviewed by James Robinson. * WebKit.gypi: * public/WebSettings.h: * public/platform/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (Settings): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setThreadedAnimationEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/CCActiveAnimationTest.cpp: (WebCore::createActiveAnimation): * tests/CCAnimationTestCommon.cpp: Added. (WebKitTests): (WebKitTests::FakeFloatAnimationCurve::FakeFloatAnimationCurve): (WebKitTests::FakeFloatAnimationCurve::~FakeFloatAnimationCurve): (WebKitTests::FakeFloatAnimationCurve::clone): (WebKitTests::FakeTransformTransition::FakeTransformTransition): (WebKitTests::FakeTransformTransition::~FakeTransformTransition): (WebKitTests::FakeTransformTransition::getValue): (WebKitTests::FakeTransformTransition::clone): (WebKitTests::FakeFloatTransition::FakeFloatTransition): (WebKitTests::FakeFloatTransition::~FakeFloatTransition): (WebKitTests::FakeFloatTransition::getValue): (WebKitTests::FakeLayerAnimationControllerImplClient::FakeLayerAnimationControllerImplClient): (WebKitTests::FakeLayerAnimationControllerImplClient::~FakeLayerAnimationControllerImplClient): (WebKitTests::FakeFloatTransition::clone): (WebKitTests::addOpacityTransition): * tests/CCAnimationTestCommon.h: Added. (WebCore): (WebKitTests): (FakeFloatAnimationCurve): (WebKitTests::FakeFloatAnimationCurve::duration): (WebKitTests::FakeFloatAnimationCurve::getValue): (FakeTransformTransition): (WebKitTests::FakeTransformTransition::duration): (FakeFloatTransition): (WebKitTests::FakeFloatTransition::duration): (FakeLayerAnimationControllerImplClient): (WebKitTests::FakeLayerAnimationControllerImplClient::id): (WebKitTests::FakeLayerAnimationControllerImplClient::opacity): (WebKitTests::FakeLayerAnimationControllerImplClient::setOpacity): (WebKitTests::FakeLayerAnimationControllerImplClient::transform): (WebKitTests::FakeLayerAnimationControllerImplClient::setTransform): (WebKitTests::FakeLayerAnimationControllerImplClient::bounds): * tests/CCLayerAnimationControllerImplTest.cpp: (WebKitTests::createActiveAnimation): (WebKitTests::TEST): * tests/CCLayerAnimationControllerTest.cpp: Added. (WebKitTests): (WebKitTests::createActiveAnimation): (WebKitTests::TEST): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::CCLayerTreeHostImplTest::postAnimationEventsToMainThreadOnImplThread): * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::animateLayers): (MockLayerTreeHostImpl): (WTF::MockLayerTreeHostImpl::animateLayers): (WTF::MockLayerTreeHost::create): (WTF::MockLayerTreeHost::createLayerTreeHostImpl): (WTF): (MockLayerAnimationController): (WTF::MockLayerAnimationController::create): (WTF::MockLayerAnimationController::addAnimation): (WTF::MockLayerTreeHostClient::scheduleComposite): (WTF::CCLayerTreeHostTest::postAddAnimationToMainThread): (CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::dispatchAddAnimation): (WTF::CCLayerTreeHostTest::doBeginTest): (CCLayerTreeHostTestAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::beginTest): (WTF::CCLayerTreeHostTestAddAnimation::animateLayers): (WTF::CCLayerTreeHostTestAddAnimation::afterTest): (WTF::TEST_F): * tests/TreeSynchronizerTest.cpp: (FakeLayerAnimationController): (WebKitTests::FakeLayerAnimationController::create): (WebKitTests::FakeLayerAnimationController::synchronizedAnimations): (WebKitTests::FakeLayerAnimationController::FakeLayerAnimationController): (WebKitTests::FakeLayerAnimationController::synchronizeAnimations): (WebKitTests): (WebKitTests::TEST): 2012-02-21 Ryosuke Niwa Remove the remaining uses of CSSStyleDeclaration in Editor https://bugs.webkit.org/show_bug.cgi?id=78939 Reviewed by Enrica Casucci. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::shouldApplyStyle): * src/EditorClientImpl.h: (EditorClientImpl): 2012-02-22 Daniel Cheng [chromium] Cleanup unused WebDragData methods after r107846 https://bugs.webkit.org/show_bug.cgi?id=78837 Reviewed by Tony Chang. The deleted methods have been replaced by items() and setItems(). * public/platform/WebDragData.h: (WebDragData): * src/WebDragData.cpp: (WebKit::WebDragData::addItem): Add ensureMutable() call to verify preconditions for mutating the item store. 2012-02-22 Tim Dresser CCLayerTreeHostImpl calls didDraw more frequently than willDraw https://bugs.webkit.org/show_bug.cgi?id=79139 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::DidDrawCheckLayer::willDraw): (DidDrawCheckLayer): (WebKit::DidDrawCheckLayer::willDrawCalled): (WebKit::DidDrawCheckLayer::DidDrawCheckLayer): (WebKit::TEST_F): (WebKit): 2012-02-22 Dana Jansens [Chromium] New CCOcclusionTracker class with tests https://bugs.webkit.org/show_bug.cgi?id=78549 Reviewed by James Robinson. * WebKit.gypi: * tests/CCLayerTreeHostCommonTest.cpp: (WebCore): * tests/CCOcclusionTrackerTest.cpp: Added. (WebCore): (WebCore::setLayerPropertiesForTesting): (LayerChromiumWithForcedDrawsContent): (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent): (WebCore::LayerChromiumWithForcedDrawsContent::drawsContent): (TestCCOcclusionTracker): (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace): (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface): (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace): (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface): (WebCore::TEST): 2012-02-22 Hao Zheng [chromium] Build WebKit with MEDIA_STREAM disabled. https://bugs.webkit.org/show_bug.cgi?id=79214 Reviewed by Kent Tamura. * src/UserMediaClientImpl.h: 2012-02-20 Roland Steiner