2012-04-10 James Robinson [chromium] Add OVERRIDE annotations for cc tree host and proxy interfaces https://bugs.webkit.org/show_bug.cgi?id=83653 Reviewed by Adrienne Walker. This adds OVERRIDE annotations to the implementations of the following interfaces: - CCLayerTreeHostClient - CCLayerTreeHostImplClient - CCProxy - LayerRendererChromiumClient * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/FakeCCLayerTreeHostClient.h: * tests/LayerRendererChromiumTest.cpp: 2012-04-10 James Robinson [chromium] Add OVERRIDE annotations for cc scheduler-related client interfaces https://bugs.webkit.org/show_bug.cgi?id=83646 Reviewed by Adrienne Walker. This adds OVERRIDE annotations to the implementations of the following interfaces: - CCFrameRateControllerClient - CCSchedulerClient - CCTimeSource - CCTimeSourceClient - CCTimerClient * tests/CCSchedulerTest.cpp: * tests/CCSchedulerTestCommon.h: 2012-04-10 James Robinson [chromium] Fold LayerChromium::updateCompositorResources into main update https://bugs.webkit.org/show_bug.cgi?id=83530 Reviewed by Adrienne Walker. Update tests for interface changes. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::runTest): (WTF::ContentLayerChromiumWithUpdateTracking::update): (WTF::ContentLayerChromiumWithUpdateTracking::idleUpdate): (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking): (ContentLayerChromiumWithUpdateTracking): (WTF::CCLayerTreeHostTestOpacityChange::afterTest): (WTF::CCLayerTreeHostTestSetViewportSize::beginTest): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread): (WTF::TestLayerChromium::update): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestContentLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeLayerTextureUpdater::updateLayerRect): (WebKitTests::FakeTiledLayerChromium::update): * tests/CCTiledLayerTestCommon.h: (FakeLayerTextureUpdater): (FakeTiledLayerChromium): * tests/Canvas2DLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF::idlePaintRepeat): 2012-04-10 Adam Barth Limit -apple- and -khtml- to ENABLE(DASHBOARD_SUPPORT) https://bugs.webkit.org/show_bug.cgi?id=83256 Reviewed by Eric Seidel. * features.gypi: 2012-04-10 Tim Dresser [Chromium] defaultDeviceScaleFactor != 0 should set deviceScaleFactor = defaultDeviceScaleFactor in the absence of a viewport tag for debugging purposes https://bugs.webkit.org/show_bug.cgi?id=82757 Reviewed by Darin Fisher. If there is no viewport tag, the deviceScaleFactor is set to the defaultDeviceScaleFactor. Tested by: WebFrameTest.DeviceScaleFactorUsesDefaultWithoutViewportTag. * src/ChromeClientImpl.cpp: (WebKit): (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange): * tests/WebFrameTest.cpp: (WebKit): (FixedLayoutTestWebViewClient): (WebKit::TEST_F): * tests/data/no_viewport_tag.html: Added. 2012-04-10 Sheriff Bot Unreviewed, rolling out r113734. http://trac.webkit.org/changeset/113734 https://bugs.webkit.org/show_bug.cgi?id=83606 causing a bunch of unrelated test failures (Requested by simonjam on #webkit). * WebKit.gyp: * features.gypi: * public/WebBatteryStatus.h: Removed. * public/WebBatteryStatusClient.h: Removed. * public/WebView.h: (WebKit): (WebView): * public/WebViewClient.h: (WebKit): * src/BatteryClientImpl.cpp: Removed. * src/BatteryClientImpl.h: Removed. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): (WebViewImpl): 2012-04-09 James Robinson [chromium] Defer texture id allocation for copies until the actual copy executes https://bugs.webkit.org/show_bug.cgi?id=83514 Reviewed by Adrienne Walker. * tests/CCTiledLayerTestCommon.cpp: * tests/CCTiledLayerTestCommon.h: * tests/Canvas2DLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-04-10 David Dorwin Add Encrypted Media Extensions methods to HTMLMediaElement https://bugs.webkit.org/show_bug.cgi?id=82971 Reviewed by Adam Barth. The extensions are behind the ENABLE(ENCRYPTED_MEDIA) feature define. Implementation is based on v0.1 of the draft proposal at http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html. * features.gypi: * public/WebMediaPlayer.h: (WebKit): (WebMediaPlayer): (WebKit::WebMediaPlayer::generateKeyRequest): (WebKit::WebMediaPlayer::addKey): (WebKit::WebMediaPlayer::cancelKeyRequest): * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): * src/AssertMatchingEnums.cpp: * src/WebMediaPlayerClientImpl.cpp: (WebKit): (WebKit::WebMediaPlayerClientImpl::generateKeyRequest): (WebKit::WebMediaPlayerClientImpl::addKey): (WebKit::WebMediaPlayerClientImpl::cancelKeyRequest): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::isMediaStreamEnabled): (WebKit::WebRuntimeFeatures::enableEncryptedMedia): (WebKit): (WebKit::WebRuntimeFeatures::isEncryptedMediaEnabled): 2012-04-10 Sadrul Habib Chowdhury [chromium] Add Battery Status API support. The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks. The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/. https://bugs.webkit.org/show_bug.cgi?id=83284 Reviewed by Adam Barth. * WebKit.gyp: * features.gypi: * public/WebBatteryStatus.h: Added. (WebKit): (WebBatteryStatus): (WebKit::WebBatteryStatus::WebBatteryStatus): * public/WebBatteryStatusClient.h: Added. (WebKit): (WebBatteryStatusClient): (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient): * public/WebView.h: (WebKit): (WebView): (WebKit::WebView::updateBatteryStatus): * public/WebViewClient.h: (WebKit): (WebViewClient): (WebKit::WebViewClient::batteryStatusClient): * src/BatteryClientImpl.cpp: Added. (WebKit): (WebKit::BatteryClientImpl::BatteryClientImpl): (WebKit::BatteryClientImpl::updateBatteryStatus): (WebKit::BatteryClientImpl::setController): (WebKit::BatteryClientImpl::startUpdating): (WebKit::BatteryClientImpl::stopUpdating): (WebKit::BatteryClientImpl::batteryControllerDestroyed): * src/BatteryClientImpl.h: Added. (WebKit): (BatteryClientImpl): (WebKit::BatteryClientImpl::~BatteryClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit): (WebKit::WebViewImpl::updateBatteryStatus): * src/WebViewImpl.h: (WebKit): (WebViewImpl): 2012-04-10 Zhenyao Mo Unreviewed, roll chromium to 131469 * DEPS: 2012-04-09 Alexander Pavlov Web Inspector: [Device Metrics] Introduce the "Fit window" option https://bugs.webkit.org/show_bug.cgi?id=83280 Implement the scaling of the FrameView to the WebViewImpl size, handle WebViewImpl resizes. Reviewed by Pavel Feldman. * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::overrideDeviceMetrics): * src/InspectorClientImpl.h: (InspectorClientImpl): * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::DeviceMetricsSupport): (WebKit::DeviceMetricsSupport::setDeviceMetrics): (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidthOnNavigation): (DeviceMetricsSupport): (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth): (WebKit::DeviceMetricsSupport::webViewResized): (WebKit::DeviceMetricsSupport::applySizeOverrideIfNecessary): (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor): (WebKit::DeviceMetricsSupport::restore): (WebKit::DeviceMetricsSupport::scaledEmulatedFrameSize): (WebKit::DeviceMetricsSupport::forcedScrollbarDimensions): (WebKit::DeviceMetricsSupport::applySizeOverrideInternal): (WebKit::WebDevToolsAgentImpl::webViewResized): (WebKit): (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics): (WebKit::WebDevToolsAgentImpl::autoZoomPageToFitWidth): * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): * src/WebDevToolsAgentPrivate.h: (WebDevToolsAgentPrivate): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::resize): 2012-04-09 Kent Tamura [Chromium] Remove unused variable, WebViewImpl::m_lastMousePosition. https://bugs.webkit.org/show_bug.cgi?id=83550 Reviewed by Kentaro Hara. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::mouseMove): * src/WebViewImpl.h: 2012-04-09 Dana Jansens [chromium] Viewport is not filled when out of texture memory on mac https://bugs.webkit.org/show_bug.cgi?id=83351 Reviewed by Adrienne Walker. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::NonCompositedContentHost): (WebKit::NonCompositedContentHost::setBackgroundColor): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::setBackgroundColor): (WebKit): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setBackgroundColor): (WebKit): (WebKit::WebViewImplContentPainter::paint): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * src/WebViewImpl.h: (WebCore): (WebViewImpl): * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::BlendStateCheckLayer::appendQuads): (WebKitTests::TEST_F): (WebKitTests): * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestCommit): (WTF::CCLayerTreeHostTestCommit::CCLayerTreeHostTestCommit): (WTF::CCLayerTreeHostTestCommit::beginTest): (WTF::CCLayerTreeHostTestCommit::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestCommit::afterTest): (WTF::TEST_F): (TestLayerChromium): * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::TestContentLayerChromium::TestContentLayerChromium): (WebKitTests::TestContentLayerChromium::visibleContentOpaqueRegion): (WebKitTests::TestContentLayerChromium::setOpaqueContentsRect): (TestContentLayerChromium): (WebKitTests::TestContentLayerImpl::TestContentLayerImpl): (TestContentLayerImpl): (WebKitTests::TestContentLayerImpl::visibleContentOpaqueRegion): (WebKitTests::TestContentLayerImpl::setOpaqueContentsRect): * tests/CCTiledLayerImplTest.cpp: * tests/LayerChromiumTest.cpp: 2012-04-09 Sheriff Bot Unreviewed, rolling out r113656. http://trac.webkit.org/changeset/113656 https://bugs.webkit.org/show_bug.cgi?id=83542 test is broken on chromium-win (Requested by simonjam on #webkit). * public/WebIntent.h: (WebIntent): * src/WebIntent.cpp: 2012-04-09 James Robinson [chromium] More unreviewed OwnPtr<>::operator= related clang build fixes in unit tests. * tests/Canvas2DLayerChromiumTest.cpp: * tests/LayerChromiumTest.cpp: 2012-04-09 Dana Jansens [chromium] Cull occluded surface quads https://bugs.webkit.org/show_bug.cgi?id=81227 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTest::TearDown): (WebKitTests::CCOcclusionTrackerTest::createReplicaLayer): (CCOcclusionTrackerTest): (WebKitTests::CCOcclusionTrackerTest::setReplica): (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest): (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest): (WebKitTests): (CCOcclusionTrackerTestReplicaOccluded): (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest): (CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded): (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest): (CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently): (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest): (CCOcclusionTrackerTestSurfaceChildOfSurface): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest): 2012-04-09 James Robinson [chromium] Unreviewed build fix. OwnPtr<>::operator = breaks the build on clang, but not gcc :( * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHost::create): * tests/Canvas2DLayerChromiumTest.cpp: * tests/LayerChromiumTest.cpp: 2012-04-09 Dana Jansens [chromium] Make culling work with clipped rects https://bugs.webkit.org/show_bug.cgi?id=83494 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude): (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest): (WebKitTests): (CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect): (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest): * tests/CCQuadCullerTest.cpp: (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl): (WebCore::makeLayer): (WebCore::TEST): 2012-04-09 Sheriff Bot Unreviewed, rolling out r113613. http://trac.webkit.org/changeset/113613 https://bugs.webkit.org/show_bug.cgi?id=83509 crashing most chromium bots (Requested by simonjam on #webkit). * WebKit.gyp: * features.gypi: * public/WebBatteryStatus.h: Removed. * public/WebBatteryStatusClient.h: Removed. * public/WebView.h: (WebKit): (WebView): * public/WebViewClient.h: (WebKit): * src/BatteryClientImpl.cpp: Removed. * src/BatteryClientImpl.h: Removed. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): (WebViewImpl): 2012-04-09 James Robinson [chromium] CCLayerTreeHost / WebLayerTreeView should be single ownership, not RefCounted https://bugs.webkit.org/show_bug.cgi?id=83413 Reviewed by Adrienne Walker. Updates tests and implementation for RefPtr->OwnPtr switch. One nice benefit is that since WebLayerTreeView is explicitly owned by the user of the API we can safely rely on them managing the lifetime of the client and thus don't have to null check the client all the time. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::reset): (WebKit::WebLayerTreeView::isNull): (WebKit::WebLayerTreeView::initialize): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::create): (WebKit::WebLayerTreeViewImpl::willBeginFrame): (WebKit::WebLayerTreeViewImpl::updateAnimations): (WebKit::WebLayerTreeViewImpl::layout): (WebKit::WebLayerTreeViewImpl::applyScrollAndScale): (WebKit::WebLayerTreeViewImpl::createContext): (WebKit::WebLayerTreeViewImpl::didRecreateContext): (WebKit::WebLayerTreeViewImpl::didCommit): (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame): (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers): (WebKit::WebLayerTreeViewImpl::scheduleComposite): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHost::create): (CCLayerTreeHostTest): * tests/Canvas2DLayerChromiumTest.cpp: * tests/LayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-04-09 Joshua Bell Unreviewed, rolling out r113473. http://trac.webkit.org/changeset/113473 https://bugs.webkit.org/show_bug.cgi?id=83074 Change does not handle cursor retention of LevelDB iterators * WebKit.gypi: * tests/IDBDatabaseBackendTest.cpp: Removed. 2012-04-06 James Robinson [chromium] Texture copies should happen after incremental updates to preserve commit atomicity https://bugs.webkit.org/show_bug.cgi?id=83392 Reviewed by Adrienne Walker. * tests/Canvas2DLayerChromiumTest.cpp: 2012-04-09 Sadrul Habib Chowdhury [chromium] Add Battery Status API support. The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks. The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/. https://bugs.webkit.org/show_bug.cgi?id=83284 Reviewed by Adam Barth. * WebKit.gyp: * features.gypi: * public/WebBatteryStatus.h: Added. (WebKit): (WebBatteryStatus): (WebKit::WebBatteryStatus::WebBatteryStatus): * public/WebBatteryStatusClient.h: Added. (WebKit): (WebBatteryStatusClient): (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient): * public/WebView.h: (WebKit): (WebView): (WebKit::WebView::updateBatteryStatus): * public/WebViewClient.h: (WebKit): (WebViewClient): (WebKit::WebViewClient::batteryStatusClient): * src/BatteryClientImpl.cpp: Added. (WebKit): (WebKit::BatteryClientImpl::BatteryClientImpl): (WebKit::BatteryClientImpl::updateBatteryStatus): (WebKit::BatteryClientImpl::setController): (WebKit::BatteryClientImpl::startUpdating): (WebKit::BatteryClientImpl::stopUpdating): (WebKit::BatteryClientImpl::batteryControllerDestroyed): * src/BatteryClientImpl.h: Added. (WebKit): (BatteryClientImpl): (WebKit::BatteryClientImpl::~BatteryClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit): (WebKit::WebViewImpl::updateBatteryStatus): * src/WebViewImpl.h: (WebKit): (WebViewImpl): 2012-04-09 Shawn Singh [chromium] Fix layer sorting perspective w if w becomes negative https://bugs.webkit.org/show_bug.cgi?id=82997 Reviewed by Adrienne Walker. * tests/CCLayerSorterTest.cpp: (WebCore::TEST): (WebCore): 2012-04-09 Dana Jansens [chromium] Flip transition painting delayed with threaded animations https://bugs.webkit.org/show_bug.cgi?id=82571 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-04-09 Sheriff Bot Unreviewed, rolling out r113561. http://trac.webkit.org/changeset/113561 https://bugs.webkit.org/show_bug.cgi?id=83487 broke webkit_unit_tests (Requested by simonjam on #webkit). * tests/CCOcclusionTrackerTest.cpp: (WebKitTests): * tests/CCQuadCullerTest.cpp: (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl): 2012-04-09 Dana Jansens [chromium] Make culling work with clipped rects https://bugs.webkit.org/show_bug.cgi?id=83217 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude): (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest): (WebKitTests): (CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect): (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest): * tests/CCQuadCullerTest.cpp: (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl): 2012-04-06 Ami Fischman Roll Chromium DEPS https://bugs.webkit.org/show_bug.cgi?id=83389 Unreviewed, just a DEPS roll (130110:131183) * DEPS: 2012-04-06 James Robinson WebGL content swapped at wrong time in threaded compositing mode https://bugs.webkit.org/show_bug.cgi?id=82275 Reviewed by Kenneth Russell. * tests/WebGLLayerChromiumTest.cpp: (WebKit::TEST): 2012-04-06 Joshua Bell IndexedDB: ObjectStore/Index shouldn't hold reference to backing store https://bugs.webkit.org/show_bug.cgi?id=83074 Reviewed by Tony Chang. * WebKit.gypi: * tests/IDBDatabaseBackendTest.cpp: Added. (WebCore): (MockIDBBackingStore): (WebCore::TEST): 2012-04-06 Kent Tamura Calendar Picker: Add code to open/close the calendar picker https://bugs.webkit.org/show_bug.cgi?id=83258 Reviewed by Hajime Morita. * features.gypi: Enable ENABLE_PAGE_POPUP for non-Android platforms. This is needed because ENABLE_CALENDAR_PICKER now depends on ENABLE_PAGE_POPUP. * src/ChroemClientImpl.cpp: Add stubs. (WebKit::ChromeClientImpl::openPagePopup): (WebKit::ChromeClientImpl::closePagePopup): * src/ChromeClientImpl.h: Add declarations of openPagePopup() and closePagePopup(). 2012-04-05 Hironori Bono [Chromium] moving a cursor on a misspelled word should not remove a misspelled underline https://bugs.webkit.org/show_bug.cgi?id=83214 Reviewed by Ryosuke Niwa. When Chrome enables asynchronous spellchecking, it adds Spelling markers in the background. For this case, moving a cursor should not remove these markers because it requires Chrome to spellcheck text again. This change prevents removing Spelling markers added by spellcheckers asynchronously. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): use marker descriptions instead of spellchecking text when Chrome enables asynchronous spellchecking. 2012-04-05 Dana Jansens [chromium] Record the number of tiles paint-culled instead of the incorrect number of pixels https://bugs.webkit.org/show_bug.cgi?id=82423 Reviewed by Adrienne Walker. * tests/CCQuadCullerTest.cpp: (WebCore::TEST): * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-04-05 Shawn Singh [chromium] Need to clip to homogeneous w=0 plane when applying transforms. https://bugs.webkit.org/show_bug.cgi?id=80806 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-04-05 Dana Jansens [chromium] Cleanup test, redundant code in CCSchedulerTest.NoBeginFrameWhenDrawFails https://bugs.webkit.org/show_bug.cgi?id=83300 Reviewed by Adrienne Walker. * tests/CCSchedulerTest.cpp: (WebKitTests::TEST): 2012-04-05 Sheriff Bot Unreviewed, rolling out r113241. http://trac.webkit.org/changeset/113241 https://bugs.webkit.org/show_bug.cgi?id=83293 Requested by sievers@chromium.org (Requested by zhenyao on #webkit). * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::doBeginTest): 2012-04-05 Sheriff Bot Unreviewed, rolling out r113341. http://trac.webkit.org/changeset/113341 https://bugs.webkit.org/show_bug.cgi?id=83299 bots caught some build errors (Requested by shawnsingh on #webkit). * tests/CCLayerTreeHostCommonTest.cpp: 2012-04-05 Ian Vollick [chromium] Race condition in CCLayerTreeHostTestSynchronizeAnimationStartTimes https://bugs.webkit.org/show_bug.cgi?id=83179 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::willAnimateLayers): (WTF::MockLayerTreeHostImpl::animateLayers): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes): (CCLayerTreeHostTestSynchronizeAnimationStartTimes): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::willAnimateLayers): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::notifyAnimationStarted): 2012-04-05 Justin Novosad [Chromium] With the skia port, setting LCD text filtering is causing texture cache invalidations of gpu canvas backing store https://bugs.webkit.org/show_bug.cgi?id=74183 Reviewed by Stephen White. Replacing unnecessary usage of SkCanvas::LayerIter with call to SkCanvas::isDrawingToLayer(). Same results, lower overhead, and no GPU texture invalidation. * src/WebFontImpl.cpp: (WebKit::WebFontImpl::drawText): 2012-04-05 Lei Zhang [Chromium] Properly align members in WebInputEvent and subclasses to make Valgrind happy. https://bugs.webkit.org/show_bug.cgi?id=81570 Reviewed by Darin Fisher. * public/WebInputEvent.h: (WebKit): (WebKit::WebInputEvent::WebInputEvent): (WebKeyboardEvent): (WebKit::WebTouchEvent::WebTouchEvent): 2012-04-05 Shawn Singh [chromium] Need to clip to homogeneous w=0 plane when applying transforms. https://bugs.webkit.org/show_bug.cgi?id=80806 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-04-05 Sheriff Bot Unreviewed, rolling out r113307. http://trac.webkit.org/changeset/113307 https://bugs.webkit.org/show_bug.cgi?id=83288 Requested by sievers@chromium.org (Requested by zhenyao on #webkit). * tests/CCLayerTreeHostTest.cpp: (WTF::TEST_F): 2012-04-05 Pavel Feldman Web Inspector: [chromium] clean up WDTFC::saveAs after migration to save() https://bugs.webkit.org/show_bug.cgi?id=83271 Reviewed by Yury Semikhatsky. * public/WebDevToolsFrontendClient.h: 2012-04-05 Hans Wennborg webkit_unit_tests build fix. https://bugs.webkit.org/show_bug.cgi?id=83261 Unreviewed, webkit_unit_tests buildfix. The CCLayerTreeHostTestEmptyContentsShouldNotDraw.runMultiThread test stopped working after r113254. Disable it for now. * tests/CCLayerTreeHostTest.cpp: (WTF): (WTF::TEST_F): 2012-04-05 Jochen Eisinger [chromium] Only shut down V8 if we actually initialized it https://bugs.webkit.org/show_bug.cgi?id=83159 Reviewed by Pavel Feldman. * src/WebKit.cpp: (WebKit::initialize): (WebKit::shutdown): 2012-04-05 Kinuko Yasuda Expose DataTransferItem.getAsEntry() to allow users access dropped files as FileEntry https://bugs.webkit.org/show_bug.cgi?id=82592 Reviewed by David Levin. * src/WebDragData.cpp: (WebKit::WebDragData::filesystemId): Added implementation. (WebKit::WebDragData::setFilesystemId): Added implementation. 2012-04-04 Kent Tamura [Chromium] Calendar Picker: Add localization functions https://bugs.webkit.org/show_bug.cgi?id=83235 Reviewed by Adam Barth. Implement calendarTodayText() and calendarClearText(), which are introduced in http://trac.webkit.org/changeset/113166 * public/platform/WebLocalizedString.h: Add CalendarClear and CalendarToday. * src/LocalizedStrings.cpp: (WebCore::calendarTodayText): Added. (WebCore::calendarClearText): Added. 2012-04-04 Mark Pilgrim Call histogramEnumeration directly https://bugs.webkit.org/show_bug.cgi?id=83106 Reviewed by Adam Barth. Part of a refactoring project to remove the PlatformSupport abstraction from some functions. See bug 82948. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::shouldRunModalDialogDuringPageDismissal): * src/PlatformSupport.cpp: (WebCore): 2012-04-04 Shawn Singh [chromium] Move recursive renderSurface clearing to CCLayerTreeHostImpl https://bugs.webkit.org/show_bug.cgi?id=82091 Reviewed by James Robinson. * tests/LayerRendererChromiumTest.cpp: (FakeLayerRendererChromiumClient::FakeLayerRendererChromiumClient): 2012-04-04 Daniel Sievers [Chromium] Always skip draw and readback if there is nothing to draw. https://bugs.webkit.org/show_bug.cgi?id=82680 This avoids corruption from pushing frames that have no valid content drawn into them. Also in addition to checking for non-existing root layers, check for root layers with no content bounds. It's possible to see those with kForceCompositing mode for empty documents. Reviewed by James Robinson. Added CCLayerTreeHostTestEmptyContentsShouldNotDraw. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::doBeginTest): (WTF): (CCLayerTreeHostTestEmptyContentsShouldNotDraw): (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::CCLayerTreeHostTestEmptyContentsShouldNotDraw): (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::beginTest): (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::didCommitAndDrawFrame): (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::afterTest): (WTF::TEST_F): 2012-04-04 Mark Pilgrim Call histogramCustomCounts directly https://bugs.webkit.org/show_bug.cgi?id=83112 Reviewed by Adam Barth. * src/PlatformSupport.cpp: (WebCore): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::paint): (WebKit::WebViewImplContentPainter::paint): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * src/painting/PaintAggregator.cpp: 2012-04-04 Mark Pilgrim Call suddenTerminationChanged directly https://bugs.webkit.org/show_bug.cgi?id=83114 Reviewed by Adam Barth. * src/PlatformSupport.cpp: (WebCore): 2012-04-04 Adam Barth figure out how to export webcore symbols from webkit.dll properly https://bugs.webkit.org/show_bug.cgi?id=83105 Reviewed by Dimitri Glazkov. * WebKit.gyp: - We now compile the platform support files as part of webkit.dll to make sure the lib contains the obj files and therefore exports the necessary symbols. In principle, we could use a defs file to achieve the same thing, but those files are a pain to maintain. * src/WebKit.cpp: (WebKit::shutdown): - Unwind our ugly, ugly hack to make the Windows component build work. 2012-04-04 Mark Pilgrim Call sandboxEnabled directly https://bugs.webkit.org/show_bug.cgi?id=83113 Reviewed by Adam Barth. * src/PlatformSupport.cpp: (WebCore): 2012-04-04 Kausalya Madhusudhanan [Coverity] Address some uninit constructor values. https://bugs.webkit.org/show_bug.cgi?id=82424 Reviewed by Stephen White. New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor. * src/DatabaseObserver.cpp: (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge): * src/LocalFileSystemChromium.cpp: (WebCore): 2012-04-04 Dimitri Glazkov Unreviewed, temporary dirty hack to make Win Debug work again. * All.gyp: Temporarily removed TestWebKitAPI target. 2012-04-04 Pavel Feldman Web Inspector: migrate from InspectorFrontendHost.saveAs to InspectorFrontendHost.save. https://bugs.webkit.org/show_bug.cgi?id=83162 Reviewed by Yury Semikhatsky. * public/WebDevToolsFrontendClient.h: * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::canSave): (WebKit::InspectorFrontendClientImpl::save): * src/InspectorFrontendClientImpl.h: (InspectorFrontendClientImpl): 2012-04-04 Hans Wennborg WebSpeechRecognizer.h: add missing forward declaration https://bugs.webkit.org/show_bug.cgi?id=83150 Reviewed by Tony Gentilcore. Add missing forward declaration of WebSpeechRecognitionParams. * public/WebSpeechRecognizer.h: (WebKit): 2012-04-03 Hans Wennborg Speech JavaScript API: Plumbing for Chromium https://bugs.webkit.org/show_bug.cgi?id=81667 Reviewed by Darin Fisher. Add plumbing for speech recognition. The implementer is expected to implement the WebSpeechRecognizer interface. The start(), stop(), and abort() functions of that interface take a WebSpeechRecognitionHandle argument, which identifies the object which has requested the action, and a pointer to a WebSpeechRecognitionClient interface, through which it should send back notifications on progress, errors, etc. SpeechRecognitionClientProxy passes data between the WebCore and WebKit layers, implementing the WebCore::SpeechRecognitionClient and WebKit::WebSpeechRecognizerClient interfaces. * WebKit.gyp: * public/WebSpeechGrammar.h: (WebCore): (WebKit): (WebSpeechGrammar): (WebKit::WebSpeechGrammar::WebSpeechGrammar): (WebKit::WebSpeechGrammar::~WebSpeechGrammar): * public/WebSpeechRecognitionHandle.h: Added. (WebCore): (WebKit): (WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::~WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::operator=): (WebKit::operator==): (WebKit::operator!=): (WebKit::operator<): * public/WebSpeechRecognitionParams.h: (WebKit): (WebSpeechRecognitionParams): (WebKit::WebSpeechRecognitionParams::grammars): (WebKit::WebSpeechRecognitionParams::language): (WebKit::WebSpeechRecognitionParams::continuous): * public/WebSpeechRecognitionResult.h: Added. (WebCore): (WebKit): (WebSpeechRecognitionResult): (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult): (WebKit::WebSpeechRecognitionResult::~WebSpeechRecognitionResult): * public/WebSpeechRecognizer.h: (WebKit): (WebSpeechRecognizer): (WebKit::WebSpeechRecognizer::start): (WebKit::WebSpeechRecognizer::stop): (WebKit::WebSpeechRecognizer::abort): (WebKit::WebSpeechRecognizer::~WebSpeechRecognizer): * public/WebSpeechRecognizerClient.h: Added. (WebKit): (WebSpeechRecognizerClient): * public/WebViewClient.h: (WebKit): (WebViewClient): (WebKit::WebViewClient::speechRecognizer): * src/SpeechRecognitionClientProxy.cpp: Added. (WebKit): (WebKit::SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy): (WebKit::SpeechRecognitionClientProxy::create): (WebKit::SpeechRecognitionClientProxy::start): (WebKit::SpeechRecognitionClientProxy::stop): (WebKit::SpeechRecognitionClientProxy::abort): (WebKit::SpeechRecognitionClientProxy::didStartAudio): (WebKit::SpeechRecognitionClientProxy::didStartSound): (WebKit::SpeechRecognitionClientProxy::didStartSpeech): (WebKit::SpeechRecognitionClientProxy::didEndSpeech): (WebKit::SpeechRecognitionClientProxy::didEndSound): (WebKit::SpeechRecognitionClientProxy::didEndAudio): (WebKit::SpeechRecognitionClientProxy::didReceiveResult): (WebKit::SpeechRecognitionClientProxy::didReceiveNoMatch): (WebKit::SpeechRecognitionClientProxy::didDeleteResult): (WebKit::SpeechRecognitionClientProxy::didReceiveError): (WebKit::SpeechRecognitionClientProxy::didStart): (WebKit::SpeechRecognitionClientProxy::didEnd): (WebKit::SpeechRecognitionClientProxy::SpeechRecognitionClientProxy): * src/SpeechRecognitionClientProxy.h: Added. (WebKit): (SpeechRecognitionClientProxy): * src/WebSpeechGrammar.cpp: Added. (WebKit): (WebKit::WebSpeechGrammar::reset): (WebKit::WebSpeechGrammar::WebSpeechGrammar): (WebKit::WebSpeechGrammar::operator=): (WebKit::WebSpeechGrammar::src): (WebKit::WebSpeechGrammar::weight): * src/WebSpeechRecognitionHandle.cpp: Added. (WebKit): (WebKit::WebSpeechRecognitionHandle::reset): (WebKit::WebSpeechRecognitionHandle::assign): (WebKit::WebSpeechRecognitionHandle::equals): (WebKit::WebSpeechRecognitionHandle::lessThan): (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::operator=): (WebKit::WebSpeechRecognitionHandle::operator PassRefPtr): * src/WebSpeechRecognitionParams.cpp: Added. (WebKit): (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams): * src/WebSpeechRecognitionResult.cpp: Added. (WebKit): (WebKit::WebSpeechRecognitionResult::assign): (WebKit::WebSpeechRecognitionResult::reset): (WebKit::WebSpeechRecognitionResult::operator PassRefPtr): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): 2012-04-04 Sheriff Bot Unreviewed, rolling out r113149. http://trac.webkit.org/changeset/113149 https://bugs.webkit.org/show_bug.cgi?id=83126 for breaking Chromium builders (Requested by pfeldman on #webkit). * WebKit.gyp: * public/WebSpeechGrammar.h: Removed. * public/WebSpeechRecognitionHandle.h: Removed. * public/WebSpeechRecognitionParams.h: Removed. * public/WebSpeechRecognitionResult.h: Removed. * public/WebSpeechRecognizer.h: Removed. * public/WebSpeechRecognizerClient.h: Removed. * public/WebViewClient.h: (WebKit): * src/SpeechRecognitionClientProxy.cpp: Removed. * src/SpeechRecognitionClientProxy.h: Removed. * src/WebSpeechGrammar.cpp: Removed. * src/WebSpeechRecognitionHandle.cpp: Removed. * src/WebSpeechRecognitionResult.cpp: Removed. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): 2012-04-03 Hans Wennborg Speech JavaScript API: Plumbing for Chromium https://bugs.webkit.org/show_bug.cgi?id=81667 Reviewed by Darin Fisher. Add plumbing for speech recognition. The implementer is expected to implement the WebSpeechRecognizer interface. The start(), stop(), and abort() functions of that interface take a WebSpeechRecognitionHandle argument, which identifies the object which has requested the action, and a pointer to a WebSpeechRecognitionClient interface, through which it should send back notifications on progress, errors, etc. SpeechRecognitionClientProxy passes data between the WebCore and WebKit layers, implementing the WebCore::SpeechRecognitionClient and WebKit::WebSpeechRecognizerClient interfaces. * WebKit.gyp: * public/WebSpeechGrammar.h: (WebCore): (WebKit): (WebSpeechGrammar): (WebKit::WebSpeechGrammar::WebSpeechGrammar): (WebKit::WebSpeechGrammar::~WebSpeechGrammar): * public/WebSpeechRecognitionHandle.h: Added. (WebCore): (WebKit): (WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::~WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::operator=): (WebKit::operator==): (WebKit::operator!=): (WebKit::operator<): * public/WebSpeechRecognitionParams.h: (WebKit): (WebSpeechRecognitionParams): (WebKit::WebSpeechRecognitionParams::grammars): (WebKit::WebSpeechRecognitionParams::language): (WebKit::WebSpeechRecognitionParams::continuous): * public/WebSpeechRecognitionResult.h: Added. (WebCore): (WebKit): (WebSpeechRecognitionResult): (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult): (WebKit::WebSpeechRecognitionResult::~WebSpeechRecognitionResult): * public/WebSpeechRecognizer.h: (WebKit): (WebSpeechRecognizer): (WebKit::WebSpeechRecognizer::start): (WebKit::WebSpeechRecognizer::stop): (WebKit::WebSpeechRecognizer::abort): (WebKit::WebSpeechRecognizer::~WebSpeechRecognizer): * public/WebSpeechRecognizerClient.h: Added. (WebKit): (WebSpeechRecognizerClient): * public/WebViewClient.h: (WebKit): (WebViewClient): (WebKit::WebViewClient::speechRecognizer): * src/SpeechRecognitionClientProxy.cpp: Added. (WebKit): (WebKit::SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy): (WebKit::SpeechRecognitionClientProxy::create): (WebKit::SpeechRecognitionClientProxy::start): (WebKit::SpeechRecognitionClientProxy::stop): (WebKit::SpeechRecognitionClientProxy::abort): (WebKit::SpeechRecognitionClientProxy::didStartAudio): (WebKit::SpeechRecognitionClientProxy::didStartSound): (WebKit::SpeechRecognitionClientProxy::didStartSpeech): (WebKit::SpeechRecognitionClientProxy::didEndSpeech): (WebKit::SpeechRecognitionClientProxy::didEndSound): (WebKit::SpeechRecognitionClientProxy::didEndAudio): (WebKit::SpeechRecognitionClientProxy::didReceiveResult): (WebKit::SpeechRecognitionClientProxy::didReceiveNoMatch): (WebKit::SpeechRecognitionClientProxy::didDeleteResult): (WebKit::SpeechRecognitionClientProxy::didReceiveError): (WebKit::SpeechRecognitionClientProxy::didStart): (WebKit::SpeechRecognitionClientProxy::didEnd): (WebKit::SpeechRecognitionClientProxy::SpeechRecognitionClientProxy): * src/SpeechRecognitionClientProxy.h: Added. (WebKit): (SpeechRecognitionClientProxy): * src/WebSpeechGrammar.cpp: Added. (WebKit): (WebKit::WebSpeechGrammar::reset): (WebKit::WebSpeechGrammar::WebSpeechGrammar): (WebKit::WebSpeechGrammar::operator=): (WebKit::WebSpeechGrammar::src): (WebKit::WebSpeechGrammar::weight): * src/WebSpeechRecognitionHandle.cpp: Added. (WebKit): (WebKit::WebSpeechRecognitionHandle::reset): (WebKit::WebSpeechRecognitionHandle::assign): (WebKit::WebSpeechRecognitionHandle::equals): (WebKit::WebSpeechRecognitionHandle::lessThan): (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle): (WebKit::WebSpeechRecognitionHandle::operator=): (WebKit::WebSpeechRecognitionHandle::operator PassRefPtr): * src/WebSpeechRecognitionParams.cpp: Added. (WebKit): (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams): * src/WebSpeechRecognitionResult.cpp: Added. (WebKit): (WebKit::WebSpeechRecognitionResult::assign): (WebKit::WebSpeechRecognitionResult::reset): (WebKit::WebSpeechRecognitionResult::operator PassRefPtr): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): 2012-04-03 Yuta Kitamura Crash in WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel https://bugs.webkit.org/show_bug.cgi?id=82873 Reviewed by David Levin. Change the function signature of WorkerLoaderProxy::postTaskForModeToWorkerContext(). * src/WebSharedWorkerImpl.cpp: (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext): * src/WebSharedWorkerImpl.h: (WebSharedWorkerImpl): * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext): * src/WebWorkerClientImpl.h: (WebWorkerClientImpl): 2012-04-03 Ian Vollick [chromium] Include Image.h in TextFieldDecoratorImpl.cpp https://bugs.webkit.org/show_bug.cgi?id=83066 Reviewed by James Robinson. * src/TextFieldDecoratorImpl.cpp: 2012-04-03 Rafael Weinstein Use V8 completion callback API to assert that V8RecursionScope is on the stack whenever invoking script https://bugs.webkit.org/show_bug.cgi?id=79131 Reviewed by Adam Barth. * WebKit.gyp: * public/WebFrame.h: (v8): (WebFrame): * src/WebFrameImpl.cpp: (WebKit): (WebKit::WebFrameImpl::callFunctionEvenIfScriptDisabled): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebKit.cpp: (WebKit): (WebKit::assertV8RecursionScope): (WebKit::initialize): (WebKit::shutdown): 2012-04-03 Adam Barth Unreviewed. This patch adds an ugly, ugly hack to bandaid over the Windows component build. See comments in the code for details. * src/WebKit.cpp: (WebKit::shutdown): 2012-04-03 Dimitri Glazkov Unreviewed, rolling out r113087. http://trac.webkit.org/changeset/113087 https://bugs.webkit.org/show_bug.cgi?id=83068 Breaks Windows builds in other unpredictable ways. * WebKit.gyp: Removed the hack. 2012-04-03 W. James MacLean [chromium] Switch touchpad fling curve physics to absolute (not scaled) curve. https://bugs.webkit.org/show_bug.cgi?id=83061 Reviewed by James Robinson. * tests/PlatformGestureCurveTest.cpp: 2012-04-02 Zhenyao Mo Implement WebGLShaderPrecisionFormat https://bugs.webkit.org/show_bug.cgi?id=75925 Reviewed by Kenneth Russell. * src/GraphicsContext3DChromium.cpp: Add getShaderPrecisionFormat(). (WebCore): * src/GraphicsContext3DPrivate.h: Ditto. (GraphicsContext3DPrivate): * tests/FakeWebGraphicsContext3D.h: Ditto. (FakeWebGraphicsContext3D): 2012-04-03 Dirk Pranke disable incremental linking for debug of webkit https://bugs.webkit.org/show_bug.cgi?id=83068 Reviewed by Adam Barth. Now that we need to export symbols from webkit.dll that are defined in webcore_platform, we have to enable ULDI in order for incremental linking to work (which is used in debug mode). * WebKit.gyp: 2012-04-03 Shawn Singh [chromium] Fix incorrect comment in CCDamageTrackerTest https://bugs.webkit.org/show_bug.cgi?id=82118 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): 2012-04-03 Adam Barth Another attempt to fix the Windows build. This uses WebSecurityOrigin has a value type but doesn't include the header. * public/WebUserMediaRequest.h: (WebKit): 2012-04-03 'Pavel Feldman' Not reviewed. Follow up to inspector's r113032: change provisional method signature a bit. * public/WebDevToolsFrontendClient.h: (WebKit::WebDevToolsFrontendClient::save): 2012-04-03 Bolin Hsu [Chromium] Add click count and modifiers to the factory method of mouse event. https://bugs.webkit.org/show_bug.cgi?id=82502 Modify WebInputEventFactory::mouseEvent() to take click count and modifiers from input parameters. Sample use cases of these are double click, triple click, Ctrl+click, etc. Reviewed by Eric Seidel. * public/android/WebInputEventFactory.h: * src/android/WebInputEventFactory.cpp: (WebKit::WebInputEventFactory::mouseEvent): 2012-04-03 Mark Pilgrim Call incrementStatsCounter directly https://bugs.webkit.org/show_bug.cgi?id=83023 Reviewed by Kentaro Hara. * src/PlatformSupport.cpp: (WebCore): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::WebFrameImpl): 2012-04-03 Sami Kyostila [chromium] Canvas2DLayerChromium::updateCompositorResources should flush after copying https://bugs.webkit.org/show_bug.cgi?id=83013 Reviewed by Stephen White. * tests/Canvas2DLayerChromiumTest.cpp: Make sure context is flushed after copying. 2012-04-03 Pavel Feldman Web Inspector: [chromium] add provisional save method into the frontend client. https://bugs.webkit.org/show_bug.cgi?id=83022 Reviewed by Yury Semikhatsky. * public/WebDevToolsFrontendClient.h: (WebKit::WebDevToolsFrontendClient::save): 2012-04-03 Bill Budge WebViewImpl doesn't notify the page that the user has canceled fullscreen. https://bugs.webkit.org/show_bug.cgi?id=82760 Reviewed by Darin Fisher. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::willExitFullScreen): (WebKit::WebViewImpl::exitFullScreenForElement): * src/WebViewImpl.h: 2012-04-02 Kent Tamura [Chromium] Add WebKit API for WebCore::TextFieldDecorator https://bugs.webkit.org/show_bug.cgi?id=82143 Reviewed by Dimitri Glazkov. Expose WebCore::TextFieldDecorator as WebKit::WebTextFieldDecoratorClient. This change add capability to add decoration buttons to text field elements. * WebKit.gyp: Add new files. * public/WebTextFieldDecoratorClient.h: Added. * public/WebView.h: (WebKit): Add addTextFieldDecoratorClient(). * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::willAddTextFieldDecorationsTo): Calls willAddDecorationTo() of TextFieldDecorator objects owned by WebViewImpl. (WebKit::ChromeClientImpl::addTextFieldDecorationsTo): Apply TextFieldDecorationElement::decorate() for the specified input element. * src/ChromeClientImpl.h: (ChromeClientImpl): Add new function declarations. * src/TextFieldDecoratorImpl.cpp: Added. This is a bridge of WebCore::TextFieldDecorator and WebKit::WebTextFieldDecoratorClient. This owns CachedImage objects specfied by WebTextFieldDecoratorClient. (WebKit::TextFieldDecoratorImpl::TextFieldDecoratorImpl): (WebKit::TextFieldDecoratorImpl::create): (WebKit::TextFieldDecoratorImpl::~TextFieldDecoratorImpl): (WebKit::TextFieldDecoratorImpl::willAddDecorationTo): (WebKit::TextFieldDecoratorImpl::imageForNormalState): (WebKit::TextFieldDecoratorImpl::imageForDisabledState): (WebKit::TextFieldDecoratorImpl::imageForReadonlyState): (WebKit::TextFieldDecoratorImpl::handleClick): (WebKit::TextFieldDecoratorImpl::willDetach): * src/TextFieldDecoratorImpl.h: Added. (TextFieldDecoratorImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::addTextFieldDecoratorClient): Add implementation of WebView::addTextFieldDecoratorClient(). * src/WebViewImpl.h: WebViewImpl owns a vector of TextFieldDecoratorImpl. (WebViewImpl): (WebKit::WebViewImpl::textFieldDecorators): 2012-04-02 Dana Jansens [chromium] Remove SkCanvas::LayerIter use from OpaqueRegionSkia https://bugs.webkit.org/show_bug.cgi?id=82564 Reviewed by Stephen White. * tests/PlatformContextSkiaTest.cpp: (WebCore): (WebCore::TEST): 2012-04-02 Mark Pilgrim Call decrementStatsCounter directly https://bugs.webkit.org/show_bug.cgi?id=82950 Reviewed by Adam Barth. * src/PlatformSupport.cpp: (WebCore): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::~WebFrameImpl): 2012-04-02 Alexander Pavlov [Chromium] Unreviewed, CCLayerTreeHost runMultiThread is flaky. Related bug: https://bugs.webkit.org/show_bug.cgi?id=80811 Disabled CCLayerTreeHostTestAddAnimationWithTimingFunction.runMultiThread. * tests/CCLayerTreeHostTest.cpp: (WTF::TEST_F): 2012-04-02 Alexander Pavlov Web Inspector: Device metrics emulation should turn off when zero width and height are passed in https://bugs.webkit.org/show_bug.cgi?id=82907 Currently this also requires the fontScaleFactor of 1 to be passed in, too. However, it results in downsizing the FrameView to (0x0) on navigation with the open Inspector when the emulation is disabled. Reviewed by Yury Semikhatsky. * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics): 2012-04-02 Kinuko Yasuda Unreviewed, rolling chromium DEPS. * DEPS: 2012-04-02 Keishi Hattori [chromium] Disable ENABLE_INPUT_TYPE_COLOR for aura and android https://bugs.webkit.org/show_bug.cgi?id=82863 Reviewed by Kent Tamura. * features.gypi: 2012-04-02 Adam Barth [Chromium] Move a number of virtual functions from WebKitPlatformSupport.h into Platform.h https://bugs.webkit.org/show_bug.cgi?id=82865 Reviewed by Kent Tamura. * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKitPlatformSupport): 2012-04-02 Kent Tamura Add a calendar picker indicator to date-type input fields https://bugs.webkit.org/show_bug.cgi?id=80478 Reviewed by Hajime Morita. * features.gypi: Enable CALENDAR_PICKER for non-Android platforms. This doesn't affect any bahevior because INPUT_TYPE_DATE is disabled. 2012-04-02 Adam Barth [Chromium] Move another block of headers from WebKit/chromium/public/platform to Platform/chromium/public https://bugs.webkit.org/show_bug.cgi?id=82862 Rubber-stamped by Eric Seidel. * WebKit.gyp: * public/platform/WebAudioBus.h: Replaced. * public/platform/WebAudioDevice.h: Replaced. * public/platform/WebGamepad.h: Replaced. * public/platform/WebGamepads.h: Replaced. * public/platform/WebSocketStreamError.h: Replaced. * public/platform/WebSocketStreamHandle.h: Replaced. * public/platform/WebSocketStreamHandleClient.h: Replaced. * src/WebAudioBus.cpp: Removed. 2012-04-01 Adam Barth [Chromium] Move thread-related APIs from WebKit into Platform https://bugs.webkit.org/show_bug.cgi?id=82858 Reviewed by Eric Seidel. * WebKit.gyp: * public/platform/WebThread.h: Replaced. * public/platform/WebThreadSafeData.h: Replaced. * src/WebThreadSafeData.cpp: Removed. 2012-04-01 Jon Lee Rename notification properties and functions https://bugs.webkit.org/show_bug.cgi?id=80482 Reviewed by Kentaro Hara. * src/WebNotification.cpp: (WebKit::WebNotification::replaceId): Refactor to call tag(). 2012-03-29 Adam Barth [Chromium] Delete WebKit/chromium/bridge https://bugs.webkit.org/show_bug.cgi?id=82677 Reviewed by James Robinson. Delete WebKit/chromium/bridge. This was a directory we were experimenting with storing WebCore-namespaced code. Now we're able to actually keep that code in WebCore itself, which is much more sensible. * WebKit.gyp: * bridge: Removed. * bridge/DeprecatedPeerConnectionHandler.cpp: Removed. * bridge/DeprecatedPeerConnectionHandlerInternal.cpp: Removed. * bridge/DeprecatedPeerConnectionHandlerInternal.h: Removed. * bridge/MediaStreamCenter.cpp: Removed. * bridge/MediaStreamCenterInternal.cpp: Removed. * bridge/MediaStreamCenterInternal.h: Removed. * bridge/PeerConnection00Handler.cpp: Removed. * bridge/PeerConnection00HandlerInternal.cpp: Removed. * bridge/PeerConnection00HandlerInternal.h: Removed. * public/platform/WebICECandidateDescriptor.h: Replaced. * public/platform/WebICEOptions.h: Replaced. * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKitPlatformSupport): * public/platform/WebMediaHints.h: Replaced. * public/platform/WebMediaStreamCenter.h: Replaced. * public/platform/WebMediaStreamCenterClient.h: Replaced. * public/platform/WebMediaStreamComponent.h: Replaced. * public/platform/WebMediaStreamDescriptor.h: Replaced. * public/platform/WebMediaStreamSource.h: Replaced. * public/platform/WebMediaStreamSourcesRequest.h: Replaced. * public/platform/WebPeerConnection00Handler.h: Replaced. * public/platform/WebPeerConnection00HandlerClient.h: Replaced. * public/platform/WebPeerConnectionHandler.h: Replaced. * public/platform/WebPeerConnectionHandlerClient.h: Replaced. * public/platform/WebSessionDescriptionDescriptor.h: Replaced. * public/platform/WebVector.h: Replaced. * src/WebICECandidateDescriptor.cpp: Removed. * src/WebICEOptions.cpp: Removed. * src/WebMediaHints.cpp: Removed. * src/WebMediaStreamComponent.cpp: Removed. * src/WebMediaStreamDescriptor.cpp: Removed. * src/WebMediaStreamSource.cpp: Removed. * src/WebMediaStreamSourcesRequest.cpp: Removed. 2012-03-30 Adam Barth [Chromium] Move ResourceHandle to WebCore/platform/network/chromium https://bugs.webkit.org/show_bug.cgi?id=82657 Reviewed by James Robinson. * WebKit.gyp: * src/ResourceHandle.cpp: Removed. * src/ResourceHandleInternal.h: Removed. * src/WrappedResourceRequest.h: Removed. * src/WrappedResourceResponse.h: Removed. 2012-03-30 Adam Barth Two more link errors. This time it's v8 we're missing. * WebKitUnitTests.gyp: 2012-03-30 Adam Barth Attempt to fix the Windows component build. It seems we're just missing GURL now. * WebKitUnitTests.gyp: 2012-03-30 Adam Barth Attempt to fix the Windows component build. The way we link the unit tests in the component build is kind of nutty. Hopefully this approach will eliminate the duplicate symbols we've been seeing. * WebKitUnitTests.gyp: 2012-03-30 Emil A Eklund Change WebKit/WebKit2 platform code to use pixel snapped values https://bugs.webkit.org/show_bug.cgi?id=82549 Reviewed by Eric Seidel. * src/WebAccessibilityObject.cpp: (WebKit::WebAccessibilityObject::boundingBoxRect): Use pixelSnappedBoundingBoxRect instead of boundingBoxRect which returns a LayoutRect. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::characterIndexForPoint): Use roundedPoint instead of point for hit testing as ranges use screen cordinates which are represented with pixel accuracy. 2012-03-30 Adam Barth https://bugs.webkit.org/show_bug.cgi?id=82582 Move CPP files related to ResourceHandle to WebCore/platform Reviewed by James Robinson. * WebKit.gyp: * src/WebHTTPBody.cpp: Removed. * src/WebHTTPLoadInfo.cpp: Removed. * src/WebURL.cpp: Removed. * src/WebURLError.cpp: Removed. * src/WebURLRequest.cpp: Removed. * src/WebURLRequestPrivate.h: Removed. * src/WebURLResponse.cpp: Removed. * src/WebURLResponsePrivate.h: Removed. 2012-03-30 Dirk Pranke Roll chromium DEPS from 129593 to 129574. Unreviewed. * DEPS: 2012-03-30 Adam Barth Move CPP files related to ResourceHandle to WebCore/platform https://bugs.webkit.org/show_bug.cgi?id=82582 Reviewed by James Robinson. * WebKit.gyp: * src/WebData.cpp: Removed. 2012-03-30 Mark Pilgrim GEOLOCATION should be implemented as Page Supplement https://bugs.webkit.org/show_bug.cgi?id=82228 Reviewed by Adam Barth. Geolocation is now a Supplement in Page so the interface has changed for setting up the page's geolocation client initially and accessing the controller later. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-03-30 Ian Vollick [chromium] Flaky animation unit test CCLayerTreeHostTestSynchronizeAnimationStartTimes https://bugs.webkit.org/show_bug.cgi?id=82731 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::animateLayers): (CCLayerTreeHostTestSynchronizeAnimationStartTimes): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::notifyAnimationStarted): 2012-03-30 Ian Vollick [chromium] assertion being hit in CCLayerAnimationController https://bugs.webkit.org/show_bug.cgi?id=82237 Reviewed by James Robinson. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-03-30 Alexander Pavlov [Chromium] Unreviewed Chromium Mac build fix. * src/WebDevToolsAgentPrivate.h: (WebKit): 2012-03-30 Alexander Pavlov Web Inspector: [Chromium] Implement Chromium-specific part of the device metrics emulation https://bugs.webkit.org/show_bug.cgi?id=82612 This change implements the Chromium-specific code for overriding the device metrics, such as screen size (by setting the FrameView size) and font zoom factor (necessary for certain emulated devices,) and for painting the gutter overlay covering the WebView area not occupied by the associated FrameView. Reviewed by Pavel Feldman. * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::canOverrideDeviceMetrics): (WebKit): (WebKit::InspectorClientImpl::overrideDeviceMetrics): (WebKit::InspectorClientImpl::autoZoomPageToFitWidth): * src/InspectorClientImpl.h: (InspectorClientImpl): * src/WebDevToolsAgentImpl.cpp: (OverlayZOrders): (DeviceMetricsSupport): (WebKit::DeviceMetricsSupport::DeviceMetricsSupport): (WebKit::DeviceMetricsSupport::~DeviceMetricsSupport): (WebKit::DeviceMetricsSupport::setDeviceMetrics): (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth): (WebKit::DeviceMetricsSupport::applySizeOverrideIfNecessary): (WebKit::DeviceMetricsSupport::restore): (WebKit::DeviceMetricsSupport::applySizeOverrideInternal): (WebKit::DeviceMetricsSupport::paintPageOverlay): (WebKit::DeviceMetricsSupport::frameView): (WebKit): (WebKit::WebDevToolsAgentImpl::mainFrameViewCreated): (WebKit::WebDevToolsAgentImpl::metricsOverridden): (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics): (WebKit::WebDevToolsAgentImpl::autoZoomPageToFitWidth): (WebKit::WebDevToolsAgentImpl::highlight): * src/WebDevToolsAgentImpl.h: (WebCore): (WebKit): (WebDevToolsAgentImpl): * src/WebDevToolsAgentPrivate.h: (WebKit): (WebDevToolsAgentPrivate): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::createFrameView): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::resize): (WebKit::WebViewImpl::setZoomLevel): (WebKit::WebViewImpl::setEmulatedTextZoomFactor): (WebKit): (WebKit::WebViewImpl::updateLayerTreeViewport): * src/WebViewImpl.h: (WebViewImpl): (WebKit::WebViewImpl::emulatedTextZoomFactor): 2012-03-30 David Barr Split up top-level .gitignore and .gitattributes https://bugs.webkit.org/show_bug.cgi?id=82687 Reviewed by Tor Arne Vestbø. * .gitignore: Added. 2012-03-30 Mike Reed pass alpha directly to player, rather than creating a layer (for performance) https://bugs.webkit.org/show_bug.cgi?id=82360 Reviewed by Stephen White. Performance change, existing webkit tests apply. * public/WebMediaPlayer.h: (WebMediaPlayer): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::paintCurrentFrameInContext): 2012-03-30 Jesus Sanchez-Palencia Add a "preview" state to Page Visibility API implementation https://bugs.webkit.org/show_bug.cgi?id=81355 Reviewed by Adam Barth. Updating the Page Visibility API implementation to the current spec version. * public/WebPageVisibilityState.h: * src/AssertMatchingEnums.cpp: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setVisibilityState): 2012-03-30 Keishi Hattori Change ENABLE_INPUT_COLOR to ENABLE_INPUT_TYPE_COLOR and enable it for chromium https://bugs.webkit.org/show_bug.cgi?id=80972 Reviewed by Kent Tamura. * features.gypi: * src/ChromeClientImpl.cpp: (WebKit): * src/ChromeClientImpl.h: (WebCore): (ChromeClientImpl): * src/ColorChooserProxy.cpp: * src/ColorChooserProxy.h: * src/WebColorChooserClientImpl.cpp: * src/WebColorChooserClientImpl.h: 2012-03-29 Adam Barth Unreviewed, rolling out r112572. http://trac.webkit.org/changeset/112572 https://bugs.webkit.org/show_bug.cgi?id=82582 Does not compile in Windows component build * WebKit.gyp: * src/WebData.cpp: Renamed from Source/WebCore/platform/chromium/support/WebData.cpp. (WebKit): (WebKit::WebData::reset): (WebKit::WebData::assign): (WebKit::WebData::size): (WebKit::WebData::data): (WebKit::WebData::WebData): (WebKit::WebData::operator=): (WebKit::WebData::operator PassRefPtr): * src/WebHTTPBody.cpp: Renamed from Source/WebCore/platform/chromium/support/WebHTTPBody.cpp. (WebKit): (WebKit::WebHTTPBody::initialize): (WebKit::WebHTTPBody::reset): (WebKit::WebHTTPBody::assign): (WebKit::WebHTTPBody::elementCount): (WebKit::WebHTTPBody::elementAt): (WebKit::WebHTTPBody::appendData): (WebKit::WebHTTPBody::appendFile): (WebKit::WebHTTPBody::appendFileRange): (WebKit::WebHTTPBody::appendBlob): (WebKit::WebHTTPBody::identifier): (WebKit::WebHTTPBody::setIdentifier): (WebKit::WebHTTPBody::containsPasswordData): (WebKit::WebHTTPBody::setContainsPasswordData): (WebKit::WebHTTPBody::WebHTTPBody): (WebKit::WebHTTPBody::operator=): (WebKit::WebHTTPBody::operator PassRefPtr): (WebKit::WebHTTPBody::ensureMutable): * src/WebHTTPLoadInfo.cpp: Renamed from Source/WebCore/platform/chromium/support/WebHTTPLoadInfo.cpp. (WebKit): (WebKit::WebHTTPLoadInfo::initialize): (WebKit::WebHTTPLoadInfo::reset): (WebKit::WebHTTPLoadInfo::assign): (WebKit::WebHTTPLoadInfo::WebHTTPLoadInfo): (WebKit::WebHTTPLoadInfo::operator WTF::PassRefPtr): (WebKit::WebHTTPLoadInfo::httpStatusCode): (WebKit::WebHTTPLoadInfo::setHTTPStatusCode): (WebKit::WebHTTPLoadInfo::httpStatusText): (WebKit::WebHTTPLoadInfo::setHTTPStatusText): (WebKit::WebHTTPLoadInfo::encodedDataLength): (WebKit::WebHTTPLoadInfo::setEncodedDataLength): (WebKit::addHeader): (WebKit::WebHTTPLoadInfo::addRequestHeader): (WebKit::WebHTTPLoadInfo::addResponseHeader): (WebKit::WebHTTPLoadInfo::requestHeadersText): (WebKit::WebHTTPLoadInfo::setRequestHeadersText): (WebKit::WebHTTPLoadInfo::responseHeadersText): (WebKit::WebHTTPLoadInfo::setResponseHeadersText): * src/WebURL.cpp: Renamed from Source/WebCore/platform/chromium/support/WebURL.cpp. (WebKit): (WebKit::WebURL::WebURL): (WebKit::WebURL::operator=): (WebKit::WebURL::operator WebCore::KURL): * src/WebURLError.cpp: Renamed from Source/WebCore/platform/chromium/support/WebURLError.cpp. (WebKit): (WebKit::WebURLError::WebURLError): (WebKit::WebURLError::operator=): (WebKit::WebURLError::operator ResourceError): * src/WebURLRequest.cpp: Renamed from Source/WebCore/platform/chromium/support/WebURLRequest.cpp. (WebURLRequestPrivateImpl): (WebKit::WebURLRequestPrivateImpl::WebURLRequestPrivateImpl): (WebKit::WebURLRequestPrivateImpl::dispose): (WebKit::WebURLRequestPrivateImpl::~WebURLRequestPrivateImpl): (WebKit): (WebKit::WebURLRequest::initialize): (WebKit::WebURLRequest::reset): (WebKit::WebURLRequest::assign): (WebKit::WebURLRequest::isNull): (WebKit::WebURLRequest::url): (WebKit::WebURLRequest::setURL): (WebKit::WebURLRequest::firstPartyForCookies): (WebKit::WebURLRequest::setFirstPartyForCookies): (WebKit::WebURLRequest::allowCookies): (WebKit::WebURLRequest::setAllowCookies): (WebKit::WebURLRequest::allowStoredCredentials): (WebKit::WebURLRequest::setAllowStoredCredentials): (WebKit::WebURLRequest::cachePolicy): (WebKit::WebURLRequest::setCachePolicy): (WebKit::WebURLRequest::httpMethod): (WebKit::WebURLRequest::setHTTPMethod): (WebKit::WebURLRequest::httpHeaderField): (WebKit::WebURLRequest::setHTTPHeaderField): (WebKit::WebURLRequest::addHTTPHeaderField): (WebKit::WebURLRequest::clearHTTPHeaderField): (WebKit::WebURLRequest::visitHTTPHeaderFields): (WebKit::WebURLRequest::httpBody): (WebKit::WebURLRequest::setHTTPBody): (WebKit::WebURLRequest::reportUploadProgress): (WebKit::WebURLRequest::setReportUploadProgress): (WebKit::WebURLRequest::reportLoadTiming): (WebKit::WebURLRequest::setReportRawHeaders): (WebKit::WebURLRequest::reportRawHeaders): (WebKit::WebURLRequest::setReportLoadTiming): (WebKit::WebURLRequest::targetType): (WebKit::WebURLRequest::hasUserGesture): (WebKit::WebURLRequest::setHasUserGesture): (WebKit::WebURLRequest::setTargetType): (WebKit::WebURLRequest::requestorID): (WebKit::WebURLRequest::setRequestorID): (WebKit::WebURLRequest::requestorProcessID): (WebKit::WebURLRequest::setRequestorProcessID): (WebKit::WebURLRequest::appCacheHostID): (WebKit::WebURLRequest::setAppCacheHostID): (WebKit::WebURLRequest::downloadToFile): (WebKit::WebURLRequest::setDownloadToFile): (WebKit::WebURLRequest::extraData): (WebKit::WebURLRequest::setExtraData): (WebKit::WebURLRequest::toMutableResourceRequest): (WebKit::WebURLRequest::toResourceRequest): * src/WebURLRequestPrivate.h: Renamed from Source/WebCore/platform/chromium/support/WebURLRequestPrivate.h. (WebKit): (WebURLRequestPrivate): (WebKit::WebURLRequestPrivate::WebURLRequestPrivate): * src/WebURLResponse.cpp: Renamed from Source/WebCore/platform/chromium/support/WebURLResponse.cpp. (WebURLResponsePrivateImpl): (WebKit::WebURLResponsePrivateImpl::WebURLResponsePrivateImpl): (WebKit::WebURLResponsePrivateImpl::dispose): (WebKit::WebURLResponsePrivateImpl::~WebURLResponsePrivateImpl): (WebKit): (WebKit::WebURLResponse::initialize): (WebKit::WebURLResponse::reset): (WebKit::WebURLResponse::assign): (WebKit::WebURLResponse::isNull): (WebKit::WebURLResponse::url): (WebKit::WebURLResponse::setURL): (WebKit::WebURLResponse::connectionID): (WebKit::WebURLResponse::setConnectionID): (WebKit::WebURLResponse::connectionReused): (WebKit::WebURLResponse::setConnectionReused): (WebKit::WebURLResponse::loadTiming): (WebKit::WebURLResponse::setLoadTiming): (WebKit::WebURLResponse::httpLoadInfo): (WebKit::WebURLResponse::setHTTPLoadInfo): (WebKit::WebURLResponse::responseTime): (WebKit::WebURLResponse::setResponseTime): (WebKit::WebURLResponse::mimeType): (WebKit::WebURLResponse::setMIMEType): (WebKit::WebURLResponse::expectedContentLength): (WebKit::WebURLResponse::setExpectedContentLength): (WebKit::WebURLResponse::textEncodingName): (WebKit::WebURLResponse::setTextEncodingName): (WebKit::WebURLResponse::suggestedFileName): (WebKit::WebURLResponse::setSuggestedFileName): (WebKit::WebURLResponse::httpStatusCode): (WebKit::WebURLResponse::setHTTPStatusCode): (WebKit::WebURLResponse::httpStatusText): (WebKit::WebURLResponse::setHTTPStatusText): (WebKit::WebURLResponse::httpHeaderField): (WebKit::WebURLResponse::setHTTPHeaderField): (WebKit::WebURLResponse::addHTTPHeaderField): (WebKit::WebURLResponse::clearHTTPHeaderField): (WebKit::WebURLResponse::visitHTTPHeaderFields): (WebKit::WebURLResponse::lastModifiedDate): (WebKit::WebURLResponse::setLastModifiedDate): (WebKit::WebURLResponse::appCacheID): (WebKit::WebURLResponse::setAppCacheID): (WebKit::WebURLResponse::appCacheManifestURL): (WebKit::WebURLResponse::setAppCacheManifestURL): (WebKit::WebURLResponse::securityInfo): (WebKit::WebURLResponse::setSecurityInfo): (WebKit::WebURLResponse::toMutableResourceResponse): (WebKit::WebURLResponse::toResourceResponse): (WebKit::WebURLResponse::wasCached): (WebKit::WebURLResponse::setWasCached): (WebKit::WebURLResponse::wasFetchedViaSPDY): (WebKit::WebURLResponse::setWasFetchedViaSPDY): (WebKit::WebURLResponse::wasNpnNegotiated): (WebKit::WebURLResponse::setWasNpnNegotiated): (WebKit::WebURLResponse::wasAlternateProtocolAvailable): (WebKit::WebURLResponse::setWasAlternateProtocolAvailable): (WebKit::WebURLResponse::wasFetchedViaProxy): (WebKit::WebURLResponse::setWasFetchedViaProxy): (WebKit::WebURLResponse::isMultipartPayload): (WebKit::WebURLResponse::setIsMultipartPayload): (WebKit::WebURLResponse::downloadFilePath): (WebKit::WebURLResponse::setDownloadFilePath): (WebKit::WebURLResponse::remoteIPAddress): (WebKit::WebURLResponse::setRemoteIPAddress): (WebKit::WebURLResponse::remotePort): (WebKit::WebURLResponse::setRemotePort): (WebKit::WebURLResponse::extraData): (WebKit::WebURLResponse::setExtraData): * src/WebURLResponsePrivate.h: Renamed from Source/WebCore/platform/chromium/support/WebURLResponsePrivate.h. (WebKit): (WebURLResponsePrivate): (WebKit::WebURLResponsePrivate::WebURLResponsePrivate): 2012-03-29 Adam Barth Unreviewed, rolling out r112579. http://trac.webkit.org/changeset/112579 https://bugs.webkit.org/show_bug.cgi?id=82657 Does not compile in Windows component build * WebKit.gyp: * src/ResourceHandle.cpp: Renamed from Source/WebCore/platform/network/chromium/ResourceHandle.cpp. (WebCore): (WebCore::ResourceHandleInternal::ResourceHandleInternal): (WebCore::ResourceHandleInternal::start): (WebCore::ResourceHandleInternal::cancel): (WebCore::ResourceHandleInternal::setDefersLoading): (WebCore::ResourceHandleInternal::allowStoredCredentials): (WebCore::ResourceHandleInternal::willSendRequest): (WebCore::ResourceHandleInternal::didSendData): (WebCore::ResourceHandleInternal::didReceiveResponse): (WebCore::ResourceHandleInternal::didDownloadData): (WebCore::ResourceHandleInternal::didReceiveData): (WebCore::ResourceHandleInternal::didReceiveCachedMetadata): (WebCore::ResourceHandleInternal::didFinishLoading): (WebCore::ResourceHandleInternal::didFail): (WebCore::ResourceHandleInternal::FromResourceHandle): (WebCore::ResourceHandle::ResourceHandle): (WebCore::ResourceHandle::create): (WebCore::ResourceHandle::firstRequest): (WebCore::ResourceHandle::client): (WebCore::ResourceHandle::setClient): (WebCore::ResourceHandle::setDefersLoading): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::hasAuthenticationChallenge): (WebCore::ResourceHandle::clearAuthentication): (WebCore::ResourceHandle::cancel): (WebCore::ResourceHandle::~ResourceHandle): (WebCore::ResourceHandle::loadsBlocked): (WebCore::ResourceHandle::loadResourceSynchronously): (WebCore::ResourceHandle::willLoadFromCache): (WebCore::ResourceHandle::cacheMetadata): * src/ResourceHandleInternal.h: Renamed from Source/WebCore/platform/network/chromium/ResourceHandleInternal.h. (WebCore): (ResourceHandleInternal): (WebCore::ResourceHandleInternal::~ResourceHandleInternal): (WebCore::ResourceHandleInternal::setOwner): (WebCore::ResourceHandleInternal::request): (WebCore::ResourceHandleInternal::client): (WebCore::ResourceHandleInternal::setClient): (WebCore::ResourceHandleInternal::loader): * src/WrappedResourceRequest.h: Renamed from Source/WebCore/platform/chromium/support/WrappedResourceRequest.h. (WebKit): (WrappedResourceRequest): (WebKit::WrappedResourceRequest::~WrappedResourceRequest): (WebKit::WrappedResourceRequest::WrappedResourceRequest): (WebKit::WrappedResourceRequest::bind): (Handle): (WebKit::WrappedResourceRequest::Handle::dispose): * src/WrappedResourceResponse.h: Renamed from Source/WebCore/platform/chromium/support/WrappedResourceResponse.h. (WebKit): (WrappedResourceResponse): (WebKit::WrappedResourceResponse::~WrappedResourceResponse): (WebKit::WrappedResourceResponse::WrappedResourceResponse): (WebKit::WrappedResourceResponse::bind): (Handle): (WebKit::WrappedResourceResponse::Handle::dispose): 2012-03-29 Adam Barth [Chromium] Move ResourceHandle to WebCore/platform/network/chromium https://bugs.webkit.org/show_bug.cgi?id=82657 Reviewed by James Robinson. * WebKit.gyp: * src/ResourceHandle.cpp: Removed. * src/ResourceHandleInternal.h: Removed. * src/WrappedResourceRequest.h: Removed. * src/WrappedResourceResponse.h: Removed. 2012-03-29 Dmitry Lomov [Chromium] WorkerFileSystemContextObserver can reference a deleted WorkerFileSystemCallbacksBridge. https://bugs.webkit.org/show_bug.cgi?id=82565 WorkerFileSystemCallbacksBridge relies on a cleanUpAfterCallback being called prior to the disposal of the bridge to ensure that WorkerFileSystemContextObserver is unsubscribed and deleted. However cleanUpAfterCallback will only execute if the bridge's callback has executed on the worker thread, and this might not be the case if the worker terminates. This patch fixes this by maintaining a RefPtr from WorkerFileSystemContextObserver to WorkerFileSystemCallbacksBridge. This ensures that bridge is not deleted while observer is alive. Reviewed by David Levin. * src/WorkerFileSystemCallbacksBridge.cpp: (WebKit::WorkerFileSystemContextObserver::create): (WebKit::WorkerFileSystemContextObserver::WorkerFileSystemContextObserver): (WorkerFileSystemContextObserver): 2012-03-29 Adam Barth Move CPP files related to ResourceHandle to WebCore/platform https://bugs.webkit.org/show_bug.cgi?id=82582 Reviewed by James Robinson. * WebKit.gyp: * src/WebData.cpp: Removed. * src/WebHTTPBody.cpp: Removed. * src/WebHTTPLoadInfo.cpp: Removed. * src/WebURL.cpp: Removed. * src/WebURLError.cpp: Removed. * src/WebURLRequest.cpp: Removed. * src/WebURLRequestPrivate.h: Removed. * src/WebURLResponse.cpp: Removed. * src/WebURLResponsePrivate.h: Removed. 2012-03-29 Michal Mocny [chromium] Ensure framebuffer exists at the start of beginDrawingFrame. https://bugs.webkit.org/show_bug.cgi?id=82569 Reviewed by James Robinson. * tests/LayerRendererChromiumTest.cpp: (FakeLayerRendererChromiumClient::FakeLayerRendererChromiumClient): (FakeLayerRendererChromiumClient::rootLayer): (FakeLayerRendererChromiumClient): (TEST_F): 2012-03-29 Adam Barth Move createURLLoader() into Platform https://bugs.webkit.org/show_bug.cgi?id=82587 Reviewed by James Robinson. * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKitPlatformSupport): * src/WebKit.cpp: (WebKit::initializeWithoutV8): (WebKit::shutdown): 2012-03-29 Sheriff Bot Unreviewed, rolling out r112553. http://trac.webkit.org/changeset/112553 https://bugs.webkit.org/show_bug.cgi?id=82638 It made all tests crash on Qt WK2 (Requested by Ossy_away on #webkit). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-03-29 Caio Marcelo de Oliveira Filho HashMap<>::add should return a more descriptive object https://bugs.webkit.org/show_bug.cgi?id=71063 Reviewed by Ryosuke Niwa. Update code to use AddResult instead of a pair. * src/WebHTTPLoadInfo.cpp: (WebKit::addHeader): * src/WebURLResponse.cpp: (WebKit::WebURLResponse::addHTTPHeaderField): 2012-03-29 Mark Pilgrim GEOLOCATION should be implemented as Page Supplement https://bugs.webkit.org/show_bug.cgi?id=82228 Reviewed by Adam Barth. Geolocation is now a Supplement in Page so the interface has changed for setting up the page's geolocation client initially and accessing the controller later. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-03-29 Dana Jansens [chromium] Split off tiled layer constructs for unit tests into a common header https://bugs.webkit.org/show_bug.cgi?id=82425 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/CCTiledLayerTestCommon.cpp: Added. (WebKitTests): (WebKitTests::FakeLayerTextureUpdater::Texture::Texture): (WebKitTests::FakeLayerTextureUpdater::Texture::~Texture): (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect): (WebKitTests::FakeLayerTextureUpdater::Texture::prepareRect): (WebKitTests::FakeLayerTextureUpdater::FakeLayerTextureUpdater): (WebKitTests::FakeLayerTextureUpdater::~FakeLayerTextureUpdater): (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate): (WebKitTests::FakeLayerTextureUpdater::setRectToInvalidate): (WebKitTests::FakeLayerTextureUpdater::createTexture): (WebKitTests::FakeCCTiledLayerImpl::FakeCCTiledLayerImpl): (WebKitTests::FakeCCTiledLayerImpl::~FakeCCTiledLayerImpl): (WebKitTests::FakeTiledLayerChromium::FakeTiledLayerChromium): (WebKitTests::FakeTiledLayerChromium::~FakeTiledLayerChromium): (WebKitTests::FakeTiledLayerChromium::setNeedsDisplayRect): (WebKitTests::FakeTiledLayerChromium::paintContentsIfDirty): (WebKitTests::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds): (WebKitTests::FakeCCTextureUpdater::FakeCCTextureUpdater): * tests/CCTiledLayerTestCommon.h: Added. (WebKitTests): (FakeLayerTextureUpdater): (Texture): (WebKitTests::FakeLayerTextureUpdater::sampledTexelFormat): (WebKitTests::FakeLayerTextureUpdater::lastUpdateRect): (WebKitTests::FakeLayerTextureUpdater::prepareCount): (WebKitTests::FakeLayerTextureUpdater::clearPrepareCount): (WebKitTests::FakeLayerTextureUpdater::updateCount): (WebKitTests::FakeLayerTextureUpdater::clearUpdateCount): (WebKitTests::FakeLayerTextureUpdater::updateRect): (WebKitTests::FakeLayerTextureUpdater::prepareRectCount): (WebKitTests::FakeLayerTextureUpdater::clearPrepareRectCount): (WebKitTests::FakeLayerTextureUpdater::prepareRect): (WebKitTests::FakeLayerTextureUpdater::setOpaquePaintRect): (FakeCCTiledLayerImpl): (FakeTiledLayerChromium): (WebKitTests::FakeTiledLayerChromium::tileSize): (WebKitTests::FakeTiledLayerChromium::lastNeedsDisplayRect): (WebKitTests::FakeTiledLayerChromium::textureManager): (WebKitTests::FakeTiledLayerChromium::fakeLayerTextureUpdater): (WebKitTests::FakeTiledLayerChromium::updateRect): (WebKitTests::FakeTiledLayerChromium::textureUpdater): (WebKitTests::FakeTiledLayerChromium::createTextureUpdaterIfNeeded): (FakeTiledLayerWithScaledBounds): (WebKitTests::FakeTiledLayerWithScaledBounds::setContentBounds): (WebKitTests::FakeTiledLayerWithScaledBounds::contentBounds): (FakeTextureAllocator): (WebKitTests::FakeTextureAllocator::createTexture): (WebKitTests::FakeTextureAllocator::deleteTexture): (FakeTextureCopier): (WebKitTests::FakeTextureCopier::copyTexture): (FakeCCTextureUpdater): (WebKitTests::FakeCCTextureUpdater::textureAllocator): * tests/TextureManagerTest.cpp: * tests/TiledLayerChromiumTest.cpp: 2012-03-29 Dana Jansens [chromium] Remove unneeded code+fixmes from CCOcclusionTracker https://bugs.webkit.org/show_bug.cgi?id=82380 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/CCLayerTreeHostTest.cpp: (WTF::TestLayerChromium::paintContentsIfDirty): * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::TestCCOcclusionTrackerWithScissor::TestCCOcclusionTrackerWithScissor): (WebKitTests::CCOcclusionTrackerTestIdentityTransforms::runMyTest): (WebKitTests::CCOcclusionTrackerTestRotatedChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestTranslatedChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestChildInRotatedChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest): (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest): (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest): (WebKitTests::CCOcclusionTrackerTestFilters::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest): (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest): (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest): (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest): (WebKitTests::CCOcclusionTrackerTest3dTransform::runMyTest): (WebKitTests::CCOcclusionTrackerTestPerspectiveTransform::runMyTest): (WebKitTests::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest): * tests/CCOcclusionTrackerTestCommon.h: Added. (WebKitTests): (TestCCOcclusionTrackerBase): (WebKitTests::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase): (WebKitTests::TestCCOcclusionTrackerBase::occlusionInScreenSpace): (WebKitTests::TestCCOcclusionTrackerBase::occlusionInTargetSurface): (WebKitTests::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace): (WebKitTests::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface): 2012-03-29 Dirk Schulze Introduce CSSParserMode in all classes https://bugs.webkit.org/show_bug.cgi?id=82335 Unreviewed build fix. * src/WebDocument.cpp: (WebKit::WebDocument::insertUserStyleSheet): 2012-03-28 Dirk Schulze Introduce CSSParserMode in all classes https://bugs.webkit.org/show_bug.cgi?id=82335 Use CSSParserMode for setting the parsing mode on parseValue. * src/WebDocument.cpp: (WebKit::WebDocument::insertUserStyleSheet): 2012-03-29 Tommy Widenflycht MediaStream API: Adding better comments for the WebRTC methods in WebKitPlatformSupport.h https://bugs.webkit.org/show_bug.cgi?id=82588 Reviewed by Adam Barth. * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): 2012-03-28 Kinuko Yasuda [chromium] Add isolated filesystem type and WebDragData::filesystem_id for drag-and-drop using File/DirectoryEntry. https://bugs.webkit.org/show_bug.cgi?id=76826 As proposed on whatwg (http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-November/033814.html) we are implementing better drag-and-drop support using File/Directory Entry objects in FileSystem API, and for the purpose this patch adds a new filesystem type: Isolated filesystem. Each filesystem can be distinguished by a filesystem ID that is given by chromium platform code via WebDragData when set of files/directories are dropped. This is all platform-specific implementation detail and all the changes are in chromium directory. Reviewed by David Levin. * public/platform/WebDragData.h: (WebDragData): * public/platform/WebFileSystem.h: Added Isolated type. * src/AsyncFileSystemChromium.cpp: (WebCore::AsyncFileSystemChromium::createIsolatedFileSystemName): Added. (WebCore::AsyncFileSystemChromium::createIsolatedFileSystem): Added. (WebCore::AsyncFileSystemChromium::toURL): Made it not to return URL for isolated filesystem (as we do not support it for now). * src/AsyncFileSystemChromium.h: * src/PlatformSupport.cpp: (WebCore::PlatformSupport::createIsolatedFileSystem): Added. * src/WebDragData.cpp: (WebKit::WebDragData::filesystemId): Added. (WebKit::WebDragData::setFilesystemId): Added. 2012-03-29 Kinuko Yasuda Unreviewed; rolling chromium deps to 129583. * DEPS: 2012-03-28 Adam Barth [Chromium] Move APIs related to ResourceHandle into Platform https://bugs.webkit.org/show_bug.cgi?id=82553 Reviewed by James Robinson. These headers are now just forwarding headers to the new location of these headers. These forwarding headers exist to avoid breaking existing users of the API. They will likely be removed (or changed) in the future once we've updated all folks using them. * public/platform/WebData.h: * public/platform/WebHTTPBody.h: * public/platform/WebHTTPHeaderVisitor.h: * public/platform/WebHTTPLoadInfo.h: * public/platform/WebPrivateOwnPtr.h: * public/platform/WebURL.h: * public/platform/WebURLError.h: * public/platform/WebURLLoadTiming.h: * public/platform/WebURLLoader.h: * public/platform/WebURLLoaderClient.h: * public/platform/WebURLRequest.h: * public/platform/WebURLResponse.h: 2012-03-28 Bill Budge AssociatedURLLoader does not support Cross Origin Redirects when using Access Control. https://bugs.webkit.org/show_bug.cgi?id=82354 AssociatedURLLoader's internal adapter now overrides didFailRedirectCheck, which cancels the load, causing didFail to notify the client that the load failed. AssociatedURLLoaderTest adds test cases for CORS requests that receive redirects and pass or fail the redirect access check. Reviewed by Adam Barth. * src/AssociatedURLLoader.cpp: (AssociatedURLLoader::ClientAdapter): (WebKit::AssociatedURLLoader::ClientAdapter::didFailRedirectCheck): (WebKit): * tests/AssociatedURLLoaderTest.cpp: (WebKit): (WebKit::TEST_F): 2012-03-28 Adrienne Walker [chromium] Fix tiled layer assert for huge layers https://bugs.webkit.org/show_bug.cgi?id=82486 Reviewed by James Robinson. Add test for updating a huge layer that would assert prior to this code. Fix up TilingData tests to use a testing class that provides a safe version of numTiles(). * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF): * tests/TilingDataTest.cpp: (TestTiling): (WebCore::TestTiling::TestTiling): (WebCore::TestTiling::numTiles): (WebCore): (WebCore::TEST): 2012-03-28 Nate Chapin Remove dispatchDidLoadMainResource callback, since no port implements it. https://bugs.webkit.org/show_bug.cgi?id=82539 Reviewed by Alexey Proskuryakov. * src/FrameLoaderClientImpl.cpp: (WebKit): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-03-28 Dirk Pranke Roll chromium from 129300 to 129509. Unreviewed, DEPS change. * DEPS: 2012-03-28 Sheriff Bot Unreviewed, rolling out r112432. http://trac.webkit.org/changeset/112432 https://bugs.webkit.org/show_bug.cgi?id=82536 Causes ccs3 layout test asserts (Requested by enne on #webkit). * tests/TiledLayerChromiumTest.cpp: * tests/TilingDataTest.cpp: (WebCore::TEST): 2012-03-27 Daniel Cheng [chromium] Merge ChromiumDataObject and DataTransferItemListChromium. https://bugs.webkit.org/show_bug.cgi?id=82407 Reviewed by Tony Chang. * src/WebDragData.cpp: (WebKit::WebDragData::items): 2012-03-28 Nat Duca [chromium] Scheduler should not tell FrameRateController to begin a frame when we dont swap https://bugs.webkit.org/show_bug.cgi?id=82516 Reviewed by James Robinson. * tests/CCSchedulerTest.cpp: (WebKitTests::FakeCCSchedulerClient::reset): (WebKitTests::FakeCCSchedulerClient::hasAction): (FakeCCSchedulerClient): (WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapIfPossible): (WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapForced): (WebKitTests::FakeCCSchedulerClient::setDrawWillHappen): (WebKitTests::FakeCCSchedulerClient::setSwapWillHappenIfDrawHappens): (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapIfPossible): (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapForced): (SchedulerClientThatSetNeedsDrawInsideDraw): (WebKitTests::TEST): (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapIfPossible): (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapForced): (SchedulerClientThatSetNeedsCommitInsideDraw): (WebKitTests): 2012-03-26 Shawn Singh [chromium] layer->clipRect() is not initialized for layers that create a renderSurface. https://bugs.webkit.org/show_bug.cgi?id=74147 Reviewed by Adrienne Walker. Added 3 more unit tests. One reproduces the clipRect problem in an integrated manner, the other two directly test that clipRects are properly initialized. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): (WebCore): * tests/CCLayerTreeTestCommon.h: (WebKitTests): 2012-03-28 Adrienne Walker [chromium] Fix tiled layer assert for huge layers https://bugs.webkit.org/show_bug.cgi?id=82486 Reviewed by James Robinson. Add test for updating a huge layer that would assert prior to this code. Fix up TilingData tests to use a testing class that provides a safe version of numTiles(). * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF): * tests/TilingDataTest.cpp: (TestTiling): (WebCore::TestTiling::TestTiling): (WebCore::TestTiling::numTiles): (WebCore): (WebCore::TEST): 2012-03-28 Tommy Widenflycht [chromium] MediaStream API (JSEP): Introducing WebPeerConnection00Handler https://bugs.webkit.org/show_bug.cgi?id=82450 Reviewed by Adam Barth. Last patch to enable the PeerConnection00 functionality in Chromium introduces WebPeerConnection00Handler and WebPeerConnection00HandlerClient, together with the necessary plumbing. * WebKit.gyp: * bridge/PeerConnection00Handler.cpp: Added. (WebCore): (WebCore::PeerConnection00Handler::create): (WebCore::PeerConnection00Handler::PeerConnection00Handler): (WebCore::PeerConnection00Handler::~PeerConnection00Handler): (WebCore::PeerConnection00Handler::createOffer): (WebCore::PeerConnection00Handler::createAnswer): (WebCore::PeerConnection00Handler::setLocalDescription): (WebCore::PeerConnection00Handler::setRemoteDescription): (WebCore::PeerConnection00Handler::localDescription): (WebCore::PeerConnection00Handler::remoteDescription): (WebCore::PeerConnection00Handler::startIce): (WebCore::PeerConnection00Handler::processIceMessage): (WebCore::PeerConnection00Handler::addStream): (WebCore::PeerConnection00Handler::removeStream): (WebCore::PeerConnection00Handler::stop): * bridge/PeerConnection00HandlerInternal.cpp: Added. (WebCore): (WebCore::PeerConnection00HandlerInternal::PeerConnection00HandlerInternal): (WebCore::PeerConnection00HandlerInternal::~PeerConnection00HandlerInternal): (WebCore::PeerConnection00HandlerInternal::createOffer): (WebCore::PeerConnection00HandlerInternal::createAnswer): (WebCore::PeerConnection00HandlerInternal::setLocalDescription): (WebCore::PeerConnection00HandlerInternal::setRemoteDescription): (WebCore::PeerConnection00HandlerInternal::localDescription): (WebCore::PeerConnection00HandlerInternal::remoteDescription): (WebCore::PeerConnection00HandlerInternal::startIce): (WebCore::PeerConnection00HandlerInternal::processIceMessage): (WebCore::PeerConnection00HandlerInternal::addStream): (WebCore::PeerConnection00HandlerInternal::removeStream): (WebCore::PeerConnection00HandlerInternal::stop): (WebCore::PeerConnection00HandlerInternal::didGenerateICECandidate): (WebCore::PeerConnection00HandlerInternal::didChangeReadyState): (WebCore::PeerConnection00HandlerInternal::didChangeICEState): (WebCore::PeerConnection00HandlerInternal::didAddRemoteStream): (WebCore::PeerConnection00HandlerInternal::didRemoveRemoteStream): * bridge/PeerConnection00HandlerInternal.h: Copied from Source/WebCore/platform/mediastream/PeerConnection00Handler.h. (WebKit): (WebCore): (PeerConnection00HandlerInternal): * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKit::WebKitPlatformSupport::createPeerConnection00Handler): * public/platform/WebPeerConnection00Handler.h: Added. (WebKit): (WebPeerConnection00Handler): (WebKit::WebPeerConnection00Handler::~WebPeerConnection00Handler): * public/platform/WebPeerConnection00HandlerClient.h: Added. (WebKit): (WebPeerConnection00HandlerClient): (WebKit::WebPeerConnection00HandlerClient::~WebPeerConnection00HandlerClient): * src/AssertMatchingEnums.cpp: 2012-03-28 James Robinson [chromium] Compositor visibility setting must be updated even if not actively compositing https://bugs.webkit.org/show_bug.cgi?id=82406 Reviewed by Adrienne Walker. Propagate the visibility bit to the WebLayerTreeView even when compositing is inactive. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setVisibilityState): 2012-03-28 Fady Samuel [Chromium] Enable Viewport define by default https://bugs.webkit.org/show_bug.cgi?id=79514 Reviewed by Darin Fisher. * features.gypi: 2012-03-27 James Robinson [chromium] Transfer wheel fling via WebCompositorInputHandlerClient https://bugs.webkit.org/show_bug.cgi?id=81740 Reviewed by Adrienne Walker. Adds a path for transfering an active wheel fling animation out to the embedder from the compositor and back in to a WebViewImpl via the embedder. This is used when we start a wheel fling animation on the compositor thread but then hit a condition that we can't handle from the compositor, such as registered wheel event listeners or a scrollable area we can't handle. New tests added to WebCompositorInputHandlerTest for the transfering logic. * public/WebActiveWheelFlingParameters.h: Copied from Source/WebKit/chromium/public/WebCompositorInputHandlerClient.h. (WebKit): (WebActiveWheelFlingParameters): (WebKit::WebActiveWheelFlingParameters::WebActiveWheelFlingParameters): * public/WebCompositorInputHandlerClient.h: (WebKit): (WebCompositorInputHandlerClient): (WebKit::WebCompositorInputHandlerClient::transferActiveWheelFlingAnimation): * public/WebView.h: (WebKit): (WebView): * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): (WebKit::WebCompositorInputHandlerImpl::animate): (WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling): (WebKit::WebCompositorInputHandlerImpl::scrollBy): * src/WebCompositorInputHandlerImpl.h: (WebCore): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::transferActiveWheelFlingAnimation): (WebKit): * src/WebViewImpl.h: (WebViewImpl): * tests/WebCompositorInputHandlerImplTest.cpp: (WebKit::MockWebCompositorInputHandlerClient::MockWebCompositorInputHandlerClient): (MockWebCompositorInputHandlerClient): (WebKit::TEST): (WebKit::WebCompositorInputHandlerImplTest::WebCompositorInputHandlerImplTest): (WebKit::WebCompositorInputHandlerImplTest::~WebCompositorInputHandlerImplTest): (WebCompositorInputHandlerImplTest): (WebKit::TEST_F): (WebKit): 2012-03-27 James Robinson [chromium] Send wheel events to main thread even if we think nothing is scrollable https://bugs.webkit.org/show_bug.cgi?id=82408 Reviewed by Adrienne Walker. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal): 2012-03-27 Nat Duca [chromium] Route monotonic clock up from compositor https://bugs.webkit.org/show_bug.cgi?id=82154 Reviewed by James Robinson. * public/WebWidget.h: (WebKit::WebWidget::animate): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::updateAnimations): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::animate): (WebKit::WebViewImpl::updateAnimations): * src/WebViewImpl.h: (WebViewImpl): * tests/FakeCCLayerTreeHostClient.h: (WebCore::FakeCCLayerTreeHostClient::updateAnimations): 2012-03-27 James Robinson webkit_unit_tests crashing on chromium lion in CCLayerTreeHostTestCompositeAndReadbackWhileInvisible https://bugs.webkit.org/show_bug.cgi?id=82382 Reviewed by Adrienne Walker. Use UnsignedWithZeroKeyHashTraits trait for the HashSet m_usedTextures in CompositorFakeWebGraphicsContext3DWithTextureTracking. This set is used to track all textures that are bound in a given context during a test. During ..CompositeAndReadback.. we bind texture id 0. By default, HashSet where T is an unsigned does not allow 0 as a value. WebGLId is typedef'd to unsigned. * tests/CCLayerTreeHostTest.cpp: (CompositorFakeWebGraphicsContext3DWithTextureTracking): 2012-03-27 James Robinson webkit_unit_tests crashing on chromium lion in ScrollbarLayerChromiumTest.resolveScrollLayerPointer https://bugs.webkit.org/show_bug.cgi?id=82381 Reviewed by Adrienne Walker. Use the mock scrollbar theme for this unit test. The real ScrollbarThemeMac isn't compatible with the mocks this test uses and the test isn't designed to cover the theming code, only code inside the compositor. * tests/ScrollbarLayerChromiumTest.cpp: (WebCore::TEST): 2012-03-27 Dirk Pranke Unreviewed, rolling out r112339. http://trac.webkit.org/changeset/112339 https://bugs.webkit.org/show_bug.cgi?id=82354 webkit_unit_tests crashing on chromium mac bots * src/AssociatedURLLoader.cpp: (AssociatedURLLoader::ClientAdapter): * tests/AssociatedURLLoaderTest.cpp: (WebKit::AssociatedURLLoaderTest::TearDown): (WebKit): (WebKit::TEST_F): 2012-03-27 Kausalya Madhusudhanan [Coverity] Address some uninitialized constructor values. https://bugs.webkit.org/show_bug.cgi?id=82376 Reviewed by James Robinson. New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor. * src/WebCompositorInputHandlerImpl.cpp: (WebCore::PlatformGestureToCCGestureAdapter::PlatformGestureToCCGestureAdapter): 2012-03-27 Dirk Pranke Roll chromium DEPS to r129300. Unreviewed, deps change. * DEPS: 2012-03-27 Bill Budge AssociatedURLLoader does not support Cross Origin Redirects when using Access Control. https://bugs.webkit.org/show_bug.cgi?id=82354 AssociatedURLLoader's internal adapter now overrides didFailRedirectCheck, which cancels the load, causing didFail to notify the client that the load failed. AssociatedURLLoaderTest adds test cases for CORS requests that receive redirects and pass or fail the redirect access check. Reviewed by Adam Barth. * src/AssociatedURLLoader.cpp: (AssociatedURLLoader::ClientAdapter): (WebKit::AssociatedURLLoader::ClientAdapter::didFailRedirectCheck): (WebKit): * tests/AssociatedURLLoaderTest.cpp: (WebKit::TEST_F): 2012-03-27 Dana Jansens [chromium] Unknown transforms should be treated as non-axis aligned on main thread https://bugs.webkit.org/show_bug.cgi?id=82370 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): 2012-03-27 Dana Jansens [chromium] Rename opaqueContentsRegion() to visibleContentOpaqueRegion() https://bugs.webkit.org/show_bug.cgi?id=81689 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::TestLayerChromium::opaqueVisibleContents): * tests/CCOcclusionTrackerTest.cpp: (WebCore::TestContentLayerChromium::opaqueVisibleContents): (WebCore::TestContentLayerImpl::opaqueVisibleContents): * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-03-27 Dana Jansens [chromium] A unit test to verify clipping is honored when moving occlusion to parent surface https://bugs.webkit.org/show_bug.cgi?id=81783 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest): (WebCore): (CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping): (WebCore::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest): 2012-03-27 James Robinson Scrollable plugins not registered properly in ScrollingCoordinator https://bugs.webkit.org/show_bug.cgi?id=82163 Reviewed by Anders Carlsson. Since ScrollbarGroups are ScrollableAreas, they need to be able to report their bounds for the ScrollingCoordinator's calculateNonFastScrollableRegion. This also changes ScrollbarGroups to only be registered as ScrollableAreas on the FrameView's set when they actually have Scrollbars. * src/ScrollbarGroup.cpp: (WebKit::ScrollbarGroup::ScrollbarGroup): (WebKit::ScrollbarGroup::~ScrollbarGroup): (WebKit::ScrollbarGroup::scrollbarCreated): (WebKit::ScrollbarGroup::scrollbarDestroyed): (WebKit::ScrollbarGroup::setFrameRect): (WebKit): (WebKit::ScrollbarGroup::scrollableAreaBoundingBox): * src/ScrollbarGroup.h: (ScrollbarGroup): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::reportGeometry): (WebKit): (WebKit::WebPluginContainerImpl::scrollbarGroup): * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-03-27 Dana Jansens [chromium] Make use of common animation unit test methods https://bugs.webkit.org/show_bug.cgi?id=82357 Reviewed by Adrienne Walker. * tests/CCAnimationTestCommon.cpp: (WebKitTests::addAnimatedTransformToController): (WebKitTests): * tests/CCAnimationTestCommon.h: (WebKitTests): * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): * tests/CCOcclusionTrackerTest.cpp: (WebKitTests): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest): 2012-03-27 Sami Kyostila [chromium] Add TextureCopier for copying texture contents https://bugs.webkit.org/show_bug.cgi?id=80870 Reviewed by Stephen White. Add new test for TextureCopier. * WebKit.gypi: * tests/Canvas2DLayerChromiumTest.cpp: * tests/TextureCopierTest.cpp: Added. * tests/TiledLayerChromiumTest.cpp: (FakeTextureCopier): (WTF::FakeTextureCopier::copyTexture): (WTF): (WTF::TEST): 2012-03-27 Stephen White [chromium] Fix filter context usage in webkit_unit_tests. https://bugs.webkit.org/show_bug.cgi?id=82349 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): Cancel request for filter context after test run. (WTF::TEST_F): * tests/CCOcclusionTrackerTest.cpp: Re-enable CCLayerTreeHostTestSetSingleLostContext.runMultiThread. (WebCore::CCOcclusionTrackerTest::TearDown): Cancel request for filter context after test run. 2012-03-26 Stephen White Disable CCLayerTreeHostTestSetSingleLostContext.runMultiThread. https://bugs.webkit.org/show_bug.cgi?id=82285 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::TEST_F): 2012-03-26 Andrew Scherkus [chromium] Remove WebMediaElement from Chromium WebKit API. https://bugs.webkit.org/show_bug.cgi?id=82277 Reviewed by James Robinson. This was added in r63859 but is no longer used by anyone. * WebKit.gyp: * public/WebMediaElement.h: Removed. * src/WebMediaElement.cpp: Removed. 2012-03-26 Scott Byer Enable layout testing of the scroll animator. https://bugs.webkit.org/show_bug.cgi?id=81858 Add a call to the InternalSettings that layout tests can use to turn on scroll animation. Enable animation updates for the Chromium platform DRT when scroll animation has been turned on in a test. This should be a no-op for all current layout tests. Reviewed by James Robinson. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::scrollAnimatorEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-03-26 Nat Duca [chromium] Add isInputThrottled/didBecomeReadyForAdditionalInput to WebWidget https://bugs.webkit.org/show_bug.cgi?id=82265 In threaded compositing mode, the WebWidget is self-scheduled, receiving damage and processing it without forwarding that damage up to the embedding WebWidgetClient. In Chromium's case, the client uses the presence of damage to perform input flow control. This patch exposes the need for input flow control to the embedder, while keeping the actual logic about what exactly warrants input flow control inside the implementation. Reviewed by James Robinson. * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::isInputThrottled): * public/WebWidgetClient.h: (WebWidgetClient): (WebKit::WebWidgetClient::didBecomeReadyForAdditionalInput): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::commitRequested): (WebKit): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::didCommit): (WebKit): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::isInputThrottled): (WebKit): (WebKit::WebViewImpl::didCommit): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostClient::didCommit): (MockLayerTreeHostClient): * tests/FakeCCLayerTreeHostClient.h: (FakeCCLayerTreeHostClient): 2012-03-26 Vangelis Kokkevis [chromium] Simplify and fix CCLayerSorter https://bugs.webkit.org/show_bug.cgi?id=82114 Adjustments to the CCLayerSorter unit tests to account for API changes in the CCLayerSorter class. Reviewed by Kenneth Russell. * tests/CCLayerSorterTest.cpp: (WebCore): (WebCore::TEST): 2012-03-26 James Robinson Scrollable plugins not registered properly in ScrollingCoordinator https://bugs.webkit.org/show_bug.cgi?id=82163 Reviewed by Anders Carlsson. * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::scrollable): * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-03-26 W. James MacLean [chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel. https://bugs.webkit.org/show_bug.cgi?id=82133 Reviewed by James Robinson. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): 2012-03-26 Terry Anderson [chromium] Allow the viewport meta tag to be disabled for testing purposes https://bugs.webkit.org/show_bug.cgi?id=81940 Reviewed by Adam Barth. * public/WebSettings.h: * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): (WebKit::WebSettingsImpl::setViewportEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): (WebKit::WebSettingsImpl::viewportEnabled): 2012-03-25 Nat Duca [chromium] Route willBeginFrame from compositor to WebWidget https://bugs.webkit.org/show_bug.cgi?id=82171 Reviewed by Darin Fisher. * public/WebWidgetClient.h: (WebWidgetClient): (WebKit::WebWidgetClient::willBeginCompositorFrame): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::willBeginFrame): (WebKit): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::willBeginFrame): (WebKit): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostClient::willBeginFrame): (MockLayerTreeHostClient): * tests/FakeCCLayerTreeHostClient.h: (WebCore::FakeCCLayerTreeHostClient::willBeginFrame): 2012-03-25 Dana Jansens [chromium] Layers with animating transforms should prepaint even if they are not visible yet https://bugs.webkit.org/show_bug.cgi?id=82117 Reviewed by Adrienne Walker. * tests/TiledLayerChromiumTest.cpp: (WTF::FakeTiledLayerChromium::FakeTiledLayerChromium): (WTF::FakeTiledLayerChromium::tileSize): (FakeTiledLayerChromium): (WTF::TEST): (WTF): (WTF::idlePaintRepeat): (WTF::testHaveOuterTiles): 2012-03-24 Nat Duca [chromium] Instrument gesture animations with async traces https://bugs.webkit.org/show_bug.cgi?id=82076 Reviewed by Adrienne Walker. * src/WebCompositorInputHandlerImpl.cpp: (WebCore::PlatformGestureToCCGestureAdapter::debugName): (PlatformGestureToCCGestureAdapter): 2012-03-23 Shawn Singh [chromium] Incorrect replica originTransform used in CCDamageTracker https://bugs.webkit.org/show_bug.cgi?id=82118 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-03-23 Dana Jansens [chromium] When prepainting fails, tiles dirty rects may be cleared https://bugs.webkit.org/show_bug.cgi?id=82107 Reviewed by Adrienne Walker. * tests/TiledLayerChromiumTest.cpp: (WTF::FakeTextureAllocator::createTexture): (WTF::FakeLayerTextureUpdater::Texture::updateRect): (FakeCCTiledLayerImpl): (WTF::FakeCCTiledLayerImpl::hasTextureIdForTileAt): (WTF::TEST): (WTF): 2012-03-23 W. James MacLean [chromium] CCLayerTreeHostImpl::scrollBegin() should return ScrollFailed for CCInputHandlerClient::Gesture type when wheel handlers found. https://bugs.webkit.org/show_bug.cgi?id=82106 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): 2012-03-23 Shawn Singh [chromium] Fix race bug that clobbers CCLayerImpl updateRect https://bugs.webkit.org/show_bug.cgi?id=82109 Reviewed by Dirk Pranke. * tests/LayerChromiumTest.cpp: 2012-03-23 Daniel Cheng [chromium] Support file drag out using DataTransferItemList::add(File) https://bugs.webkit.org/show_bug.cgi?id=81261 Reviewed by Tony Chang. Original patch by Varun Jain . I've updated the original patch to add some asserts for conditions we shouldn't encounter as well as removing some redundant null checks. * src/WebDragData.cpp: (WebKit::WebDragData::items): 2012-03-23 Dana Jansens [chromium] Record painted pixel counts for measuring effectiveness of per-tile painting https://bugs.webkit.org/show_bug.cgi?id=82057 Reviewed by Adrienne Walker. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF): 2012-03-23 Adrienne Walker [chromium] Fix scrollbarLayerLostContext flaky test crash on 10.6 https://bugs.webkit.org/show_bug.cgi?id=82062 Reviewed by James Robinson. Override the paint function so that it becomes a no-op. Painting scrollbars on the impl thread is not yet supported on platforms other than Linux or ChromeOS. * tests/CCLayerTreeHostImplTest.cpp: (ScrollbarLayerFakePaint): (WebKitTests::ScrollbarLayerFakePaint::create): (WebKitTests::ScrollbarLayerFakePaint::paint): (WebKitTests::ScrollbarLayerFakePaint::ScrollbarLayerFakePaint): (WebKitTests): (WebKitTests::TEST_F): 2012-03-23 Tommy Widenflycht [chromium] MediaStream API (JSEP): Extending WebMediaStreamCenter https://bugs.webkit.org/show_bug.cgi?id=81924 Reviewed by Adam Barth. Adding the two constructSDP methods. * bridge/MediaStreamCenter.cpp: (WebCore::MediaStreamCenter::constructSDP): (WebCore): * bridge/MediaStreamCenterInternal.cpp: (WebCore::MediaStreamCenterInternal::constructSDP): (WebCore): * bridge/MediaStreamCenterInternal.h: (WebCore): (MediaStreamCenterInternal): * public/platform/WebMediaStreamCenter.h: (WebKit): (WebMediaStreamCenter): (WebKit::WebMediaStreamCenter::constructSDP): 2012-03-23 Jonathan Backer [chromium] Remove unused variables from unittest. https://bugs.webkit.org/show_bug.cgi?id=82054 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): 2012-03-23 Ryosuke Niwa Chromium DEPS roll r127913:r128426. * DEPS: 2012-03-22 Shawn Singh [chromium] Target surface should be damaged for a new layers even when layer had no changes https://bugs.webkit.org/show_bug.cgi?id=81879 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-03-22 Adrienne Walker [chromium] Unreviewed, fix LayerRendererChromiumTest debug unit test errors https://bugs.webkit.org/show_bug.cgi?id=81823 * tests/LayerRendererChromiumTest.cpp: (FakeLayerRendererChromiumClient): 2012-03-22 Michal Mocny [chromium] Removing failing unit test - CCLayerTreeHostImplTest.visibilityChangeResetsDamage https://bugs.webkit.org/show_bug.cgi?id=82003 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): 2012-03-22 Robert Kroeger [chromium] Halt in progress flings on receipt of key events https://bugs.webkit.org/show_bug.cgi?id=81988 Reviewed by Adrienne Walker. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::keyEvent): 2012-03-22 Dana Jansens [chromium] Skip frames when checkerboarding an animation https://bugs.webkit.org/show_bug.cgi?id=81716 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): (WebCore): * tests/CCSchedulerTest.cpp: (WebKitTests::FakeCCSchedulerClient::reset): (WebKitTests::FakeCCSchedulerClient::numDraws): (WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapIfPossible): (FakeCCSchedulerClient): (WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapForced): (WebKitTests::FakeCCSchedulerClient::setDrawSuccess): (WebKitTests::TEST): (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::SchedulerClientThatSetNeedsDrawInsideDraw): (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapIfPossible): (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapForced): (SchedulerClientThatSetNeedsDrawInsideDraw): (WebKitTests): (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::SchedulerClientThatSetNeedsCommitInsideDraw): (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapIfPossible): (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapForced): (SchedulerClientThatSetNeedsCommitInsideDraw): * tests/CCSchedulerTestCommon.h: (FakeCCFrameRateController): (WebKitTests::FakeCCFrameRateController::FakeCCFrameRateController): (WebKitTests::FakeCCFrameRateController::numFramesPending): (WebKitTests): 2012-03-22 W. James MacLean [chromium] Force update of nonFastScrollableRegion if target CCLayerImpl has been freshly created. https://bugs.webkit.org/show_bug.cgi?id=81968 Reviewed by Adrienne Walker. * tests/TreeSynchronizerTest.cpp: (WebKitTests::expectTreesAreIdentical): (WebKitTests::TEST): (WebKitTests): 2012-03-22 Michal Mocny [chromium] LayerRendererChromium should use GpuMemoryAllocationChanged callback to explicitly manage framebuffer. https://bugs.webkit.org/show_bug.cgi?id=81823 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/LayerRendererChromiumTest.cpp: Added. (FrameCountingMemoryAllocationSettingContext): (FrameCountingMemoryAllocationSettingContext::FrameCountingMemoryAllocationSettingContext): (FrameCountingMemoryAllocationSettingContext::prepareTexture): (FrameCountingMemoryAllocationSettingContext::setMemoryAllocationChangedCallbackCHROMIUM): (FrameCountingMemoryAllocationSettingContext::getString): (FrameCountingMemoryAllocationSettingContext::frameCount): (FrameCountingMemoryAllocationSettingContext::setMemoryAllocation): (FakeLayerRendererChromiumClient): (FakeLayerRendererChromiumClient::FakeLayerRendererChromiumClient): (FakeLayerRendererChromiumClient::viewportSize): (FakeLayerRendererChromiumClient::settings): (FakeLayerRendererChromiumClient::rootLayer): (FakeLayerRendererChromiumClient::didLoseContext): (FakeLayerRendererChromiumClient::onSwapBuffersComplete): (FakeLayerRendererChromiumClient::setFullRootLayerDamage): (FakeLayerRendererChromiumClient::setFullRootLayerDamageCount): (FakeLayerRendererChromium): (FakeLayerRendererChromium::FakeLayerRendererChromium): (LayerRendererChromiumTest): (LayerRendererChromiumTest::LayerRendererChromiumTest): (LayerRendererChromiumTest::SetUp): (LayerRendererChromiumTest::swapBuffers): (TEST_F): 2012-03-22 Shawn Singh [chromium] Make CCDamageTracker robust to empty layer lists https://bugs.webkit.org/show_bug.cgi?id=81831 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::emulateDrawingOneFrame): modified args passed to damage tracker on update. (WebKitTests::TEST_F): Added another unit test. (WebKitTests): 2012-03-22 Bernhard Bauer [chromium] Plug-in failing to load shouldn't say "Missing Plug-in" https://bugs.webkit.org/show_bug.cgi?id=81907 Reviewed by Adam Barth. Adding a MissingPluginText value to WebLocalizedString which can be used to override the "Missing Plug-in" message. * public/platform/WebLocalizedString.h: * src/LocalizedStrings.cpp: (WebCore::missingPluginText): 2012-03-22 Adrienne Walker [chromium] Fix scrollbar layers holding onto invalid textures after lost context https://bugs.webkit.org/show_bug.cgi?id=81841 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-03-22 Dana Jansens [chromium] Early out in a new prepareToDraw() step if checkerboarding an accelerated animation in order to skip the frame https://bugs.webkit.org/show_bug.cgi?id=81437 Reviewed by Adrienne Walker. * tests/CCAnimationTestCommon.cpp: (WebCore): (WebCore::addAnimatedTransform): (WebKitTests::addOpacityTransitionToLayer): (WebKitTests): (WebKitTests::addAnimatedTransformToLayer): * tests/CCAnimationTestCommon.h: (WebCore): (WebKitTests): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): (DidDrawCheckLayer): (WebKitTests::DidDrawCheckLayer::DidDrawCheckLayer): (MissingTextureAnimatingLayer): (WebKitTests::MissingTextureAnimatingLayer::create): (WebKitTests::MissingTextureAnimatingLayer::MissingTextureAnimatingLayer): (WebKitTests): (WebKitTests::BlendStateCheckLayer::appendQuads): * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::prepareToDrawOnCCThread): (WTF::MockLayerTreeHostImpl::prepareToDraw): (MockLayerTreeHostImpl): (WTF::MockLayerTreeHostImpl::drawLayers): * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): * tests/MockCCQuadCuller.h: (WebCore::MockCCQuadCuller::append): 2012-03-22 W. James MacLean Rename touchpad fling curve, add curve parameters to constructor. https://bugs.webkit.org/show_bug.cgi?id=81820 Reviewed by Adrienne Walker. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): * tests/PlatformGestureCurveTest.cpp: 2012-03-21 Ian Vollick [chromium] timing functions are getting incorrectly applied for accelerated css transitions https://bugs.webkit.org/show_bug.cgi?id=81692 Reviewed by Adrienne Walker. * tests/CCAnimationTestCommon.cpp: (WebCore::addOpacityTransition): (WebKitTests::addOpacityTransitionToController): (WebKitTests::addOpacityTransitionToLayer): * tests/CCAnimationTestCommon.h: (WebKitTests): * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation): (WTF::CCLayerTreeHostTest::dispatchAddAnimation): (WTF::TEST_F): (WTF): (CCLayerTreeHostTestAddAnimationWithTimingFunction): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::CCLayerTreeHostTestAddAnimationWithTimingFunction): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::beginTest): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::animateLayers): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::afterTest): 2012-03-22 Kenichi Ishibashi [Chromium] Should check m_socket in SocketStreamHandleInternal::close() https://bugs.webkit.org/show_bug.cgi?id=81860 Reviewed by Kent Tamura. m_socket could be NULL if WebSocket::resume() is called after SocketStreamHandle::didClose() is called. This could happen when the page shows a popup dialog (by using alert()) immediately after closing an WebSocket object. * src/SocketStreamHandle.cpp: (WebCore::SocketStreamHandleInternal::close): Ensures m_socket is not NULL. 2012-03-21 Sheriff Bot Unreviewed, rolling out r111616. http://trac.webkit.org/changeset/111616 https://bugs.webkit.org/show_bug.cgi?id=81862 broke chromium mac (Requested by eae on #webkit). * tests/CCAnimationTestCommon.cpp: * tests/CCAnimationTestCommon.h: (WebKitTests): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::TEST_F): (DidDrawCheckLayer): (WebKit::DidDrawCheckLayer::DidDrawCheckLayer): (WebKit::BlendStateCheckLayer::appendQuads): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostImpl::drawLayers): * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): * tests/MockCCQuadCuller.h: (WebCore::MockCCQuadCuller::append): 2012-03-21 Dana Jansens [chromium] Early out in a new prepareToDraw() step if checkerboarding an accelerated animation in order to skip the frame https://bugs.webkit.org/show_bug.cgi?id=81437 Reviewed by Adrienne Walker. * tests/CCAnimationTestCommon.cpp: (WebCore): (WebCore::addAnimatedTransform): (WebKitTests::addOpacityTransitionToLayer): (WebKitTests): (WebKitTests::addAnimatedTransformToLayer): * tests/CCAnimationTestCommon.h: (WebCore): (WebKitTests): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): (DidDrawCheckLayer): (WebKitTests::DidDrawCheckLayer::DidDrawCheckLayer): (MissingTextureAnimatingLayer): (WebKitTests::MissingTextureAnimatingLayer::create): (WebKitTests::MissingTextureAnimatingLayer::MissingTextureAnimatingLayer): (WebKitTests): (WebKitTests::BlendStateCheckLayer::appendQuads): * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::prepareToDrawOnCCThread): (WTF::MockLayerTreeHostImpl::prepareToDraw): (MockLayerTreeHostImpl): (WTF::MockLayerTreeHostImpl::drawLayers): * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): * tests/MockCCQuadCuller.h: (WebCore::MockCCQuadCuller::append): 2012-03-21 Alexandru Chiculita [CSS Shaders] Make CSS Shaders compile on Chromium https://bugs.webkit.org/show_bug.cgi?id=81435 Reviewed by Stephen White. I've added the ENABLE_CSS_SHADERS flag by default, but kept CSS Shaders disabled using the runtime flag. This change adds a new public API to WebSettings with syntax void setExperimentalCSSCustomFilterEnabled(bool). * features.gypi: * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setExperimentalCSSCustomFilterEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-03-21 David Reveman [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support. https://bugs.webkit.org/show_bug.cgi?id=80988 Reviewed by Adrienne Walker. Expose EXT_occlusion_query API to WebKit compositor. * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::createQueryEXT): (WebCore): (WebCore::Extensions3DChromium::deleteQueryEXT): (WebCore::Extensions3DChromium::isQueryEXT): (WebCore::Extensions3DChromium::beginQueryEXT): (WebCore::Extensions3DChromium::endQueryEXT): (WebCore::Extensions3DChromium::getQueryivEXT): (WebCore::Extensions3DChromium::getQueryObjectuivEXT): * src/GraphicsContext3DChromium.cpp: (WebCore): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::createQueryEXT): (WebKit::FakeWebGraphicsContext3D::deleteQueryEXT): (WebKit::FakeWebGraphicsContext3D::isQueryEXT): (WebKit::FakeWebGraphicsContext3D::beginQueryEXT): (WebKit::FakeWebGraphicsContext3D::endQueryEXT): (WebKit::FakeWebGraphicsContext3D::getQueryivEXT): (WebKit::FakeWebGraphicsContext3D::getQueryObjectuivEXT): (FakeWebGraphicsContext3D): 2012-03-21 Tommy Widenflycht [chromium] MediaStream API (JSEP): Enhancing WebMediaHints and WebICEOptions https://bugs.webkit.org/show_bug.cgi?id=81652 Reviewed by Adam Barth. Adding an initialize method to WebMediaHints and WebICEOptions. This is needed for Chromium unittests. * public/platform/WebICEOptions.h: (WebKit::WebICEOptions::WebICEOptions): (WebICEOptions): * public/platform/WebMediaHints.h: (WebKit::WebMediaHints::WebMediaHints): (WebMediaHints): * src/AssertMatchingEnums.cpp: * src/WebICEOptions.cpp: (WebKit::WebICEOptions::initialize): (WebKit): (WebKit::WebICEOptions::candidateTypeToUse): * src/WebMediaHints.cpp: (WebKit::WebMediaHints::initialize): (WebKit): 2012-03-21 Tommy Widenflycht [chromium] MediaStream API (JSEP): Introducing WebSessionDescription and WebIceCandidate https://bugs.webkit.org/show_bug.cgi?id=81339 Reviewed by Adam Barth. Simple WebKit representations of the WebCore/platform versions. * WebKit.gyp: * public/platform/WebICECandidateDescriptor.h: Added. (WebCore): (WebKit): (WebICECandidateDescriptor): (WebKit::WebICECandidateDescriptor::WebICECandidateDescriptor): (WebKit::WebICECandidateDescriptor::~WebICECandidateDescriptor): (WebKit::WebICECandidateDescriptor::operator=): (WebKit::WebICECandidateDescriptor::isNull): * public/platform/WebSessionDescriptionDescriptor.h: Added. (WebCore): (WebKit): (WebSessionDescriptionDescriptor): (WebKit::WebSessionDescriptionDescriptor::WebSessionDescriptionDescriptor): (WebKit::WebSessionDescriptionDescriptor::~WebSessionDescriptionDescriptor): (WebKit::WebSessionDescriptionDescriptor::operator=): (WebKit::WebSessionDescriptionDescriptor::isNull): * src/WebICECandidateDescriptor.cpp: Added. (WebKit): (WebKit::WebICECandidateDescriptor::WebICECandidateDescriptor): (WebKit::WebICECandidateDescriptor::assign): (WebKit::WebICECandidateDescriptor::reset): (WebKit::WebICECandidateDescriptor::initialize): (WebKit::WebICECandidateDescriptor::operator PassRefPtr): (WebKit::WebICECandidateDescriptor::label): (WebKit::WebICECandidateDescriptor::candidateLine): * src/WebSessionDescriptionDescriptor.cpp: Added. (WebKit): (WebKit::WebSessionDescriptionDescriptor::WebSessionDescriptionDescriptor): (WebKit::WebSessionDescriptionDescriptor::assign): (WebKit::WebSessionDescriptionDescriptor::reset): (WebKit::WebSessionDescriptionDescriptor::operator WTF::PassRefPtr): (WebKit::WebSessionDescriptionDescriptor::initialize): (WebKit::WebSessionDescriptionDescriptor::numberOfAddedCandidates): (WebKit::WebSessionDescriptionDescriptor::candidate): (WebKit::WebSessionDescriptionDescriptor::initialSDP): 2012-03-21 Sami Kyostila [chromium] Use floating point scroll deltas for layers https://bugs.webkit.org/show_bug.cgi?id=81546 Reviewed by James Robinson. New unit test for accumulating fractional scroll deltas across multiple commits. * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestFractionalScroll): (WTF::CCLayerTreeHostTestFractionalScroll::CCLayerTreeHostTestFractionalScroll): (WTF::CCLayerTreeHostTestFractionalScroll::beginTest): (WTF::CCLayerTreeHostTestFractionalScroll::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestFractionalScroll::applyScrollAndScale): (WTF::CCLayerTreeHostTestFractionalScroll::afterTest): (WTF): (WTF::TEST_F): 2012-03-21 Joshua Bell [Chromium] IndexedDB: Expose necessary IDB exception codes through WebKit API https://bugs.webkit.org/show_bug.cgi?id=81597 To fix http://crbug.com/96826 and http://crbug.com/113118 we need to be able throw exceptions from the Chromium side, so expose the necessary members of IDBDatabaseException. Reviewed by Darin Fisher. * WebKit.gyp: * public/WebIDBDatabaseException.h: Added. (WebKit): * src/AssertMatchingEnums.cpp: 2012-03-21 Tim Dresser [chromium] Increase size of Combo Box Options for touch and high DPI devices https://bugs.webkit.org/show_bug.cgi?id=80027 Reviewed by Darin Fisher. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): (WebKit::WebViewImpl::applyAutofillSuggestions): * tests/PopupMenuTest.cpp: (WebKit::TestWebViewClient::screenInfo): (WebKit::SelectPopupMenuTest::SetUp): (WebKit::SelectPopupMenuTest::TearDown): (SelectPopupMenuTest): 2012-03-21 Takashi Toyoshima [Chromium] [WebSocket] provide WebFrameClient with a chance of accessing to opening WebSocketStreamHandle. https://bugs.webkit.org/show_bug.cgi?id=78459 Reviewed by Kent Tamura and Darin Fisher. Add dispatchWillOpenSocketStream client function to WebFrameClient with an argument representing an opening SocketStreamHandle. These mechanisms provide embedders with a chance to bind arbitrary data to a WebSocketStreamHandle from WebFrameClient to which the WebSocket object having the WebSocketStreamHandle belongs. No new tests because this change just provide mechanisms to embedders. * public/WebFrameClient.h: Add dispatchWillOpenSocketStream declaration. (WebKit): (WebFrameClient): (WebKit::WebFrameClient::willOpenSocketStream): * public/platform/WebSocketStreamHandle.h: Add default implementation to virtual functions. (WebKit::WebSocketStreamHandle::connect): (WebKit::WebSocketStreamHandle::send): (WebKit::WebSocketStreamHandle::close): * src/FrameLoaderClientImpl.cpp: Implement dispatchWillOpenSocketStream. (WebKit::FrameLoaderClientImpl::dispatchWillOpenSocketStream): (WebKit): * src/FrameLoaderClientImpl.h: Add dispatchWillOpenSocketStream declaratioin. (FrameLoaderClientImpl): * src/SocketStreamHandle.cpp: Call willOpenSocketStream client function. (WebCore::SocketStreamHandleInternal::connect): 2012-03-21 Ian Vollick [chromium] timing functions are getting incorrectly applied for accelerated css transitions https://bugs.webkit.org/show_bug.cgi?id=81692 Reviewed by Adrienne Walker. * tests/CCAnimationTestCommon.cpp: (WebCore::addOpacityTransition): (WebKitTests::addOpacityTransitionToController): (WebKitTests::addOpacityTransitionToLayer): * tests/CCAnimationTestCommon.h: (WebKitTests): * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation): (WTF::CCLayerTreeHostTest::dispatchAddAnimation): (WTF::TEST_F): (WTF): (CCLayerTreeHostTestAddAnimationWithTimingFunction): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::CCLayerTreeHostTestAddAnimationWithTimingFunction): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::beginTest): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::animateLayers): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::afterTest): 2012-03-21 Ian Vollick [chromium] Animation events should only be used for synchronizing animation start times https://bugs.webkit.org/show_bug.cgi?id=81484 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestSynchronizeAnimationStartTimes): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::beginTest): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::animateLayers): (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::afterTest): (WTF::TEST_F): 2012-03-21 Peter Beverloo [Chromium] Remove Android build-fix when the proper fix rolled into WebKit https://bugs.webkit.org/show_bug.cgi?id=80861 Reviewed by Tony Chang. No longer set the CC.target environment variable as this is no longer required for project file generation. * gyp_webkit: 2012-03-21 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-03-20 Dana Jansens [chromium] Use origin transform to transform occlusion from surface content space to its target content space https://bugs.webkit.org/show_bug.cgi?id=81730 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore): (CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent): (WebCore::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest): 2012-03-20 Dana Jansens [chromium] Store origin/screen space transforms for surface and replica in the surface https://bugs.webkit.org/show_bug.cgi?id=81296 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): 2012-03-20 W. James MacLean [chromium] Convert TouchFlingPlatformGestureCurve to a 2-D Bezier for better control of curve shape. https://bugs.webkit.org/show_bug.cgi?id=81713 Reviewed by Dirk Pranke. * tests/PlatformGestureCurveTest.cpp: 2012-03-20 Dana Jansens [chromium] Allow us to disable overdraw metrics when tracing is off https://bugs.webkit.org/show_bug.cgi?id=81431 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase): * tests/CCQuadCullerTest.cpp: (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl): (WebCore::TEST): (WebCore): * tests/TiledLayerChromiumTest.cpp: (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker): 2012-03-20 Dana Jansens [chromium] Use opaque contents for paint culling https://bugs.webkit.org/show_bug.cgi?id=81676 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::TestLayerChromium::opaqueContentsRegion): (WTF::TestLayerChromium::setOpaqueContentsRect): (TestLayerChromium): (CCLayerTreeHostTestContentLayerOcclusion): (WTF::CCLayerTreeHostTestContentLayerOcclusion::CCLayerTreeHostTestContentLayerOcclusion): (WTF::CCLayerTreeHostTestContentLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestContentLayerOcclusion::afterTest): (WTF): 2012-03-20 W. James MacLean [chromium] Tune fling physics curve. [Not for review yet] https://bugs.webkit.org/show_bug.cgi?id=81398 Reviewed by James Robinson. * tests/PlatformGestureCurveTest.cpp: 2012-03-20 Ian Vollick [chromium] Infrastructure to allow animating layers to be only partially updated https://bugs.webkit.org/show_bug.cgi?id=81106 Reviewed by James Robinson * WebKit.gypi: * tests/CCAnimationTestCommon.cpp: (WebKitTests::FakeLayerAnimationControllerClient::FakeLayerAnimationControllerClient): (WebKitTests::FakeLayerAnimationControllerClient::~FakeLayerAnimationControllerClient): * tests/CCAnimationTestCommon.h: (FakeLayerAnimationControllerClient): (WebKitTests::FakeLayerAnimationControllerClient::setOpacityFromAnimation): (WebKitTests::FakeLayerAnimationControllerClient::setTransformFromAnimation): * tests/CCLayerAnimationControllerImplTest.cpp: Removed. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): (WebKitTests): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::animateLayers): (CCLayerTreeHostTestAddAnimation): * tests/TreeSynchronizerTest.cpp: (WebKitTests::FakeLayerAnimationController::create): (WebKitTests::FakeLayerAnimationController::FakeLayerAnimationController): (WebKitTests::FakeLayerAnimationController::pushAnimationUpdatesTo): (WebKitTests::TEST): 2012-03-20 Keishi Hattori [chromium] Marking WebFrameTest.DivAutoZoomParamsTest as failing. * tests/WebFrameTest.cpp: (WebKit::TEST_F): 2012-03-19 Adam Barth Remove support for "magic" iframe https://bugs.webkit.org/show_bug.cgi?id=81590 Reviewed by Eric Seidel. Remove FrameLoaderClient methods that no longer exist. * public/WebFrameClient.h: (WebFrameClient): * src/FrameLoaderClientImpl.cpp: (WebKit): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-03-19 Charlie Reis [Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy https://bugs.webkit.org/show_bug.cgi?id=81421 Reviewed by Adam Barth. * public/WebSecurityPolicy.h: (WebSecurityPolicy): * src/WebSecurityPolicy.cpp: (WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument): (WebKit): 2012-03-19 Keishi Hattori [chromium] Fixing build. Adding missing virtual. * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): 2012-03-19 Dana Jansens [chromium] Push culled tiles that are prepainted https://bugs.webkit.org/show_bug.cgi?id=81552 Reviewed by Adrienne Walker. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF): 2012-03-19 James Robinson Unreviewed chromium compile fix - put all TRACE_*s in their own scope explicitly. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal): (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): 2012-03-19 Robert Kroeger [chromium] return true/false on GestureFlingCancel if a fling was stopped https://bugs.webkit.org/show_bug.cgi?id=81563 Reviewed by James Robinson. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): 2012-03-19 Michal Mocny [chromium] Adding support for GL_EXT_discard_framebuffer. https://bugs.webkit.org/show_bug.cgi?id=81383 Reviewed by James Robinson. * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::discardFramebufferEXT): (WebCore): (WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM): * src/GraphicsContext3DChromium.cpp: (WebCore): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::discardFramebufferEXT): (WebKit::FakeWebGraphicsContext3D::ensureFramebufferCHROMIUM): (FakeWebGraphicsContext3D): 2012-03-19 Ian Vollick [chromium] Times in the cc should be expressed in seconds. https://bugs.webkit.org/show_bug.cgi?id=80514 Reviewed by James Robinson. * tests/CCDelayBasedTimeSourceTest.cpp: (WebKitTests::TEST): * tests/CCFrameRateControllerTest.cpp: (WebKitTests::TEST): * tests/CCSchedulerTestCommon.h: (WebKitTests::FakeCCThread::pendingDelayMs): (WebKitTests::FakeCCDelayBasedTimeSource::create): (WebKitTests::FakeCCDelayBasedTimeSource::setMonotonicallyIncreasingTime): (WebKitTests::FakeCCDelayBasedTimeSource::monotonicallyIncreasingTime): (WebKitTests::FakeCCDelayBasedTimeSource::FakeCCDelayBasedTimeSource): (FakeCCDelayBasedTimeSource): * tests/CCTimerTest.cpp: (WebKitTests::TEST_F): 2012-03-19 Nat Duca [chromium] Stop deriving WebCompositor from WebCompositorInputHandler https://bugs.webkit.org/show_bug.cgi?id=80586 Reviewed by Darin Fisher. * public/WebCompositor.h: (WebKit): * public/WebCompositorInputHandler.h: (WebCompositorInputHandler): * public/WebWidgetClient.h: (WebWidgetClient): (WebKit::WebWidgetClient::didActivateCompositor): * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandler::fromIdentifier): * src/WebCompositorInputHandlerImpl.h: (WebCompositorInputHandlerImpl): 2012-03-18 James Robinson [chromium] Implement fling-by-wheel on compositor thread https://bugs.webkit.org/show_bug.cgi?id=81462 Reviewed by Adrienne Walker. Implement fling-by-wheel and beef up existing unit test coverage considerably by using gmock instead of mocking by hand. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleInputEvent): (WebKit): (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal): (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): (WebKit::WebCompositorInputHandlerImpl::animate): (WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling): (WebKit::WebCompositorInputHandlerImpl::scrollBy): * src/WebCompositorInputHandlerImpl.h: (WebCompositorInputHandlerImpl): * tests/WebCompositorInputHandlerImplTest.cpp: 2012-03-19 Emil A Eklund [mac/chromium] Change platform code to use pixelSnappedRect methods https://bugs.webkit.org/show_bug.cgi?id=81016 Reviewed by Eric Seidel. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::computeBlockBounds): (WebKit::WebViewImpl::applyAutofillSuggestions): (WebKit::WebViewImpl::refreshAutofillPopup): 2012-03-19 Eric Seidel Fix WTF header include discipline in Chromium WebKit https://bugs.webkit.org/show_bug.cgi?id=81281 Reviewed by James Robinson. * src/CompositionUnderlineBuilder.h: * src/CompositionUnderlineVectorBuilder.h: * src/FrameLoaderClientImpl.cpp: * src/WebArrayBuffer.cpp: * src/WebArrayBufferView.cpp: * src/WebBindings.cpp: * src/WebColorName.cpp: * src/WebGeolocationClientMock.cpp: * src/WebPageSerializer.cpp: * src/WebSocketImpl.cpp: * src/WebViewImpl.cpp: * tests/FrameTestHelpers.cpp: 2012-03-19 Dana Jansens [chromium] Invalidate/update evicted tiles during commit https://bugs.webkit.org/show_bug.cgi?id=81529 Reviewed by Adrienne Walker. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF): 2012-03-19 Sheriff Bot Unreviewed, rolling out r111207. http://trac.webkit.org/changeset/111207 https://bugs.webkit.org/show_bug.cgi?id=81561 Causing chromium unit test failure (Requested by reveman on #webkit). * src/Extensions3DChromium.cpp: * src/GraphicsContext3DChromium.cpp: (WebCore): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): * tests/FakeWebGraphicsContext3D.h: 2012-03-19 Tommy Widenflycht [chromium] MediaStream API (JSEP): Introducing WebMediaHints and WebIceOptions https://bugs.webkit.org/show_bug.cgi?id=81341 Reviewed by Darin Fisher. Simple WebKit representations of the WebCore/platform versions. * WebKit.gyp: * public/platform/WebICEOptions.h: Added. (WebCore): (WebKit): (WebICEOptions): (WebKit::WebICEOptions::WebICEOptions): (WebKit::WebICEOptions::~WebICEOptions): (WebKit::WebICEOptions::operator=): (WebKit::WebICEOptions::isNull): * public/platform/WebMediaHints.h: Added. (WebCore): (WebKit): (WebMediaHints): (WebKit::WebMediaHints::WebMediaHints): (WebKit::WebMediaHints::~WebMediaHints): (WebKit::WebMediaHints::operator=): (WebKit::WebMediaHints::isNull): * src/WebICEOptions.cpp: Added. (WebKit): (WebKit::WebICEOptions::WebICEOptions): (WebKit::WebICEOptions::assign): (WebKit::WebICEOptions::reset): (WebKit::WebICEOptions::candidateTypeToUse): * src/WebMediaHints.cpp: Added. (WebKit): (WebKit::WebMediaHints::WebMediaHints): (WebKit::WebMediaHints::assign): (WebKit::WebMediaHints::reset): (WebKit::WebMediaHints::audio): (WebKit::WebMediaHints::video): 2012-03-19 Michal Mocny [chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion. https://bugs.webkit.org/show_bug.cgi?id=81279 Reviewed by James Robinson. * src/GraphicsContext3DChromium.cpp: (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged): (GraphicsContext3DMemoryAllocationChangedCallbackAdapter): 2012-03-19 David Reveman [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support. https://bugs.webkit.org/show_bug.cgi?id=80988 Reviewed by Adrienne Walker. Expose EXT_occlusion_query API to WebKit compositor. * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::createQueryEXT): (WebCore): (WebCore::Extensions3DChromium::deleteQueryEXT): (WebCore::Extensions3DChromium::isQueryEXT): (WebCore::Extensions3DChromium::beginQueryEXT): (WebCore::Extensions3DChromium::endQueryEXT): (WebCore::Extensions3DChromium::getQueryivEXT): (WebCore::Extensions3DChromium::getQueryObjectuivEXT): * src/GraphicsContext3DChromium.cpp: (WebCore): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::createQueryEXT): (WebKit::FakeWebGraphicsContext3D::deleteQueryEXT): (WebKit::FakeWebGraphicsContext3D::isQueryEXT): (WebKit::FakeWebGraphicsContext3D::beginQueryEXT): (WebKit::FakeWebGraphicsContext3D::endQueryEXT): (WebKit::FakeWebGraphicsContext3D::getQueryivEXT): (WebKit::FakeWebGraphicsContext3D::getQueryObjectuivEXT): (FakeWebGraphicsContext3D): 2012-03-19 Dana Jansens [chromium] Unit test fix, save the sharedQuadState while the quads hold a pointer to it https://bugs.webkit.org/show_bug.cgi?id=81476 Reviewed by Adrienne Walker. * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): (WebCore): (WebCore::TEST): 2012-03-19 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-03-19 Robert Kroeger [chromium] synthesize wheel events for fling on main thread https://bugs.webkit.org/show_bug.cgi?id=81458 Support track pad fling by generating a sequence of wheel events. Reviewed by James Robinson. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::scrollBy): Call-back from PlatformGestureCurve to dispatch wheel event. (WebKit): (WebKit::WebViewImpl::gestureEvent): Handle GestureFlingStart and GestureFlingCancel. (WebKit::WebViewImpl::updateAnimations): Requests a PlatformGestureCurve to animate forward. (WebKit::WebViewImpl::didCommitLoad): Halt flings on navigations. * src/WebViewImpl.h: (WebCore): (WebViewImpl): 2012-03-19 Keishi Hattori [chromium] Fix build that was broken by r111137 Fixed was ambiguous because of MacTypes.h * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::addTransformAnimationToLayer): * tests/CCOcclusionTrackerTest.cpp: (WebCore::addTransformAnimationToLayer): 2012-03-18 Keishi Hattori [chromium] Fix test that was broken by r111128 * tests/ScrollAnimatorNoneTest.cpp: (TEST): ScrollByPixel no longer animates. 2012-03-18 Dana Jansens [chromium] Don't occlude on main-thread behind layers/surfaces with impl-thread animations https://bugs.webkit.org/show_bug.cgi?id=81354 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore): (WebCore::addOpacityAnimationToLayer): (WebCore::addTransformAnimationToLayer): (CCOcclusionTrackerTestAnimationOpacity1OnMainThread): (WebCore::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest): (CCOcclusionTrackerTestAnimationOpacity0OnMainThread): (WebCore::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest): (CCOcclusionTrackerTestAnimationTranslateOnMainThread): (WebCore::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest): 2012-03-18 Dana Jansens [chromium] Animating opacity is not opaque and should create a render surface on main thread https://bugs.webkit.org/show_bug.cgi?id=81401 Reviewed by James Robinson. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): 2012-03-18 Dana Jansens [chromium] Transform animation state should be inherited from parents https://bugs.webkit.org/show_bug.cgi?id=81363 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::addOpacityAnimationToLayer): (WebCore): (WebCore::addTransformAnimationToLayer): (WebCore::TEST): 2012-03-16 James Robinson [chromium] Unify the drawing logic for different layer types that output textures to the compositor https://bugs.webkit.org/show_bug.cgi?id=81286 Reviewed by Adrienne Walker. * tests/Canvas2DLayerChromiumTest.cpp: 2012-03-15 Daniel Cheng [chromium] Refactor ClipboardChromium and DataTransferItemList/DataTransferItem to support HTML spec https://bugs.webkit.org/show_bug.cgi?id=76598 Reviewed by Tony Chang. * src/WebDragData.cpp: (WebKit::WebDragData::items): (WebKit::WebDragData::addItem): (WebKit::WebDragData::assign): 2012-03-16 Dana Jansens [chromium] Add overdraw metrics for texture uploads https://bugs.webkit.org/show_bug.cgi?id=81175 Reviewed by Adrienne Walker. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-03-16 Dana Jansens [chromium] Remove surface damage client from occlusion tracker https://bugs.webkit.org/show_bug.cgi?id=81242 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore): 2012-03-16 Ian Vollick [chromium] Threaded opacity animation jump to opacity of 0 https://bugs.webkit.org/show_bug.cgi?id=80744 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity): (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity): (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::beginTest): (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::animateLayers): (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::afterTest): (WTF::TEST_F): 2012-03-16 Dana Jansens [chromium] Changes to overdraw metrics to allow upload tracking https://bugs.webkit.org/show_bug.cgi?id=81222 Reviewed by Adrienne Walker. * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): (WebCore): (WebCore::TEST): * tests/MockCCQuadCuller.h: (WebCore::MockCCQuadCuller::MockCCQuadCuller): 2012-03-16 Dana Jansens [chromium] Quads that become fully opaque after culling should not use blending https://bugs.webkit.org/show_bug.cgi?id=81235 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::BlendStateCheckLayer::appendQuads): (WebKit::BlendStateCheckLayer::setQuadRect): (WebKit::BlendStateCheckLayer::setQuadVisibleRect): (WebKit::BlendStateCheckLayer::setOpaqueContents): (WebKit::BlendStateCheckLayer::setOpaqueContentRect): (WebKit::BlendStateCheckLayer::BlendStateCheckLayer): (BlendStateCheckLayer): (WebKit::TEST_F): 2012-03-15 Hans Wennborg Speech JavaScript API: SpeechRecognition, Controller and Client https://bugs.webkit.org/show_bug.cgi?id=81096 Reviewed by Adam Barth. Provide a SpeechRecognitionController to Page, with a NULL client for now. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-03-15 Dana Jansens [chromium] Fix some assertions in occlusion tracker unit tests https://bugs.webkit.org/show_bug.cgi?id=81308 Reviewed by James Robinson. * tests/CCOcclusionTrackerTest.cpp: (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest): (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest): (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest): (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest): 2012-03-15 Sheriff Bot Unreviewed, rolling out r110941. http://trac.webkit.org/changeset/110941 https://bugs.webkit.org/show_bug.cgi?id=81307 the revert looks innocent. (Requested by morrita on #webkit). * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty): (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty): (WTF::TestLayerChromium::paintContentsIfDirty): * tests/Canvas2DLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (TestCCOcclusionTracker): (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker): (WTF::TestCCOcclusionTracker::setOcclusion): (WTF::TestCCOcclusionTracker::layerScissorRectInTargetSurface): (WTF): (WTF::FakeTiledLayerChromium::prepareToUpdate): (WTF::FakeTiledLayerChromium::prepareToUpdateIdle): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::TEST): 2012-03-15 Sheriff Bot Unreviewed, rolling out r110929. http://trac.webkit.org/changeset/110929 https://bugs.webkit.org/show_bug.cgi?id=81306 breaking webkit_unit_tests (Requested by morrita on #webkit). * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty): (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty): (WTF::TestLayerChromium::paintContentsIfDirty): * tests/Canvas2DLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::FakeTiledLayerChromium::prepareToUpdate): (WTF::FakeTiledLayerChromium::prepareToUpdateIdle): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::TEST): 2012-03-15 Dana Jansens [chromium] Decide occlusion in paint culling with CCOcclusionTracker https://bugs.webkit.org/show_bug.cgi?id=81181 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty): (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty): (WTF::TestLayerChromium::paintContentsIfDirty): * tests/Canvas2DLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (TestCCOcclusionTracker): (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker): (WTF::TestCCOcclusionTracker::setOcclusion): (WTF::TestCCOcclusionTracker::layerScissorRectInTargetSurface): (WTF): (WTF::FakeTiledLayerChromium::prepareToUpdate): (WTF::FakeTiledLayerChromium::prepareToUpdateIdle): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::TEST): 2012-03-15 Dana Jansens [chromium] Move overdraw metrics into a templated class for both paint and draw metrics. https://bugs.webkit.org/show_bug.cgi?id=81156 Reviewed by Adrienne Walker. * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): (WebCore): (WebCore::TEST): 2012-03-07 Jon Lee Move NotificationContents into Notification https://bugs.webkit.org/show_bug.cgi?id=80487 Reviewed by Jian Li. Refactor to use accessor methods on Notification. * src/WebNotification.cpp: (WebKit::WebNotification::title): (WebKit::WebNotification::body): 2012-03-13 Jon Lee Deprecate ondisplay() https://bugs.webkit.org/show_bug.cgi?id=80483 Reviewed by Jian Li. * src/WebNotification.cpp: (WebKit::WebNotification::dispatchDisplayEvent): Dispatch the show event. 2012-03-14 W. James MacLean [chromium] Wire up PlatformGestureCurves for CC, ScrollAnimatorNone. https://bugs.webkit.org/show_bug.cgi?id=80607 Reviewed by James Robinson. * public/WebInputEvent.h: (WebKit::WebInputEvent::isScrollGestureEventType): * src/WebCompositorInputHandlerImpl.cpp: (PlatformGestureToCCGestureAdapter): (WebCore::PlatformGestureToCCGestureAdapter::create): (WebCore::PlatformGestureToCCGestureAdapter::apply): (WebCore::PlatformGestureToCCGestureAdapter::scrollBy): (WebCore::PlatformGestureToCCGestureAdapter::PlatformGestureToCCGestureAdapter): (WebCore): (WebKit::WebCompositorInputHandlerImpl::handleInputEvent): (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): (WebKit): (WebKit::WebCompositorInputHandlerImpl::scrollBy): * src/WebCompositorInputHandlerImpl.h: (WebCore): (WebCompositorInputHandlerImpl): * tests/PlatformGestureCurveTest.cpp: * tests/WebCompositorInputHandlerImplTest.cpp: 2012-03-15 Dana Jansens [Chromium] REGRESSION(r110596) CCQuadCullerTest.verifyCullChildLinesUpTopLeft fails on Windows https://bugs.webkit.org/show_bug.cgi?id=81083 Reviewed by Adrienne Walker. * tests/CCQuadCullerTest.cpp: (WebCore::TEST): 2012-03-15 David Levin Various autoresize fixes. https://bugs.webkit.org/show_bug.cgi?id=81199 Reviewed by Darin Fisher. * public/WebView.h: (WebView): Remove a deprecated api. * src/WebViewImpl.cpp: Ditto. * src/WebViewImpl.h: Ditto. * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::registerMockedURLLoad): Added an overload with more flexibility. The previous api didn't allow one to request a url with a search string. (FrameTestHelpers): * tests/FrameTestHelpers.h: (FrameTestHelpers): Ditto. * tests/WebViewTest.cpp: Fix the test because calling javascript: was working. Make the test generic and added a lot more tests to cover various possibilities. I avoided using a layout test because there wasn't a way to get the scrollbar state, so I just generalized a test that was already there. * tests/data/specify_size.html: Allow the test to take its size from the search string. 2012-03-15 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-03-14 Chris Fleizach AXDescription for HTML5 footer and ARIA role contentinfo incorrect https://bugs.webkit.org/show_bug.cgi?id=78967 Reviewed by Beth Dakin. * src/LocalizedStrings.cpp: 2012-03-13 Jon Lee Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS https://bugs.webkit.org/show_bug.cgi?id=80922 Reviewed by Jian Li. You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API. LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the new API. Therefore, APIs that are common between the two will have: #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to the new API, the defines will begin to split. This allows ports to decide which set of APIs to include. Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) * src/AssertMatchingEnums.cpp: * src/NotificationPresenterImpl.cpp: * src/NotificationPresenterImpl.h: * src/WebNotification.cpp: * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableNotifications): (WebKit::WebRuntimeFeatures::isNotificationsEnabled): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-03-14 James Robinson [chromium] Deprecate renderDirectlyToWebView parameter of WebViewClient::createGraphicsContext3D() https://bugs.webkit.org/show_bug.cgi?id=80523 Reviewed by Darin Fisher. * public/WebViewClient.h: (WebViewClient): (WebKit::WebViewClient::createGraphicsContext3D): * public/platform/WebKitPlatformSupport.h: (WebKit): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::createCompositorGraphicsContext3D): 2012-03-14 James Robinson [chromium] Remove canRecoverFromContextLoss attribute, it's unused https://bugs.webkit.org/show_bug.cgi?id=81158 Reviewed by Stephen White. Deletes the canRecoverFromContextLoss attribute from WebCore::GraphicsContext3D::Attributes. This is still left in WebGraphicsContext3D::Attributes, since chromium-side code still references it. * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3D::create): 2012-03-14 Stephen White [chromium] Fix accelerated Canvas2D with threaded compositing. https://bugs.webkit.org/show_bug.cgi?id=80998 Reviewed by James Robinson. * tests/Canvas2DLayerChromiumTest.cpp: Instantiate a CCLayerTreeHost, so that Canvas2DLayerChromium can retrieve its texture manager. Also move the test into the unnamed namespace -- since it's already using WebCore, there's little reason for it to also be in the namespace. * tests/TreeSynchronizerTest.cpp: (WebKitTests): (WebKitTests::TEST): Add a new test for trying to synchronize NULL tree. 2012-03-14 James Robinson [chromium] Provide explicit polling API to check if the platform is capable of accelerated 2d canvas https://bugs.webkit.org/show_bug.cgi?id=80667 Reviewed by Darin Fisher. * public/platform/WebKitPlatformSupport.h: (WebKit::WebKitPlatformSupport::canAccelerate2dCanvas): (WebKitPlatformSupport): * src/PlatformSupport.cpp: (WebCore::PlatformSupport::canAccelerate2dCanvas): (WebCore): 2012-03-14 Andrey Kosyakov Web Inspector: add didCancelFrame timeline event https://bugs.webkit.org/show_bug.cgi?id=80994 Reviewed by Pavel Feldman. - add intrumentCanceFrame(), called when renderer decides not to render frame after instrumentBeginFrame() was called. * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::instrumentCancelFrame): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::instrumentCancelFrame): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-03-14 Dana Jansens Region can acquire an empty span by subtracting an empty Region https://bugs.webkit.org/show_bug.cgi?id=81074 Reviewed by Anders Carlsson. * tests/RegionTest.cpp: (WebCore::TEST): (WebCore): 2012-03-13 Hajime Morrita Unreviewed, mark verifyCullChildLinesUpTopLeft() as failed. * tests/CCQuadCullerTest.cpp: (WebCore): (WebCore::TEST): 2012-03-14 Marja Hölttä WebHTTPBody: Keep track of whether the data includes passwords. https://bugs.webkit.org/show_bug.cgi?id=81003 Reviewed by Darin Fisher. This change enables Chrome to save HTTP bodies selectively, only if they don't contain passwords. * public/platform/WebHTTPBody.h: (WebHTTPBody): Added containsPasswordData, setContainsPasswordData. * src/WebHTTPBody.cpp: (WebKit::WebHTTPBody::containsPasswordData): Added. (WebKit): (WebKit::WebHTTPBody::setContainsPasswordData): Added. 2012-03-14 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-03-13 Hajime Morrita Unreviewed, mark verifyCullChildLinesUpTopLeft() as failed. * tests/CCQuadCullerTest.cpp: (WebCore): (WebCore::TEST): 2012-03-13 Shawn Singh [chromium] wrong transform causing incorrect culling https://bugs.webkit.org/show_bug.cgi?id=80471 Reviewed by James Robinson. * tests/CCRenderSurfaceTest.cpp: (WebCore::TEST): (WebCore): 2012-03-13 Nat Duca [chromium] vsync ticks are needed in invisible tabs when we are still updating resources https://bugs.webkit.org/show_bug.cgi?id=80910 Reviewed by James Robinson. * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): (WebCore): 2012-03-13 Dana Jansens Region::contains(IntPoint) is slow https://bugs.webkit.org/show_bug.cgi?id=81008 Reviewed by Anders Carlsson. * WebKit.gypi: * tests/RegionTest.cpp: Added. (WebCore): (WebCore::TEST): 2012-03-13 Gavin Peters Implement ApplicationCacheHost::canCacheInPageCache() for chromium. https://bugs.webkit.org/show_bug.cgi?id=80905 Reviewed by Eric Seidel. This won't cause chrome to use the PageCache, but it will cause our histogram statistics describing PageCache use to be more accurate. * src/ApplicationCacheHost.cpp: (WebCore::ApplicationCacheHost::canCacheInPageCache): 2012-03-13 Dana Jansens [chromium] Use CCOcclusionTracker for draw culling https://bugs.webkit.org/show_bug.cgi?id=80743 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/CCLayerTreeHostImplTest.cpp: (WebKit::BlendStateCheckLayer::appendQuads): * tests/CCQuadCullerTest.cpp: (TestCCOcclusionTrackerImpl): (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl): (WebCore::TestCCOcclusionTrackerImpl::layerScissorRectInTargetSurface): (WebCore::makeLayer): (WebCore::appendQuads): (WebCore): (WebCore::TEST): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): * tests/MockCCQuadCuller.h: Added. (WebCore): (MockCCQuadCuller): (WebCore::MockCCQuadCuller::MockCCQuadCuller): (WebCore::MockCCQuadCuller::append): (WebCore::MockCCQuadCuller::quadList): 2012-03-13 Adam Barth && Benjamin Poulain Always enable ENABLE(CLIENT_BASED_GEOLOCATION) https://bugs.webkit.org/show_bug.cgi?id=78853 Reviewed by Adam Barth. * features.gypi: * src/ChromeClientImpl.cpp: * src/ChromeClientImpl.h: (ChromeClientImpl): 2012-03-13 Tommy Widenflycht MediaStream API: Rename PeerConnection to DeprecatedPeerConnection https://bugs.webkit.org/show_bug.cgi?id=80692 Reviewed by Adam Barth. First patch in a series of patches to change the PeerConnection from ROAP to JSEP, see bug 80589 for more information. * WebKit.gyp: * bridge/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandler.cpp. (WebCore): (WebCore::DeprecatedPeerConnectionHandler::create): (WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler): (WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler): (WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer): (WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer): (WebCore::DeprecatedPeerConnectionHandler::processSDP): (WebCore::DeprecatedPeerConnectionHandler::processPendingStreams): (WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage): (WebCore::DeprecatedPeerConnectionHandler::stop): * bridge/DeprecatedPeerConnectionHandlerInternal.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp. (WebCore): (WebCore::DeprecatedPeerConnectionHandlerInternal::DeprecatedPeerConnectionHandlerInternal): (WebCore::DeprecatedPeerConnectionHandlerInternal::~DeprecatedPeerConnectionHandlerInternal): (WebCore::DeprecatedPeerConnectionHandlerInternal::produceInitialOffer): (WebCore::DeprecatedPeerConnectionHandlerInternal::handleInitialOffer): (WebCore::DeprecatedPeerConnectionHandlerInternal::processSDP): (WebCore::DeprecatedPeerConnectionHandlerInternal::processPendingStreams): (WebCore::DeprecatedPeerConnectionHandlerInternal::sendDataStreamMessage): (WebCore::DeprecatedPeerConnectionHandlerInternal::stop): (WebCore::DeprecatedPeerConnectionHandlerInternal::didCompleteICEProcessing): (WebCore::DeprecatedPeerConnectionHandlerInternal::didGenerateSDP): (WebCore::DeprecatedPeerConnectionHandlerInternal::didReceiveDataStreamMessage): (WebCore::DeprecatedPeerConnectionHandlerInternal::didAddRemoteStream): (WebCore::DeprecatedPeerConnectionHandlerInternal::didRemoveRemoteStream): * bridge/DeprecatedPeerConnectionHandlerInternal.h: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.h. (WebKit): (WebCore): (DeprecatedPeerConnectionHandlerInternal): 2012-03-13 Dana Jansens [chromium] Use projectQuad to apply inverse mapRect https://bugs.webkit.org/show_bug.cgi?id=80741 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore): (CCOcclusionTrackerTest3dTransform): (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest): (CCOcclusionTrackerTestPerspectiveTransform): (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest): (CCOcclusionTrackerTestPerspectiveTransformBehindCamera): (WebCore::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest): 2012-03-13 Gavin Peters Make ApplicationCacheHost::canCacheInPageCache() non-const. https://bugs.webkit.org/show_bug.cgi?id=80904 Reviewed by Alexey Proskuryakov. A const pointer to a large object like ApplicationCacheHost is not our standard practice; so remove this (implicit) one. See also https://bugs.webkit.org/show_bug.cgi?id=80898 * src/ApplicationCacheHost.cpp: (WebCore::ApplicationCacheHost::canCacheInPageCache): 2012-03-13 Kinuko Yasuda Allow WebFileChooser to return extra file info (like displayName) in addition to mere file paths https://bugs.webkit.org/show_bug.cgi?id=80719 Reviewed by Kent Tamura. * public/WebFileChooserCompletion.h: (SelectedFileInfo): Added. (WebFileChooserCompletion): (WebKit::WebFileChooserCompletion::didChooseFile): Added an overloaded method that takes SelectedFileInfo. * src/WebFileChooserCompletionImpl.cpp: (WebKit::WebFileChooserCompletionImpl::didChooseFile): Ditto. (WebKit): * src/WebFileChooserCompletionImpl.h: (WebFileChooserCompletionImpl): 2012-03-12 Sheriff Bot Unreviewed, rolling out r110529. http://trac.webkit.org/changeset/110529 https://bugs.webkit.org/show_bug.cgi?id=80969 breaks mac build (Requested by morrita on #webkit). * tests/CCOcclusionTrackerTest.cpp: (WebCore): 2012-03-12 Hajime Morrita Unreviewed Windows build fix. * src/WebViewImpl.cpp: 2012-03-12 Dana Jansens [chromium] Use projectQuad to apply inverse mapRect https://bugs.webkit.org/show_bug.cgi?id=80741 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore): (CCOcclusionTrackerTest3dTransform): (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest): (CCOcclusionTrackerTestPerspectiveTransform): (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest): (CCOcclusionTrackerTestPerspectiveTransformBehindCamera): (WebCore::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest): 2012-03-12 Dana Jansens [chromium] Fix clang build for CCOcclusionTracker tests https://bugs.webkit.org/show_bug.cgi?id=80891 Reviewed by Adam Barth. * tests/CCOcclusionTrackerTest.cpp: (WebCore::CCOcclusionTrackerTest::createRoot): (WebCore::CCOcclusionTrackerTest::createLayer): (WebCore::CCOcclusionTrackerTest::createDrawingLayer): 2012-03-12 Stephen White [chromium] Restore canvas2D acceleration after context loss. https://bugs.webkit.org/show_bug.cgi?id=80629 Reviewed by James Robinson. Covered by existing canvas tests, and manual testing (killing the GPU process). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::sharedGraphicsContext3D): 2012-03-12 Nat Duca [Chromium] Force compositeAndReadback through regular scheduling flow https://bugs.webkit.org/show_bug.cgi?id=77049 Reviewed by James Robinson. * tests/CCFrameRateControllerTest.cpp: (WebKitTests::FakeCCFrameRateControllerClient::reset): (WebKitTests::FakeCCFrameRateControllerClient::vsyncTicked): (WebKitTests::FakeCCFrameRateControllerClient::vsyncTick): (FakeCCFrameRateControllerClient): (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestCompositeAndReadbackWhileInvisible): (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible): (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::beginTest): (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::didCommitAndDrawFrame): (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::afterTest): (WTF::TEST_F): * tests/CCSchedulerStateMachineTest.cpp: (WebCore::StateMachine::setNeedsForcedCommit): (WebCore::StateMachine::needsForcedCommit): (StateMachine): (WebCore::TEST): (WebCore): 2012-03-12 Joshua Bell IndexedDB: Handle LevelDB database corruption https://bugs.webkit.org/show_bug.cgi?id=79413 Reviewed by Tony Chang. * WebKit.gyp: Skip LevelDBTest.cpp in shared component builds due to webkit_support dependency * WebKit.gypi: Add LevelDBTest.cpp * tests/LevelDBTest.cpp: Added. (WebCore): (SimpleComparator): (WebCore::SimpleComparator::compare): (WebCore::SimpleComparator::name): (WebCore::encodeString): (WebCore::TEST): 2012-03-12 Dana Jansens [chromium] Clean up culling tests and templatize to test impl constructs https://bugs.webkit.org/show_bug.cgi?id=80613 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TestContentLayerChromium::TestContentLayerChromium): (WebCore::TestContentLayerChromium::opaqueContentsRegion): (WebCore::TestContentLayerChromium::setOpaqueContentsRect): (TestContentLayerChromium): (TestContentLayerImpl): (WebCore::TestContentLayerImpl::TestContentLayerImpl): (WebCore::TestContentLayerImpl::opaqueContentsRegion): (WebCore::TestContentLayerImpl::setOpaqueContentsRect): (WebCore): (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase): (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace): (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface): (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace): (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface): (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface): (WebCore::TestDamageClient::damageRect): (CCOcclusionTrackerTestMainThreadTypes): (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer): (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer): (CCOcclusionTrackerTestImplThreadTypes): (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer): (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer): (CCOcclusionTrackerTest): (WebCore::CCOcclusionTrackerTest::TearDown): (WebCore::CCOcclusionTrackerTest::createRoot): (WebCore::CCOcclusionTrackerTest::createLayer): (WebCore::CCOcclusionTrackerTest::createSurface): (WebCore::CCOcclusionTrackerTest::createDrawingLayer): (WebCore::CCOcclusionTrackerTest::createDrawingSurface): (WebCore::CCOcclusionTrackerTest::calcDrawEtc): (WebCore::CCOcclusionTrackerTest::setBaseProperties): (WebCore::CCOcclusionTrackerTest::setProperties): (CCOcclusionTrackerTestIdentityTransforms): (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest): (CCOcclusionTrackerTestRotatedChild): (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest): (CCOcclusionTrackerTestTranslatedChild): (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest): (CCOcclusionTrackerTestChildInRotatedChild): (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest): (CCOcclusionTrackerTestVisitTargetTwoTimes): (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest): (CCOcclusionTrackerTestSurfaceRotatedOffAxis): (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest): (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren): (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest): (CCOcclusionTrackerTestOverlappingSurfaceSiblings): (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest): (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms): (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest): (CCOcclusionTrackerTestFilters): (WebCore::CCOcclusionTrackerTestFilters::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOutsideChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOutsideChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest): (CCOcclusionTrackerTestDamageRectOutsideChild): (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOverChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOverChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest): (CCOcclusionTrackerTestDamageRectOverChild): (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestDamageRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOverNothing): (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOverNothing): (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest): (CCOcclusionTrackerTestDamageRectOverNothing): (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest): (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin): (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest): (CCOcclusionTrackerTestOpaqueContentsRegionEmpty): (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest): (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty): (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest): 2012-03-11 Sheriff Bot Unreviewed, rolling out r110359. http://trac.webkit.org/changeset/110359 https://bugs.webkit.org/show_bug.cgi?id=80799 SelectPopupMenuTest.ClickItem failure (Requested by ukai on #webkit). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): (WebKit::WebViewImpl::applyAutofillSuggestions): 2012-03-11 Pavel Feldman Web Inspector: [chromium] add provisional test for the downstream sanity test. https://bugs.webkit.org/show_bug.cgi?id=80784 Reviewed by Yury Semikhatsky. * src/js/Tests.js: (.TestSuite.prototype.checkLogAndErrorMessages.validMessage): (.TestSuite.prototype.checkLogAndErrorMessages.onConsoleMessage): (.TestSuite.prototype.checkLogAndErrorMessages): 2012-03-10 Sheriff Bot Unreviewed, rolling out r110384. http://trac.webkit.org/changeset/110384 https://bugs.webkit.org/show_bug.cgi?id=80774 compile failed on Chromium Win Release (Requested by ukai_home on #webkit). * tests/CCOcclusionTrackerTest.cpp: (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent): (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion): (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect): (LayerChromiumWithForcedDrawsContent): (WebCore::setLayerPropertiesForTesting): (WebCore): (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker): (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace): (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface): (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace): (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface): (WebCore::TestCCOcclusionTracker::layerScissorRectInTargetSurface): (WebCore::TestDamageClient::damageRect): (WebCore::layerAddedToOccludedRegion): (WebCore::layerAddedToOccludedRegionWithRotation): (WebCore::layerAddedToOccludedRegionWithTranslation): (WebCore::layerAddedToOccludedRegionWithRotatedSurface): (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack): (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface): (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers): (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces): (WebCore::surfaceOcclusionInScreenSpace): (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms): (WebCore::occlusionInteractionWithFilters): (WebCore::layerScissorRectOverTile): (WebCore::screenScissorRectOverTile): (WebCore::layerScissorRectOverCulledTile): (WebCore::screenScissorRectOverCulledTile): (WebCore::layerScissorRectOverPartialTiles): (WebCore::screenScissorRectOverPartialTiles): (WebCore::layerScissorRectOverNoTiles): (WebCore::screenScissorRectOverNoTiles): (WebCore::layerScissorRectForLayerOffOrigin): (WebCore::damageRectOverTile): (WebCore::damageRectOverCulledTile): (WebCore::damageRectOverPartialTiles): (WebCore::damageRectOverNoTiles): (WebCore::TEST): 2012-03-10 Dana Jansens [chromium] Clean up culling tests and templatize to test impl constructs https://bugs.webkit.org/show_bug.cgi?id=80613 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TestContentLayerChromium::TestContentLayerChromium): (WebCore::TestContentLayerChromium::opaqueContentsRegion): (WebCore::TestContentLayerChromium::setOpaqueContentsRect): (TestContentLayerChromium): (TestContentLayerImpl): (WebCore::TestContentLayerImpl::TestContentLayerImpl): (WebCore::TestContentLayerImpl::opaqueContentsRegion): (WebCore::TestContentLayerImpl::setOpaqueContentsRect): (WebCore): (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase): (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace): (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface): (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace): (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface): (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface): (WebCore::TestDamageClient::damageRect): (CCOcclusionTrackerTestMainThreadTypes): (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer): (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer): (CCOcclusionTrackerTestImplThreadTypes): (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer): (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer): (CCOcclusionTrackerTest): (WebCore::CCOcclusionTrackerTest::TearDown): (WebCore::CCOcclusionTrackerTest::createRoot): (WebCore::CCOcclusionTrackerTest::createLayer): (WebCore::CCOcclusionTrackerTest::createSurface): (WebCore::CCOcclusionTrackerTest::createDrawingLayer): (WebCore::CCOcclusionTrackerTest::createDrawingSurface): (WebCore::CCOcclusionTrackerTest::calcDrawEtc): (WebCore::CCOcclusionTrackerTest::setBaseProperties): (WebCore::CCOcclusionTrackerTest::setProperties): (CCOcclusionTrackerTestIdentityTransforms): (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest): (CCOcclusionTrackerTestRotatedChild): (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest): (CCOcclusionTrackerTestTranslatedChild): (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest): (CCOcclusionTrackerTestChildInRotatedChild): (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest): (CCOcclusionTrackerTestVisitTargetTwoTimes): (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest): (CCOcclusionTrackerTestSurfaceRotatedOffAxis): (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest): (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren): (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest): (CCOcclusionTrackerTestOverlappingSurfaceSiblings): (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest): (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms): (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest): (CCOcclusionTrackerTestFilters): (WebCore::CCOcclusionTrackerTestFilters::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOutsideChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOutsideChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest): (CCOcclusionTrackerTestDamageRectOutsideChild): (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOverChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOverChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest): (CCOcclusionTrackerTestDamageRectOverChild): (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestDamageRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOverNothing): (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOverNothing): (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest): (CCOcclusionTrackerTestDamageRectOverNothing): (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest): (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin): (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest): (CCOcclusionTrackerTestOpaqueContentsRegionEmpty): (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest): (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty): (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest): 2012-03-09 Jon Lee Rename NotificationPresenter to NotificationClient https://bugs.webkit.org/show_bug.cgi?id=80488 Reviewed by Kentaro Hara. Refactor to use renamed WebCore::NotificationClient. * src/AssertMatchingEnums.cpp: * src/NotificationPresenterImpl.cpp: (WebKit::NotificationPresenterImpl::checkPermission): * src/NotificationPresenterImpl.h: (NotificationPresenterImpl): 2012-03-10 Sheriff Bot Unreviewed, rolling out r110363. http://trac.webkit.org/changeset/110363 https://bugs.webkit.org/show_bug.cgi?id=80757 link error in chromium: unresolved external symbol webkit_support::CreateScopedTempDirectory(void) (Requested by ukai_home on #webkit). * WebKit.gypi: * tests/LevelDBTest.cpp: Removed. 2012-03-10 Sheriff Bot Unreviewed, rolling out r110353. http://trac.webkit.org/changeset/110353 https://bugs.webkit.org/show_bug.cgi?id=80752 copmile failed on Chromium (Requested by ukai_home on #webkit). * tests/CCOcclusionTrackerTest.cpp: (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent): (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion): (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect): (LayerChromiumWithForcedDrawsContent): (WebCore::setLayerPropertiesForTesting): (WebCore): (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker): (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace): (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface): (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace): (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface): (WebCore::TestCCOcclusionTracker::layerScissorRectInTargetSurface): (WebCore::TestDamageClient::damageRect): (WebCore::layerAddedToOccludedRegion): (WebCore::layerAddedToOccludedRegionWithRotation): (WebCore::layerAddedToOccludedRegionWithTranslation): (WebCore::layerAddedToOccludedRegionWithRotatedSurface): (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack): (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface): (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers): (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces): (WebCore::surfaceOcclusionInScreenSpace): (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms): (WebCore::occlusionInteractionWithFilters): (WebCore::layerScissorRectOverTile): (WebCore::screenScissorRectOverTile): (WebCore::layerScissorRectOverCulledTile): (WebCore::screenScissorRectOverCulledTile): (WebCore::layerScissorRectOverPartialTiles): (WebCore::screenScissorRectOverPartialTiles): (WebCore::layerScissorRectOverNoTiles): (WebCore::screenScissorRectOverNoTiles): (WebCore::layerScissorRectForLayerOffOrigin): (WebCore::damageRectOverTile): (WebCore::damageRectOverCulledTile): (WebCore::damageRectOverPartialTiles): (WebCore::damageRectOverNoTiles): (WebCore::TEST): 2012-03-09 Robert Kroeger Handle more Gesture* events by performing scrolls on the correct target ScrollableArea https://bugs.webkit.org/show_bug.cgi?id=80311 Added a unit test for the changes to ScrollAnimatorNone to make sure that the two-call transport of fling parameters is correctly delivered. Reviewed by James Robinson. * tests/ScrollAnimatorNoneTest.cpp: (MockScrollAnimatorNone): (MockScrollAnimatorNone::reset): (MockScrollAnimatorNone::fireUpAnAnimation): (TEST): 2012-03-07 James Robinson [chromium] Deprecate renderDirectlyToWebView parameter of WebViewClient::createGraphicsContext3D() https://bugs.webkit.org/show_bug.cgi?id=80523 Reviewed by Darin Fisher. * public/WebViewClient.h: (WebViewClient): (WebKit::WebViewClient::createGraphicsContext3D): * public/platform/WebKitPlatformSupport.h: (WebKit): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::createCompositorGraphicsContext3D): 2012-03-09 Joshua Bell IndexedDB: Handle LevelDB database corruption https://bugs.webkit.org/show_bug.cgi?id=79413 Reviewed by Tony Chang. * WebKit.gypi: * tests/LevelDBTest.cpp: Added. (WebCore): (SimpleComparator): (WebCore::SimpleComparator::compare): (WebCore::SimpleComparator::name): (WebCore::encodeString): (WebCore::TEST): 2012-03-09 Tim Dresser [chromium] Increase size of Combo Box Options for touch and high DPI devices https://bugs.webkit.org/show_bug.cgi?id=80027 Reviewed by Darin Fisher. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): (WebKit::WebViewImpl::applyAutofillSuggestions): 2012-03-09 James Robinson [chromium] Roll chromium DEPS to r125600 https://bugs.webkit.org/show_bug.cgi?id=80722 Unreviewed * DEPS: 2012-03-09 Dana Jansens [chromium] Clean up culling tests and templatize to test impl constructs https://bugs.webkit.org/show_bug.cgi?id=80613 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TestContentLayerChromium::TestContentLayerChromium): (WebCore::TestContentLayerChromium::opaqueContentsRegion): (WebCore::TestContentLayerChromium::setOpaqueContentsRect): (TestContentLayerChromium): (TestContentLayerImpl): (WebCore::TestContentLayerImpl::TestContentLayerImpl): (WebCore::TestContentLayerImpl::opaqueContentsRegion): (WebCore::TestContentLayerImpl::setOpaqueContentsRect): (WebCore): (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase): (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace): (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface): (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace): (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface): (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface): (WebCore::TestDamageClient::damageRect): (CCOcclusionTrackerTestMainThreadTypes): (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer): (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer): (CCOcclusionTrackerTestImplThreadTypes): (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer): (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer): (CCOcclusionTrackerTest): (WebCore::CCOcclusionTrackerTest::TearDown): (WebCore::CCOcclusionTrackerTest::createRoot): (WebCore::CCOcclusionTrackerTest::createLayer): (WebCore::CCOcclusionTrackerTest::createSurface): (WebCore::CCOcclusionTrackerTest::createDrawingLayer): (WebCore::CCOcclusionTrackerTest::createDrawingSurface): (WebCore::CCOcclusionTrackerTest::calcDrawEtc): (WebCore::CCOcclusionTrackerTest::setBaseProperties): (WebCore::CCOcclusionTrackerTest::setProperties): (CCOcclusionTrackerTestIdentityTransforms): (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest): (CCOcclusionTrackerTestRotatedChild): (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest): (CCOcclusionTrackerTestTranslatedChild): (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest): (CCOcclusionTrackerTestChildInRotatedChild): (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest): (CCOcclusionTrackerTestVisitTargetTwoTimes): (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest): (CCOcclusionTrackerTestSurfaceRotatedOffAxis): (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest): (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren): (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest): (CCOcclusionTrackerTestOverlappingSurfaceSiblings): (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest): (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms): (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest): (CCOcclusionTrackerTestFilters): (WebCore::CCOcclusionTrackerTestFilters::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOutsideChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOutsideChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest): (CCOcclusionTrackerTestDamageRectOutsideChild): (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOverChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOverChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest): (CCOcclusionTrackerTestDamageRectOverChild): (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestDamageRectPartlyOverChild): (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest): (CCOcclusionTrackerTestLayerScissorRectOverNothing): (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest): (CCOcclusionTrackerTestScreenScissorRectOverNothing): (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest): (CCOcclusionTrackerTestDamageRectOverNothing): (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest): (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin): (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest): (CCOcclusionTrackerTestOpaqueContentsRegionEmpty): (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest): (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty): (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest): 2012-03-09 Emil A Eklund Add roundedPoint to HitTestResult and change platform code to use it https://bugs.webkit.org/show_bug.cgi?id=80715 Reviewed by James Robinson. Change ports to use roundedPoint to avoid exposing subpixel types to platform code. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::mouseDidMoveOverElement): * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2012-03-09 W. James MacLean [chromium] Implement scroll physics architecture for impl/main thread https://bugs.webkit.org/show_bug.cgi?id=79827 Reviewed by James Robinson. * WebKit.gypi: * tests/PlatformGestureCurveTest.cpp: Added. 2012-03-09 Tien-Ren Chen [chromium] ScrollbarLayerChromium/CCScrollbarLayerImpl for CC-side scrollbar painting https://bugs.webkit.org/show_bug.cgi?id=78872 Reviewed by James Robinson. * WebKit.gypi: * tests/ScrollbarLayerChromiumTest.cpp: Added. (WebCore): (MockScrollbar): (WebCore::MockScrollbar::x): (WebCore::MockScrollbar::y): (WebCore::MockScrollbar::width): (WebCore::MockScrollbar::height): (WebCore::MockScrollbar::size): (WebCore::MockScrollbar::location): (WebCore::MockScrollbar::parent): (WebCore::MockScrollbar::root): (WebCore::MockScrollbar::setFrameRect): (WebCore::MockScrollbar::frameRect): (WebCore::MockScrollbar::invalidate): (WebCore::MockScrollbar::invalidateRect): (WebCore::MockScrollbar::scrollbarOverlayStyle): (WebCore::MockScrollbar::getTickmarks): (WebCore::MockScrollbar::isScrollableAreaActive): (WebCore::MockScrollbar::isScrollViewScrollbar): (WebCore::MockScrollbar::convertFromContainingWindow): (WebCore::MockScrollbar::isCustomScrollbar): (WebCore::MockScrollbar::orientation): (WebCore::MockScrollbar::value): (WebCore::MockScrollbar::currentPos): (WebCore::MockScrollbar::visibleSize): (WebCore::MockScrollbar::totalSize): (WebCore::MockScrollbar::maximum): (WebCore::MockScrollbar::controlSize): (WebCore::MockScrollbar::lineStep): (WebCore::MockScrollbar::pageStep): (WebCore::MockScrollbar::pressedPart): (WebCore::MockScrollbar::hoveredPart): (WebCore::MockScrollbar::styleChanged): (WebCore::MockScrollbar::enabled): (WebCore::MockScrollbar::setEnabled): (WebCore::MockScrollbar::MockScrollbar): (WebCore::MockScrollbar::~MockScrollbar): (WebCore::TEST): 2012-03-08 James Robinson [chromium] Expose the shared graphics context on WebView so callers can allocate resources on the main thread for the compositor to use https://bugs.webkit.org/show_bug.cgi?id=80670 Reviewed by Stephen White. This exposes a context on WebView that is in the compositor's share group and can be used directly from the main thread. This is useful for content that needs to allocate resources for the compositor to use, but cannot directly use the compositor's context either because it cannot access the correct thread or because it needs to initialize in situations where we cannot initialize a compositor (view) context - for instance before the native window is created. * public/WebView.h: (WebView): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::sharedGraphicsContext3D): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-03-09 Dana Jansens [chromium] Use opaque paints in CCOcclusionTracker https://bugs.webkit.org/show_bug.cgi?id=80173 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion): (LayerChromiumWithForcedDrawsContent): (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect): (WebCore::setLayerPropertiesForTesting): (WebCore): (WebCore::layerAddedToOccludedRegion): (WebCore::layerAddedToOccludedRegionWithRotation): (WebCore::layerAddedToOccludedRegionWithTranslation): (WebCore::layerAddedToOccludedRegionWithRotatedSurface): (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack): (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface): (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers): (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces): (WebCore::surfaceOcclusionInScreenSpace): (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms): (WebCore::occlusionInteractionWithFilters): (WebCore::layerScissorRectOverTile): (WebCore::screenScissorRectOverTile): (WebCore::layerScissorRectOverCulledTile): (WebCore::screenScissorRectOverCulledTile): (WebCore::layerScissorRectOverPartialTiles): (WebCore::screenScissorRectOverPartialTiles): (WebCore::layerScissorRectOverNoTiles): (WebCore::screenScissorRectOverNoTiles): (WebCore::layerScissorRectForLayerOffOrigin): (WebCore::damageRectOverTile): (WebCore::damageRectOverCulledTile): (WebCore::damageRectOverPartialTiles): (WebCore::damageRectOverNoTiles): (WebCore::TEST): * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): (WTF): 2012-03-09 Jon Lee Add support for ENABLE(LEGACY_NOTIFICATIONS) https://bugs.webkit.org/show_bug.cgi?id=80497 Reviewed by Adam Barth. Prep for b80472: Update API for Web Notifications * features.gypi: 2012-03-09 Ian Vollick [chromium] Ensure we use the correct time when notifying animation started https://bugs.webkit.org/show_bug.cgi?id=79537 Reviewed by James Robinson * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::willDraw): * src/WebCompositorInputHandlerImpl.h: (WebCompositorInputHandlerImpl): * tests/CCLayerTreeHostImplTest.cpp: (WebKit::CCLayerTreeHostImplTest::postAnimationEventsToMainThreadOnImplThread): (WebKit::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::animateLayers): (WTF::TestHooks::updateAnimations): (WTF::MockLayerTreeHostImpl::animateLayers): (WTF::MockLayerTreeHostClient::updateAnimations): (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::animateLayers): (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationStarted): (CCLayerTreeHostTestAddAnimation): 2012-03-09 Sheriff Bot Unreviewed, rolling out r110191, r110202, and r110279. http://trac.webkit.org/changeset/110191 http://trac.webkit.org/changeset/110202 http://trac.webkit.org/changeset/110279 https://bugs.webkit.org/show_bug.cgi?id=80694 They broke !ENABLE(INSPECTOR) builds (Requested by Ossy on #webkit). * features.gypi: 2012-03-09 Alexander Pavlov [chromium] Unreviewed, build fix after r110191 * features.gypi: 2012-03-08 Ian Vollick [chromium] Ensure that the cc thread animation framework continues to tick when the tab is backgrounded https://bugs.webkit.org/show_bug.cgi?id=77668 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::postAddInstantAnimationToMainThread): (CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation): (WTF::CCLayerTreeHostTest::dispatchAddAnimation): (WTF::CCLayerTreeHostTestAddAnimation::beginTest): (WTF): (CCLayerTreeHostTestTickAnimationWhileBackgrounded): (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::CCLayerTreeHostTestTickAnimationWhileBackgrounded): (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::beginTest): (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::animateLayers): (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::afterTest): (WTF::TEST_F): 2012-03-08 Jeff Timanus [chromium] Force the Canvas2D GPU texture cache to 0 bytes for backgrounded tabs. https://bugs.webkit.org/show_bug.cgi?id=79948 Reviewed by Stephen White. * src/GraphicsContext3DChromium.cpp: (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged): (WebCore::GraphicsContext3DPrivate::grContext): (WebCore::GraphicsContext3DPrivate::setVisibilityCHROMIUM): 2012-03-08 Dana Jansens [chromium] Replace completelyContains with Region::contains() https://bugs.webkit.org/show_bug.cgi?id=80617 Reviewed by James Robinson. * tests/CCLayerTestCommon.cpp: (CCLayerTestCommon): (CCLayerTestCommon::verifyQuadsExactlyCoverRect): * tests/CCLayerTestCommon.h: (CCLayerTestCommon): 2012-03-08 James Robinson Use an explicit attribute to signal that a context prefers to use a discrete GPU https://bugs.webkit.org/show_bug.cgi?id=80639 Reviewed by Stephen White. * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DPrivate::getContextAttributes): (WebCore::GraphicsContext3D::create): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::createCompositorGraphicsContext3D): 2012-03-08 Scott Byer Have ScrollAnimatorNone use requestAnimationFrame https://bugs.webkit.org/show_bug.cgi?id=78938 Reviewed by James Robinson. * src/ScrollbarGroup.h: (WebCore): (WebKit::ScrollbarGroup::hostWindow): (ScrollbarGroup): * tests/ScrollAnimatorNoneTest.cpp: (MockScrollableArea::hostWindow): 2012-03-08 Caio Marcelo de Oliveira Filho Make elements with attributes smaller by eliminating the m_element back pointer in NamedNodeMap https://bugs.webkit.org/show_bug.cgi?id=75069 Reviewed by Ryosuke Niwa. * src/WebElement.cpp: Include NamedNodeMap.h since Element.h doesn't include it anymore. 2012-03-07 Kent Tamura Remove meaningless code in RenderTextControlSingleLine::preferredContentWidth() https://bugs.webkit.org/show_bug.cgi?id=80493 Reviewed by Hajime Morita. * src/WebInputElement.cpp: RenderTextControlSingleLine::speechButtonElement() is removed. The following functions get it from HTMLInputElement. (WebKit::WebInputElement::getSpeechInputState): (WebKit::WebInputElement::startSpeechInput): (WebKit::WebInputElement::stopSpeechInput): 2012-03-07 Adam Barth Remove #define private public from WebCache.cpp https://bugs.webkit.org/show_bug.cgi?id=80520 Reviewed by Eric Seidel. This patch removes a hack we added long ago when Chromium used a forked copy of WebKit and editing WebCore caused merge pain. Now that we're on trunk, we can unwind this hack. * src/WebCache.cpp: (WebKit::WebCache::getUsageStats): 2012-03-07 Joshua Bell [Chromium] IndexedDB: V8LocalContext creation in IDBKey extraction/injection is slow https://bugs.webkit.org/show_bug.cgi?id=80358 Reviewed by Tony Chang. * tests/IDBBindingUtilitiesTest.cpp: (WebCore::TEST): 2012-03-07 Scott Byer Get ScrollAnimatorNone to handle the stop and reverse cases. https://bugs.webkit.org/show_bug.cgi?id=80455 Reviewed by James Robinson. * tests/ScrollAnimatorNoneTest.cpp: (ScrollAnimatorNoneTest::updateDataFromParameters): (TEST_F): 2012-03-07 Dana Jansens [chromium] Cull occluded tiles during paint https://bugs.webkit.org/show_bug.cgi?id=76838 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty): * tests/TiledLayerChromiumTest.cpp: (WTF::FakeLayerTextureUpdater::Texture::prepareRect): (WTF::FakeLayerTextureUpdater::FakeLayerTextureUpdater): (FakeLayerTextureUpdater): (WTF::FakeLayerTextureUpdater::prepareRectCount): (WTF::FakeLayerTextureUpdater::clearPrepareRectCount): (WTF::FakeLayerTextureUpdater::prepareRect): (WTF::FakeTiledLayerChromium::prepareToUpdate): (WTF::FakeTiledLayerChromium::prepareToUpdateIdle): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::TEST): (WTF): 2012-03-07 Elliot Poger [Chromium] Remove use_skia option from GYP https://bugs.webkit.org/show_bug.cgi?id=75811 Reviewed by Tony Chang. * WebKit.gyp: * WebKit.gypi: * features.gypi: 2012-03-06 Dana Jansens [chromium] Add clipping to scissor rect to CCOcclusionTracker https://bugs.webkit.org/show_bug.cgi?id=79927 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker): (TestCCOcclusionTracker): (WebCore::TestCCOcclusionTracker::setLayerScissorRect): (WebCore::TestCCOcclusionTracker::useDefaultLayerScissorRect): (WebCore::TestCCOcclusionTracker::layerScissorRect): (WebCore): (TestDamageClient): (WebCore::TestDamageClient::damageRect): (WebCore::TestDamageClient::TestDamageClient): (WebCore::TestDamageClient::setDamageRect): (WebCore::TEST): 2012-03-06 Kenichi Ishibashi [WebSocket] Introduce ThreadableWebSocketChannel::SendResult https://bugs.webkit.org/show_bug.cgi?id=80356 Reviewed by Kent Tamura. * src/WebSocketImpl.cpp: (WebKit::WebSocketImpl::sendText): Checks whether the return value of send() is ThreadableWebSocketChannel::SendSuccess. (WebKit::WebSocketImpl::sendArrayBuffer): Ditto. 2012-03-06 Nat Duca [chromium] CCThreadProxy context lost support https://bugs.webkit.org/show_bug.cgi?id=80100 Reviewed by James Robinson. * tests/CCSchedulerStateMachineTest.cpp: * tests/CCSchedulerTest.cpp: (WebKitTests::FakeCCSchedulerClient::scheduledActionBeginContextRecreation): (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionBeginContextRecreation): (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionBeginContextRecreation): 2012-03-06 James Robinson [chromium] Null-check m_layerRenderer in CCLayerTreeHostImpl::finishAllRendering() https://bugs.webkit.org/show_bug.cgi?id=80445 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (FakeWebGraphicsContext3DMakeCurrentFails): (WebKit::FakeWebGraphicsContext3DMakeCurrentFails::makeContextCurrent): (WebKit): (WebKit::TEST_F): 2012-03-06 David Grogan [Chromium] Add OVERRIDEs to WebWorkerClientImpl.h https://bugs.webkit.org/show_bug.cgi?id=80434 Reviewed by Tony Chang. Tests: just that it compiles. * src/WebWorkerClientImpl.h: (WebWorkerClientImpl): 2012-03-06 David Grogan IndexedDB: Check WebCommonWorkerClient::allowIndexedDB before proceeding from a shared worker https://bugs.webkit.org/show_bug.cgi?id=79954 Tests: The 'allow' case will be tested once the patch at http://webkit.org/b/80189 and https://chromiumcodereview.appspot.com/9585031/ both land. Bug for testing the 'deny' case is http://crbug.com/113738. Reviewed by Tony Chang. * public/WebCommonWorkerClient.h: (WebKit::WebCommonWorkerClient::allowDatabase): (WebKit::WebCommonWorkerClient::allowFileSystem): (WebKit::WebCommonWorkerClient::openFileSystem): (WebCommonWorkerClient): (WebKit::WebCommonWorkerClient::allowIndexedDB): * public/WebSharedWorkerClient.h: (WebSharedWorkerClient): * src/IDBFactoryBackendProxy.cpp: (WebKit::AllowIndexedDBMainThreadBridge::create): (WebKit::AllowIndexedDBMainThreadBridge::cancel): (WebKit::AllowIndexedDBMainThreadBridge::signalCompleted): (WebKit::AllowIndexedDBMainThreadBridge::AllowIndexedDBMainThreadBridge): (WebKit::AllowIndexedDBMainThreadBridge::allowIndexedDBTask): (AllowIndexedDBMainThreadBridge): (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread): * src/WebWorkerClientImpl.cpp: (WebKit): (WebKit::WebWorkerClientImpl::allowIndexedDB): * src/WebWorkerClientImpl.h: (WebWorkerClientImpl): 2012-03-06 Stephen White Unreviewed, rolling out r109825. http://trac.webkit.org/changeset/109825 https://bugs.webkit.org/show_bug.cgi?id=79413 Broke webkit_unit_tests on Chromium Win * WebKit.gypi: * tests/LevelDBTest.cpp: Removed. 2012-03-06 Takashi Toyoshima [Chromium] [WebSocket] Add WebSocket extensions query WebKit API https://bugs.webkit.org/show_bug.cgi?id=80190 Reviewed by Darin Fisher. * public/WebSocket.h: Add extensions() declaration. (WebSocket): * src/WebSocketImpl.cpp: Implement extensions() bridge. (WebKit::WebSocketImpl::extensions): (WebKit): * src/WebSocketImpl.h: Add extensions() declaration. (WebSocketImpl): 2012-03-05 Kent Tamura Do not reformat strings in on platforms using LocalizedNumberICU. https://bugs.webkit.org/show_bug.cgi?id=78326 Reviewed by Hajime Morita. Add a test for WebCore/platform/text/LocalizedNumberICU. * WebKit.gypi: Added LocalizedNumberICUTest.cpp * tests/LocalizedNumberICUTest.cpp: Added. 2012-03-05 Kenneth Russell [chromium] Notify CCLayerImpl tree of context loss and restoration https://bugs.webkit.org/show_bug.cgi?id=80339 Reviewed by James Robinson. Unit test for notification of context loss and restoration. * tests/CCLayerTreeHostImplTest.cpp: (WebKit): (ContextLostNotificationCheckLayer): (WebKit::ContextLostNotificationCheckLayer::create): (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContext): (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContextCalled): (WebKit::ContextLostNotificationCheckLayer::ContextLostNotificationCheckLayer): (WebKit::TEST_F): 2012-03-05 Changhun Kang Change the argument orders to match OpenGL's in GraphicsContext3D functions https://bugs.webkit.org/show_bug.cgi?id=80120 Reviewed by Kenneth Russell. No new tests because this patch just change the order of arguments. * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DPrivate::uniform1fv): (WebCore::GraphicsContext3DPrivate::uniform1iv): (WebCore::GraphicsContext3DPrivate::uniform2fv): (WebCore::GraphicsContext3DPrivate::uniform2iv): (WebCore::GraphicsContext3DPrivate::uniform3fv): (WebCore::GraphicsContext3DPrivate::uniform3iv): (WebCore::GraphicsContext3DPrivate::uniform4fv): (WebCore::GraphicsContext3DPrivate::uniform4iv): (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv): (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv): (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv): (WebCore): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): 2012-03-05 Yoshifumi Inoue [Chromium] WebOptionElement should inherit WebElement instead of WebFormControlElement https://bugs.webkit.org/show_bug.cgi?id=80089 Change class hierarchy of WebOptionElement to match with specification. Reviewed by Darin Fisher. * public/WebOptionElement.h: Replace to WebElement from WebFormControlElement (WebKit::WebOptionElement::WebOptionElement): (WebKit::WebOptionElement::operator=): (WebKit::WebOptionElement::assign): * src/WebOptionElement.cpp: (WebKit::WebOptionElement::WebOptionElement): 2012-03-05 Joshua Bell IndexedDB: Handle LevelDB database corruption https://bugs.webkit.org/show_bug.cgi?id=79413 Reviewed by Tony Chang. * WebKit.gypi: * tests/LevelDBTest.cpp: Added. (WebCore): (SimpleComparator): (WebCore::SimpleComparator::compare): (WebCore::SimpleComparator::name): (WebCore::encodeString): (WebCore::TEST): 2012-03-05 Min Qin Enable context menu on android For android, long press is converted into a right mouse down event So we will use that to invoke the context menu https://bugs.webkit.org/show_bug.cgi?id=80332 Reviewed by Adam Barth. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::mouseDown): 2012-03-05 Kent Tamura [Chromium] Add new popup type: PagePopup https://bugs.webkit.org/show_bug.cgi?id=80106 Reviewed by Darin Fisher. This is a preparation of implementing ChromeClient::openPagePopup and closePagePopup. * WebKit.gyp: Add WebPagePopup.h and WebPagePopupImpl.cpp. * public/WebPagePopup.h: (WebPagePopup): Add WebPagePopup interface. * public/WebPopupType.h: Add WebPopupTypePage. * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopup::create): Temprary implementation which just returns 0. 2012-03-05 Charlie Reis [chromium] Pass WebNavigationPolicy to WebViewClient::createView https://bugs.webkit.org/show_bug.cgi?id=80057 Reviewed by Darin Fisher. * public/WebViewClient.h: (WebViewClient): (WebKit::WebViewClient::createView): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::ChromeClientImpl): (WebKit::ChromeClientImpl::createWindow): (WebKit::ChromeClientImpl::getNavigationPolicy): (WebKit): (WebKit::ChromeClientImpl::show): (WebKit::ChromeClientImpl::setNewWindowNavigationPolicy): * src/ChromeClientImpl.h: (ChromeClientImpl): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchCreatePage): (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForNewWindowAction): 2012-03-05 James Robinson [chromium] Initialize CCOverdrawCounts struct to zero https://bugs.webkit.org/show_bug.cgi?id=80204 Reviewed by Adrienne Walker. Update test to use c'tor instead of {} struct initialization. * tests/CCQuadCullerTest.cpp: (WebCore): 2012-03-05 Takashi Toyoshima [Chromium] [WebSocket] use OVERRIDE in WebSocketImpl.h https://bugs.webkit.org/show_bug.cgi?id=80192 Reviewed by Kent Tamura. * src/WebSocketImpl.h: use OVERRIDE macro. (WebSocketImpl): 2012-03-05 Adam Barth Geolocation should use a ScriptExecutionContext as its context object https://bugs.webkit.org/show_bug.cgi?id=80248 Reviewed by Kentaro Hara. Rather than indirecting through the Frame to get the SecurityOrigin, we should get the SecurityOrigin directly from ScriptExecutionContext. * src/WebGeolocationPermissionRequest.cpp: (WebKit::WebGeolocationPermissionRequest::securityOrigin): 2012-03-02 Andrey Kosyakov Add instrumentation for frame start/end on timeline. Web Inspector: add timeline instrumentation for frame events https://bugs.webkit.org/show_bug.cgi?id=80127 Reviewed by Pavel Feldman. - expose an instrumentation method from WebWidget to mark frame update start * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::instrumentBeginFrame): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::instrumentBeginFrame): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-03-03 Benjamin Poulain Remove the redundant method KURL::protocolInHTTPFamily() https://bugs.webkit.org/show_bug.cgi?id=80216 Reviewed by Anders Carlsson. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchWillPerformClientRedirect): * src/WebPageSerializer.cpp: (WebCore::retrieveResourcesForElement): 2012-03-03 Hans Wennborg Implement Speech JavaScript API https://bugs.webkit.org/show_bug.cgi?id=80019 Reviewed by Adam Barth. Add ENABLE_SCRIPTED_SPEECH and runtime flag. * features.gypi: * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableScriptedSpeech): (WebKit): (WebKit::WebRuntimeFeatures::isScriptedSpeechEnabled): 2012-03-03 Bill Budge Fixes AssociatedURLLoader support for Access-Control-Expose-Headers field in response. https://bugs.webkit.org/show_bug.cgi?id=80198 Reviewed by Adam Barth. * src/AssociatedURLLoader.cpp: * tests/AssociatedURLLoaderTest.cpp: 2012-03-02 Dana Jansens [Chromium] Allow plugins to set opaque() on their platform layer https://bugs.webkit.org/show_bug.cgi?id=80171 Reviewed by James Robinson. * public/WebPluginContainer.h: (WebPluginContainer): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::setOpaque): (WebKit): * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-03-01 Caio Marcelo de Oliveira Filho Make parser code not depend on NamedNodeMap https://bugs.webkit.org/show_bug.cgi?id=79963 Reviewed by Adam Barth. * src/WebNamedNodeMap.cpp: (WebKit::WebNamedNodeMap::attributeItem): 2012-03-01 Dana Jansens [chromium] Make opaque paint tracker aware of SkCanvas layers https://bugs.webkit.org/show_bug.cgi?id=79145 Reviewed by Stephen White. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): (WebCore): 2012-03-01 Hironori Bono Render overflow controls of an RTL element to its left-side. https://bugs.webkit.org/show_bug.cgi?id=54623 This change adds a new flag WTF_USE_RTL_SCROLLBAR and render the vertical scrollbars and resizers of RTL elements to their left side if this new flag is enabled. Reviewed by Ryosuke Niwa. * features.gypi: Set WTF_USE_RTL_SCROLLBAR to 1 on Chromium. 2012-03-01 James Robinson [chromium] Rename LayerChromium::name to debugName to be more consistent with other debug properties, make threadsafe https://bugs.webkit.org/show_bug.cgi?id=79723 Reviewed by Adrienne Walker. * tests/LayerChromiumTest.cpp: 2012-03-01 Dale Curtis Remove deprecated FFmpeg build directories. https://bugs.webkit.org/show_bug.cgi?id=79282 We've switched the layout of the FFmpeg repo in Chrome and these paths are no longer needed or valid. Reviewed by Dirk Pranke. * DEPS: 2012-03-01 Dirk Pranke Roll chromium DEPS to 124511 Unreviewed, DEPS change. * DEPS: 2012-02-29 Nat Duca [chromium] Move context lost control code from CCSingleThreadProxy to CCLayerTreeHost https://bugs.webkit.org/show_bug.cgi?id=79964 Reviewed by James Robinson. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::loseCompositorContext): * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::createContext): (WebKit::WebLayerTreeViewImpl::didRecreateContext): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHostClient::createContext): (WTF::MockLayerTreeHostClient::didRecreateContext): * tests/FakeCCLayerTreeHostClient.h: (WebCore::FakeCCLayerTreeHostClient::createContext): (WebCore::FakeCCLayerTreeHostClient::didRecreateContext): 2012-03-01 Kentaro Hara REGRESSION(r109288): WebViewImpl::enableAutoResizeMode loops infinitely https://bugs.webkit.org/show_bug.cgi?id=77452 Reviewed by Hajime Morita. WebViewImpl::enableAutoResizeMode loops infinitely. This patch fixes the following line: enableAutoResizeMode(enable, minSize, maxSize); to enableAutoResizeMode(minSize, maxSize); to avoid the infinite loop. I guess this is the change originally intended. Test: webkit_unit_tests.WebViewTest.AutoResizeMinimumSize * src/WebViewImpl.cpp: (WebKit::WebViewImpl::enableAutoResizeMode): 2012-02-29 Kinuko Yasuda Use the new createSnapshotFileAndReadMetadata API for FileEntry.file() https://bugs.webkit.org/show_bug.cgi?id=79928 Reviewed by David Levin. In the new flow we first create an internal Blob URL for the snapshot file and call the new createSnapshotFileAndReadMetadata() WebKit API with the Blob URL. The implementor of createSnapshotFileAndReadMetadata() (i.e. chromium) registers the created snapshot file with the given internal Blob URL. In the callback chain we call File::createWithName() to create a new File using the returned platform path, and then call unregisterBlobURL() to clean up the internal Blob URL. * src/AsyncFileSystemChromium.cpp: (WebCore::AsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added. (WebCore::AsyncFileSystemChromium::createSnapshotFileCallback): Added. * src/AsyncFileSystemChromium.h: * src/WorkerAsyncFileSystemChromium.cpp: (WebCore::WorkerAsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added. * src/WorkerAsyncFileSystemChromium.h: * src/WorkerFileSystemCallbacksBridge.cpp: (WebKit::WorkerFileSystemCallbacksBridge::postCreateSnapshotFileToMainThread): Added. (WebKit::WorkerFileSystemCallbacksBridge::createSnapshotFileOnMainThread): Added. * src/WorkerFileSystemCallbacksBridge.h: (WorkerFileSystemCallbacksBridge): 2012-02-29 Kinuko Yasuda Unreviewed. Rolled DEPS. * DEPS: 2012-02-29 W. James MacLean [chromium] Estimate pixel count for frame rate control https://bugs.webkit.org/show_bug.cgi?id=74982 Reviewed by James Robinson. Adds mechanism to compute and collect statistics on pixel overdraw for selected frames. * tests/CCQuadCullerTest.cpp: (WebCore): (WebCore::TEST): 2012-02-29 James Simonsen [chromium] Fix navigation start time on cross-renderer navigation https://bugs.webkit.org/show_bug.cgi?id=75922 Reviewed by Darin Fisher. * public/WebDataSource.h: * src/WebDataSource.cpp: (WebKit::WebDataSource::setNavigationStartTime): Added. * src/WebDataSource.h: 2012-02-29 Ian Vollick [chromium] Add impl-thread support for animation-timing-function https://bugs.webkit.org/show_bug.cgi?id=79819 Reviewed by James Robinson. * tests/CCKeyframedAnimationCurveTest.cpp: (WebCore::TEST): (WebCore): 2012-02-29 David Levin [chromium] Add the ability to turn off autoresize. https://bugs.webkit.org/show_bug.cgi?id=77452 Reviewed by Darin Fisher. * public/WebView.h: (WebKit::WebViewImpl::enableAutoResizeMode): Cleaned up the api. (WebKit::WebViewImpl::disableAutoResizeMode): Added the ability to disable auto-resize. (WebKit::WebViewImpl::enableAutoResizeMode): Deprecated it. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::enableAutoResizeMode): Adjust for new api. (WebKit::WebViewImpl::disableAutoResizeMode): Allow turning off autoresize. (WebKit::WebViewImpl::enableAutoResizeMode): Call the other two apis, but this api will be deleted shortly. (WebKit::WebViewImpl::configureAutoResizeMode): Common code. * src/WebViewImpl.h: (WebViewImpl): Adjust to new public api. 2012-02-29 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-02-29 Dana Jansens [chromium] Don't let invalidation for next frame prevent tile upload https://bugs.webkit.org/show_bug.cgi?id=79841 Reviewed by James Robinson. * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-02-28 Sheriff Bot Unreviewed, rolling out r107917 and r109188. http://trac.webkit.org/changeset/107917 http://trac.webkit.org/changeset/109188 https://bugs.webkit.org/show_bug.cgi?id=79865 Fix the chromium build. (Requested by dcheng on #webkit). * src/WebDragData.cpp: (WebKit::WebDragData::items): 2012-02-28 Ryosuke Niwa Chromium build fix attempt. * src/WebDragData.cpp: 2012-02-28 Jonathan Backer [chromium] Reset damage tracker on visibility change. https://bugs.webkit.org/show_bug.cgi?id=79267 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::PartialSwapTrackerContext::getString): (WebKit): (WebKit::TEST_F): 2012-02-28 Tim Dresser Provide DefaultDeviceScaleFactor though WebSettings https://bugs.webkit.org/show_bug.cgi?id=79534 Reviewed by Darin Fisher. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setDefaultDeviceScaleFactor): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-02-28 Gary Kacmarcik [chromium] Set nativeKeyCode to include Windows scan code https://bugs.webkit.org/show_bug.cgi?id=79289 Reviewed by Ryosuke Niwa. Set the key event's nativeKeyCode on Windows Chromium so that it actually includes the native scancode and other context bits. Currently on Windows, the nativeKeyCode is set to be the same value as the windowsKeyCode, which is redundant. The actual native key information is required so that components (like plugins) can reconstruct the original key event. The value stored in the windowsKeyCode is a Windows virtual key code which does not provide sufficient info to disambiguate the actual key being pressed (for example, it cannot distinguish between the left and right shift keys). All platforms except Windows currently send native key event info, so this change will bring Windows in line with other platforms. This change is part of our effort to send enhanced keycode information to Pepper plugins in Chromium. * src/win/WebInputEventFactory.cpp: (WebKit::WebInputEventFactory::keyboardEvent): 2012-02-28 Adam Klein Unreviewed, speculative test fix after r109016. * tests/TransparencyWinTest.cpp: (WebCore::TEST): Update all ImageBuffer::create calls to include a scale of 1. 2012-02-28 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 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