2012-05-31 Ojan Vafai add back the ability to disable flexbox https://bugs.webkit.org/show_bug.cgi?id=87147 Reviewed by Tony Chang. * features.gypi: 2012-05-31 Tim Horton Add feature defines for web-facing parts of CSS Regions and Exclusions https://bugs.webkit.org/show_bug.cgi?id=87442 Reviewed by Dan Bernstein. * features.gypi: 2012-05-30 Lucas Forschler Merge 116319 2012-05-07 Nat Duca Unreviewed, rolling out r115525. http://trac.webkit.org/changeset/115525 https://bugs.webkit.org/show_bug.cgi?id=66683 Too many pages rely on DOMTimeStamp as first argument. Reverting while we consider next steps. * src/PageWidgetDelegate.cpp: (WebKit::PageWidgetDelegate::animate): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::updateAnimations): 2012-05-23 Lucas Forschler Merge 116319 2012-05-07 Nat Duca Unreviewed, rolling out r115525. http://trac.webkit.org/changeset/115525 https://bugs.webkit.org/show_bug.cgi?id=66683 Too many pages rely on DOMTimeStamp as first argument. Reverting while we consider next steps. * src/PageWidgetDelegate.cpp: (WebKit::PageWidgetDelegate::animate): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::updateAnimations): 2012-05-04 Kent Tamura Rename ICULocale to LocaleICU, part 1 https://bugs.webkit.org/show_bug.cgi?id=85688 Reviewed by Kentaro Hara. * tests/LocalizedNumberICUTest.cpp: Rename ICULocale.h to LocaleICU.h. 2012-05-04 Shawn Singh [chromium] Changes to layer tree structure need to be tracked properly https://bugs.webkit.org/show_bug.cgi?id=85421 Reviewed by Adrienne Walker. Unit test added: TreeSynchronizerTest.syncSimpleTreeAndTrackStackingOrderChange * tests/TreeSynchronizerTest.cpp: (WebKitTests): (WebKitTests::TEST): 2012-05-04 Tony Chang [chromium] enable msvs_error_on_missing_sources at gyp time https://bugs.webkit.org/show_bug.cgi?id=85683 Reviewed by Adam Barth. This flag checks for missing files, which cause compile times to be slow on Windows. Since this flag is on by default for the build.chromium.org bots, we should add it here too so everyone can fix these errors. * DEPS: Roll to a chromium version that has no missing files. * gyp_webkit: Add the flag. 2012-05-04 Satoru Takabayashi [chromium] Add plumbing for file display names for drag and drop https://bugs.webkit.org/show_bug.cgi?id=85673 Reviewed by Darin Fisher. * public/platform/WebDragData.h: * src/WebDragData.cpp: (WebKit::WebDragData::items): (WebKit::WebDragData::addItem): 2012-05-04 Adam Barth Refactor CSP state to prepare for having both a ReportOnly and an Enforced policy https://bugs.webkit.org/show_bug.cgi?id=85662 Reviewed by Eric Seidel. Update callers to the new function name. * src/SharedWorkerRepository.cpp: (WebCore::SharedWorkerScriptLoader::notifyFinished): * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::startWorkerContext): 2012-05-04 Sami Kyostila [chromium] Revert compositor layer scrolling https://bugs.webkit.org/show_bug.cgi?id=85644 Reviewed by Steve Block. * src/WebContentLayerImpl.cpp: * src/WebContentLayerImpl.h: (WebContentLayerImpl): * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::MockContentLayerDelegate::paintContents): 2012-05-04 Tommy Widenflycht MediaStream API: Make PeerConnection00's API fully compliant with the draft https://bugs.webkit.org/show_bug.cgi?id=85491 Reviewed by Adam Barth. * src/AssertMatchingEnums.cpp: 2012-05-04 Nate Chapin Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. https://bugs.webkit.org/show_bug.cgi?id=85533 Reviewed by Alexey Proskuryakov. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::FrameLoaderClientImpl): (WebKit): (WebKit::FrameLoaderClientImpl::finishedLoading): * src/FrameLoaderClientImpl.h: (WebKit::FrameLoaderClientImpl::makeRepresentation): (WebKit::FrameLoaderClientImpl::revertToProvisionalState): (FrameLoaderClientImpl): 2012-05-04 Alexander Pavlov Web Inspector: [Device Metrics] With "Fit window" option on, page contents are downscaled incorrectly https://bugs.webkit.org/show_bug.cgi?id=85510 Reviewed by Pavel Feldman. Use the RenderView width rather than FrameView contents width whenever possible. Drive-by: add protection from division-by-zero (for some weird rendering states). Test: inspector/styles/device-metrics-fit-window.html * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor): (WebKit::DeviceMetricsSupport::scaledEmulatedFrameSize): 2012-05-03 W. James MacLean [chromium] Revise touchpad fling curve to use exponential curve, to improve feel and small fling performance. https://bugs.webkit.org/show_bug.cgi?id=85530 Reviewed by Kenneth Russell. * tests/PlatformGestureCurveTest.cpp: 2012-05-03 Dimitri Glazkov [Chromium] Use correct define in the features.gypi https://bugs.webkit.org/show_bug.cgi?id=85520 Patch by Ben Goodger. Reviewed by Tony Chang. * features.gypi: Replaced use_aura with a more appropriate chromeos 2012-05-03 Antony Sargent Add methods to create WebArrayBuffer/WebArrayBufferView from v8 objects https://bugs.webkit.org/show_bug.cgi?id=84899 Reviewed by Adam Barth. * public/WebArrayBuffer.h: (WebArrayBuffer): * public/platform/WebArrayBufferView.h: (v8): (WebArrayBufferView): * src/WebArrayBuffer.cpp: (WebKit): (WebKit::WebArrayBuffer::createFromV8Value): * src/WebArrayBufferView.cpp: (WebKit): (WebKit::WebArrayBufferView::createFromV8Value): 2012-05-03 Dana Jansens [chromium] Don't add small opaque areas to the occlusion tracker's Region https://bugs.webkit.org/show_bug.cgi?id=85297 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebKitTests): (CCOcclusionTrackerTestMinimumTrackingSize): (WebKitTests::CCOcclusionTrackerTestMinimumTrackingSize::runMyTest): 2012-05-02 Jon Lee Migrate permission functions to Notification from NotificationCenter https://bugs.webkit.org/show_bug.cgi?id=80485 Reviewed by Jian Li. * src/NotificationPresenterImpl.h: (NotificationPresenterImpl): Add stub implementation of requestPermission. (WebKit::NotificationPresenterImpl::requestPermission): 2012-05-02 Dana Jansens [chromium] Don't occlude pixels in a surface that are needed for a background filter blur https://bugs.webkit.org/show_bug.cgi?id=84317 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest): (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest): (WebKitTests): (CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter): (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter::runMyTest): (CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice): (WebKitTests::CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice::runMyTest): (CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip): (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip::runMyTest): (CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter): (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter::runMyTest): (CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded): (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded::runMyTest): (CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded): (WebKitTests::CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded::runMyTest): 2012-04-18 Jon Honeycutt FrameLoaderClient::dispatchWillSendSubmitEvent() should be given more information about the form being submitted https://bugs.webkit.org/show_bug.cgi?id=84297 Reviewed by Andy Estes. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchWillSendSubmitEvent): Updated to use the FormState. * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): Updated method declaration. 2012-05-02 Joshua Bell Roll Chromium DEPS r134537 to r134581. https://bugs.webkit.org/show_bug.cgi?id=85428 Unreviewed - just a deps roll. * DEPS: 2012-05-02 Jochen Eisinger [chromium] Add WebDocument::referrerPolicy() which wraps the same method on Document https://bugs.webkit.org/show_bug.cgi?id=85201 Reviewed by Adam Barth. Embedders should use webFrame->document()->referrerPolicy() instead of webFrame->referrerPolicy(). The latter will be removed soon. * public/WebDocument.h: (WebDocument): * src/WebDocument.cpp: (WebKit::WebDocument::referrerPolicy): (WebKit): 2012-05-02 Michal Mocny [chromium] Set contents texture manager preferred memory limit based on GpuMemoryManager suggestion. https://bugs.webkit.org/show_bug.cgi?id=84270 Reviewed by Kenneth Russell. * tests/CCLayerTreeHostImplTest.cpp: * tests/LayerRendererChromiumTest.cpp: 2012-05-02 Emil A Eklund Fix usage of layout types in platform code https://bugs.webkit.org/show_bug.cgi?id=85392 Reviewed by Eric Seidel. * src/WebHitTestResult.cpp: (WebKit::WebHitTestResult::localPoint): * src/WebSurroundingText.cpp: (WebKit::WebSurroundingText::initialize): Explicitly cast WebPoint to IntPoint to avoid ambiguous conversion error. 2012-05-02 Yury Semikhatsky Web Inspector: TypeError: Cannot call method 'createLiveLocation' of undefined https://bugs.webkit.org/show_bug.cgi?id=85371 Standard extension scripts injected to the Chromium background page should have correct script data which means that context debug id should be already set on the context where they are compiled before the compilation. This patch moves assignment of context debug id earlier where it is known that no scripts have been evaluated in the context. Reviewed by Pavel Feldman. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld): (WebKit::FrameLoaderClientImpl::didCreateScriptContext): * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::didCreateScriptContext): * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): * src/WebDevToolsAgentPrivate.h: (WebDevToolsAgentPrivate): 2012-05-02 Tommy Widenflycht MediaStream API: Changing webkitGetUserMedia to take an object instead of a string https://bugs.webkit.org/show_bug.cgi?id=84850 Reviewed by Dimitri Glazkov. * public/WebUserMediaRequest.h: (WebUserMediaRequest): * src/WebUserMediaRequest.cpp: 2012-05-01 Mark Pilgrim [Chromium] Additional instances of calling histogramCustomCounts directly https://bugs.webkit.org/show_bug.cgi?id=85322 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/painting/PaintAggregator.cpp: (WebKit::PaintAggregator::invalidateRect): 2012-05-01 Min Qin use USE(NATIVE_FULLSCREEN_VIDEO) instead of ENABLE(NATIVE_FULLSCREEN_VIDEO) https://bugs.webkit.org/show_bug.cgi?id=85316 Reviewed by Kent Tamura. NATIVE_FULLSCREEN_VIDEO means the fullscreen video is implemented by native system view instead of webkit So it is more appropriate to use USE(NATIVE_FULLSCREEN_VIDEO). Just rename the flag, no new tests * features.gypi: * src/WebMediaPlayerClientImpl.cpp: (WebKit): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::enterFullScreenForElement): (WebKit::WebViewImpl::exitFullScreenForElement): 2012-05-01 Mark Pilgrim [Chromium] Additional instances of calling createAudioDevice directly https://bugs.webkit.org/show_bug.cgi?id=85321 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/AudioDestinationChromium.cpp: (WebCore::AudioDestinationChromium::AudioDestinationChromium): 2012-05-01 Mark Pilgrim [Chromium] Additional instances of calling mimeRegistry directly https://bugs.webkit.org/show_bug.cgi?id=85320 Reviewed by Eric Seidel. Part of a refactoring series. See tracking bug 82948. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::canShowMIMEType): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::supportsType): 2012-05-01 Ryosuke Niwa *Command.h files shouldn't be exported to WebKit layer https://bugs.webkit.org/show_bug.cgi?id=74778 Reviewed by Eric Seidel. * src/WebFrameImpl.cpp: * src/WebViewImpl.cpp: 2012-05-01 Julien Chaffraix WebKit test RenderTableCellDeathTest.CanSetRow is failing as of r115705 https://bugs.webkit.org/show_bug.cgi?id=85274 Reviewed by Ojan Vafai. The tests were crashing as we were creating a RenderTableCell without any RenderTableRow parent which shouldn't happen inside the render tree. Using RenderTableCell to access RenderTableRow was artificial and the checks have now been moved to using a RenderTableRow directly. * WebKit.gyp: * WebKit.gypi: Added the new file. * tests/RenderTableCellTest.cpp: Removed the row index tests as they are now in the following file. * tests/RenderTableRowTest.cpp: Copied from Source/WebKit/chromium/tests/RenderTableCellTest.cpp. Changed a bit the row index tests and re-enabled them. 2012-05-01 Pavel Feldman WebKit unit tests RenderTableCellDeathTest.CanSetRow* are failing as of r115705 https://bugs.webkit.org/show_bug.cgi?id=85274 Not reviewed: test disabled. * tests/RenderTableCellTest.cpp: 2012-05-01 Pavel Feldman WebKit test RenderTableCellDeathTest.CanSetRow is failing as of r115705 https://bugs.webkit.org/show_bug.cgi?id=85274 Not reviewed: test disabled. The test is based on the standalone cell, while the new logic requires parent to be present upon the row index set. * tests/RenderTableCellTest.cpp: 2012-05-01 Hironori Bono [Chromium] Regression r113405 ContextMenuImpl does not set a misspelled word https://bugs.webkit.org/show_bug.cgi?id=85271 Reviewed by Kent Tamura. This change calls selectMisspelledWord() to get a misspelled word so Chrome can set the misspelledWord variable without selecting text. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2012-04-30 Kent Tamura [Chromium/Windows] Add LocalizedDateWin https://bugs.webkit.org/show_bug.cgi?id=84935 Reviewed by Kentaro Hara. Add test for LocaleWin.cpp. * WebKit.gypi: * tests/LocaleWinTest.cpp: Added. (msForDate): A helper function. (TEST): 2012-04-30 Julien Chaffraix Move RenderTableCell's row index to RenderTableRow https://bugs.webkit.org/show_bug.cgi?id=85229 Reviewed by Ojan Vafai. * tests/RenderTableCellTest.cpp: Updated after the refactoring. 2012-04-30 Gavin Peters [Chromium] Add thunk headers for staging Prerendering API. https://bugs.webkit.org/show_bug.cgi?id=84880 Reviewed by Adam Barth. These empty headers will be replaced by the actual API when Bug 85005 is commited. * WebKit.gyp: * public/WebPrerendererClient.h: Added. (WebKit): (WebPrerendererClient): * public/WebView.h: (WebKit): (WebKit::WebView::setPrerendererClient): 2012-04-30 Ilya Sherman [Chromium] Fix Autofill popup visibility behavior Prevent users from interacting with invisible Autofill popups rendered outside the main frame's contents view. This is a recommit of r115400, restricted to just Autofill popups. https://bugs.webkit.org/show_bug.cgi?id=84420 Reviewed by Abhishek Arya * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): Hide popups rendered outside the main frame's contents view. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::applyAutofillSuggestions): Fix up order of operations to support immediately hiding a popup if it would not be visible 2012-04-30 Sadrul Habib Chowdhury [chromium] Disable battery-status API support. The battery-status API support should not have view-dependency. So disable it until that is fixed. https://bugs.webkit.org/show_bug.cgi?id=84499 Reviewed by Adam Barth. * features.gypi: 2012-04-30 Gavin Peters [Chromium] Remove Webkit/chromium/public/WebReferrerPolicy.h thunk. https://bugs.webkit.org/show_bug.cgi?id=84552 After http://codereview.chromium.org/10139023/ lands, this thunk is no longer needed. Reviewed by Adam Barth. * WebKit.gyp: * public/WebReferrerPolicy.h: Removed. 2012-04-29 Sam Weinig Remove BlobBuilder https://bugs.webkit.org/show_bug.cgi?id=84036 Reviewed by Anders Carlsson. * features.gypi: Keep WebKitBlobBuilder enabled for Chromium, since it has shipped it. 2012-04-30 Min Qin Expose a flag so that fullscreen video on android can work with FULLSCREEN_API https://bugs.webkit.org/show_bug.cgi?id=84414 Reviewed by Darin Fisher. On android, the fullscreen video was implemented by passing a java surfaceView to an android mediaplayer class. The implementation of that logic should happen in WebKit::WebMediaPlayer. This change makes it possble for WebViewImpl::enterFullScreenForElement() to call WebMediaPlayer->enterFullscreen(), thus solving the issue. Sorry, there is a merge error during the previous commit, resolved now No new tests. This just exposes the flag so later it can be used by android. * features.gypi: * public/WebMediaPlayer.h: (WebMediaPlayer): (WebKit::WebMediaPlayer::enterFullscreen): (WebKit::WebMediaPlayer::exitFullscreen): * src/WebMediaPlayerClientImpl.cpp: (WebKit): (WebKit::WebMediaPlayerClientImpl::enterFullscreen): (WebKit::WebMediaPlayerClientImpl::exitFullscreen): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::enterFullScreenForElement): (WebKit::WebViewImpl::exitFullScreenForElement): 2012-04-30 Gavin Peters Unreviewed. Rolled DEPS. * DEPS: 2012-04-30 Mark Pilgrim [Chromium] Remove PlatformSupport::loadPlatformAudioResource, call loadResource directly https://bugs.webkit.org/show_bug.cgi?id=85193 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-30 Mark Pilgrim [Chromium] Call defaultLocale directly https://bugs.webkit.org/show_bug.cgi?id=85192 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call callOnMainThread directly https://bugs.webkit.org/show_bug.cgi?id=85190 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/ChromiumThreading.cpp: (WTF::ChromiumThreading::callOnMainThread): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call monotonicallyIncreasingTime directly https://bugs.webkit.org/show_bug.cgi?id=85189 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/ChromiumCurrentTime.cpp: (WTF::monotonicallyIncreasingTime): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call userAgent directly https://bugs.webkit.org/show_bug.cgi?id=85188 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::userAgent): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call currentTime directly https://bugs.webkit.org/show_bug.cgi?id=85187 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/ChromiumCurrentTime.cpp: (WTF::currentTime): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call currentThread directly https://bugs.webkit.org/show_bug.cgi?id=85185 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/CCThreadImpl.cpp: (WebKit::CCThreadImpl::CCThreadImpl): * src/WebCompositorImpl.cpp: (WebKit::WebCompositorImpl::initialize): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call createThread directly https://bugs.webkit.org/show_bug.cgi?id=85186 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::runTest): * tests/Canvas2DLayerChromiumTest.cpp: (Canvas2DLayerChromiumTest::fullLifecycleTest): 2012-04-30 Mark Pilgrim [Chromium] Use new syntax to call createSocketStreamHandle directly https://bugs.webkit.org/show_bug.cgi?id=85184 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/SocketStreamHandle.cpp: (WebCore::SocketStreamHandleInternal::connect): 2012-04-29 Mark Pilgrim [Chromium] Call highUsageDeltaMB directly https://bugs.webkit.org/show_bug.cgi?id=84844 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-28 Ilya Tikhonovsky Web Inspector: InspectorFrontendHost.append has to be implemented for saving heap snapshots. https://bugs.webkit.org/show_bug.cgi?id=85137 We can save a file with help of InspectorFrontendHost.save method, but it is suitable only for relatively small portions of data and can't process the 6Gb heap snapshot. These methods just pass the url and content into embedder. Reviewed by Yury Semikhatsky. * public/WebDevToolsFrontendClient.h: (WebKit::WebDevToolsFrontendClient::append): * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::append): (WebKit): * src/InspectorFrontendClientImpl.h: (InspectorFrontendClientImpl): 2012-04-28 Andrey Kosyakov [chromium] add frame boundaries instrumentation for the threaded compositor https://bugs.webkit.org/show_bug.cgi?id=83926 - call instrumentBeginFrame() in a callback invoked by CCThreadProxy to fix frame marks in WebInspector's timeline panel, currently broken for threaded compositor. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::willBeginFrame): 2012-04-27 Sheriff Bot Unreviewed, rolling out r115529. http://trac.webkit.org/changeset/115529 https://bugs.webkit.org/show_bug.cgi?id=85125 Broke Clang build (Requested by enne on #webkit). * WebKit.gypi: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * tests/WebMediaPlayerClientImplTest.cpp: Removed. 2012-04-27 Mark Pilgrim [Chromium] Call highMemoryUsageMB directly https://bugs.webkit.org/show_bug.cgi?id=84841 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-27 Adrienne Walker [chromium] Allow WebMediaPlayerClientImpl to switch clients https://bugs.webkit.org/show_bug.cgi?id=85093 Reviewed by James Robinson. WebVideoFrameProviderClient has a 1:1 relationship with a WebVideoFrameProvider. The client here is CCVideoLayerImpl and the provider is WebMediaPlayerClientImpl. If the provider gets a new client, then the old client needs to be informed to stop using the provider. If this doesn't happen, then the old client will have an unsafe pointer to the provider, will not get informed if the provider gets deleted, and the client will crash when it dereferences the provider pointer trying to tell the provider that its client is going away. Test: WebMediaPlayerClientImplTest.InitialNullVideoClient WebMediaPlayerClientImplTest.SetAndUnsetVideoClient WebMediaPlayerClientImplTest.DestroyProvider WebMediaPlayerClientImplTest.SetMultipleVideoClients * WebKit.gypi: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * tests/WebMediaPlayerClientImplTest.cpp: Added. (WebKit): (FakeWebMediaPlayerClientImpl): (WebKit::FakeWebMediaPlayerClientImpl::create): (WebKit::FakeWebMediaPlayerClientImpl::FakeWebMediaPlayerClientImpl): (FakeVideoFrameProviderClient): (WebKit::FakeVideoFrameProviderClient::create): (WebKit::FakeVideoFrameProviderClient::~FakeVideoFrameProviderClient): (WebKit::FakeVideoFrameProviderClient::didReceiveFrame): (WebKit::FakeVideoFrameProviderClient::didUpdateMatrix): (WebKit::FakeVideoFrameProviderClient::stopUsingProvider): (WebKit::FakeVideoFrameProviderClient::provider): (WebKit::FakeVideoFrameProviderClient::FakeVideoFrameProviderClient): (WebKit::TEST): 2012-04-27 Tony Chang [chromium] Fix compiler warning in CCSchedulerTest.cpp with gcc 4.6.3 https://bugs.webkit.org/show_bug.cgi?id=85110 Reviewed by James Robinson. Using gcc 4.6.3 (default on Precise), I get: third_party/WebKit/Source/WebKit/chromium/tests/CCSchedulerTest.cpp:188:5: error: converting 'false' to pointer type for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null] * tests/CCSchedulerTest.cpp: (WebKitTests::TEST): 2012-04-27 Nat Duca Expose high-resolution on requestAnimationFrame callback https://bugs.webkit.org/show_bug.cgi?id=66683 This changes requestAnimationFrame's animationStartTime argument to be a high resolution DOM timestamp, per disucssion here: http://lists.w3.org/Archives/Public/public-web-perf/2012Apr/0004.html Reviewed by James Robinson. * src/PageWidgetDelegate.cpp: (WebKit::PageWidgetDelegate::animate): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::updateAnimations): 2012-04-27 Mark Pilgrim [Chromium] Call lowMemoryUsageMB directly https://bugs.webkit.org/show_bug.cgi?id=84840 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-27 Ian Vollick [chromium] Add pause and resume support for accelerated css animations. https://bugs.webkit.org/show_bug.cgi?id=84601 Reviewed by James Robinson. * tests/CCActiveAnimationTest.cpp: (WebCore::TEST): (WebCore): * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-04-26 James Robinson [chromium] Separate IOSurface layer type from texture layers https://bugs.webkit.org/show_bug.cgi?id=85030 Reviewed by Adrienne Walker. Update WebPluginContainerImpl to support having either a texture or IOSurface layer (but never both) depending on the plugin's contents. * WebKit.gyp: * src/WebExternalTextureLayer.cpp: * src/WebIOSurfaceLayer.cpp: (WebKit): (WebKit::WebIOSurfaceLayer::create): (WebKit::WebIOSurfaceLayer::setIOSurfaceProperties): (WebKit::WebIOSurfaceLayer::WebIOSurfaceLayer): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::setBackingTextureId): (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId): (WebKit::WebPluginContainerImpl::commitBackingTexture): (WebKit::WebPluginContainerImpl::setOpaque): (WebKit::WebPluginContainerImpl::platformLayer): (WebKit::WebPluginContainerImpl::WebPluginContainerImpl): * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-04-27 Hans Wennborg Speech JavaScript API: Fix Vector use failure https://bugs.webkit.org/show_bug.cgi?id=85069 Reviewed by Tony Gentilcore. Fix think-o in code copying from WebVector to Vector. * src/SpeechRecognitionClientProxy.cpp: (WebKit::SpeechRecognitionClientProxy::didReceiveResult): (WebKit::SpeechRecognitionClientProxy::didDeleteResult): * src/WebSpeechRecognitionResult.cpp: (WebKit::WebSpeechRecognitionResult::assign): 2012-04-27 Leandro Gracia Gil Selectively retrieve text around a touched point. https://bugs.webkit.org/show_bug.cgi?id=82460 Reviewed by Darin Fisher. Implements an embedding API to WebCore's SurroundingText, adding also the possibility of select and highlight the retrieved text range. * WebKit.gyp: * public/WebFrame.h: (WebFrame): * public/WebHitTestResult.h: Added. (WebCore): (WebKit): (WebHitTestResult): (WebKit::WebHitTestResult::WebHitTestResult): (WebKit::WebHitTestResult::~WebHitTestResult): * public/WebRange.h: (WebKit): (WebRange): * public/WebSurroundingText.h: Added. (WebCore): (WebKit): (WebSurroundingText): (WebKit::WebSurroundingText::WebSurroundingText): (WebKit::WebSurroundingText::~WebSurroundingText): * public/WebView.h: (WebKit): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::selectRange): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebHitTestResult.cpp: Added. (WebKit): (WebKit::WebHitTestResult::node): (WebKit::WebHitTestResult::localPoint): (WebKit::WebHitTestResult::WebHitTestResult): (WebKit::WebHitTestResult::operator=): (WebKit::WebHitTestResult::operator HitTestResult): (WebKit::WebHitTestResult::isNull): (WebKit::WebHitTestResult::assign): (WebKit::WebHitTestResult::reset): * src/WebRange.cpp: (WebKit::WebRange::textQuads): (WebKit): * src/WebSurroundingText.cpp: Added. (WebKit): (WebKit::WebSurroundingText::initialize): (WebKit::WebSurroundingText::textContent): (WebKit::WebSurroundingText::hitOffsetInTextContent): (WebKit::WebSurroundingText::rangeFromContentOffsets): (WebKit::WebSurroundingText::isNull): (WebKit::WebSurroundingText::reset): 2012-04-27 Dimitri Glazkov Unreviewed, rolling out r115463. http://trac.webkit.org/changeset/115463 https://bugs.webkit.org/show_bug.cgi?id=82460 Broke Mac build. * WebKit.gyp: * public/WebFrame.h: (WebFrame): * public/WebHitTestResult.h: Removed. * public/WebRange.h: (WebRange): * public/WebSurroundingText.h: Removed. * public/WebView.h: (WebKit): * src/WebFrameImpl.cpp: * src/WebFrameImpl.h: (WebFrameImpl): * src/WebHitTestResult.cpp: Removed. * src/WebRange.cpp: * src/WebSurroundingText.cpp: Removed. 2012-04-27 Kausalya Madhusudhanan Added a chromium webkit public header file to support different web print scaling options. https://bugs.webkit.org/show_bug.cgi?id=84608 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebPrintScalingOption.h: Added. (WebKit): 2012-04-27 Leandro Gracia Gil Selectively retrieve text around a touched point. https://bugs.webkit.org/show_bug.cgi?id=82460 Reviewed by Darin Fisher. Implements an embedding API to WebCore's SurroundingText, adding also the possibility of select and highlight the retrieved text range. * WebKit.gyp: * public/WebFrame.h: (WebFrame): * public/WebHitTestResult.h: Added. (WebCore): (WebKit): (WebHitTestResult): (WebKit::WebHitTestResult::WebHitTestResult): (WebKit::WebHitTestResult::~WebHitTestResult): * public/WebRange.h: (WebKit): (WebRange): * public/WebSurroundingText.h: Added. (WebCore): (WebKit): (WebSurroundingText): (WebKit::WebSurroundingText::WebSurroundingText): (WebKit::WebSurroundingText::~WebSurroundingText): * public/WebView.h: (WebKit): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::selectRange): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebHitTestResult.cpp: Added. (WebKit): (WebKit::WebHitTestResult::node): (WebKit::WebHitTestResult::localPoint): (WebKit::WebHitTestResult::WebHitTestResult): (WebKit::WebHitTestResult::operator=): (WebKit::WebHitTestResult::operator HitTestResult): (WebKit::WebHitTestResult::isNull): (WebKit::WebHitTestResult::assign): (WebKit::WebHitTestResult::reset): * src/WebRange.cpp: (WebKit::WebRange::textQuads): (WebKit): * src/WebSurroundingText.cpp: Added. (WebKit): (WebKit::WebSurroundingText::initialize): (WebKit::WebSurroundingText::textContent): (WebKit::WebSurroundingText::hitOffsetInTextContent): (WebKit::WebSurroundingText::rangeFromContentOffsets): (WebKit::WebSurroundingText::isNull): (WebKit::WebSurroundingText::reset): 2012-04-27 Sheriff Bot Unreviewed, rolling out r115436. http://trac.webkit.org/changeset/115436 https://bugs.webkit.org/show_bug.cgi?id=85079 "broke the build" (Requested by tonyg-cr on #webkit). * WebKit.gyp: * public/WebReferrerPolicy.h: Added. 2012-04-27 Gavin Peters Add new ENABLE_LINK_PRERENDER define to control the Prerendering API https://bugs.webkit.org/show_bug.cgi?id=84871 Reviewed by Adam Barth. Prerendering is currently covered by the ENABLE_LINK_PREFETCH macro, but the new Prerendering API separates it from prefetching. Having separate include guards lets ports enable prefetching, a relatively easy change, without needing to build the infrastructure for prerendering, which is considerably more complicated. 2012-04-27 Dimitri Glazkov Unreviewed, rolling out r115433. http://trac.webkit.org/changeset/115433 https://bugs.webkit.org/show_bug.cgi?id=85052 Enable unit tests again. * tests/PopupMenuTest.cpp: (WebKit::TEST_F): 2012-04-27 Dimitri Glazkov Unreviewed, rolling out r115421. http://trac.webkit.org/changeset/115421 https://bugs.webkit.org/show_bug.cgi?id=85052 Enable unit tests again. * tests/PopupMenuTest.cpp: (WebKit::TEST_F): 2012-04-27 Dimitri Glazkov Unreviewed, rolling out r115400. http://trac.webkit.org/changeset/115400 https://bugs.webkit.org/show_bug.cgi?id=84420 Broke unit tests. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::applyAutofillSuggestions): 2012-04-27 Gavin Peters [Chromium] Remove Webkit/chromium/public/WebReferrerPolicy.h thunk. https://bugs.webkit.org/show_bug.cgi?id=84552 After http://codereview.chromium.org/10139023/ lands, this thunk is no longer needed. Reviewed by Adam Barth. * WebKit.gyp: * public/WebReferrerPolicy.h: Removed. 2012-04-27 Marcus Bulach [chromium] Disables a few more webkit_unittests. https://bugs.webkit.org/show_bug.cgi?id=85052 Unreviewed build fix. Failing on Windows bots, probably due to r115400. * tests/PopupMenuTest.cpp: (WebKit::TEST_F): 2012-04-27 Marcus Bulach [chromium] Disables a few webkit_unittests. https://bugs.webkit.org/show_bug.cgi?id=85052 Unreviewed build fix. * tests/PopupMenuTest.cpp: (WebKit::TEST_F): 2012-04-24 James Robinson [chromium] Move ProgramBinding definitions to LayerRendererChromium and normalize naming https://bugs.webkit.org/show_bug.cgi?id=84808 Reviewed by Adrienne Walker. Add some includes needed by this test that were previously picked up by upstream headers. * tests/CCLayerTreeHostImplTest.cpp: 2012-04-26 Ilya Sherman [Chromium] Security: Autofill info can be captured by innocuous social engineering Prevent users from interacting with invisible popups rendered outside the main frame's contents view. https://bugs.webkit.org/show_bug.cgi?id=84420 https://code.google.com/p/chromium/issues/detail?id=122925 Reviewed by Kent Tamura. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::popupOpened): Hide popups rendered outside the main frame's contents view. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::applyAutofillSuggestions): Fix up order of operations to support immediately hiding a popup if it would not be visible 2012-04-26 Dana Jansens [chromium] Some background filters require inflating damage on the surface behind them https://bugs.webkit.org/show_bug.cgi?id=84479 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-04-26 Aaron Colwell Cleanup WebMediaPlayer enum values that didn't match Chromium style guidelines https://bugs.webkit.org/show_bug.cgi?id=84998 Reviewed by Darin Fisher. * public/WebMediaPlayer.h: (WebKit::WebMediaPlayer::generateKeyRequest): (WebKit::WebMediaPlayer::addKey): (WebKit::WebMediaPlayer::cancelKeyRequest): 2012-04-26 Shawn Singh [chromium] re-implement backFaceVisibility to avoid dealing with perspective w<0 problem https://bugs.webkit.org/show_bug.cgi?id=84059 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/CCMathUtilTest.cpp: Added. (WebCore): (WebCore::TEST): 2012-04-26 Justin Novosad [Chromium] Single buffered canvas layers with the threaded compositor https://bugs.webkit.org/show_bug.cgi?id=80540 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::AcquireLayerTextures): (CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::dispatchAcquireLayerTextures): (WTF::TEST_F): (WTF): (CCLayerTreeHostTestWriteLayersRedraw): (WTF::CCLayerTreeHostTestWriteLayersRedraw::CCLayerTreeHostTestWriteLayersRedraw): (WTF::CCLayerTreeHostTestWriteLayersRedraw::beginTest): (WTF::CCLayerTreeHostTestWriteLayersRedraw::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestWriteLayersRedraw::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestWriteLayersRedraw::afterTest): (CCLayerTreeHostTestWriteLayersAfterVisible): (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::CCLayerTreeHostTestWriteLayersAfterVisible): (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::beginTest): (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::afterTest): * tests/CCSchedulerTest.cpp: (WebKitTests::TEST): (WebKitTests): * tests/Canvas2DLayerChromiumTest.cpp: (Canvas2DLayerChromiumTest::fullLifecycleTest): 2012-04-26 Joshua Bell [Chromium] IndexedDB: Use WebIDBKeyPath type for key paths in WebKit API https://bugs.webkit.org/show_bug.cgi?id=84631 Reviewed by James Robinson. WebIDBKeyPath was previously a utility class for parsing key paths into components, but the API exposed key paths only as nullable strings. To support array-type keypaths, WebIDBKeyPath becomes a value class with type flags. For landing, several legacy methods are retained but will be cleaned up after all callers have been updated, tracked as the bug: http://webkit.org/b/84207 * public/WebIDBDatabase.h: (WebKit::WebIDBDatabase::createObjectStore): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch. * public/WebIDBIndex.h: (WebKit::WebIDBIndex::keyPath): Calls keyPathString if not overridden. (WebKit::WebIDBIndex::keyPathString): Comment change. * public/WebIDBKeyPath.h: (WebKit::WebIDBKeyPath::create): Overload added for creating array-type key paths. (WebKit::WebIDBKeyPath::array): Accessor for array-type key paths. (WebKit::WebIDBKeyPath::operator const WebString ): Temporary, for compatibility. * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::keyPath): Calls keyPathString if not overridden. (WebKit::WebIDBObjectStore::keyPathString): Comment change. (WebKit::WebIDBObjectStore::createIndex): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch. * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): WebIDBKeyPath overloads for these methods added, delegate to WebString version until implementers are updated. (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath): (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue): * src/IDBIndexBackendProxy.cpp: (WebKit::IDBIndexBackendProxy::keyPath): Returns the string version until WebCore is updated. * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::keyPath): Returns the string version until WebCore is updated. * src/WebIDBDatabaseImpl.h: (WebIDBDatabaseImpl): Add createObjectStore overload for WebIDBKeyPath type, delegates to WebString version until callers are updated. * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::keyPath): Implements the new WebIDBKeyPath return type. (WebKit): * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): Implements the new WebIDBKeyPath return type. * src/WebIDBKeyPath.cpp: (WebKit::WebIDBKeyPath::create): Support null key path types. (WebKit::WebIDBKeyPath::createNull): New API. (WebKit): (WebKit::WebIDBKeyPath::isValid): New API. (WebKit::WebIDBKeyPath::type): New API. (WebKit::WebIDBKeyPath::string): New API (value accessor). (WebKit::WebIDBKeyPath::WebIDBKeyPath): (WebKit::WebIDBKeyPath::assign): This API will be removed. (WebKit::WebIDBKeyPath::operator const WTF::Vector&): Ensure it is non-null - only used in copy constructor which guards against this. * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::keyPath): Implement the new WebIDBKeyPath return type. (WebKit): * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): Add createIndex overload for WebIDBKeyPath type, delegates to WebString version until callers are updated. 2012-04-26 Alexander Pavlov Web Inspector: [CRASH] WebViewImpl::setZoomLevel when emulating device metrics https://bugs.webkit.org/show_bug.cgi?id=84938 Check for the presence of a live Frame/FrameView before invoking methods that depend on them. Reviewed by Yury Semikhatsky. * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::restore): 2012-04-25 Dana Jansens [chromium] Remove guarded virtual methods from WebFilterOperation API https://bugs.webkit.org/show_bug.cgi?id=84926 Reviewed by James Robinson. * src/AssertMatchingEnums.cpp: 2012-04-25 James Robinson [chromium] REGRESSION(112286) Compositor initialization blocks for program compilation / linking https://bugs.webkit.org/show_bug.cgi?id=84822 Reviewed by Adrienne Walker. Add a test that makes sure we don't make blocking calls during LayerRendererChromium initialization. * tests/LayerRendererChromiumTest.cpp: (ForbidSynchronousCallContext): (ForbidSynchronousCallContext::ForbidSynchronousCallContext): (ForbidSynchronousCallContext::finish): (ForbidSynchronousCallContext::getActiveAttrib): (ForbidSynchronousCallContext::getActiveUniform): (ForbidSynchronousCallContext::getAttachedShaders): (ForbidSynchronousCallContext::getAttribLocation): (ForbidSynchronousCallContext::getBooleanv): (ForbidSynchronousCallContext::getBufferParameteriv): (ForbidSynchronousCallContext::getContextAttributes): (ForbidSynchronousCallContext::getError): (ForbidSynchronousCallContext::getFloatv): (ForbidSynchronousCallContext::getFramebufferAttachmentParameteriv): (TEST): 2012-04-25 Alec Flett IndexedDB: implement cursor.advance() https://bugs.webkit.org/show_bug.cgi?id=84174 Reviewed by Ojan Vafai. Hook up chromium IPC to IDBCursor.advance(). * src/IDBCursorBackendProxy.cpp: (WebKit::IDBCursorBackendProxy::advance): (WebKit): * src/IDBCursorBackendProxy.h: (IDBCursorBackendProxy): * src/WebIDBCursorImpl.cpp: (WebKit::WebIDBCursorImpl::advance): 2012-04-25 Alpha Lam Unreviewed, rolling out r115262. http://trac.webkit.org/changeset/115262 https://bugs.webkit.org/show_bug.cgi?id=84631 r115262 is causing link error in WebKit Win Builder (dbg) * public/WebIDBDatabase.h: (WebKit::WebIDBDatabase::createObjectStore): * public/WebIDBIndex.h: (WebKit::WebIDBIndex::keyPath): (WebKit::WebIDBIndex::keyPathString): * public/WebIDBKeyPath.h: (WebKit): (WebIDBKeyPath): * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::keyPath): (WebKit::WebIDBObjectStore::keyPathString): (WebKit::WebIDBObjectStore::createIndex): * public/platform/WebKitPlatformSupport.h: (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath): (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue): * src/IDBIndexBackendProxy.cpp: (WebKit::IDBIndexBackendProxy::keyPath): * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::keyPath): * src/WebIDBDatabaseImpl.h: (WebIDBDatabaseImpl): * src/WebIDBIndexImpl.cpp: * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): * src/WebIDBKeyPath.cpp: (WebKit::WebIDBKeyPath::create): (WebKit::WebIDBKeyPath::assign): (WebKit::WebIDBKeyPath::operator const WTF::Vector&): * src/WebIDBObjectStoreImpl.cpp: * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): (WebKit::WebIDBObjectStoreImpl::createIndex): 2012-04-24 Adrienne Walker [chromium] Prevent CCLayerImpl::willDraw/didDraw mismatches https://bugs.webkit.org/show_bug.cgi?id=84812 Reviewed by James Robinson. Update all tests to call CCLayerTreeHostImpl::didDrawAllLayers if they call CCLayerTreeHostImpl::prepareToDraw. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::CCLayerTreeHostImplTest::initializeLayerRendererAndDrawFrame): (WebKitTests::TEST_F): 2012-04-25 Joshua Bell [Chromium] IndexedDB: Use WebIDBKeyPath type for key paths in WebKit API https://bugs.webkit.org/show_bug.cgi?id=84631 Reviewed by James Robinson. WebIDBKeyPath was previously a utility class for parsing key paths into components, but the API exposed key paths only as nullable strings. To support array-type keypaths, WebIDBKeyPath becomes a value class with type flags. For landing, several legacy methods are retained but will be cleaned up after all callers have been updated, tracked as the bug: http://webkit.org/b/84207 * public/WebIDBDatabase.h: (WebKit::WebIDBDatabase::createObjectStore): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch. * public/WebIDBIndex.h: (WebKit::WebIDBIndex::keyPath): Calls keyPathString if not overridden. (WebKit::WebIDBIndex::keyPathString): Comment change. * public/WebIDBKeyPath.h: (WebKit::WebIDBKeyPath::create): Overload added for creating array-type key paths. (WebKit::WebIDBKeyPath::array): Accessor for array-type key paths. (WebKit::WebIDBKeyPath::operator const WebString ): Temporary, for compatibility. * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::keyPath): Calls keyPathString if not overridden. (WebKit::WebIDBObjectStore::keyPathString): Comment change. (WebKit::WebIDBObjectStore::createIndex): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch. * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): WebIDBKeyPath overloads for these methods added, delegate to WebString version until implementers are updated. (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath): (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue): * src/IDBIndexBackendProxy.cpp: (WebKit::IDBIndexBackendProxy::keyPath): Returns the string version until WebCore is updated. * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::keyPath): Returns the string version until WebCore is updated. * src/WebIDBDatabaseImpl.h: (WebIDBDatabaseImpl): Add createObjectStore overload for WebIDBKeyPath type, delegates to WebString version until callers are updated. * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::keyPath): Implements the new WebIDBKeyPath return type. (WebKit): * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): Implements the new WebIDBKeyPath return type. * src/WebIDBKeyPath.cpp: (WebKit::WebIDBKeyPath::create): Support null key path types. (WebKit::WebIDBKeyPath::createNull): New API. (WebKit): (WebKit::WebIDBKeyPath::isValid): New API. (WebKit::WebIDBKeyPath::type): New API. (WebKit::WebIDBKeyPath::string): New API (value accessor). (WebKit::WebIDBKeyPath::WebIDBKeyPath): (WebKit::WebIDBKeyPath::assign): This API will be removed. (WebKit::WebIDBKeyPath::operator const WTF::Vector&): Ensure it is non-null - only used in copy constructor which guards against this. * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::keyPath): Implement the new WebIDBKeyPath return type. (WebKit): * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): Add createIndex overload for WebIDBKeyPath type, delegates to WebString version until callers are updated. 2012-04-25 Ian Vollick [chromium] Add support for animation finished events. https://bugs.webkit.org/show_bug.cgi?id=84454 Reviewed by James Robinson. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::notifyAnimationFinished): (WTF::TEST_F): (WTF): (CCLayerTreeHostTestAnimationFinishedEvents): (WTF::CCLayerTreeHostTestAnimationFinishedEvents::CCLayerTreeHostTestAnimationFinishedEvents): (WTF::CCLayerTreeHostTestAnimationFinishedEvents::beginTest): (WTF::CCLayerTreeHostTestAnimationFinishedEvents::notifyAnimationFinished): (WTF::CCLayerTreeHostTestAnimationFinishedEvents::afterTest): 2012-04-25 Ian Vollick [chromium] Do not clobber synchronized start times. https://bugs.webkit.org/show_bug.cgi?id=84605 Reviewed by James Robinson. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests): (WebKitTests::TEST): 2012-04-25 Mark Pilgrim [Chromium] Call actualMemoryUsageMB directly https://bugs.webkit.org/show_bug.cgi?id=84837 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-25 Alexis Menard Rename CSSStyleSelector files to StyleResolver. https://bugs.webkit.org/show_bug.cgi?id=84814 Reviewed by Antti Koivisto. Rename CSSStyleSelector files to match the new class name StyleResolver. Update the includes all over the code base to the new name. * src/AutofillPopupMenuClient.cpp: * src/WebViewImpl.cpp: 2012-04-25 Gavin Peters [Chromium] Fix some conditional compilation logic in Platform https://bugs.webkit.org/show_bug.cgi?id=83798 Reviewed by Darin Fisher. * tests/WebFrameTest.cpp: (WebKit::TestReloadDoesntRedirectWebFrameClient::cancelledError): 2012-04-25 Yury Semikhatsky Web Inspector: move HeapSnapshotLoader into a separate file https://bugs.webkit.org/show_bug.cgi?id=84860 Extracted HeapSnapshotLoader into its own file. Reviewed by Pavel Feldman. * WebKit.gyp: 2012-04-25 Ian Vollick [chromium] Animations waiting for a synchronized start time should never be marked finished. https://bugs.webkit.org/show_bug.cgi?id=84519 Reviewed by James Robinson. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-04-25 Gavin Peters Move WebReferrerPolicy.h from WebKit to Platform https://bugs.webkit.org/show_bug.cgi?id=84539 Reviewed by Adam Barth. * WebKit.gyp: * public/WebContextMenuData.h: * public/WebFrame.h: * public/WebReferrerPolicy.h: * public/WebSecurityPolicy.h: * public/platform/WebReferrerPolicy.h: Copied from Source/WebKit/chromium/public/WebReferrerPolicy.h. * src/AssertMatchingEnums.cpp: 2012-04-24 Dana Jansens [chromium] Unbounded draws should use clip to limit their damage to opaque tracking https://bugs.webkit.org/show_bug.cgi?id=84494 Reviewed by Adrienne Walker. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): (WebCore): 2012-04-24 Dana Jansens [chromium] Image masks are considered opaque incorrectly https://bugs.webkit.org/show_bug.cgi?id=84275 Reviewed by Adrienne Walker. * tests/PlatformContextSkiaTest.cpp: (WebCore): (WebCore::TEST): 2012-04-24 Alexis Menard Replace occurences of style selector from variables and methods names by style resolver. https://bugs.webkit.org/show_bug.cgi?id=84765 Reviewed by Andreas Kling. Rename methods and variables to follow the new name StyleResolver. It requires to update the local variables, methods parameters, and function names to match the new name and to remove the concept of "selector" to avoid clashing with the CSS concept. The next and last patch will be to rename CSSStyleSelector file and update the includes. * src/AutofillPopupMenuClient.cpp: (WebKit::AutofillPopupMenuClient::fontSelector): (WebKit::AutofillPopupMenuClient::initialize): * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth): (WebKit::DeviceMetricsSupport::applySizeOverrideInternal): 2012-04-24 Kent Tamura [Chromium] Implement WebCore::dateFormat{DayInMonth,Month,Year}Text() https://bugs.webkit.org/show_bug.cgi?id=84683 Reviewed by Dimitri Glazkov. * public/platform/WebLocalizedString.h: Add DateFormat{DayInMonth,Month,Year}Label * src/LocalizedStrings.cpp: (WebCore::dateFormatYearText): Implemented. (WebCore::dateFormatMonthText): ditto. (WebCore::dateFormatDayInMonthText): ditto. 2012-04-24 Tommy Widenflycht MediaStream API: Create a new flag for PeerConnection https://bugs.webkit.org/show_bug.cgi?id=84723 Reviewed by Dimitri Glazkov. To allow Chrome to make the GetUserMedia functionality available by default we need another flag for the PeerConnection related parts. This new flag is in addition to the general media stream flag, and both need to be enabled for PeerConnection object creation. * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enablePeerConnection): (WebKit): (WebKit::WebRuntimeFeatures::isPeerConnectionEnabled): 2012-04-24 Sami Kyostila [chromium] Don't keep pointers to released layer tree https://bugs.webkit.org/show_bug.cgi?id=84715 Reviewed by Adrienne Walker. Added new unit test to check that we can keep scrolling even if the layer tree is replaced from under us. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-04-24 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-04-24 Sheriff Bot Unreviewed, rolling out r115000. http://trac.webkit.org/changeset/115000 https://bugs.webkit.org/show_bug.cgi?id=84703 Breaks webkit_unit_tests on Mac in Chromium: http://build.chromium.org/p/chromium.webkit/builders/Webkit%20Mac10.6/builds/15157 (Requested by mnaganov on #webkit). * tests/PlatformContextSkiaTest.cpp: (WebCore): (WebCore::TEST): 2012-04-23 Dana Jansens [chromium] Image masks are considered opaque incorrectly https://bugs.webkit.org/show_bug.cgi?id=84275 Reviewed by Adrienne Walker. * tests/PlatformContextSkiaTest.cpp: (WebCore): (WebCore::TEST): 2012-04-23 Kent Tamura Show the format indicator in a date field https://bugs.webkit.org/show_bug.cgi?id=83872 Reviewed by Hajime Morita. * src/LocalizedStrings.cpp: (WebCore::dateFormatYearText): Added a stub. (WebCore::dateFormatMonthText): ditto. (WebCore::dateFormatDayInMonthText): ditto. 2012-04-23 Michael Nordman [chromium] DomStorage event handling mods. https://bugs.webkit.org/show_bug.cgi?id=84387 Events are currently handled inconsistently. The dispatch of some events are initiated from within webkit/webcore, the dispatch of other events are initiated from the outside via the WebKit::WebStorageEventDispatcher interface. The existing WebStorageEventDispatcher is not expressive enough to handle initiation all events from the outside. There's a chunk of nearly replicated code in there that shouldn't be. The existing code has several FIXMEs related to making this better. The current state of things in webkit/webcore is also blocking development of some overall performance improvements to chromium's implemention of this feature (getting rid of sync ipcs for each access and adding a renderer-side caching layer). To facilitate the perf improvements, this patch adds WebKit API to allow all DomStorage events to be initiated from the outside. This is needed because there will be an async latency between setting an item and receiving the 'oldValue' from the main browser process which is required to raise the mutation event. This is the first of a multi-sided sequence of patches to make this transition. wkpatch 1: add the new wider WebKit API and impl crpatch 2: start using the new wider WebKit API wkpatch 3: cleanup, delete the old WebKit API and impl xxxxxxx 4/5: cleanup, remove extra params from new API whose only purpose was to allow the transition Reviewed by Dimitri Glazkov. * public/WebStorageEventDispatcher.h: Add new API to dispatch events. * public/WebStorageNamespace.h: Add new API to test for namespace equality. * src/StorageAreaProxy.cpp: (WebCore::StorageAreaProxy::dispatchLocalStorageEvent): implementation of the new API (WebCore::StorageAreaProxy::dispatchSessionStorageEvent): implementation of the new API (WebCore::StorageAreaProxy::IsEventSource): a helper method (WebCore::StorageAreaProxy::FindPageWithSessionStorageNamespace): a helper method * src/StorageAreaProxy.h: * src/StorageEventDispatcherImpl.cpp: added a FIXME comment to delete soon * src/StorageNamespaceProxy.cpp: (WebCore::StorageNamespaceProxy::IsSameNamespace): plumbing to call the new API * src/StorageNamespaceProxy.h: * src/WebStorageEventDispatcherImpl.cpp: (WebKit::WebStorageEventDispatcher::dispatchLocalStorageEvent): plumbing to call the new impl (WebKit::WebStorageEventDispatcher::dispatchSessionStorageEvent): plumbing to call the new impl * src/WebStorageEventDispatcherImpl.h: added a FIXME comment to delete soon 2012-04-23 Kenneth Russell Change ImageData to reference Uint8ClampedArray rather than CanvasPixelArray https://bugs.webkit.org/show_bug.cgi?id=73011 Reviewed by Oliver Hunt. * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToImageData): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::doPixelReadbackToCanvas): 2012-04-23 Kent Tamura Crash when the page with a calendar picker is scrolled https://bugs.webkit.org/show_bug.cgi?id=84287 Reviewed by Hajime Morita. Use the same ownership model as WebPopupMenuImpl's. * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopupImpl::close): Clear m_widgetClient to avoid furthur access to it. deref instead of delete. (WebKit::WebPagePopupImpl::closePopup): Do not call closeWidgetSoon() if close() was already called. (WebKit::WebPagePopup::create): Add a reference. Add explanation of the ownership. * src/WebPagePopupImpl.h: (WebPagePopupImpl): Make this RefCounted. Make the destuctor public. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): No need to clear m_pagePopup explicitly. (WebKit::WebViewImpl::openPagePopup): Need to use .get() because m_pagePopup is a RefPtr. (WebKit::WebViewImpl::closePagePopup): ditto. (WebKit::WebViewImpl::hidePopups): ditto. * src/WebViewImpl.h: Make m_pagePopup a RefPtr. 2012-04-18 James Robinson [chromium] Use TextureLayerChromium for WebGL content instead of a dedicated layer type https://bugs.webkit.org/show_bug.cgi?id=84311 Reviewed by Adrienne Walker. * WebKit.gypi: * src/WebExternalTextureLayer.cpp: (WebKit::WebExternalTextureLayer::create): * src/WebLayer.cpp: * tests/WebGLLayerChromiumTest.cpp: Removed. * tests/WebLayerTest.cpp: 2012-04-23 Alec Flett IndexedDB: remove IDB(Index|ObjectStore)BackendImpl::get/getKey for IDBKey https://bugs.webkit.org/show_bug.cgi?id=84285 Reviewed by Dimitri Glazkov. This is old code supporting IDBKey-based lookup, supplanted by IDBKeyRange. Now that chromium IPC/proxy code has landed, these functions can be removed. * public/WebIDBIndex.h: * public/WebIDBObjectStore.h: * src/IDBIndexBackendProxy.cpp: * src/IDBIndexBackendProxy.h: (IDBIndexBackendProxy): * src/IDBObjectStoreBackendProxy.cpp: * src/IDBObjectStoreBackendProxy.h: (IDBObjectStoreBackendProxy): * src/WebIDBIndexImpl.cpp: * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): * src/WebIDBObjectStoreImpl.cpp: * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): 2012-04-23 Eriq Augustine Return value from executed script in Chromium. https://bugs.webkit.org/show_bug.cgi?id=79851 Reviewed by Adam Barth. Providing a variant of evaluateScriptInIsolatedWorld that returns the value of the evaluated script. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::executeScriptInIsolatedWorldAndReturnValues): (WebKit): * src/WebFrameImpl.h: (WebKit): (WebFrameImpl): 2012-04-23 Raymond Toy Move AudioDestinationChromium FIFO class to its own class. https://bugs.webkit.org/show_bug.cgi?id=84058 Reviewed by Chris Rogers. Remove private FIFO class and use new AudioPullFIFO class. * src/AudioDestinationChromium.cpp: (WebCore::AudioDestinationChromium::AudioDestinationChromium): * src/AudioDestinationChromium.h: (AudioDestinationChromium): 2012-04-23 Dmitry Titov Chromium roll 133422:133506. Not reviewed. * DEPS: 2012-04-23 Ian Vollick [chromium] Properly ignore unsupported animation directions. https://bugs.webkit.org/show_bug.cgi?id=84599 Reviewed by Adrienne Walker. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-04-23 Ian Vollick [chromium] When prepareToDraw fails due to animation checkerboard, we need to call setNeedsCommit https://bugs.webkit.org/show_bug.cgi?id=84520 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): 2012-04-23 Mikhail Naganov Chromium roll from r133348 to r133422. * DEPS: 2012-04-23 Gavin Peters Move ReferrerPolicy out of SecurityPolicy class into its own header in platform. https://bugs.webkit.org/show_bug.cgi?id=84516 Reviewed by Adam Barth. No change in behaviour; same enum, different class. * src/AssertMatchingEnums.cpp: * src/WebSecurityPolicy.cpp: (WebKit::WebSecurityPolicy::generateReferrerHeader): 2012-04-22 Andreas Kling Optimize Element attribute storage for the common case (no Attr objects.) Reviewed by Antti Koivisto. Remove the WebNamedNodeMap and WebAttribute API classes since they are no longer needed by chromium after . * WebKit.gyp: * public/WebAttribute.h: Removed. * public/WebElement.h: * public/WebNamedNodeMap.h: Removed. * src/WebAttribute.cpp: Removed. * src/WebElement.cpp: * src/WebNamedNodeMap.cpp: Removed. 2012-04-22 Mikhail Naganov [Chromium] Fix clang build after r114827, unreviewed. * tests/LayerTextureUpdaterTest.cpp: (WebCore::TEST): 2012-04-22 Shawn Singh [chromium] Damage Tracker needs to use CCMathUtil transforms https://bugs.webkit.org/show_bug.cgi?id=84070 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-04-21 Ryosuke Niwa Chromium roll attempt from r133173 to r133348. * DEPS: 2012-04-20 Adrienne Walker [chromium] Refactor opaque content transform out of Skia context https://bugs.webkit.org/show_bug.cgi?id=83608 Reviewed by James Robinson. Add tests for opaque tracking in LayerTextureUpdater, since the transform logic has moved there. * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate): * tests/CCTiledLayerTestCommon.h: (FakeLayerTextureUpdater): * tests/LayerTextureUpdaterTest.cpp: (WebCore::PaintFillPartialOpaque::PaintFillPartialOpaque): (PaintFillPartialOpaque): (WebCore::PaintFillPartialOpaque::operator()): (WebCore): (WebCore::TEST): * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): 2012-04-20 Dana Jansens [chromium] Remove special case for recreating layers during sync https://bugs.webkit.org/show_bug.cgi?id=84458 Reviewed by James Robinson. * tests/TreeSynchronizerTest.cpp: 2012-04-20 Alec Flett IndexedDB: Support get/getKey(keyRange) https://bugs.webkit.org/show_bug.cgi?id=83638 Reviewed by Ojan Vafai. Hook up WebKit API to the new get/getKey implementations. * src/IDBIndexBackendProxy.cpp: (WebKit::IDBIndexBackendProxy::get): (WebKit): (WebKit::IDBIndexBackendProxy::getKey): * src/IDBIndexBackendProxy.h: (IDBIndexBackendProxy): * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::getObject): (WebKit::WebIDBIndexImpl::getKey): * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::get): 2012-04-20 Brady Eidson https://bugs.webkit.org/show_bug.cgi?id=84512 Repurpose ActiveDOMObject::WillShowDialog to WillDeferLoading Reviewed by Eric Carlson. PageGroupLoadDeferrer's don't take a ReasonForSuspension argument anymore; They just use WillDeferLoading by default. * src/WebViewImpl.cpp: (WebKit::WebView::willEnterModalLoop): 2012-04-20 James Robinson [chromium] Plumb a compositor surface ready notification through to the threaded compositor https://bugs.webkit.org/show_bug.cgi?id=84305 Reviewed by Adrienne Walker. Adds a notification to WebWidget for when the compositor surface is ready to use. This exists to fix a race condition when WebKit requires that we enter compositing mode but we haven't completed initialization of the native window/etc backing the WebWidget, and we can't block for this initialization to complete without inducing deadlocks. In this situation, we proceed as usual except that we can't attempt to use the compositor context or it will fail. * public/WebWidget.h: (WebWidget): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::setSurfaceReady): (WebKit): * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopupImpl::setCompositorSurfaceReady): (WebKit): * src/WebPagePopupImpl.h: (WebPagePopupImpl): * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::setCompositorSurfaceReady): (WebKit): * src/WebPopupMenuImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setCompositorSurfaceReady): (WebKit): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * src/WebViewImpl.h: (WebViewImpl): 2012-04-20 Mark Pilgrim [Chromium] Call memoryUsageMB directly https://bugs.webkit.org/show_bug.cgi?id=84376 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-20 Adrienne Walker [chromium] Clip TransparencyWin to prevent OOM from large Skia canvas https://bugs.webkit.org/show_bug.cgi?id=84289 Reviewed by James Robinson. Add a test that would OOM if the layer wasn't clipped. Also, verify that clipping the canvas doesn't shift pixels around incorrectly. * tests/TransparencyWinTest.cpp: (WebCore::testClippedLayerKeepTransform): (WebCore): (WebCore::TEST): 2012-04-20 Brady Eidson https://bugs.webkit.org/show_bug.cgi?id=84490 PageGroupLoadDeferrer needs to take a ReasonForSuspension argument Reviewed by Anders Carlsson. * src/WebViewImpl.cpp: (WebKit::WebView::willEnterModalLoop): Pass along ActiveDOMObject::WillShowDialog, which used to be the default. 2012-04-20 James Robinson Avoid synchronously recalculating the nonFastScrollableRegion when the ScrollableArea set changes https://bugs.webkit.org/show_bug.cgi?id=84470 Reviewed by Anders Carlsson. Trigger a layout when a plugin becomes or stops being scrollable so the nonFastScrollableRegion can be updated. * src/ScrollbarGroup.cpp: (WebKit::ScrollbarGroup::scrollbarCreated): (WebKit::ScrollbarGroup::scrollbarDestroyed): 2012-04-20 Dana Jansens [chromium] Some filters require inflating damage rect in CCDamageTracker https://bugs.webkit.org/show_bug.cgi?id=84373 Reviewed by James Robinson. * tests/CCDamageTrackerTest.cpp: (WebKitTests::emulateDrawingOneFrame): (WebKitTests::TEST_F): (WebKitTests): 2012-04-20 Sami Kyostila [chromium] Don't crash when scrolling empty layer tree https://bugs.webkit.org/show_bug.cgi?id=84455 Reviewed by James Robinson. Try to scroll an empty layer tree. * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-04-20 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-04-20 'Pavel Feldman' Not reviewed: fixed chromium sanity tests for inspector via assigning last path component to entire url for parsed urls with invalid specs. * src/js/Tests.js: (.TestSuite.prototype._scriptsAreParsed): 2012-04-20 Mark Pilgrim [Chromium] Call cacheMetadata directly https://bugs.webkit.org/show_bug.cgi?id=84415 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-20 Mark Pilgrim [Chromium] Call stopSharedTimer directly https://bugs.webkit.org/show_bug.cgi?id=84418 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-19 Jeremy Mao Media Stream API: Piece of code cleanup for the chromium port https://bugs.webkit.org/show_bug.cgi?id=84328 Reviewed by Kent Tamura. Remove some deprecated interfaces. No new tests. No behavior changes. * public/WebUserMediaClient.h: Remove deprecated requestUserMedia interface. * public/WebUserMediaRequest.h: Remove deprecated requestSucceeded interface. * src/UserMediaClientImpl.cpp: (WebKit::UserMediaClientImpl::requestUserMedia): Use the requestUserMedia split sources implementation. * src/WebUserMediaRequest.cpp: Remove deprecated requestSucceeded implementation. 2012-04-19 Joshua Bell [Chromium] IndexedDB: Prep for changing keyPath return type https://bugs.webkit.org/show_bug.cgi?id=84208 To introduce Array-type key paths (see http://webkit.org/b/84207) the keyPath() accessors on WebIDBObjectStore and WebIDBIndex need to change return type. To do so requires temporarily changing the method names to keyPathString with compatibility shims (on the WebKit side) then switching the implementation in the Chromium port in a follow-up patch. Reviewed by Kent Tamura. * public/WebIDBIndex.h: (WebKit::WebIDBIndex::keyPath): (WebKit::WebIDBIndex::keyPathString): * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::keyPath): (WebKit::WebIDBObjectStore::keyPathString): * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::keyPathString): * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::keyPathString): * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): 2012-04-19 Andreas Kling [chromium] Add simplified API for iterating over a WebElement's attributes. Reviewed by Dimitri Glazkov. Add attributeCount(), attributeLocalName(index) and attributeValue(index) to the WebElement API so that call sites currently using WebNamedNodeMap can be converted, which will ultimately allow us to refactor WebCore::Attribute on . * public/WebElement.h: * src/WebElement.cpp: (WebKit::WebElement::attributeCount): (WebKit::WebElement::attributeLocalName): (WebKit::WebElement::attributeValue): 2012-04-19 Mark Pilgrim [Chromium] Call signedPublicKeyAndChallengeString directly https://bugs.webkit.org/show_bug.cgi?id=84372 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-19 Mark Pilgrim [Chromium] Call audioHardwareBufferSize directly https://bugs.webkit.org/show_bug.cgi?id=84370 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/AudioDestinationChromium.cpp: (WebCore::AudioDestinationChromium::AudioDestinationChromium): 2012-04-19 Sami Kyostila [chromium] Add tests for scrolling non-root layers in the compositor thread https://bugs.webkit.org/show_bug.cgi?id=73350 Reviewed by James Robinson. * src/WebContentLayerImpl.cpp: (WebKit::WebContentLayerImpl::didScroll): (WebKit): * src/WebContentLayerImpl.h: (WebContentLayerImpl): * tests/CCLayerImplTest.cpp: (WebCore::TEST): (WebCore): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::CCLayerTreeHostImplTest::createScrollableLayer): (CCLayerTreeHostImplTest): (WebKitTests::CCLayerTreeHostImplTest::initializeLayerRendererAndDrawFrame): (WebKitTests::TEST_F): (WebKitTests): * tests/CCLayerTreeHostTest.cpp: (WTF::TestOpacityChangeLayerDelegate::didScroll): (WTF::MockContentLayerDelegate::paintContents): (WTF::MockContentLayerDelegate::didScroll): (CCLayerTreeHostTestScrollChildLayer): (WTF::CCLayerTreeHostTestScrollChildLayer::CCLayerTreeHostTestScrollChildLayer): (WTF::CCLayerTreeHostTestScrollChildLayer::beginTest): (WTF::CCLayerTreeHostTestScrollChildLayer::applyScrollAndScale): (WTF::CCLayerTreeHostTestScrollChildLayer::beginCommitOnCCThread): (WTF::CCLayerTreeHostTestScrollChildLayer::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestScrollChildLayer::afterTest): (WTF): (WTF::TEST_F): 2012-04-19 Alec Flett IndexedDB: Stub out IDBCursor.advance for landing https://bugs.webkit.org/show_bug.cgi?id=84280 Reviewed by Dimitri Glazkov. Just a stub method so it can be implemented on chromium * public/WebIDBCursor.h: (WebKit::WebIDBCursor::advance): * src/WebIDBCursorImpl.cpp: (WebKit::WebIDBCursorImpl::advance): (WebKit): * src/WebIDBCursorImpl.h: (WebIDBCursorImpl): 2012-04-19 Mark Pilgrim [Chromium] Call mimeRegistry directly https://bugs.webkit.org/show_bug.cgi?id=84334 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::layoutTestMode): 2012-04-19 Mark Pilgrim [Chromium] Call sampleGamepads directly https://bugs.webkit.org/show_bug.cgi?id=84339 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::injectIDBKeyIntoSerializedValue): 2012-04-19 Mark Pilgrim [Chromium] Call audioHardwareSampleRate directly https://bugs.webkit.org/show_bug.cgi?id=84335 Reviewed by Kentaro Hara. Part of a refactoring series. See tracking bug 82948. * src/AudioDestinationChromium.cpp: (WebCore::AudioDestination::hardwareSampleRate): 2012-04-18 Nico Weber [chromium/mac] Fix build. https://bugs.webkit.org/show_bug.cgi?id=84314 Unreviewed, build fix after http://trac.webkit.org/changeset/114604 * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId): 2012-04-18 Hironori Bono Split SpellChecker::didCheck() to SpellChecker::didCheckSucceeded() and SpellChecker::didCheckCanceled() https://bugs.webkit.org/show_bug.cgi?id=83748 Reviewed by Ryosuke Niwa. This change adds a new API WebTextCheckingCompletion::didCancelCheckingText(), which encapsulates SpellChecker::didCheckCanceled() and implements it so Chromium can use it. * public/WebTextCheckingCompletion.h: (WebKit::WebTextCheckingCompletion::didCancelCheckingText): * src/WebTextCheckingCompletionImpl.cpp: (WebKit::WebTextCheckingCompletionImpl::didFinishCheckingText): (WebKit): (WebKit::WebTextCheckingCompletionImpl::didCancelCheckingText): * src/WebTextCheckingCompletionImpl.h: (WebTextCheckingCompletionImpl): 2012-04-16 James Robinson [chromium] Convert WebPluginContainerImpl over to use WebExternalTextureLayer https://bugs.webkit.org/show_bug.cgi?id=84120 Reviewed by Adrienne Walker. This ports WebPluginContainerImpl over to use WebExternalTextureLayer instead of directly using a *LayerChromium type for better layering and code sharing. The changes to WebPluginContainerImpl are fairly straightforward. In addition to renames I also moved some state tracking into WPCI instead of having it exposed on the interface. I also removed the WebExternalTextureLayerImpl intermediate class since it wasn't doing anything useful. * WebKit.gyp: * WebKit.gypi: * src/WebContentLayer.cpp: * src/WebExternalTextureLayer.cpp: (WebKit::WebExternalTextureLayer::create): (WebKit::WebExternalTextureLayer::setTextureId): (WebKit::WebExternalTextureLayer::setIOSurfaceProperties): (WebKit::WebExternalTextureLayer::setFlipped): (WebKit::WebExternalTextureLayer::flipped): (WebKit::WebExternalTextureLayer::setUVRect): (WebKit::WebExternalTextureLayer::uvRect): (WebKit::WebExternalTextureLayer::WebExternalTextureLayer): * src/WebExternalTextureLayerImpl.cpp: Removed. * src/WebExternalTextureLayerImpl.h: Removed. * src/WebLayer.cpp: (WebKit::WebLayer::invalidateRect): (WebKit): (WebKit::WebLayer::invalidate): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::setBackingTextureId): (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId): (WebKit::WebPluginContainerImpl::commitBackingTexture): (WebKit::WebPluginContainerImpl::setOpaque): (WebKit::WebPluginContainerImpl::platformLayer): (WebKit::WebPluginContainerImpl::WebPluginContainerImpl): * src/WebPluginContainerImpl.h: (WebCore): (WebPluginContainerImpl): * tests/WebExternalTextureLayerImplTest.cpp: Removed. * tests/WebLayerTest.cpp: 2012-04-18 Dana Jansens [chromium] Simplify occlusion tracker API by passing layer iterator data https://bugs.webkit.org/show_bug.cgi?id=84088 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (CCOcclusionTrackerTestMainThreadTypes): (CCOcclusionTrackerTestImplThreadTypes): (WebKitTests::CCOcclusionTrackerTest::CCOcclusionTrackerTest): (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc): (CCOcclusionTrackerTest): (WebKitTests::CCOcclusionTrackerTest::enterLayer): (WebKitTests::CCOcclusionTrackerTest::leaveLayer): (WebKitTests::CCOcclusionTrackerTest::visitLayer): (WebKitTests::CCOcclusionTrackerTest::enterContributingSurface): (WebKitTests::CCOcclusionTrackerTest::leaveContributingSurface): (WebKitTests::CCOcclusionTrackerTest::visitContributingSurface): (WebKitTests::CCOcclusionTrackerTest::resetLayerIterator): (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::CCOcclusionTrackerTestReplicaDoesOcclude::runMyTest): (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::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::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest): (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest): (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest): * tests/CCQuadCullerTest.cpp: (WebCore): (WebCore::makeLayer): (WebCore::appendQuads): (WebCore::TEST): 2012-04-18 James Robinson [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initialization before our surface is available https://bugs.webkit.org/show_bug.cgi?id=84301 Reviewed by Adrienne Walker. Update unit tests for new canBeginFrame bit. * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): (WebCore): * tests/CCSchedulerTest.cpp: (WebKitTests::TEST): 2012-04-18 David Reveman [Chromium] Solid color layers should respect opacity value. https://bugs.webkit.org/show_bug.cgi?id=84197 Reviewed by Adrienne Walker. * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): (CCLayerTestCommon): 2012-04-18 Mark Pilgrim [Chromium] Call prefetchDNS directly https://bugs.webkit.org/show_bug.cgi?id=84262 Reviewed by Kentaro Hara. Part of a series, see tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-04-18 Myles Maxfield Chromium compile of WebDatabase.cpp fails without SQL_DATABASE https://bugs.webkit.org/show_bug.cgi?id=84212 Reviewed by Kentaro Hara. * src/WebDatabase.cpp: (WebCore::AbstractDatabase::isSyncDatabase): 2012-04-18 Keishi Hattori [chromium] Turn on ENABLE_DATALIST for chromium https://bugs.webkit.org/show_bug.cgi?id=84118 Reviewed by Kent Tamura. * features.gypi: Turn on ENABLE_DATALIST. * src/WebInputElement.cpp: Touched to avoid build issues. No code change. 2012-04-18 Alexander Pavlov [Chromium] REGRESSION: Popup shrinks because of autocomplete https://bugs.webkit.org/show_bug.cgi?id=84139 http://code.google.com/p/chromium/issues/detail?id=123432 Do not use the PopupContainer's frameRect() to update the popup client's window rect, since PopupContainer is always positioned at (0, 0) inside the client's window rect, and the latter one is positioned relative to the screen origin. Reviewed by Kent Tamura. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::refreshAutofillPopup): 2012-04-17 Rafael Weinstein [MutationObservers] enable V8RecursionScope debug ASSERT() https://bugs.webkit.org/show_bug.cgi?id=84094 Reviewed by Ojan Vafai. This patch enables the ASSERT() which enforces usage of V8RecursionScope. * src/WebKit.cpp: (WebKit::assertV8RecursionScope): 2012-04-17 Dana Jansens [chromium] Fix gyp for WebFilterOperation.h and WebFilterOperations.h https://bugs.webkit.org/show_bug.cgi?id=84182 Reviewed by James Robinson. * WebKit.gyp: 2012-04-17 David Reveman [Chromium] Add TextureUploader which allows us to use persistent GC3D state for texture uploads. https://bugs.webkit.org/show_bug.cgi?id=83972 Reviewed by James Robinson. * tests/CCTiledLayerTestCommon.h: (FakeTextureUploader): (WebKitTests::FakeTextureUploader::uploadTexture): (WebKitTests): * tests/Canvas2DLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-04-17 Alec Flett IndexedDB: stub getKey/getObject interfaces for IDBKeyRange https://bugs.webkit.org/show_bug.cgi?id=84089 Reviewed by Dimitri Glazkov. Added stub methods on WebIDBIndex.h to cleanly land https://bugs.webkit.org/show_bug.cgi?id=83638 * public/WebIDBIndex.h: (WebKit::WebIDBIndex::getObject): (WebKit::WebIDBIndex::getKey): * src/WebIDBIndexImpl.cpp: (WebKit::WebIDBIndexImpl::getObject): (WebKit): (WebKit::WebIDBIndexImpl::getKey): * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): 2012-04-17 Aaron Colwell Add sourceAddId() & sourceRemoveId() stubs for Chromium. These are needed to bring the Media Source implementation up to date with the new 0.4 version of the Media Source spec. http://html5-mediasource-api.googlecode.com/svn/tags/0.4/draft-spec/mediasource-draft-spec.html https://bugs.webkit.org/show_bug.cgi?id=83616 Reviewed by Eric Carlson, Darin Fisher. * public/WebMediaPlayer.h: (WebKit::WebMediaPlayer::sourceAddId): (WebKit::WebMediaPlayer::sourceRemoveId): * src/AssertMatchingEnums.cpp: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::sourceAddId): (WebKit): (WebKit::WebMediaPlayerClientImpl::sourceRemoveId): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-04-17 Kent Tamura [Chromium] Calendar Picker: Popup position is wrong when there are no enough space below the target date field https://bugs.webkit.org/show_bug.cgi?id=84007 Reviewed by Hajime Morita. The popup was detached from the origin element because calendarPicker.js resizes its window. To fix this bug, we move the window position vertically when it is resized. No new tests. This is not testable in WebKit. * src/WebPagePopupImpl.cpp: (WebKit::PagePopupChromeClient::setWindowRect): If this request is just a resize and m_isPutAboveOrigin is true, update the vertical position so that the popup attaches to the origin rectangle. (WebKit::WebPagePopupImpl::WebPagePopupImpl): Initialize m_isPutAboveOrigin with false. (WebKit::WebPagePopupImpl::init): Set m_isPutAboveOrigin true. * src/WebPagePopupImpl.h: (WebPagePopupImpl): Add m_isPutAboveOrigin. 2012-04-16 Kent Tamura Rename LocalizedNumberICU.h to ICULocale.h https://bugs.webkit.org/show_bug.cgi?id=84119 Reviewed by Kentaro Hara. * tests/LocalizedNumberICUTest.cpp: Rename LocalizedNumberICU.h to ICULocale.h 2012-04-16 Dana Jansens [chromium] Expose compositor filters to Aura through WebLayer https://bugs.webkit.org/show_bug.cgi?id=80054 Reviewed by James Robinson. * WebKit.gyp: * src/WebLayer.cpp: (WebKit::WebLayer::setFilters): (WebKit): (WebKit::WebLayer::setBackgroundFilters): 2012-04-16 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-04-16 Kent Tamura [Chromium] Move popup location detection code from WebViewImpl to WebPagePopupImpl https://bugs.webkit.org/show_bug.cgi?id=84116 Reviewed by Kentaro Hara. This makes no behavior change. Just move some code. To fix Bug 84007, WebPagePopupImpl needs to know if the popup is above the target element or below the target element. * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopupImpl::init): Move some code from WebViewImpl::openPagePopup(). * src/WebPagePopupImpl.h: (WebPagePopupImpl): Rename an argument name. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::openPagePopup): Move some code to WebPagePopupImpl::init(). 2012-04-13 James Robinson [chromium] Expose WebVideoLayer to Platform API and port WebMediaPlayerClientImpl to using it https://bugs.webkit.org/show_bug.cgi?id=83963 Reviewed by Adrienne Walker. Adds implementation of WebVideoLayer and ports WebMediaPlayerClientImpl over to using it. WebMediaPlayerClientImpl still exposes a WebCore::VideoLayerChromium* to the compositor via the platformLayer() interface, but this is temporary until we can change the PlatformLayer typedef over to WebLayer. * WebKit.gyp: * src/WebContentLayer.cpp: * src/WebLayer.cpp: (WebKit::WebLayer::invalidate): (WebKit): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::readyStateChanged): (WebKit::WebMediaPlayerClientImpl::repaint): (WebKit::WebMediaPlayerClientImpl::setOpaque): (WebKit::WebMediaPlayerClientImpl::platformLayer): (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse): (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient): (WebKit::WebMediaPlayerClientImpl::supportsType): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * src/WebVideoLayer.cpp: Copied from Source/WebKit/chromium/src/WebContentLayer.cpp. (WebKit): (WebKit::WebVideoLayer::create): (WebKit::WebVideoLayer::WebVideoLayer): (WebKit::WebVideoLayer::active): 2012-04-16 Aaron Colwell Fix WebKit style violations in Chromium WebMediaPlayer.h & WebMediaPlayerClient.h https://bugs.webkit.org/show_bug.cgi?id=84046 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebMediaPlayer.h: (WebKit): * public/WebMediaPlayerClient.h: * public/WebTimeRange.h: Copied from Source/WebKit/chromium/public/WebMediaPlayerClient.h. (WebKit): (WebKit::WebTimeRange::WebTimeRange): (WebTimeRange): * src/AssertMatchingEnums.cpp: 2012-04-16 Terry Anderson [chromium] Allow WebGestureEvent to store four floating point values https://bugs.webkit.org/show_bug.cgi?id=84053 Reviewed by Darin Fisher. See bug description for an explanation of the changes made. * public/WebInputEvent.h: (WebGestureEvent): (WebKit::WebGestureEvent::WebGestureEvent): * src/WebInputEvent.cpp: (SameSizeAsWebGestureEvent): * src/WebInputEventConversion.cpp: (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder): 2012-04-16 Alexey Proskuryakov [chromium] Remove BlobRegistryProxy::createResourceHandle https://bugs.webkit.org/show_bug.cgi?id=84047 Reviewed by Nate Chapin. * src/BlobRegistryProxy.h: (BlobRegistryProxy::createResourceHandle): This function is no longer used. 2012-04-16 Raymes Khoury Fix bug in WebPluginContainer::isRectTopmost() which gave the incorrect result for a scrolled window. https://bugs.webkit.org/show_bug.cgi?id=80606 Reviewed by Darin Fisher. * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::isRectTopmost): 2012-04-15 Keishi Hattori Introduce MenuItemID to autofill popup https://bugs.webkit.org/show_bug.cgi?id=83777 Introducing MenuItemIDs because we want to add multiple separators and need to identify non-autofill menu items without resorting to the separator position. Reviewed by Kent Tamura. * public/WebAutofillClient.h: (WebKit::WebAutofillClient::didAcceptAutofillSuggestion): Changed uniqueID to itemID because they aren't unique. (WebKit::WebAutofillClient::didSelectAutofillSuggestion): * public/WebView.h: (WebView): * src/AutofillPopupMenuClient.cpp: (WebKit::AutofillPopupMenuClient::AutofillPopupMenuClient): (WebKit::AutofillPopupMenuClient::getSuggestionsCount): (WebKit::AutofillPopupMenuClient::getSuggestion): (WebKit::AutofillPopupMenuClient::getLabel): (WebKit::AutofillPopupMenuClient::getIcon): (WebKit::AutofillPopupMenuClient::removeSuggestionAtIndex): (WebKit::AutofillPopupMenuClient::canRemoveSuggestionAtIndex): (WebKit::AutofillPopupMenuClient::valueChanged): (WebKit::AutofillPopupMenuClient::selectionChanged): (WebKit::AutofillPopupMenuClient::itemIsSeparator): (WebKit::AutofillPopupMenuClient::itemIsWarning): (WebKit::AutofillPopupMenuClient::initialize): (WebKit::AutofillPopupMenuClient::setSuggestions): * src/AutofillPopupMenuClient.h: Removed m_separatorIndex because now we use itemID to identify separators. Added m_useLegacyBehavior which is true when it is initialized with a valid separator index. This is to keep the autofill working even when the chromium side hasn't been updated yet. (AutofillPopupMenuClient): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::applyAutofillSuggestions): * src/WebViewImpl.h: (WebViewImpl): 2012-04-15 James Robinson [chromium] LayerRendererChromium shouldn't know anything about CCLayerImpl https://bugs.webkit.org/show_bug.cgi?id=83415 Reviewed by Adrienne Walker. Add an explicit rootLayer getter to the test implementation of LayerRendererChromium since there isn't one on the base class any more. * tests/LayerRendererChromiumTest.cpp: (FakeLayerRendererChromiumClient::rootLayer): (FakeLayerRendererChromiumClient): (TEST_F): 2012-04-15 Yuta Kitamura Leak in WebSocketChannel with workers/worker-reload.html (part 2) https://bugs.webkit.org/show_bug.cgi?id=83749 Reviewed by David Levin. * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext): Correctly propagate the return value of postTaskForModeToWorkerContext(). 2012-04-13 David Reveman [Chromium] Avoid unnecessary full tile updates for checkerboard tiles. https://bugs.webkit.org/show_bug.cgi?id=83804 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF::setLayerPropertiesForTesting): (WTF): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::beginTest): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::layout): (WTF::setTestLayerPropertiesForTesting): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-04-13 Nico Weber [chromium] There is no Color(float, float, float) constructor, fix an attempt to call it. https://bugs.webkit.org/show_bug.cgi?id=83920 Reviewed by James Robinson. Found by clang: third_party/WebKit/Source/WebKit/chromium/tests/LayerChromiumTest.cpp:508:89:error: implicit conversion turns literal floating-point number into integer: 'float' to 'int' [-Werror,-Wliteral-conversion] EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBackgroundColor(Color(0.4f, 0.4f, 0.4f))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ * tests/LayerChromiumTest.cpp: 2012-04-13 Dana Jansens [chromium] Replicas should be included in the computed occlusion https://bugs.webkit.org/show_bug.cgi?id=82262 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (CCOcclusionTrackerTestReplicaDoesOcclude): (WebKitTests::CCOcclusionTrackerTestReplicaDoesOcclude::runMyTest): (WebKitTests): (CCOcclusionTrackerTestReplicaWithClipping): (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::runMyTest): (CCOcclusionTrackerTestSurfaceChildOfSurface): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest): 2012-04-13 Bernhard Bauer [chromium] Remove fallback code for "Missing plug-in" string. https://bugs.webkit.org/show_bug.cgi?id=81907 Reviewed by Adam Barth. * src/LocalizedStrings.cpp: (WebCore::missingPluginText): 2012-04-11 James Robinson [chromium] Remove unused compositeToTexture / compositeOffscreen setting https://bugs.webkit.org/show_bug.cgi?id=83733 Reviewed by Adrienne Walker. Remove compositeOffscreen / compositeToTexture setting. This was an experiment that is no longer needed. * public/WebSettings.h: * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): 2012-04-13 James Robinson [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API https://bugs.webkit.org/show_bug.cgi?id=83851 Reviewed by Adam Barth. Moves the WebVideoFrame interface into Platform and removes the now unnecessary VideoFrameChromiumImpl adapter implementation. * WebKit.gyp: * public/WebVideoFrame.h: * src/AssertMatchingEnums.cpp: * src/VideoFrameChromiumImpl.cpp: Removed. * src/VideoFrameChromiumImpl.h: Removed. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::getCurrentFrame): (WebKit::WebMediaPlayerClientImpl::putCurrentFrame): (WebKit::WebMediaPlayerClientImpl::supportsType): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-04-13 Rob Flack Chromium: Should enable -webkit-image-set https://bugs.webkit.org/show_bug.cgi?id=81859 Reviewed by Adam Barth. * features.gypi: 2012-04-12 Michael Nordman [chromium] Now that the chromium port is using a different dom_storage backend library in its main browser process, there are a handful of files that should no longer be included in the build, and a few files than should be deleted outright, and the webkit api should be modified to reflect the new (and smaller) contract between the embedder and webkit/webcore. https://bugs.webkit.org/show_bug.cgi?id=83807 Reviewed by Adam Barth. * WebKit.gyp: Delete a few files. * public/WebStorageNamespace.h: Remove some unused data members and methods, and annotate close() as deprecated. * public/platform/WebKitPlatformSupport.h: Annotate a method as deprecated. * src/StorageAreaProxy.cpp: Remove the include of a deleted file. * src/StorageEventDispatcherChromium.cpp: Removed. * src/StorageEventDispatcherImpl.cpp: Added a FIXME comment for upcoming work. * src/StorageNamespaceProxy.cpp: Modified to no longer call out to the embedder thru the deprecated close() method. * src/StorageNamespaceProxy.h: Moved some blank lines around. * src/WebStorageAreaImpl.cpp: Removed. * src/WebStorageAreaImpl.h: Removed. * src/WebStorageEventDispatcherImpl.cpp: Cleaned up some cruft. * src/WebStorageNamespaceImpl.cpp: Removed. * src/WebStorageNamespaceImpl.h: Removed. 2012-04-13 Sheriff Bot Unreviewed, rolling out r114140. http://trac.webkit.org/changeset/114140 https://bugs.webkit.org/show_bug.cgi?id=83921 Fails fast/css/image-set-parsing.html test it attempts to introduce. (Requested by scheib on #webkit). * features.gypi: 2012-04-13 Rob Flack Chromium: Should enable -webkit-image-set https://bugs.webkit.org/show_bug.cgi?id=81859 Reviewed by Adam Barth. * features.gypi: 2012-04-13 Yury Semikhatsky Unreviewed. Build fix after r114126. * WebKit.gyp: 2012-04-13 Keishi Hattori [chromium] Add WebKit API to access options https://bugs.webkit.org/show_bug.cgi?id=83762 Introduce WebInputElement::dataListOptions so we can implement a UI for datalist. Reviewed by Kent Tamura. * public/WebInputElement.h: (WebKit): (WebInputElement): * src/WebInputElement.cpp: (WebKit::WebInputElement::dataListOptions): Added. Returns a WebNodeCollection containing WebOptionElements. 2012-04-13 Kent Tamura Add a runtime flag for https://bugs.webkit.org/show_bug.cgi?id=83853 Reviewed by Adam Barth. * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): Add enableInputTypeDate() and isInputTypeDateEnabled(). * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableInputTypeDate): Added. (WebKit::WebRuntimeFeatures::isInputTypeDateEnabled): Added. 2012-04-13 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-04-12 Dana Jansens [chromium] Background filters for composited layers https://bugs.webkit.org/show_bug.cgi?id=80046 Reviewed by Adrienne Walker. * tests/CCLayerImplTest.cpp: (WebCore::TEST): 2012-04-12 Sheriff Bot Unreviewed, rolling out r114075. http://trac.webkit.org/changeset/114075 https://bugs.webkit.org/show_bug.cgi?id=83857 Breaks compile (Requested by jamesr on #webkit). * WebKit.gyp: * public/WebVideoFrame.h: (WebKit): (WebVideoFrame): (WebKit::WebVideoFrame::~WebVideoFrame): (WebKit::WebVideoFrame::format): (WebKit::WebVideoFrame::width): (WebKit::WebVideoFrame::height): (WebKit::WebVideoFrame::planes): (WebKit::WebVideoFrame::stride): (WebKit::WebVideoFrame::data): (WebKit::WebVideoFrame::textureId): (WebKit::WebVideoFrame::textureTarget): * src/AssertMatchingEnums.cpp: * src/VideoFrameChromiumImpl.cpp: Added. (WebKit): (WebKit::VideoFrameChromiumImpl::toWebVideoFrame): (WebKit::VideoFrameChromiumImpl::VideoFrameChromiumImpl): (WebKit::VideoFrameChromiumImpl::format): (WebKit::VideoFrameChromiumImpl::width): (WebKit::VideoFrameChromiumImpl::height): (WebKit::VideoFrameChromiumImpl::planes): (WebKit::VideoFrameChromiumImpl::stride): (WebKit::VideoFrameChromiumImpl::data): (WebKit::VideoFrameChromiumImpl::requiredTextureSize): (WebKit::VideoFrameChromiumImpl::hasPaddingBytes): (WebKit::VideoFrameChromiumImpl::textureId): (WebKit::VideoFrameChromiumImpl::textureTarget): * src/VideoFrameChromiumImpl.h: Renamed from Source/Platform/chromium/public/WebVideoFrame.h. (WebKit): (VideoFrameChromiumImpl): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::getCurrentFrame): (WebKit::WebMediaPlayerClientImpl::putCurrentFrame): (WebKit::WebMediaPlayerClientImpl::supportsType): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-04-12 James Robinson [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API https://bugs.webkit.org/show_bug.cgi?id=83851 Reviewed by Adam Barth. Moves the WebVideoFrame interface into Platform and removes the now unnecessary VideoFrameChromiumImpl adapter implementation. * WebKit.gyp: * public/WebVideoFrame.h: * src/AssertMatchingEnums.cpp: * src/VideoFrameChromiumImpl.cpp: Removed. * src/VideoFrameChromiumImpl.h: Removed. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::getCurrentFrame): (WebKit::WebMediaPlayerClientImpl::putCurrentFrame): (WebKit::WebMediaPlayerClientImpl::supportsType): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-04-12 David Dorwin Add Encrypted Media Extensions events and errors to HTMLMediaElement https://bugs.webkit.org/show_bug.cgi?id=82974 Reviewed by Adam Barth. The new events and errors 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#events. * public/WebMediaPlayerClient.h: * src/AssertMatchingEnums.cpp: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::keyAdded): (WebKit): (WebKit::WebMediaPlayerClientImpl::keyError): (WebKit::WebMediaPlayerClientImpl::keyMessage): (WebKit::WebMediaPlayerClientImpl::keyNeeded): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-04-12 Kent Tamura [Chromium] Enable INPUT_TYPE_DATE https://bugs.webkit.org/show_bug.cgi?id=83761 Reviewed by Kentaro Hara. * features.gypi: Turn ENABLE_INPUT_TYPE_DATE on. 2012-04-12 Kent Tamura [Chromium] Fix !ENABLE(PAGE_POPUP) build * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): Wrap m_pagePopup with ENABLE(PAGE_POPUP). 2012-04-12 Kent Tamura [Chromium] Add PagePopup implementation https://bugs.webkit.org/show_bug.cgi?id=81081 Reviewed by Adam Barth. Add WebPagePopupImpl class, which is an implementation of WebCore::PagePopup interface and WebKit::WebPagePopup interface. It's a WebWidget which has a Page object. No new tests because this makes no behavior change yet. * WebKit.gyp: Add WebPagePopupImpl.h. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::hasOpenedPopup): Supports the PagePopup. (WebKit::ChromeClientImpl::openPagePopup): just delegate to WebViewImpl::openPagePopup(). (WebKit::ChromeClientImpl::closePagePopup): ditto. * src/WebPagePopupImpl.cpp: (PagePopupChromeClient): This is a light implementation of ChromeClient for the page in WebPagePopupImpl. This is a friend of WebPagePopupImpl becase of ease of access to its members. (WebKit::PagePopupChromeClient::PagePopupChromeClient): (WebKit::WebPagePopupImpl::WebPagePopupImpl): (WebKit::WebPagePopupImpl::~WebPagePopupImpl): (WebKit::WebPagePopupImpl::init): (WebKit::WebPagePopupImpl::initPage): (WebKit::WebPagePopupImpl::size): (WebKit::WebPagePopupImpl::animate): Calls PageWidgetDelegate::animate(). (WebKit::WebPagePopupImpl::composite): (WebKit::WebPagePopupImpl::layout): Calls PageWidgetDelegate::layout(). (WebKit::WebPagePopupImpl::paint): Calls PageWidgetDelegate::paint(). (WebKit::WebPagePopupImpl::resize): (WebKit::WebPagePopupImpl::handleKeyEvent): (WebKit::WebPagePopupImpl::handleCharEvent): (WebKit::WebPagePopupImpl::handleGestureEvent): (WebKit::WebPagePopupImpl::handleInputEvent): (WebKit::WebPagePopupImpl::setFocus): (WebKit::WebPagePopupImpl::close): Delete the page, and kill itself. (WebKit::WebPagePopupImpl::closePopup): (WebKit::WebPagePopup::create): * src/WebPagePopupImpl.h: Added. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): Initialize m_pagePopup. (WebKit::WebViewImpl::handleKeyEvent): Renamed from keyEvent(). Forward key events to a PagePopup if it is open. (WebKit::WebViewImpl::handleCharEvent): Renamed from charEvent(). Forward char events to a PagePopup if it is open. (WebKit::WebViewImpl::openPagePopup): Added. Instantiate a WebPagePopupImpl, calculates a good bounding rectangle of the page popup from the specified element rectangle, initialize the WebPagePopupImpl, and stop caret blink. (WebKit::WebViewImpl::closePagePopup): Close the popup, clear m_pagePopup, and resume caret blink. (WebKit::WebViewImpl::setFocus): Hide all the popups. (WebKit::WebViewImpl::hidePopups): Hide the page popup too. * src/WebViewImpl.h: (WebKit::WebViewImpl::hasOpenedPopup): Checks the page popup too. 2012-04-12 Kent Tamura [Chromium] Move some code of WebViewImpl and WebFrameImpl to PageWidgetDelegate https://bugs.webkit.org/show_bug.cgi?id=83750 Reviewed by Adam Barth. In order to share code in WebViewImpl and the incoming WebPagePopupImpl, we move some code of WebViewImpl and WebFrameImpl to PageWidgetDelegate. PageWidgetDelegate is a set of static functions because we can't use virtual inheritance in this case and we don't want to move WebView's data members to another class. No new tests. Just refactoring. * WebKit.gyp: Add PageWidgetDelegate.{cpp,h} and WebPagePopupImpl.h. * src/PageWidgetDelegate.cpp: Added. (WebKit::mainFrameView): (WebKit::PageWidgetDelegate::animate): Moved from a part of WebViewImpl::animatie() (WebKit::PageWidgetDelegate::layout): Moved from WebViewImpl::layout() and WebFrameImpl::layout(). (WebKit::PageWidgetDelegate::paint): Moved from WebFrameImpl::paint() and paintWithContext(). (WebKit::PageWidgetDelegate::handleInputEvent): Moved from a part of WebViewImpl::handleInputEvent(). (WebKit::PageWidgetEventHandler::handleMouseMove): Common implementation of an event handling. (WebKit::PageWidgetEventHandler::handleMouseLeave): ditto. (WebKit::PageWidgetEventHandler::handleMouseDown): ditto. (WebKit::PageWidgetEventHandler::handleMouseUp): ditto. (WebKit::PageWidgetEventHandler::handleMouseWheel): ditto. (WebKit::PageWidgetEventHandler::handleTouchEvent): ditto. * src/PageWidgetDelegate.h: Added. * src/WebFrameImpl.cpp: Remove layout(), paintWithContext(), and paint(). They are moved to PageWidgetDelegate. * src/WebFrameImpl.h: (WebFrameImpl): Remove layout(), paintWithContext(), and paint(). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleMouseLeave): Renamed from mouseLeave(), use PageWidgetDelegate::handleMouseLeave(). (WebKit::WebViewImpl::handleMouseDown): Renamed from mouseDown(), use PageWidgetDelegate::handleMouseDown(). (WebKit::WebViewImpl::handleMouseUp): Renamed from mouseUp(), use PageWidgetDelegate::handleMouseUp(). (WebKit::WebViewImpl::scrollBy): Calls renamed handleMouseWheel(). (WebKit::WebViewImpl::handleGestureEvent): Renamed from gestureEvent(). (WebKit::WebViewImpl::handleKeyEvent): Renamed from keyEvent(). (WebKit::WebViewImpl::handleCharEvent): Renamed from charEvent(). (WebKit::WebViewImpl::updateAnimations): Uses PageWidgetDelegate::animate(). (WebKit::WebViewImpl::layout): Uses PageWidgetDelegate::layout(). (WebKit::WebViewImpl::paint): Uses PageWidgetDelegate::paint(). (WebKit::WebViewImpl::handleInputEvent): Uses PageWidgetDelegate::handleInputEvent(). * src/WebViewImpl.h: 2012-04-12 Adrienne Walker [chromium] Fix Windows compiler warnings in webkit_unit_test target https://bugs.webkit.org/show_bug.cgi?id=83732 Reviewed by Kent Tamura. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::TEST_F): * tests/CCQuadCullerTest.cpp: (WebCore::TEST): * tests/FloatQuadTest.cpp: (WebCore::TEST): * tests/ScrollAnimatorNoneTest.cpp: (TEST_F): * tests/TreeSynchronizerTest.cpp: (WebKitTests::TEST): * tests/WebLayerTest.cpp: 2012-04-11 Alec Flett IndexedDB: Stub out WebKit interface for get(IndexedKeyRange) https://bugs.webkit.org/show_bug.cgi?id=83637 Reviewed by Kent Tamura. This is just a stub-out of IDBObjectStore.get(IDBKeyRange) to coordinate a landing in chromium * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::get): (WebIDBObjectStore): * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::get): (WebKit): * src/IDBObjectStoreBackendProxy.h: (IDBObjectStoreBackendProxy): * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::get): (WebKit): * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): 2012-04-11 Kenichi Ishibashi [chromium] Fix Windows warnings in WebSocketDeflaterTest https://bugs.webkit.org/show_bug.cgi?id=83731 Reviewed by Kent Tamura. Use const char* instead of const char[] to suppress warnings on Windows. * tests/WebSocketDeflaterTest.cpp: (WebCore::TEST): 2012-04-11 David Dorwin Add keySystem attribute to canPlayType() for Encrypted Media Extensions https://bugs.webkit.org/show_bug.cgi?id=82973 Reviewed by Adam Barth. The new attribute is 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#extensions. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::supportsType): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-04-10 James Robinson [chromium] Add OVERRIDE annotations for cc layer types https://bugs.webkit.org/show_bug.cgi?id=83658 Reviewed by Daniel Bates. This adds OVERRIDE annotations to overrides of functions on these classes: - CCLayerImpl - LayerChromium - TiledLayerChromium * src/WebLayerImpl.cpp: * src/WebLayerImpl.h: (WebLayerImpl): Removed unused and empty paintContents() function. * tests/CCLayerIteratorTest.cpp: * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/CCOcclusionTrackerTest.cpp: * tests/CCTiledLayerTestCommon.h: (FakeTiledLayerChromium): * tests/LayerChromiumTest.cpp: * tests/TreeSynchronizerTest.cpp: 2012-04-11 James Robinson [chromium] Add OVERRIDE annotations for cc animation-related interfaces https://bugs.webkit.org/show_bug.cgi?id=83650 Reviewed by Daniel Bates. This adds OVERRIDE annotations to the implementations of the following interfaces: - CCAnimationCurve - CCFloatAnimationCurve - CCLayerAnimationControllerClient - CCTransformAnimationCurve * tests/CCAnimationTestCommon.h: 2012-04-11 Aaron Colwell Remove webkit prefix from Media Source runtime feature name. https://bugs.webkit.org/show_bug.cgi?id=83633 Reviewed by Adam Barth. * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableMediaSource): (WebKit::WebRuntimeFeatures::isMediaSourceEnabled): 2012-04-11 Adrienne Walker [chromium] Draw missing layer tile checkerboards as checkerboards https://bugs.webkit.org/show_bug.cgi?id=83241 Reviewed by James Robinson. Rename usedCheckerboard to hadMissingTile to avoid confusion. Update tests to not expect SolidColor quads for checkerboards. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::NonCompositedContentHost): * tests/CCQuadCullerTest.cpp: (WebCore::appendQuads): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): * tests/LayerChromiumTest.cpp: 2012-04-11 Ami Fischman Remove unused WebVideoFrame::Format values https://bugs.webkit.org/show_bug.cgi?id=83625 Reviewed by Kenneth Russell. * public/WebVideoFrame.h: (WebKit): * src/AssertMatchingEnums.cpp: 2012-04-11 'Pavel Feldman' Follow up to r113863: fix chromium inspector interactive test harness. * src/js/Tests.js: 2012-04-11 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 Ami Fischman Roll Chromium DEPS to last-known good revision https://bugs.webkit.org/show_bug.cgi?id=83652 Unreviewed, just a DEPS roll (131469:131684) * DEPS: 2012-04-10 Alexandre Elias Add gesture event enums for long-press and pinch https://bugs.webkit.org/show_bug.cgi?id=83640 Reviewed by James Robinson. Add new enum values GestureLongPress and GesturePinchBegin/End/Update, along with no-op default handling. * public/WebInputEvent.h: * src/WebInputEventConversion.cpp: (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder): * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::handleInputEvent): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): 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