2012-07-18 Yoshifumi Inoue Decimal::toString should not round integer value. https://bugs.webkit.org/show_bug.cgi?id=91481 Reviewed by Kent Tamura. This patch adds a new test cases for Decimal::toString() for failed value and maximum coefficient value with various exponent. * tests/DecimalTest.cpp: (TEST_F): DecimalTest.toString: Add test cases for big coefficient values. 2012-07-18 Hans Wennborg Add copy constructor to WebSpeechGrammar.h https://bugs.webkit.org/show_bug.cgi?id=91484 Reviewed by Adam Barth. Provide user-defined copy constructor (and assign function) for WebSpeechGrammar. Without this, we were hitting the implicit copy constructor, which in turn used the implicit copy constructor of WebPrivatePtr. This was bad, because the implicit copy constructor wouldn't increace the reference count on the wrapped object, causing us to crash. Also add one for WebSpeechRecognitionResult; haven't seen any problems here, but I noticed it was missing. * public/WebSpeechGrammar.h: (WebKit::WebSpeechGrammar::WebSpeechGrammar): (WebSpeechGrammar): * public/WebSpeechRecognitionResult.h: (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult): (WebSpeechRecognitionResult): * src/WebSpeechGrammar.cpp: (WebKit::WebSpeechGrammar::assign): (WebKit): 2012-07-17 Yoshifumi Inoue Decimal constructor with 99999999999999999 loses last digit https://bugs.webkit.org/show_bug.cgi?id=91579 Reviewed by Kent Tamura. This patch adds test cases for Decimal::EncodedData constructors for testing edge cases in addition to common cases which they aren't covered by other test cases. * tests/DecimalTest.cpp: (EXPECT_DECIMAL_ENCODED_DATA_EQ): Introduce a new macro for ease of writing test cases for verifying components of Decimal::EncodedData. (TEST_F): Added a new test entry DecimalTest.Constructor. 2012-07-17 Yoshifumi Inoue Test cases in DecimalTest should use EXPECT_STREQ for ease of debugging test case https://bugs.webkit.org/show_bug.cgi?id=91572 Reviewed by Kent Tamura. This patch introduces EXPECT_DECIMAL_STREQ macro to replace EXPECT_EQ with String class for displaying text string rather than object dump for ease of debugging test cases. * tests/DecimalTest.cpp: (DecimalTest::stepDown): Changed to return Decimal instead of String to use EXPECT_DECIMAL_STREQ. (DecimalTest::stepUp): ditto. (TEST_F): Replaced EXPECT_EQ + String class to EXPECT_DECIMAL_STREQ. 2012-07-17 Joshua Bell IndexedDB: Key generator state not maintained across connections https://bugs.webkit.org/show_bug.cgi?id=91456 Reviewed by Tony Chang. Add stub method implementations to test class. * tests/IDBFakeBackingStore.h: 2012-07-17 Tony Chang Unreviewed, rolling out r122884. http://trac.webkit.org/changeset/122884 https://bugs.webkit.org/show_bug.cgi?id=91408 Broke the chromium-win build. * public/WebIDBMetadata.h: (WebIDBMetadata): (WebKit::WebIDBMetadata::WebIDBMetadata): 2012-07-17 David Grogan IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h https://bugs.webkit.org/show_bug.cgi?id=91408 Reviewed by Adam Barth. This is in support of the new upgradeneeded versioning api. intVersion will eventually replace the WebString version member. * public/WebIDBMetadata.h: (WebIDBMetadata): The spec uses unsigned long long for version numbers but we use int64_t here so that we can use -1 as a sentinel. It indicates that a database still uses a string version. 2012-07-17 Tony Chang Unreviewed. Rolled DEPS. * DEPS: 2012-07-17 Vivek Galatage Web Inspector: refactor InspectorController::connectFrontend() to accept InspectorFrontendChannel. https://bugs.webkit.org/show_bug.cgi?id=91196 Reviewed by Pavel Feldman. Refactoring InspectorClients. InspectorClient::openInspectorFrontend now returning the InspectorFrontendChannel. * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::openInspectorFrontend): * src/InspectorClientImpl.h: (InspectorClientImpl): * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::reattach): (WebKit::WebDevToolsAgentImpl::openInspectorFrontend): * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): 2012-07-16 Adam Barth Unreviewed. Remove two empty directories. * public/linuxish: Removed. * src/linuxish: Removed. 2012-07-16 Gyuyoung Kim Add RegisterProtocolHandlerClient to the Modules/protocolhandler https://bugs.webkit.org/show_bug.cgi?id=90940 Reviewed by Hajime Morita. As a step to let protocol handler be moved to the modules, RegisterProtocolHandlerClient needs to be added to the Modules/protocolhandler. Because ChromeClient has some virtual functions for protocol handlers, virtual functions should be moved to RegisterProtocolHandlerClient. In order to support this, RegisterProtocolHandlerClientImpl class is added to ChromeClientImpl files. In addition, existing functions related to protocol handler in ChromeClientImpl class are moved to RegisterProtocolHandlerClientImpl class. * WebKit.gyp: * src/ChromeClientImpl.cpp: Implement RegisterProtocolHandlerClientImpl class. (WebKit): (WebKit::RegisterProtocolHandlerClientImpl::create): (WebKit::RegisterProtocolHandlerClientImpl::RegisterProtocolHandlerClientImpl): (WebKit::RegisterProtocolHandlerClientImpl::registerProtocolHandler): * src/ChromeClientImpl.h: (ChromeClientImpl): (RegisterProtocolHandlerClientImpl): (WebKit::RegisterProtocolHandlerClientImpl::~RegisterProtocolHandlerClientImpl): (WebKit): * src/WebViewImpl.cpp: Register RegisterProtocolHandlerClientImpl in order to support supplement. (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: 2012-07-16 Yoshifumi Inoue REGRESSION(r122552): DecimalTest tests (CeilingSmallExponent and FloorSmallExponent) started failing. https://bugs.webkit.org/show_bug.cgi?id=91244 Reviewed by Kent Tamura. This patch enables and updates disabled test cases of DecimalTest caused by fixes in r122552 of Decimal::ceiling() and Decimal::floor() for small fraction numbers and added test cases. Fixes in r122552 itself is correct however, it didn't update existing tests for very small fraction numbers. * tests/DecimalTest.cpp: (TEST_F): CeilingSmallExponent: Change expected value to 1 for ceiling(1e-1000), ceiling rounds number toward positive infinity. (TEST_F): FloorSmallExponent: Change expected value to -1 for floor(-1e-1000), floor rounds number toward negative infinity. 2012-07-16 Koji Ishii Vertical alternate glyph (GSUB) support for OpenTypeVerticalData https://bugs.webkit.org/show_bug.cgi?id=81389 Reviewed by Tony Chang. Tests for pointer validations for OpenType tables. * WebKit.gypi: * tests/OpenTypeVerticalDataTest.cpp: Added. (WebCore): (TestTable): (WebCore::TestTable::validateOffset): (WebCore::TEST): 2012-07-16 Alexandre Elias [chromium] Fix WebFrameTest flakiness due to synthetic mouse events https://bugs.webkit.org/show_bug.cgi?id=91428 Reviewed by Adam Barth. Synthetic mouse move events on scrolling can cause segfaults in WebFrameTest due to delayed callbacks on the message loop after state destruction. This is currently only affecting the Android port, but has the potential to affect other platforms in the future. We can avoid the issue by disabling the deviceSupportsMouse setting, which shouldn't be needed by any WebFrameTest. * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::createWebViewAndLoad): 2012-07-16 Alec Flett IndexedDB: Introduce putWithIndexKeys and calculate them in the renderer https://bugs.webkit.org/show_bug.cgi?id=90923 Reviewed by Darin Fisher. Stub out implementations of putWithIndexKeys(), already implemented on the chromium side. * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::putWithIndexKeys): * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::putWithIndexKeys): (WebKit): * src/IDBObjectStoreBackendProxy.h: (IDBObjectStoreBackendProxy): 2012-07-16 Adrienne Walker [chromium] Unify compositor quad transforms into content space https://bugs.webkit.org/show_bug.cgi?id=91350 Reviewed by Kenneth Russell. Update tests to add bounds/contentBounds properties to layers. This exposed a bug in the quad culler tests where the draw transform was incorrectly being set to the origin transform rather than being a transform that operates on centered layer rects. Fixed this bug. * tests/CCQuadCullerTest.cpp: * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::createLayer): 2012-07-16 Adrienne Walker [chromium] Unify compositor quad transforms into content space https://bugs.webkit.org/show_bug.cgi?id=91350 Reviewed by Kenneth Russell. Update tests to add bounds/contentBounds properties to layers. This exposed a bug in the quad culler tests where the draw transform was incorrectly being set to the origin transform rather than being a transform that operates on centered layer rects. Fixed this bug. * tests/CCQuadCullerTest.cpp: * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::createLayer): 2012-07-16 Dana Jansens [chromium] Remove targetRenderSurface concept, give layers a renderTarget which is the layer whose coordinate space they draw into https://bugs.webkit.org/show_bug.cgi?id=91288 Reviewed by Adrienne Walker. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostCommonTest.cpp: * 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::CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest): * tests/CCQuadCullerTest.cpp: * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeTiledLayerChromium::setTexturePriorities): * tests/LayerChromiumTest.cpp: 2012-07-16 Sami Kyostila [chromium] Only apply page scale delta to root scroll layer https://bugs.webkit.org/show_bug.cgi?id=91374 Reviewed by Adrienne Walker. New unit test CCLayerTreeHostImplTest.pageScaleDeltaAppliedToRootScrollLayerOnly to verify the transformation of child layer while pinch zooming. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-16 Kihong Kwon Remove setController from BatteryClient https://bugs.webkit.org/show_bug.cgi?id=90944 Reviewed by Adam Barth. Remove virtual identifier from setController because setController is removed from WebCore::BatteryClient. In addition, BatteryController is set to instance of BatteryClientImpl in the constructor of WebViewImpl. * src/BatteryClientImpl.h: (BatteryClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-07-16 Dana Jansens [chromium] Incorrect assertion: Replicas will cause a RenderPass to be removed twice https://bugs.webkit.org/show_bug.cgi?id=91328 Reviewed by Adrienne Walker. Add replicas to the surfaces in the test. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest): (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit): 2012-07-13 Eric Penner [chromium] Add 'self-managed' option to CCPrioritizedTexture to enable render-surface and canvas use cases. https://bugs.webkit.org/show_bug.cgi?id=91177 Reviewed by Adrienne Walker. * tests/CCPrioritizedTextureTest.cpp: (WTF::TEST_F): * tests/TiledLayerChromiumTest.cpp: 2012-07-13 Brian Anderson Add flushes to CCTextureUpdater::update https://bugs.webkit.org/show_bug.cgi?id=89035 Reviewed by Adrienne Walker. CCTextureUpdaterTest added to verify texture upload/flushing patterns. * WebKit.gypi: * tests/CCTextureUpdaterTest.cpp: Added. 2012-07-13 David Grogan IndexedDB: Re-enable indexeddb in test_shell https://bugs.webkit.org/show_bug.cgi?id=91161 Reviewed by Tony Chang. IDB used to be allowed to run if webView->permissionClient() was NULL, as is the case in test_shell. This was inadvertently changed in http://wkb.ug/90310. We still don't have an automated test for this (http://crbug.com/113738) Tested manually: * In test_shell: 1) Open an IDB page 2) Verify IDB has permission to open a DB * In chrome: 1) Open an IDB page 2) Verify IDB has permission to open a DB 3) Revoke IDB permissions in chrome://chrome/settings/content 4) Reload the IDB page 5) Verify IDB doesn't have permission to open a DB * src/IDBFactoryBackendProxy.cpp: (WebKit::IDBFactoryBackendProxy::allowIndexedDB): 2012-07-13 Wei James enable TestWebKitAPI/webkit_unit_tests apk on x86 android platform by adding abi support https://bugs.webkit.org/show_bug.cgi?id=91194 Reviewed by Adam Barth. * WebKitUnitTests.gyp: 2012-07-13 Dana Jansens webkit_unit_test CCLayerTreeHostImplTest.testRemoveRenderPasses started failing. https://bugs.webkit.org/show_bug.cgi?id=91245 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-13 Vsevolod Vlasov Unreviewed gardening: skip failing webkit unit test. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-13 Vsevolod Vlasov Unreviewed gardening, skip failing webkit_unit_tests. * tests/DecimalTest.cpp: (TEST_F): 2012-07-13 Kent Tamura Make calendar pickers testable https://bugs.webkit.org/show_bug.cgi?id=84827 Reviewed by Hajime Morita. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::ChromeClientImpl): Initialize m_pagePopupDriver with the WebViewImpl. (WebKit::ChromeClientImpl::openPagePopup): Just calls PagePoupDriver::openPagePopup(). (WebKit::ChromeClientImpl::closePagePopup): Just calls PagePoupDriver::closePagePopup(). (WebKit::ChromeClientImpl::setPagePopupDriver): * src/ChromeClientImpl.h: (ChromeClientImpl): Add setPagePopupDriver * src/WebViewImpl.h: (WebViewImpl): WebViewImpl implements PagePopupDriver. openPagePopup() and closePagePopup() override members of PagePopupDriver. 2012-07-13 Yoshifumi Inoue REGRESSION(r119948): [Forms] Spin button Up/Down actions make value to zero for input type "number" when step mismatched https://bugs.webkit.org/show_bug.cgi?id=91197 Reviewed by Kent Tamura. This patch adds test cases for Decimal::ceiling() and floor() of positive/negative small fractional numbers. * tests/DecimalTest.cpp: (TEST_F): 2012-07-12 Adrienne Walker [chromium] Root invalidations for RTL pages need to be in the right space https://bugs.webkit.org/show_bug.cgi?id=91155 Reviewed by Kenneth Russell. The root layer has a translation on it when placed in the tree, so any invalidations on this layer likewise need to be adjusted. This adjustment is due to the fact that compositor layers all have the origin in the upper left corner of the layer, but this is not always the origin for graphics layers. Rather than making compositor layers have to deal with a potential offset, we change the transform when inserting the layer into the tree. Invalidations need to be similarly transformed from document space into compositor layer space. The need for this offset is due to the definition of the initial containing block. RTL pages (pages with dir=RTL on the body) start scrolled all the way to the right, and the origin is in the upper left hand corner of this initial viewport. Thus on RTL pages with horizontal overflow, the left of the document is in negative CSS space. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::invalidateRect): 2012-07-12 Dana Jansens [chromium] Remove the RenderPass pointer from RenderPassDrawQuad https://bugs.webkit.org/show_bug.cgi?id=91023 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-12 Adam Barth [Chromium] WebSettings should be sorted https://bugs.webkit.org/show_bug.cgi?id=91157 Reviewed by Eric Seidel. This might be my OCD, but IMHO this file would be cleaner if we listed the settings in alphabetic order. * public/WebSettings.h: * src/WebSettingsImpl.h: (WebSettingsImpl): (WebKit::WebSettingsImpl::forceSoftwareCompositing): (WebKit::WebSettingsImpl::viewportEnabled): (WebKit::WebSettingsImpl::maxUntiledLayerSize): 2012-07-12 Joshua Bell IndexedDB: Enable IDBFactory.deleteDatabase() and webkitGetDatabaseNames() in Workers https://bugs.webkit.org/show_bug.cgi?id=90310 Reviewed by Tony Chang. * src/IDBFactoryBackendProxy.cpp: (WebKit::IDBFactoryBackendProxy::allowIndexedDB): Consolidates user-prompting logic. (WebKit::getWebFrame): Helper to dig out frame from Document, or null for Worker. (WebKit::IDBFactoryBackendProxy::getDatabaseNames): (WebKit): (WebKit::IDBFactoryBackendProxy::open): (WebKit::IDBFactoryBackendProxy::deleteDatabase): * src/IDBFactoryBackendProxy.h: Update method signatures to match interface. (WebCore): (IDBFactoryBackendProxy): 2012-07-12 Dana Jansens [chromium] The root layer should not try create a second RenderSurface for itself https://bugs.webkit.org/show_bug.cgi?id=91124 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-12 Eric Penner [chromium] Use CCTexture/TextureAllocator and remove TextureManager https://bugs.webkit.org/show_bug.cgi?id=91001 Reviewed by Adrienne Walker. Deleting old texture manager tests. * WebKit.gypi: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCPrioritizedTextureTest.cpp: (WTF::CCPrioritizedTextureTest::texturesMemorySize): * tests/CCThreadedTest.cpp: * tests/CCTiledLayerTestCommon.h: * tests/Canvas2DLayerBridgeTest.cpp: * tests/TextureManagerTest.cpp: Removed. 2012-07-12 Robert Sesek [chromium][Mac] r122400 broke 10.6 build https://bugs.webkit.org/show_bug.cgi?id=91103 Reviewed by Tony Chang. Use the right availability macros for forward-declaring methods and defining constants. * src/mac/WebInputEventFactory.mm: 2012-07-12 Tony Chang [chromium] Remove drag and drop API methods that are no longer used https://bugs.webkit.org/show_bug.cgi?id=90996 Reviewed by Adam Barth. In r117327, we added a parameter for modifier keys to these methods. Chromium has since switched to using the methods that require the extra parameter so we can remove these methods. * public/WebView.h: (WebView): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::dragTargetDragEnter): (WebKit::WebViewImpl::dragTargetDragOver): * src/WebViewImpl.h: (WebViewImpl): 2012-07-12 Tony Chang Unreviewed. Rolled DEPS. * DEPS: 2012-07-12 Adam Barth [Chromium] Delete last mention of Hixie76 in WebKit/chromium https://bugs.webkit.org/show_bug.cgi?id=91099 Reviewed by Tony Chang. This deprecated API is no longer used anywhere. * public/WebSettings.h: (WebKit::WebSettings::setDefaultDeviceScaleFactor): 2012-07-12 Tony Chang Unreviewed, rolling out r122477. http://trac.webkit.org/changeset/122477 https://bugs.webkit.org/show_bug.cgi?id=91103 Broke Chromium Mac build * src/mac/WebInputEventFactory.mm: 2012-07-12 Robert Sesek [chromium][Mac] r122400 broke 10.6 build https://bugs.webkit.org/show_bug.cgi?id=91103 Reviewed by Tony Chang. Use the right availability macros for forward-declaring methods and defining constants. * src/mac/WebInputEventFactory.mm: 2012-07-12 Peter Beverloo [Chromium] Enable building APKs for TestWebKitAPI and webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=90989 Reviewed by Adam Barth. Add dependencies on the webkit_unit_tests_apk and TestWebKitAPI_apk targets for Android, making sure that we're generating the packages. * All.gyp: 2012-07-12 Leandro Gracia Gil [Chromium] Remove unrequired API in WebSurroundingText. https://bugs.webkit.org/show_bug.cgi?id=91067 Reviewed by Adam Barth. Remove the unused first initialize method from WebSurroundingText. Now both Chromium and LayoutTestController use the second method. * public/WebSurroundingText.h: (WebSurroundingText): * src/WebSurroundingText.cpp: 2012-07-11 Mark Rowe Remove BUILDING_ON / TARGETING macros in favor of system availability macros This removal was handled by a script that translates the relevant macros in to the equivalent checks using the system availability macros. Reviewed by Filip Pizlo. * src/mac/WebInputEventFactory.mm: 2012-07-11 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-07-11 Sheriff Bot Unreviewed, rolling out r122358. http://trac.webkit.org/changeset/122358 https://bugs.webkit.org/show_bug.cgi?id=91037 Build break on WebKit Win (Requested by hayato on #webkit). * public/WebView.h: (WebView): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::dragTargetDragEnter): (WebKit): (WebKit::WebViewImpl::dragTargetDragOver): (WebKit::WebViewImpl::dragTargetDrop): * src/WebViewImpl.h: (WebViewImpl): 2012-07-11 Alexandre Elias [chromium] Move compositor quads to Platform/chromium/public https://bugs.webkit.org/show_bug.cgi?id=90582 Reviewed by Adrienne Walker. This moves CCSharedQuadState, CCDrawQuad, and all but two CC*DrawQuad classes to the WebKit namespace, as a first step to pushing them across the process boundary for the ubercompositor. - The intent is to serialize the class hierarchy using the same mechanism as WebInputEvent. In order to do this, there are three requirements: pure POD data, a method returning size, and a packing pragma. - Private data members are fine with this kind of serializer, and a default constructor is not needed. Because of that, we can maintain the same encapsulation and convenient APIs (behind WEBKIT_IMPLEMENTATION) as the original classes. To ease the transition, the original WebCore headers still exist and typedef to the new classes. - However, SharedQuadState will be serialized using the normal IPC_STRUCT_TRAITS macro, so I made its members public. A custom serializer (on quad lists) will maintain the pointers from quads to SharedQuadStates. - I converted the Material casting mechanism to materialCast() methods living in the derived classes. That way, the WebCompositorQuad header doesn't need to know about all its derived classes. - Quad classes not yet transitioned can still be used in non-ubercompositor mode. CCRenderPassDrawQuad and CCYUVVideoDrawQuad are currently non-POD and I left them in their original files. This approach is the best I've found so far, since it preserves all WebCore-facing APIs and avoids unnecessary code duplication (new quad types or members can be added by modifying only one place). There also should not be an unreasonable amount of custom serializer code required. * tests/CCLayerTestCommon.cpp: (CCLayerTestCommon::verifyQuadsExactlyCoverRect): * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): 2012-07-11 Dana Jansens [chromium] Rename layerRect to contentRect for rects that live in content space https://bugs.webkit.org/show_bug.cgi?id=90843 Reviewed by Adrienne Walker. * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest): (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest): * tests/CCQuadCullerTest.cpp: * tests/CCRenderSurfaceTest.cpp: * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::createLayer): (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): (CCLayerTestCommon::coverageVisibleRectIntersectsTiles): (CCLayerTestCommon::coverageVisibleRectIntersectsBounds): * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate): (WebKitTests::FakeTiledLayerChromium::update): * tests/CCTiledLayerTestCommon.h: (FakeTiledLayerChromium): * tests/LayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: 2012-07-11 Dana Jansens [chromium] Minimum size used for occlusion tracking should be a setting on CCLayerTreeHost https://bugs.webkit.org/show_bug.cgi?id=90993 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-11 Adam Barth [Chromium] Enable LEGACY_VIEWPORT_ADAPTION https://bugs.webkit.org/show_bug.cgi?id=90991 Reviewed by Tony Chang. Chromium wishes to support LEGACY_VIEWPORT_ADAPTION. I actually thought this was enabled before, but the enable bit got lost in the shuffle. * features.gypi: 2012-07-11 Tony Chang [chromium] Remove drag and drop API methods that are no longer used https://bugs.webkit.org/show_bug.cgi?id=90996 Reviewed by Adam Barth. In r117327, we added a parameter for modifier keys to these methods. Chromium has since switched to using the methods that require the extra parameter so we can remove these methods. * public/WebView.h: (WebView): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::dragTargetDragEnter): (WebKit::WebViewImpl::dragTargetDragOver): * src/WebViewImpl.h: (WebViewImpl): 2012-07-11 Shawn Singh Unreviewed build fix, forgot to add URLTestHelpers.* when landing r122344 * tests/URLTestHelpers.cpp: Added. (URLTestHelpers): (WebKit::URLTestHelpers::registerMockedURLFromBaseURL): (WebKit::URLTestHelpers::registerMockedURLLoad): * tests/URLTestHelpers.h: Added. (WebKit): (URLTestHelpers): (WebKit::URLTestHelpers::toKURL): 2012-07-11 Shawn Singh [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=90094 Reviewed by Adrienne Walker. This patch adds the WEBKIT_IMPLEMENTATION = 1 define to WebKitUnitTests.gyp. To get it to compile correctly, some string and URL code was refactored and fixed, in particular GURL usage is replaced with KURL usage. * WebKit.gyp: added WEBKIT_IMPLEMENTATION == 1 for unit test code when in shared library added URLTestHelpers to exclusion in shared library build, because it depends on webkit_support * WebKit.gypi: added URLTestHelpers.h and .cpp to the build process * WebKitUnitTests.gyp: added WEBKIT_IMPLEMENTATION == 1 for unit test code when not in shared library. note that in shared library build, RunAllTests.cpp does not have WEBKIT_IMPLEMENTATION == 1. * public/WebDOMMessageEvent.h: (WebKit::WebDOMMessageEvent::WebDOMMessageEvent): * tests/AssociatedURLLoaderTest.cpp: * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Added. (URLTestHelpers): (WebKit::URLTestHelpers::registerMockedURLFromBaseURL): (WebKit::URLTestHelpers::registerMockedURLLoad): * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h. (WebKit): (URLTestHelpers): (WebKit::URLTestHelpers::toKURL): * tests/WebFrameTest.cpp: * tests/WebPageNewSerializerTest.cpp: * tests/WebPageSerializerTest.cpp: * tests/WebViewTest.cpp: 2012-07-10 Pavel Feldman Web Inspector: migrate from background images to CSS for statusbar rendering. https://bugs.webkit.org/show_bug.cgi?id=90902 Reviewed by Vsevolod Vlasov. * WebKit.gypi: * src/js/Images/statusbarBackgroundChromium.png: Removed. * src/js/Images/statusbarBottomBackgroundChromium.png: Removed. * src/js/Images/statusbarButtonsChromium.png: Removed. * src/js/Images/statusbarMenuButtonChromium.png: Removed. * src/js/Images/statusbarMenuButtonSelectedChromium.png: Removed. * src/js/devTools.css: (.status-bar-background): 2012-07-11 Kenichi Ishibashi [Chromium] Adding HarfBuzz-ng for Linux https://bugs.webkit.org/show_bug.cgi?id=90362 Reviewed by Tony Chang. * features.gypi: Added use_harfbuzz_ng variable. If the value is set, USE(HARFBUZZ_NG) is defined. 2012-07-10 Hayato Ito Unreviewed gardening. Android builder started to fail after r122292. My best guess is that '--ant-compile' does not take an argument. * WebKitUnitTests.gyp: 2012-07-10 Yoshifumi Inoue [Chromium-Windows] Implement functions for localized time format information https://bugs.webkit.org/show_bug.cgi?id=90236 Reviewed by Kent Tamura. This patch introduces test cases for date and time format related functions in LocaleWin. * tests/LocaleWinTest.cpp: (LocaleWinTest): (LocaleWinTest::dateComponents): Added. (LocaleWinTest::msForDate): Moved inside class LocaleWinTest. (LocaleWinTest::formatDate): Added. (LocaleWinTest::parseDate): Added. (LocaleWinTest::dateFormatText): Added. (LocaleWinTest::firstDayOfWeek): Added. (LocaleWinTest::monthLabel): Added. (LocaleWinTest::weekDayShortLabel): Added. (LocaleWinTest::timeFormatText): Added. (LocaleWinTest::shortTimeFormatText): Added. (LocaleWinTest::timeAMPMLabel): Added. (TEST_F): 2012-07-10 Adam Barth [Chromium-Android] Add apk test targets for webkit_unit_tests and TestWebKitAPI https://bugs.webkit.org/show_bug.cgi?id=90918 Reviewed by Tony Chang. The rules are similar to what we have added for DumpRenderTree apk. All references to gtest_target_type can be removed once we enable APK tests on the all bots. * WebKitUnitTests.gyp: 2012-07-10 Kevin Ellis Input elements with type=range do not have default touch handlers. https://bugs.webkit.org/show_bug.cgi?id=88807 Reviewed by Antonio Gomes. Adds flag to enable native handling of touch events for input elements with type=range. * features.gypi: 2012-07-10 Adam Klein [Chromium] REGRESSION(r121909): m_currentInputEvent never set https://bugs.webkit.org/show_bug.cgi?id=90914 Reviewed by Abhishek Arya. The always-null m_currentInputEvent causes a regression when middle-clicking on a link that calls window.open('...', '_blank'); that new tab should open in the background, but instead opens in the foreground (see code in ChromeClientImpl::getNavigationPolicy()). Fix usage of TemporaryChange to specify a local variable name so that m_currentInputEvent is actually set for the duration of handleInputEvent. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleInputEvent): Name the TemporaryChange instance. 2012-07-10 Adam Barth WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed https://bugs.webkit.org/show_bug.cgi?id=90910 Reviewed by Eric Seidel. * public/WebSettings.h: (WebKit::WebSettings::setHixie76WebSocketProtocolEnabled): * src/WebSettingsImpl.cpp: * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebSharedWorkerImpl.cpp: (WebKit::WebSharedWorkerImpl::initializeLoader): 2012-07-09 Dana Jansens [chromium] Replace use of ManagedTexture with CCScopedTexture for impl thread and remove implTextureManager from LayerRendererChromium https://bugs.webkit.org/show_bug.cgi?id=90841 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-07-10 Xianzhu Wang [Chromium-Android] Use default font rendering styles in FontPlatformData::querySystemForRenderStyle() https://bugs.webkit.org/show_bug.cgi?id=90826 Reviewed by Adam Barth. * WebKit.gyp: * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getRenderStyleForStrike): Call style.setDefault() on Android or when the font is not specified. 2012-07-10 Dana Jansens [chromium] Avoid allocating render pass textures that have no content https://bugs.webkit.org/show_bug.cgi?id=90702 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking): (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::didCommit): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest): (WTF): 2012-07-10 Leandro Gracia Gil Unreviewed Chromium build fix for mac-release. Fixing clang build after https://bugs.webkit.org/show_bug.cgi?id=90807 * public/WebSurroundingText.h: (WebKit): 2012-07-10 Leandro Gracia Gil WebSurroundingText layout tests should use the same code path as the rest of the feature. https://bugs.webkit.org/show_bug.cgi?id=90807 Reviewed by Adam Barth. Replace the offset-based initialize method used only by LayoutTestController with a point-based version to follow the same code path. * public/WebSurroundingText.h: (WebKit): (WebSurroundingText): * src/WebSurroundingText.cpp: (WebKit::WebSurroundingText::initialize): 2012-07-10 Sheriff Bot Unreviewed, rolling out r122207. http://trac.webkit.org/changeset/122207 https://bugs.webkit.org/show_bug.cgi?id=90874 Broke the cr-windows bot (Requested by beverloo on #webkit). * DEPS: 2012-07-10 Jochen Eisinger Unreviewed. Rolled DEPS. * DEPS: 2012-07-09 Matt Falkenhagen Add ENABLE_DIALOG_ELEMENT and skeleton files https://bugs.webkit.org/show_bug.cgi?id=90521 Reviewed by Kent Tamura. * features.gypi: * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableDialogElement): (WebKit): (WebKit::WebRuntimeFeatures::isDialogElementEnabled): 2012-07-09 Yoshifumi Inoue [Chromium-Mac] Implement functions for localized time format information https://bugs.webkit.org/show_bug.cgi?id=90237 Reviewed by Kent Tamura. * tests/LocaleMacTest.cpp: (LocaleMacTest): (LocaleMacTest::timeFormatText): (LocaleMacTest::shortTimeFormatText): (LocaleMacTest::timeAMPMLabel): (TEST_F): 2012-07-09 Eric Penner [chromium] Merge updates and idle updates into one pass https://bugs.webkit.org/show_bug.cgi?id=90324 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::resetPaintContentsCount): (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking): (ContentLayerChromiumWithUpdateTracking): (WTF::CCLayerTreeHostTestOpacityChange::afterTest): * tests/CCTiledLayerTestCommon.h: (FakeTiledLayerChromium): * tests/TiledLayerChromiumTest.cpp: 2012-07-09 Yoshifumi Inoue [Platform] Introduce LocaleMac class https://bugs.webkit.org/show_bug.cgi?id=90248 Reviewed by Kent Tamura. This patch added tests for LocaleMac class. * WebKit.gypi: * tests/LocaleMacTest.cpp: Added. (LocaleMacTest): (LocaleMacTest::dateComponents): (LocaleMacTest::msForDate): (LocaleMacTest::formatDate): (LocaleMacTest::parseDate): (LocaleMacTest::dateFormatText): (LocaleMacTest::firstDayOfWeek): (LocaleMacTest::monthLabel): (LocaleMacTest::weekDayShortLabel): (TEST_F): 2012-07-09 Dana Jansens [chromium] Create CCScopedTexture class for creating/freeing textures https://bugs.webkit.org/show_bug.cgi?id=89485 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/CCScopedTextureTest.cpp: Added. (WebKitTests): (WebKitTests::TEST): (TrackingTextureAllocator): (WebKitTests::TrackingTextureAllocator::TrackingTextureAllocator): (WebKitTests::TrackingTextureAllocator::numTextures): 2012-07-09 Joshua Bell IndexedDB: Remove obsolete accessor plumbing https://bugs.webkit.org/show_bug.cgi?id=90812 Reviewed by Tony Chang. * public/WebIDBCursor.h: Remove direction. * public/WebIDBDatabase.h: Remove name, version, objectStoreNames; (WebKit::WebIDBDatabase::metadata): * public/WebIDBIndex.h: Remove name, keyPath, unique, multiEntry; * public/WebIDBObjectStore.h: Remove name, keyPath, indexNames, autoIncrement; * src/IDBDatabaseBackendProxy.cpp: Remove plumbing. * src/IDBDatabaseBackendProxy.h: Remove plumbing. (IDBDatabaseBackendProxy): * src/IDBIndexBackendProxy.cpp: Remove plumbing. * src/IDBIndexBackendProxy.h: Remove plumbing. (IDBIndexBackendProxy): * src/IDBObjectStoreBackendProxy.cpp: Remove plumbing. * src/IDBObjectStoreBackendProxy.h: Remove plumbing. (IDBObjectStoreBackendProxy): * src/IDBTransactionBackendProxy.cpp: Remove plumbing. * src/IDBTransactionBackendProxy.h: Assert stub is not used - only needed by real IDBTransactionBackendImpl (WebKit::IDBTransactionBackendProxy::mode): * src/WebIDBTransactionImpl.cpp: Remove plumbing. * src/WebIDBTransactionImpl.h: Remove plumbing. 2012-07-09 Sheriff Bot Unreviewed, rolling out r122161. http://trac.webkit.org/changeset/122161 https://bugs.webkit.org/show_bug.cgi?id=90837 failed to compile on chromium webkit linux bot (Requested by shawnsingh on #webkit). * WebKit.gypi: * WebKitUnitTests.gyp: * public/WebDOMMessageEvent.h: * tests/AssociatedURLLoaderTest.cpp: (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest): (WebKit::AssociatedURLLoaderTest::SetUp): (WebKit::AssociatedURLLoaderTest::CheckMethodFails): (WebKit::AssociatedURLLoaderTest::CheckHeaderFails): (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders): (WebKit::TEST_F): * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::registerMockedURLLoad): (FrameTestHelpers): (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: (FrameTestHelpers): * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: (WebKit::SelectPopupMenuTest::registerMockedURLLoad): (WebKit::SelectPopupMenuTest::loadFrame): (WebKit::TEST_F): * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Removed. * tests/URLTestHelpers.h: Removed. * tests/WebFrameTest.cpp: (WebKit::WebFrameTest::registerMockedHttpURLLoad): (WebKit::WebFrameTest::registerMockedChromeURLLoad): (WebKit::TEST_F): * tests/WebPageNewSerializerTest.cpp: (WebKit::WebPageNewSerializeTest::registerMockedURLLoad): (WebPageNewSerializeTest): (WebKit::WebPageNewSerializeTest::setUpCSSTestPage): (WebKit::WebPageNewSerializeTest::loadURLInTopFrame): (WebKit::WebPageNewSerializeTest::resourceVectorContains): (WebKit::TEST_F): * tests/WebPageSerializerTest.cpp: (WebKit::WebPageSerializerTest::registerMockedURLLoad): (WebKit::WebPageSerializerTest::loadURLInTopFrame): (WebKit::WebPageSerializerTest::webVectorContains): (WebKit::TEST_F): * tests/WebViewTest.cpp: (WebKit::TEST_F): (WebKit::WebViewTest::testAutoResize): (WebKit::WebViewTest::testTextInputType): 2012-07-09 Shawn Singh [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=90094 Reviewed by Adam Barth. This patch adds the WEBKIT_IMPLEMENTATION = 1 define to WebKitUnitTests.gyp. To get it to compile correctly, some string and URL code was refactored, and GURL types were replaced with KURL types. * WebKit.gypi: * WebKitUnitTests.gyp: * public/WebDOMMessageEvent.h: (WebKit::WebDOMMessageEvent::WebDOMMessageEvent): * tests/AssociatedURLLoaderTest.cpp: * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Added. (URLTestHelpers): (WebKit::URLTestHelpers::registerMockedURLFromBaseURL): (WebKit::URLTestHelpers::registerMockedURLLoad): * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h. (WebKit): (URLTestHelpers): (WebKit::URLTestHelpers::toKURL): * tests/WebFrameTest.cpp: * tests/WebPageNewSerializerTest.cpp: * tests/WebPageSerializerTest.cpp: * tests/WebViewTest.cpp: 2012-07-09 Dana Jansens [chromium] Decouple RenderPass drawing from CCRenderSurface https://bugs.webkit.org/show_bug.cgi?id=90573 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: * tests/LayerRendererChromiumTest.cpp: (FakeCCRendererClient::FakeCCRendererClient): 2012-07-09 Adam Klein Rename WebCore::WebKitMutationObserver to WebCore::MutationObserver https://bugs.webkit.org/show_bug.cgi?id=90810 Reviewed by Ojan Vafai. * src/WebKit.cpp: 2012-07-09 Leandro Gracia Gil SurroundingText should not advance character iterators if they are at end. https://bugs.webkit.org/show_bug.cgi?id=90560 Reviewed by Ryosuke Niwa. Moving the check for null visible positions to WebCore as it makes no sense to be in a platform-specific code. * src/WebSurroundingText.cpp: (WebKit::WebSurroundingText::initialize): 2012-07-09 Dana Jansens [chromium] Create render surfaces on main thread only for the current frame https://bugs.webkit.org/show_bug.cgi?id=89793 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: 2012-07-02 Ryosuke Niwa Make HTMLCollection RefCounted https://bugs.webkit.org/show_bug.cgi?id=90414 Reviewed by Sam Weinig. * src/WebPageSerializer.cpp: (WebCore::retrieveResourcesForFrame): * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::collectTargetFrames): 2012-07-09 Sheriff Bot Unreviewed, rolling out r122107. http://trac.webkit.org/changeset/122107 https://bugs.webkit.org/show_bug.cgi?id=90794 Build failure on Mac debug bots (Requested by falken_ on #webkit). * features.gypi: * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): * src/WebRuntimeFeatures.cpp: 2012-07-09 Matt Falkenhagen Add ENABLE_DIALOG_ELEMENT and skeleton files https://bugs.webkit.org/show_bug.cgi?id=90521 Reviewed by Kent Tamura. * features.gypi: * public/WebRuntimeFeatures.h: (WebRuntimeFeatures): * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableDialogElement): (WebKit): (WebKit::WebRuntimeFeatures::isDialogElementEnabled): 2012-07-09 MORITA Hajime [Chromium] ContextFeaturesClient::isEnabled is slow https://bugs.webkit.org/show_bug.cgi?id=90367 Reviewed by Kent Tamura. ContextFeaturesClientImpl::isEnabled touches a heavy part in chrome where locks are acquired for each invocation. This change introduces a set of caches to avoid such slow calls. The cache class ContextFeaturesCache is implemented as a Supplement of ScriptExecutionContext because the flag bits depend on the domain of each Document. * src/ContextFeaturesClientImpl.cpp: (ContextFeaturesCache): Added. (Entry): Added. (WebKit::ContextFeaturesCache::Entry::Entry): (WebKit::ContextFeaturesCache::Entry::isEnabled): (WebKit::ContextFeaturesCache::Entry::set): (WebKit::ContextFeaturesCache::Entry::needsRefresh): (WebKit::ContextFeaturesCache::entryFor): (WebKit): (WebKit::ContextFeaturesCache::supplementName): (WebKit::ContextFeaturesCache::from): (WebKit::ContextFeaturesCache::refreshAgainst): (WebKit::ContextFeaturesClientImpl::isEnabled): (WebKit::ContextFeaturesClientImpl::urlDidChange): Added to invoke refrshAgainst. (WebKit::ContextFeaturesClientImpl::askIfIsEnabled): * src/ContextFeaturesClientImpl.h: (ContextFeaturesClientImpl): 2012-07-09 Vsevolod Vlasov Unreviewed chromium inspector test fix. * src/js/Tests.js: (.TestSuite.prototype.nonAnonymousUISourceCodes_): 2012-07-05 Yoshifumi Inoue Unreviewed Chromium gardening. Roll Chromium DEPS * DEPS: 145501 => 145569 2012-07-05 Yoshifumi Inoue Unreviewed Chromium gardening - Disable WebAnimationTest for Linux and Windows. https://bugs.webkit.org/show_bug.cgi?id=90651 * tests/WebAnimationTest.cpp: (WebKit): (WebKit::TEST): 2012-07-05 Ian Vollick [chromium] Create a WebKit::Web* wrapper for the cc animation classes https://bugs.webkit.org/show_bug.cgi?id=90303 Reviewed by James Robinson. * WebKit.gyp: * WebKit.gypi: * src/WebAnimation.cpp: Added. (WebKit): (WebKit::WebAnimation::iterations): (WebKit::WebAnimation::setIterations): (WebKit::WebAnimation::startTime): (WebKit::WebAnimation::setStartTime): (WebKit::WebAnimation::timeOffset): (WebKit::WebAnimation::setTimeOffset): (WebKit::WebAnimation::alternatesDirection): (WebKit::WebAnimation::setAlternatesDirection): (WebKit::WebAnimation::toCCActiveAnimation): (WebKit::WebAnimation::initialize): (WebKit::WebAnimation::destroy): * src/WebAnimationCurveCommon.cpp: Added. (WebKit): (WebKit::createTimingFunction): * src/WebAnimationCurveCommon.h: Added. (WebCore): (WebKit): * src/WebFloatAnimationCurve.cpp: Added. (WebKit): (WebKit::WebFloatAnimationCurve::add): (WebKit::WebFloatAnimationCurve::toCCAnimationCurve): (WebKit::WebFloatAnimationCurve::initialize): (WebKit::WebFloatAnimationCurve::destroy): * src/WebTransformAnimationCurve.cpp: Added. (WebKit): (WebKit::WebTransformAnimationCurve::add): (WebKit::WebTransformAnimationCurve::toCCAnimationCurve): (WebKit::WebTransformAnimationCurve::initialize): (WebKit::WebTransformAnimationCurve::destroy): * tests/WebAnimationTest.cpp: Added. * tests/WebFloatAnimationCurveTest.cpp: Added. * tests/WebTransformAnimationCurveTest.cpp: Added. 2012-07-05 Vincent Scheib [Chromium] Clear m_currentInputEvent after handled by pointerLockMouseEvent(). https://bugs.webkit.org/show_bug.cgi?id=90391 WebViewImpl::handleInputEvent was keeping a pointer to an input event that would later be accessed. When in pointer lock, that pointer was not being cleared. Code modified to use TemporaryChange to automatically clear the pointer at all method exit points. Reviewed by Abhishek Arya. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleInputEvent): 2012-07-05 John Mellor Text Autosizing: Add test framework and simple test. https://bugs.webkit.org/show_bug.cgi?id=90561 ENABLE(TEXT_AUTOSIZING) is now on in Chromium (but disabled at runtime). This allows it to be used in Layout Tests (and in future by Web Inspector's mobile device emulation). Reviewed by Adam Barth. * features.gypi: 2012-07-05 Oli Lan [chromium] Add a method didChangeFormState to WebViewClient. https://bugs.webkit.org/show_bug.cgi?id=90563 Reviewed by Adam Barth. This patch adds a new method didChangeFormState to WebViewClient, and calls it from ChromeClientImpl::formStateDidChange with the changed node. This new method can be used for example by the Android port to update the browser's IME when the state of the currently focused text node has changed. To facilitate this usage, a focused() method has been added to WebNode. A new test has been added to WebViewTest. This test checks that didChangeFormState is called when an input's value is changed, and also checks that WebNode::focused() returns the correct value for the provided node, in both the focused and non-focused cases. * public/WebNode.h: * public/WebViewClient.h: (WebKit::WebViewClient::didChangeFormState): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::formStateDidChange): * src/WebNode.cpp: (WebKit::WebNode::focused): (WebKit): * tests/WebViewTest.cpp: (FormChangeWebViewClient): (WebKit::FormChangeWebViewClient::didChangeFormState): (WebKit::FormChangeWebViewClient::reset): (WebKit::FormChangeWebViewClient::called): (WebKit::FormChangeWebViewClient::focused): (WebKit): (WebKit::TEST_F): * tests/data/input_field_set_value_while_focused.html: Added. * tests/data/input_field_set_value_while_not_focused.html: Added. 2012-07-04 Yoshifumi Inoue Unreviewed, Chromium gardening. Roll Chromium DEPS. * DEPS: chromium_rev: 145322 => 145501 2012-07-04 Dana Jansens [chromium] Respect memory needed for RenderSurfaces when reserving contents textures https://bugs.webkit.org/show_bug.cgi?id=89901 Reviewed by Adrienne Walker. * tests/CCPrioritizedTextureTest.cpp: (WTF::CCPrioritizedTextureTest::createManager): (WTF::TEST_F): (WTF): * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeTiledLayerChromium::setTexturePriorities): (WebKitTests): * tests/CCTiledLayerTestCommon.h: (FakeTiledLayerChromium): * tests/TiledLayerChromiumTest.cpp: 2012-07-04 Dana Jansens [chromium] Clear RenderSurfaces still when no idle paint will be done https://bugs.webkit.org/show_bug.cgi?id=90553 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestCompositeAndReadbackCleanup): (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::CCLayerTreeHostTestCompositeAndReadbackCleanup): (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::beginTest): (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::afterTest): (WTF): 2012-07-04 Dana Jansens [chromium] Remove CCLayerTreeHostTestThreadOnly class to cleanup CCLayerTreeHostTests https://bugs.webkit.org/show_bug.cgi?id=90556 Reviewed by Adrienne Walker. Currently many tests that run both single and threaded versions subclass from CCLayerTreeHostTestThreadOnly just from copy/pasting. The class only adds a runTestThreaded() which calls runTest(true). Many other tests do run only in threaded mode call runTest(true) themselves, making for an inconsistent mess. We remove CCLayerTreeHostTestThreadOnly class, so we don't have tests inheriting it that are not thread-only. And now all tests that are thread-only call runTest(true) consistently. * tests/CCLayerTreeHostTest.cpp: (WTF::TEST_F): 2012-07-04 John Mellor Text Autosizing: Add compile flag and runtime setting https://bugs.webkit.org/show_bug.cgi?id=87394 This patch renames Font Boosting to Text Autosizing and adds compile guards around the runtime setting. Reviewed by Adam Barth. * features.gypi: * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setTextAutosizingEnabled): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-07-04 Ian Vollick [chromium] Correctly reject accelerated animations with certain rotations. https://bugs.webkit.org/show_bug.cgi?id=89768 Reviewed by James Robinson. * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-07-03 Alex Sakhartchouk [chromium] Avoid calling getUniformLocation??() in the compositor startup https://bugs.webkit.org/show_bug.cgi?id=90217 Reviewed by Adrienne Walker. Fixing the build error. * tests/TextureCopierTest.cpp: 2012-07-03 Erik Arvidsson [V8] Remove enableFasterDOMStoreAccess which is never used https://bugs.webkit.org/show_bug.cgi?id=90489 Reviewed by Adam Barth. * src/WebScriptController.cpp: (WebKit::WebScriptController::enableV8SingleThreadMode): 2012-07-03 Tony Chang [chromium] Unreviewed, update .gitignore to handle VS2010 files. * .gitignore: 2012-07-03 Tony Chang Unreviewed. Rolled DEPS. * DEPS: 2012-07-03 Charles Wei IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath https://bugs.webkit.org/show_bug.cgi?id=88338 Reviewed by David Levin. * src/WebSharedWorkerImpl.cpp: (WebKit::WebSharedWorkerImpl::startWorkerContext): * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::startWorkerContext): 2012-07-02 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-07-02 Leandro Gracia Gil [Chromium] Implement a Layout Test for editing/SurroundingText https://bugs.webkit.org/show_bug.cgi?id=82461 Reviewed by Ryosuke Niwa. Allow passing nodes as arguments for layout test methods. * public/WebBindings.h: (WebBindings): * src/WebBindings.cpp: (WebKit::getNodeImpl): (WebKit): (WebKit::WebBindings::getNode): 2012-07-02 Benjamin Poulain Do not do any logging initialization when logging is disabled https://bugs.webkit.org/show_bug.cgi?id=90228 Reviewed by Simon Fraser. * src/WebKit.cpp: (WebKit::enableLogChannel): 2012-07-01 Keishi Hattori Unreviewed, rolling out r121650. http://trac.webkit.org/changeset/121650 https://bugs.webkit.org/show_bug.cgi?id=90303 runhooks is failing for chromium win bots and WebAnimationTest.DefaultSettings is crashing * WebKit.gyp: * WebKit.gypi: * src/WebAnimation.cpp: Removed. * src/WebAnimationCurveCommon.cpp: Removed. * src/WebAnimationCurveCommon.h: Removed. * src/WebFloatAnimationCurve.cpp: Removed. * src/WebTransformAnimationCurve.cpp: Removed. * tests/WebAnimationTest.cpp: Removed. * tests/WebFloatAnimationCurveTest.cpp: Removed. * tests/WebTransformAnimationCurveTest.cpp: Removed. 2012-07-01 Ian Vollick [chromium] Create a WebKit::Web* wrapper for the cc animation classes https://bugs.webkit.org/show_bug.cgi?id=90303 Reviewed by James Robinson. * WebKit.gyp: * WebKit.gypi: * src/WebAnimation.cpp: Added. (WebKit): (WebKit::WebAnimation::iterations): (WebKit::WebAnimation::setIterations): (WebKit::WebAnimation::startTime): (WebKit::WebAnimation::setStartTime): (WebKit::WebAnimation::timeOffset): (WebKit::WebAnimation::setTimeOffset): (WebKit::WebAnimation::alternatesDirection): (WebKit::WebAnimation::setAlternatesDirection): (WebKit::WebAnimation::toCCActiveAnimation): (WebKit::WebAnimation::initialize): (WebKit::WebAnimation::destroy): * src/WebAnimationCurveCommon.cpp: Added. (WebKit): (WebKit::createTimingFunction): * src/WebAnimationCurveCommon.h: Added. (WebCore): (WebKit): * src/WebFloatAnimationCurve.cpp: Added. (WebKit): (WebKit::WebFloatAnimationCurve::add): (WebKit::WebFloatAnimationCurve::toCCAnimationCurve): (WebKit::WebFloatAnimationCurve::initialize): (WebKit::WebFloatAnimationCurve::destroy): * src/WebTransformAnimationCurve.cpp: Added. (WebKit): (WebKit::WebTransformAnimationCurve::add): (WebKit::WebTransformAnimationCurve::toCCAnimationCurve): (WebKit::WebTransformAnimationCurve::initialize): (WebKit::WebTransformAnimationCurve::destroy): * tests/WebAnimationTest.cpp: Added. * tests/WebFloatAnimationCurveTest.cpp: Added. * tests/WebTransformAnimationCurveTest.cpp: Added. 2012-06-30 Ian Vollick [chromium] CanvasLayerTextureUpdater needs to convert opaque rects back to content space. https://bugs.webkit.org/show_bug.cgi?id=90092 The CanvasLayerTextureUpdater currently receives its opaque rects in layer space, but is expected to return them in content space and does not convert them. This patch adds this conversion. To avoid numerical errors, this patch also switches to using float rects to store opaque rects where appropriate. Reviewed by Adrienne Walker. * WebKit.gypi: * src/WebContentLayerImpl.cpp: (WebKit::WebContentLayerImpl::paintContents): * src/WebContentLayerImpl.h: (WebContentLayerImpl): * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::TestOpacityChangeLayerDelegate::paintContents): (WTF::MockContentLayerDelegate::paintContents): * tests/ContentLayerChromiumTest.cpp: Added. (WebKit): (OpaqueRectDrawingGraphicsContextPainter): (WebKit::OpaqueRectDrawingGraphicsContextPainter::OpaqueRectDrawingGraphicsContextPainter): (WebKit::OpaqueRectDrawingGraphicsContextPainter::~OpaqueRectDrawingGraphicsContextPainter): (MockContentLayerDelegate): (WebKit::MockContentLayerDelegate::MockContentLayerDelegate): (WebKit::TEST): * tests/LayerChromiumTest.cpp: * tests/OpaqueRectTrackingContentLayerDelegateTest.cpp: (WebCore::TEST_F): * tests/TiledLayerChromiumTest.cpp: * tests/WebLayerTest.cpp: 2012-06-29 Joshua Bell IndexedDB: Keep direction on IDBCursor to avoid calls to back end https://bugs.webkit.org/show_bug.cgi?id=90114 Stop plumbing IDBCursorBackendInterface::direction() through API. Reviewed by Tony Chang. * src/IDBCursorBackendProxy.cpp: * src/IDBCursorBackendProxy.h: (IDBCursorBackendProxy): * src/WebIDBCursorImpl.cpp: * src/WebIDBCursorImpl.h: (WebIDBCursorImpl): 2012-06-29 Adam Barth [Chromium] WebFontRendering.cpp requires some OS(ANDROID) ifdefs to build downstream https://bugs.webkit.org/show_bug.cgi?id=90292 Reviewed by Nate Chapin. These ifdefs are required to build this file downstream. There's some sublte difference between how the OS flags are set upstream and downstream. This is on our list of issues to resolve, but in the meantime, this patch makes these files identical upstream and downstream to reduce noise in the upstreaming queue. * src/linux/WebFontRendering.cpp: (WebKit::WebFontRendering::setSubpixelPositioning): 2012-06-29 Eric Penner [chromium] Adding PrioritizedTexture and replacing ContentsTextureManager https://bugs.webkit.org/show_bug.cgi?id=84308 Reviewed by Adrienne Walker. * WebKit.gypi: * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread): * tests/CCPrioritizedTextureTest.cpp: Added. (WTF): (CCPrioritizedTextureTest): (WTF::CCPrioritizedTextureTest::CCPrioritizedTextureTest): (WTF::CCPrioritizedTextureTest::~CCPrioritizedTextureTest): (WTF::CCPrioritizedTextureTest::texturesMemorySize): (WTF::CCPrioritizedTextureTest::createManager): (WTF::CCPrioritizedTextureTest::validateTexture): (WTF::CCPrioritizedTextureTest::allocator): (WTF::TEST_F): * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeLayerTextureUpdater::Texture::Texture): (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect): (WebKitTests::FakeLayerTextureUpdater::createTexture): (WebKitTests::FakeTiledLayerChromium::FakeTiledLayerChromium): (WebKitTests::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds): * tests/CCTiledLayerTestCommon.h: (Texture): (FakeLayerTextureUpdater): (FakeTiledLayerChromium): (FakeTiledLayerWithScaledBounds): * tests/TiledLayerChromiumTest.cpp: 2012-06-29 Ian Vollick [chromium] Roll chromium rev to 144906 https://bugs.webkit.org/show_bug.cgi?id=90278 Unreviewed. Deps roll. * DEPS: 2012-06-29 Alexander Pavlov Web Inspector: [Device Metrics] "Fit window" option inhibits adjusting the page zoom factor https://bugs.webkit.org/show_bug.cgi?id=90187 Reviewed by Vsevolod Vlasov. This change fixes the stale zoom factor, which does not get updated upon browser window resize in the "Fit window" mode. The expected test results have little to do with actual dimensions of the test page in Chrome on a real mobile device, since Chrome on the mobile uses a different zooming technique (pageScaleFactor-based viewport using layout width rather than plain pageZoomFactor) and font boosting, which has not been upstreamed yet. * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth): (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor): 2012-06-29 Konrad Piascik Don't hardcode target dpi of 160 (it should be 96 on desktop) https://bugs.webkit.org/show_bug.cgi?id=88114 Reviewed by Adam Barth. Updated the call to computeViewportAttributes. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange): 2012-06-29 Amy Ousterhout Deleting unused function in WebDeviceOrientation https://bugs.webkit.org/show_bug.cgi?id=90185 Reviewed by Adam Barth. Deleting the unused copy assignment function in WebDeviceOrientation. * public/WebDeviceOrientation.h: (WebDeviceOrientation): * src/WebDeviceOrientation.cpp: 2012-06-29 Yoshifumi Inoue [Platform] Implement Date Time format parser https://bugs.webkit.org/show_bug.cgi?id=89963 Reviewed by Kent Tamura. This patch adds an unit test for date time format parser if ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS) is true. * tests/DateTimeFormatTest.cpp: Added. (DateTimeFormatTest): (Token): (DateTimeFormatTest::Token::Token): (DateTimeFormatTest::Token::operator==): (DateTimeFormatTest::Token::toString): (Tokens): (DateTimeFormatTest::Tokens::Tokens): (DateTimeFormatTest::Tokens::operator==): (DateTimeFormatTest::Tokens::toString): (DateTimeFormatTest::parse): (DateTimeFormatTest::single): (TokenHandler): (DateTimeFormatTest::TokenHandler::~TokenHandler): (DateTimeFormatTest::TokenHandler::fieldType): (DateTimeFormatTest::TokenHandler::tokens): (DateTimeFormatTest::TokenHandler::visitField): (DateTimeFormatTest::TokenHandler::visitLiteral): (operator<<): (TEST_F): 2012-06-28 Joshua Bell IndexedDB: Implement IDBTransaction internal active flag https://bugs.webkit.org/show_bug.cgi?id=89379 Reviewed by Tony Chang. To match the IDB spec, transactions that have had no requests filed against them should commit, not abort. This requires plumbing through the commit() call from front-end to back-end. * src/IDBTransactionBackendProxy.cpp: (WebKit::IDBTransactionBackendProxy::commit): (WebKit): * src/IDBTransactionBackendProxy.h: (IDBTransactionBackendProxy): * src/WebIDBTransactionImpl.cpp: (WebKit::WebIDBTransactionImpl::commit): (WebKit): * src/WebIDBTransactionImpl.h: 2012-06-28 Adrienne Walker [chromium] Split WebScrollbar into WebPluginScrollbar and WebScrollbar https://bugs.webkit.org/show_bug.cgi?id=90117 Reviewed by James Robinson. Convert WebScrollbar/WebScrollbarClient/WebScrollbarImpl to be WebPluginScrollbar, WebPluginScrollbarClient, and WebPluginScrollbarImpl. Modify ScrollbarGroup to use this instead. WebScrollbar is now the base interface for a pre-existing scrollbar that is accessed in a const manner. It also provides all of the common WebKit ScrollTypes.h enums. WebPluginScrollbar is now a scrollbar that has been externally created and is externally modified in terms of its position, invalidation, and painting. This is a pre-refactoring for adding Web versions of ScrollbarTheme into the Platform directory which will operate on WebScrollbar, but that don't need all of what WebPluginScrollbar provides. As WebScrollbar is moved to Platform, WebKit.gyp now must depend on Platform as well. * WebKit.gyp: * public/WebPluginScrollbar.h: (WebKit): (WebPluginScrollbar): (WebKit::WebPluginScrollbar::~WebPluginScrollbar): * public/WebPluginScrollbarClient.h: (WebKit): (WebPluginScrollbarClient): * public/WebScrollbar.h: Removed. * public/WebScrollbarClient.h: Removed. * src/AssertMatchingEnums.cpp: * src/ScrollbarGroup.cpp: (WebKit::ScrollbarGroup::scrollbarCreated): (WebKit::ScrollbarGroup::scrollbarDestroyed): (WebKit::ScrollbarGroup::scrollSize): (WebKit::ScrollbarGroup::scrollPosition): (WebKit::ScrollbarGroup::contentsSize): * src/ScrollbarGroup.h: (WebKit): (ScrollbarGroup): * src/WebPluginScrollbarImpl.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarImpl.cpp. (WebKit): (WebKit::WebPluginScrollbar::createForPlugin): (WebKit::WebPluginScrollbar::defaultThickness): (WebKit::WebPluginScrollbarImpl::WebPluginScrollbarImpl): (WebKit::WebPluginScrollbarImpl::~WebPluginScrollbarImpl): (WebKit::WebPluginScrollbarImpl::setScrollOffset): (WebKit::WebPluginScrollbarImpl::invalidateScrollbarRect): (WebKit::WebPluginScrollbarImpl::getTickmarks): (WebKit::WebPluginScrollbarImpl::convertFromContainingViewToScrollbar): (WebKit::WebPluginScrollbarImpl::scrollbarStyleChanged): (WebKit::WebPluginScrollbarImpl::isOverlay): (WebKit::WebPluginScrollbarImpl::value): (WebKit::WebPluginScrollbarImpl::setLocation): (WebKit::WebPluginScrollbarImpl::setValue): (WebKit::WebPluginScrollbarImpl::setDocumentSize): (WebKit::WebPluginScrollbarImpl::scroll): (WebKit::WebPluginScrollbarImpl::paint): (WebKit::WebPluginScrollbarImpl::handleInputEvent): (WebKit::WebPluginScrollbarImpl::onMouseDown): (WebKit::WebPluginScrollbarImpl::onMouseUp): (WebKit::WebPluginScrollbarImpl::onMouseMove): (WebKit::WebPluginScrollbarImpl::onMouseLeave): (WebKit::WebPluginScrollbarImpl::onMouseWheel): (WebKit::WebPluginScrollbarImpl::onKeyDown): * src/WebPluginScrollbarImpl.h: Added. (WebCore): (WebKit): (WebPluginScrollbarImpl): (WebKit::WebPluginScrollbarImpl::scrollOffset): (WebKit::WebPluginScrollbarImpl::scrollbar): * src/WebScrollbarImpl.h: Removed. 2012-06-28 Adam Barth [Chromium] On Android, we should be able to ask the embedder what intents exist in a region of the page https://bugs.webkit.org/show_bug.cgi?id=90210 Reviewed by Dimitri Glazkov. This patch introduces a function that asks the embedder to analyze the region around a hit test result for interesting content, like phone numbers, email addresses, or physical addresses. The embedder then responds with the "most interesting" content, together with an intent URL for enacting the intent embodied by that content. This function will be used in a subsequent patch to detect content after touch events. * WebKit.gyp: * public/WebContentDetectionResult.h: Added. (WebKit): (WebContentDetectionResult): (WebKit::WebContentDetectionResult::WebContentDetectionResult): (WebKit::WebContentDetectionResult::isValid): (WebKit::WebContentDetectionResult::range): (WebKit::WebContentDetectionResult::string): (WebKit::WebContentDetectionResult::intent): * public/WebViewClient.h: (WebViewClient): (WebKit::WebViewClient::detechContentAround): 2012-06-28 Alec Flett IndexedDB: Hook up render-side key ASSERTing for get() https://bugs.webkit.org/show_bug.cgi?id=90001 Reviewed by Tony Chang. Hook up Chromium WebKit API to new onSuccess handler. * src/WebIDBCallbacksImpl.cpp: (WebKit::WebIDBCallbacksImpl::onSuccess): * tests/IDBAbortOnCorruptTest.cpp: (WebCore::MockIDBCallbacks::onSuccess): * tests/IDBDatabaseBackendTest.cpp: 2012-06-28 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-06-28 Alpha Lam Unreviewed, rolling out r121463. http://trac.webkit.org/changeset/121463 https://bugs.webkit.org/show_bug.cgi?id=90094 Broke Windows build. * WebKit.gypi: * WebKitUnitTests.gyp: * public/WebDOMMessageEvent.h: * tests/AssociatedURLLoaderTest.cpp: (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest): (WebKit::AssociatedURLLoaderTest::SetUp): (WebKit::AssociatedURLLoaderTest::CheckMethodFails): (WebKit::AssociatedURLLoaderTest::CheckHeaderFails): (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders): (WebKit::TEST_F): * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::registerMockedURLLoad): (FrameTestHelpers): (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: (FrameTestHelpers): * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: (WebKit::SelectPopupMenuTest::registerMockedURLLoad): (WebKit::SelectPopupMenuTest::loadFrame): (WebKit::TEST_F): * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Removed. * tests/URLTestHelpers.h: Removed. * tests/WebFrameTest.cpp: (WebKit::WebFrameTest::registerMockedHttpURLLoad): (WebKit::WebFrameTest::registerMockedChromeURLLoad): (WebKit::TEST_F): * tests/WebPageNewSerializerTest.cpp: (WebKit::WebPageNewSerializeTest::registerMockedURLLoad): (WebPageNewSerializeTest): (WebKit::WebPageNewSerializeTest::setUpCSSTestPage): (WebKit::WebPageNewSerializeTest::loadURLInTopFrame): (WebKit::WebPageNewSerializeTest::resourceVectorContains): (WebKit::TEST_F): * tests/WebPageSerializerTest.cpp: (WebKit::WebPageSerializerTest::registerMockedURLLoad): (WebKit::WebPageSerializerTest::loadURLInTopFrame): (WebKit::WebPageSerializerTest::webVectorContains): (WebKit::TEST_F): * tests/WebViewTest.cpp: (WebKit::TEST_F): (WebKit::WebViewTest::testAutoResize): (WebKit::WebViewTest::testTextInputType): 2012-06-28 Shawn Singh [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=90094 Reviewed by Adam Barth. This patch adds the WEBKIT_IMPLEMENTATION = 1 define to WebKitUnitTests.gyp. To get it to compile correctly, some string and URL code was refactored and fixed. * WebKit.gypi: * WebKitUnitTests.gyp: * public/WebDOMMessageEvent.h: (WebKit::WebDOMMessageEvent::WebDOMMessageEvent): * tests/AssociatedURLLoaderTest.cpp: * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Added. (URLTestHelpers): (WebKit::URLTestHelpers::registerMockedURLFromBaseURL): (WebKit::URLTestHelpers::registerMockedURLLoad): * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h. (WebKit): (URLTestHelpers): (WebKit::URLTestHelpers::toKURL): * tests/WebFrameTest.cpp: * tests/WebPageNewSerializerTest.cpp: * tests/WebPageSerializerTest.cpp: * tests/WebViewTest.cpp: 2012-06-28 Oli Lan [chromium] Change WebViewImpl::textInputInfo to use root editable element. https://bugs.webkit.org/show_bug.cgi?id=90179 Reviewed by Adam Barth. WebViewImpl::textInputInfo currently returns text value and offsets relative to the focused node. For contenteditable nodes, this may not give the expected result. This patch changes the method to return value and offsets for the root editable element. This also allows the implementation to be simplified somewhat. This also ensures that the offsets returned will use the same basis as the recently added method Editor::setSelectionOffsets (and WebViewImpl::setEditableSelectionOffsets). Testing for textInputInfo has been added to WebViewTest. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::textInputInfo): * tests/WebViewTest.cpp: (WebKit::TEST_F): 2012-06-28 James Robinson [chromium] Should schedule a commit when dropping contents textures https://bugs.webkit.org/show_bug.cgi?id=90031 Reviewed by Adrienne Walker. Adds a somewhat vacuous test unit test for committing when releasing textures. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-27 Dana Jansens [chromium] Do not multiply bounds by contentsScale in TiledLayerChromium and CanvasLayerTextureUpdater https://bugs.webkit.org/show_bug.cgi?id=90103 Reviewed by Adrienne Walker. * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate): * tests/CCTiledLayerTestCommon.h: (FakeTiledLayerChromium): * tests/TiledLayerChromiumTest.cpp: 2012-06-28 Dan Alcantara [chromium] Introduce way to reload a page using the original request URL https://bugs.webkit.org/show_bug.cgi?id=89788 Reviewed by Adam Barth. Adds a new reload method for cases where we need to override the URL when reloading a page. This is needed for situations where a server redirects navigation based on information that may have changed since the last time the page was loaded. User agents, for example, can cause a server to redirect to the mobile version of a page. Changing to the desktop version by switching user agents requires loading a URL from before the redirect occurred. Also adds a unit test to confirm that scroll position and page scale are saved when the reload occurs. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::reloadWithGivenURL): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::setClearPageScaleFactorOnLoad): (WebKit): (WebKit::WebViewImpl::didCommitLoad): * src/WebViewImpl.h: (WebViewImpl): 2012-06-28 Sheriff Bot Unreviewed, rolling out r121395. http://trac.webkit.org/changeset/121395 https://bugs.webkit.org/show_bug.cgi?id=90143 Patch causes crashes in fast/workers/worker-context-gc.html (Requested by zdobersek on #webkit). * src/WebSharedWorkerImpl.cpp: (WebKit::WebSharedWorkerImpl::startWorkerContext): * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::startWorkerContext): 2012-06-28 Yoshifumi Inoue [Platform] Implement functions for localized time format information https://bugs.webkit.org/show_bug.cgi?id=89965 Reviewed by Kent Tamura. This patch adds new test LocalizedDateICUTest if ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS) is true. * WebKit.gypi: * tests/LocalizedDateICUTest.cpp: Added. (LocalizedDateICUTest): (Labels): (LocalizedDateICUTest::Labels::Labels): (LocalizedDateICUTest::Labels::operator==): (LocalizedDateICUTest::Labels::toString): (LocalizedDateICUTest::labels): (LocalizedDateICUTest::localizedDateFormatText): (LocalizedDateICUTest::localizedShortDateFormatText): (LocalizedDateICUTest::timeAMPMLabels): (operator<<): (TEST_F): 2012-06-27 Sheriff Bot Unreviewed, rolling out r121405. http://trac.webkit.org/changeset/121405 https://bugs.webkit.org/show_bug.cgi?id=90135 broke windows build (Requested by shawnsingh_ on #webkit). * WebKit.gypi: * WebKitUnitTests.gyp: * public/WebDOMMessageEvent.h: * tests/AssociatedURLLoaderTest.cpp: (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest): (WebKit::AssociatedURLLoaderTest::SetUp): (WebKit::AssociatedURLLoaderTest::CheckMethodFails): (WebKit::AssociatedURLLoaderTest::CheckHeaderFails): (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders): (WebKit::TEST_F): * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::registerMockedURLLoad): (FrameTestHelpers): (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: (FrameTestHelpers): * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: (WebKit::SelectPopupMenuTest::registerMockedURLLoad): (WebKit::SelectPopupMenuTest::loadFrame): * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Removed. * tests/URLTestHelpers.h: Removed. * tests/WebFrameTest.cpp: (WebKit::WebFrameTest::registerMockedHttpURLLoad): (WebKit::WebFrameTest::registerMockedChromeURLLoad): (WebKit::TEST_F): * tests/WebPageNewSerializerTest.cpp: (WebKit::WebPageNewSerializeTest::registerMockedURLLoad): (WebPageNewSerializeTest): (WebKit::WebPageNewSerializeTest::setUpCSSTestPage): (WebKit::WebPageNewSerializeTest::loadURLInTopFrame): (WebKit::WebPageNewSerializeTest::resourceVectorContains): (WebKit::TEST_F): * tests/WebPageSerializerTest.cpp: (WebKit::WebPageSerializerTest::registerMockedURLLoad): (WebKit::WebPageSerializerTest::loadURLInTopFrame): (WebKit::WebPageSerializerTest::webVectorContains): (WebKit::TEST_F): * tests/WebViewTest.cpp: (WebKit::TEST_F): (WebKit::WebViewTest::testAutoResize): (WebKit::WebViewTest::testTextInputType): 2012-06-27 Shawn Singh [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=90094 Reviewed by James Robinson. This patch adds the WEBKIT_IMPLEMENTATION = 1 define to WebKitUnitTests.gyp. To get it to compile correctly, some string and URL code was refactored and fixed. * WebKit.gypi: * WebKitUnitTests.gyp: * public/WebDOMMessageEvent.h: (WebKit::WebDOMMessageEvent::WebDOMMessageEvent): * tests/AssociatedURLLoaderTest.cpp: * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::loadFrame): * tests/FrameTestHelpers.h: * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/PopupMenuTest.cpp: * tests/RunAllTests.cpp: * tests/URLTestHelpers.cpp: Added. (URLTestHelpers): (WebKit::URLTestHelpers::registerMockedURLFromBaseURL): (WebKit::URLTestHelpers::registerMockedURLLoad): * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h. (WebKit): (URLTestHelpers): (WebKit::URLTestHelpers::toKURL): * tests/WebFrameTest.cpp: * tests/WebPageNewSerializerTest.cpp: * tests/WebPageSerializerTest.cpp: * tests/WebViewTest.cpp: 2012-06-27 Yoshifumi Inoue [Platform] Implement localizedDecimalSeparator function https://bugs.webkit.org/show_bug.cgi?id=90036 Reviewed by Kent Tamura. This patch adds test case for localizedDecimalSeparator(). * tests/LocalizedNumberICUTest.cpp: (testDecimalSeparator): (TEST): 2012-06-27 Yusuke Sato [chromium] Improve keyboardEvent() so a web page could receive a DOM3 spec compliant keyboard event. https://bugs.webkit.org/show_bug.cgi?id=89637 Reviewed by Tony Chang. This is a Gtk port of http://crrev.com/142209. Normalizes event->state to make it Windows/Mac compatible. Since the way of setting modifier mask on X is very different than Windows/Mac as shown in http://crbug.com/127142#c8, the normalization is necessary. * src/gtk/WebInputEventFactory.cpp: (WebKit): (WebKit::normalizeEventState): (WebKit::WebInputEventFactory::keyboardEvent): 2012-06-27 James Robinson [chromium] Use SkColor in compositor internals https://bugs.webkit.org/show_bug.cgi?id=90108 Reviewed by Adrienne Walker. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::setBackgroundColor): * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerTreeHostImplTest.cpp: * tests/CCSolidColorLayerImplTest.cpp: (CCLayerTestCommon::TEST): * tests/LayerChromiumTest.cpp: 2012-06-27 Charles Wei IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath https://bugs.webkit.org/show_bug.cgi?id=88338 Reviewed by David Levin. * src/WebSharedWorkerImpl.cpp: (WebKit::WebSharedWorkerImpl::startWorkerContext): * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::startWorkerContext): 2012-06-27 Joshua Bell [Chromium] IndexedDB: Expose WebIDBTransaction::commit() method in public API https://bugs.webkit.org/show_bug.cgi?id=90089 Reviewed by James Robinson. Prep work for http://webkit.org/b/89379 which requires empty transactions to trigger a commit from the front-end. * public/WebIDBTransaction.h: (WebKit::WebIDBTransaction::commit): 2012-06-27 Josh Horwich [chromium] Expose device scale factor in WebPluginContainer https://bugs.webkit.org/show_bug.cgi?id=87874 Reviewed by Adam Barth. * public/WebPluginContainer.h: (WebPluginContainer): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::deviceScaleFactor): (WebKit): (WebKit::WebPluginContainerImpl::pageScaleFactor): (WebKit::WebPluginContainerImpl::pageZoomFactor): * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-06-27 Robert Kroeger [chromium] out-of-order assert in WebViewImpl setDeviceScaleFactor https://bugs.webkit.org/show_bug.cgi?id=90006 The assert in WebViewImpl::setDeviceScaleFactor should test for non-scaling after we have set both m_DeviceScaleInCompositor and page()->deviceScaleFactor() instead of in between. Reviewed by James Robinson. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setDeviceScaleFactor): 2012-06-26 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-06-26 James Robinson [chromium] Remove WebView::graphicsContext3D getter https://bugs.webkit.org/show_bug.cgi?id=89916 Reviewed by Adrienne Walker. Removes WebView::graphicsContext3D getter. This getter was used to access the compositor's context, which is an inherently dangerous operation since the compositor context may not be safe to use on the main thread and has somewhat complicated creation / recreation semantics. A shared context is exposed (WebView::sharedGraphicsContext3D) for callers who may want access to a context in a share group with the compositor. * public/WebView.h: (WebView): * src/WebLayerTreeView.cpp: * src/WebViewImpl.cpp: * src/WebViewImpl.h: (WebViewImpl): 2012-06-26 Peter Beverloo [Chromium] Decrease the number of conditional blocks in features.gypi https://bugs.webkit.org/show_bug.cgi?id=90013 Reviewed by Adam Barth. Consolidate two Android-specific and accelerated-compositing-specific conditional blocks into other blocks which serve an identical purpose. * features.gypi: 2012-06-26 Dave Tu [chromium] Expose rendering statistics to WebWidget. https://bugs.webkit.org/show_bug.cgi?id=88268 Reviewed by James Robinson. The WebKit side of a basic framework for exposing rendering statistics to Chromium's --enable-benchmarking extension. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::renderingStatistics): (WebKit): 2012-06-25 James Robinson [chromium] Add WebLayer API for scrolling https://bugs.webkit.org/show_bug.cgi?id=89913 Reviewed by Adrienne Walker. Use WebScrollableLayer type in NonCompositedContentHost. * WebKit.gyp: * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::setScrollLayer): (WebKit::reserveScrollbarLayers): (WebKit::NonCompositedContentHost::setViewport): (WebKit::NonCompositedContentHost::haveScrollLayer): (WebKit): (WebKit::NonCompositedContentHost::scrollLayer): * src/NonCompositedContentHost.h: (WebCore): * src/WebContentLayer.cpp: (WebKit::WebContentLayer::WebContentLayer): * src/WebLayer.cpp: (WebKit::WebLayer::numberOfChildren): (WebKit): (WebKit::WebLayer::childAt): (WebKit::WebLayer::setAlwaysReserveTextures): * src/WebScrollableLayer.cpp: (WebKit): (WebKit::WebScrollableLayer::setScrollPosition): (WebKit::WebScrollableLayer::setScrollable): (WebKit::WebScrollableLayer::setHaveWheelEventHandlers): (WebKit::WebScrollableLayer::setShouldScrollOnMainThread): 2012-06-26 Ian Vollick [chromium] The single thread proxy should not automatically tick new animations. https://bugs.webkit.org/show_bug.cgi?id=89996 Reviewed by James Robinson. * WebKit.gypi: * tests/CCSingleThreadProxyTest.cpp: Removed. 2012-06-26 Ian Vollick [chromium] Layer chromium should need a redraw after getting its first non-empty bounds. https://bugs.webkit.org/show_bug.cgi?id=89784 Reviewed by James Robinson. Previously, we'd only set needs redraw if the old bounds were zero, and the new bounds were non-zero, but we should actually have checked that the old bounds were non-empty. * tests/LayerChromiumTest.cpp: 2012-06-26 James Robinson [chromium] Remove dead compositor-related API from GraphicsContext3DPrivate / Extensions3DChromium https://bugs.webkit.org/show_bug.cgi?id=89933 Reviewed by Kenneth Russell. * tests/Canvas2DLayerBridgeTest.cpp: (Canvas2DLayerBridgeTest::fullLifecycleTest): 2012-06-26 Shawn Singh [chromium] Fix incorrect #ifdef WEBKIT_IMPLEMENTATION statements https://bugs.webkit.org/show_bug.cgi?id=89931 Reviewed by James Robinson. WEBKIT_IMPLEMENTATION is defined as either 0 or 1, so the usage of #ifdef or #if have different behavior. There are some places in the code that use "#ifdef WEBKIT_IMLPEMENTATION", but they should actually be "#if WEBKIT_IMPLEMENTATION". This patch fixes those #ifdef statements. * public/WebTextRun.h: (WebTextRun): * public/linux/WebFontRenderStyle.h: 2012-06-26 Jun Mukai Allow using UI in ChromeOS. https://bugs.webkit.org/show_bug.cgi?id=89944 Reviewed by Kent Tamura. http://crrev.com/144111 adds the UI of for ChromeOS, so now we can set its flag too. * features.gypi: 2012-06-25 Ryosuke Niwa Get rid of firstItem and nextItem from HTMLCollection https://bugs.webkit.org/show_bug.cgi?id=89923 Reviewed by Andreas Kling. Re-implement WebNodeCollection::firstItem() and WebNodeCollection::nextItem() in WebKit code because we got rid of it from WebCore implementation. This is an extremely poor API and we shouldn't be exposing it in the future. * public/WebNodeCollection.h: (WebKit::WebNodeCollection::WebNodeCollection): (WebNodeCollection): * src/WebNodeCollection.cpp: (WebKit::WebNodeCollection::nextItem): (WebKit::WebNodeCollection::firstItem): * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::collectTargetFrames): 2012-06-25 Luke Macpherson Add runtime flag to enable/disable CSS variables (in addition to existing compile-time flag). https://bugs.webkit.org/show_bug.cgi?id=89542 Reviewed by Dimitri Glazkov. * features.gypi: * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setExperimentalCSSVariablesEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-06-25 Adrienne Walker [chromium] Add WebPluginScrollbar and WebPluginScrollbarClient stub implementations https://bugs.webkit.org/show_bug.cgi?id=89928 Reviewed by Darin Fisher. These classes are just typedef'd to be the non-Plugin version. The next step is to change Chromium to use the Plugin version, then move most of WebPluginScrollbar to a WebScrollbar in Platform to separate out the base functionality, while providing the same top level API. * WebKit.gyp: * public/WebPluginScrollbar.h: Added. (WebKit): * public/WebPluginScrollbarClient.h: Added. (WebKit): 2012-06-25 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-06-25 Sheriff Bot Unreviewed, rolling out r121206. http://trac.webkit.org/changeset/121206 https://bugs.webkit.org/show_bug.cgi?id=89935 [chromium] webkit_unit_tests WebViewTest.MHTMLWithMissingResourceFinishesLoading crash (Requested by ukai on #webkit). * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::registerMockedURLLoad): (WebKit::FrameTestHelpers::createWebViewAndLoad): * tests/FrameTestHelpers.h: (FrameTestHelpers): * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/WebFrameTest.cpp: (WebKit::WebFrameTest::registerMockedHttpURLLoad): (WebKit::WebFrameTest::registerMockedChromeURLLoad): * tests/WebViewTest.cpp: (WebKit::TEST_F): (WebKit::WebViewTest::testAutoResize): (WebKit::WebViewTest::testTextInputType): 2012-06-25 Adam Barth [Chromium] Let the embedder override the max page scale factor set by the page https://bugs.webkit.org/show_bug.cgi?id=89406 Reviewed by James Robinson. Chrome on Android has an option to force the web site to allow page scaling (for accessibility). This patch adds WebView::setIgnoreViewportTagMaximumScale, which instructs the WebView to ignore the maximum scale factor supplied by by the page in the viewport meta tag. This patch is a bit different from how this is implemented on the chromium-android branch, but I'll clean up the branch once this patch lands. * public/WebView.h: (WebView): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::setIgnoreViewportTagMaximumScale): (WebKit): * src/WebViewImpl.h: (WebViewImpl): (WebKit::WebViewImpl::ignoreViewportTagMaximumScale): * tests/WebFrameTest.cpp: (WebKit::TEST_F): (WebKit): 2012-06-25 Sheriff Bot Unreviewed, rolling out r121176. http://trac.webkit.org/changeset/121176 https://bugs.webkit.org/show_bug.cgi?id=89934 [chromium] browser_tests assert failed: FATAL:native_theme_win.cc(1541)] Check failed: false. Invalid part: 16 (Requested by ukai on #webkit). * src/PlatformSupport.cpp: 2012-06-25 Jay Civelli Fix progress load reporting for MHTML documents. MHTML documents containing references to resources they don't include never finish loading. https://bugs.webkit.org/show_bug.cgi?id=71859 Reviewed by Nate Chapin. * tests/EventListenerTest.cpp: * tests/FrameTestHelpers.cpp: (FrameTestHelpers): (WebKit::FrameTestHelpers::registerMockedURLLoad): (WebKit::FrameTestHelpers::registerMockedURLLoadAsHTML): (WebKit::FrameTestHelpers::createWebViewAndLoad): * tests/FrameTestHelpers.h: (FrameTestHelpers): * tests/ListenerLeakTest.cpp: (WebKit::ListenerLeakTest::RunTest): * tests/WebFrameTest.cpp: (WebKit::WebFrameTest::registerMockedHttpURLLoad): (WebKit::WebFrameTest::registerMockedChromeURLLoad): * tests/WebViewTest.cpp: (WebKit::TEST_F): (WebKit::WebViewTest::testAutoResize): (WebKit::WebViewTest::testTextInputType): (TestWebViewClient): (WebKit::TestWebViewClient::TestWebViewClient): (WebKit::TestWebViewClient::didStartLoading): (WebKit::TestWebViewClient::didStopLoading): (WebKit::TestWebViewClient::didChangeLoadProgress): (WebKit::TestWebViewClient::loadingStarted): (WebKit::TestWebViewClient::loadingStopped): (WebKit::TestWebViewClient::loadProgress): (WebKit): 2012-06-25 James Robinson [chromium] Use WebGraphicsContext3D in compositor implementation https://bugs.webkit.org/show_bug.cgi?id=89700 Reviewed by Adrienne Walker. Updates tests for refactor, mostly by removing unnecessary GraphicsContext3D wrapper around mock contexts. * WebKit.gypi: * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::context): * src/WebLayerTreeViewImpl.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommit::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread): * tests/CCSingleThreadProxyTest.cpp: * tests/CCThreadedTest.cpp: (WebKitTests::TestHooks::createContext): * tests/CCThreadedTest.h: (TestHooks): * tests/Canvas2DLayerBridgeTest.cpp: (Canvas2DLayerBridgeTest::fullLifecycleTest): * tests/CompositorFakeGraphicsContext3D.h: Removed. * tests/DrawingBufferChromiumTest.cpp: Removed. * tests/FakeCCLayerTreeHostClient.h: * tests/FakeGraphicsContext3DTest.cpp: (TEST): * tests/GraphicsLayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: (FakeLayerRendererChromium::FakeLayerRendererChromium): (LayerRendererChromiumTest::LayerRendererChromiumTest): (LayerRendererChromiumTest): (TEST_F): (TEST): * tests/TextureCopierTest.cpp: * tests/ThrottledTextureUploaderTest.cpp: (WebKit::TEST): * tests/TiledLayerChromiumTest.cpp: 2012-06-25 Kausalya Madhusudhanan [Chromium] Add a chromium-webkit API to create a serializable file system. https://bugs.webkit.org/show_bug.cgi?id=89776 In order to send a DOMFileSystem as part of WebIntent payload data it should be serializable. Therefore, I added an API that allows us to create serializable file system in chromium code. Reviewed by Adam Barth. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::createSerializableFileSystem): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): 2012-06-25 Alpha Lam Unreviewed, rolling out r121178. http://trac.webkit.org/changeset/121178 https://bugs.webkit.org/show_bug.cgi?id=89784 New unit test added is failing on WebKit Linux (dbg) * tests/LayerChromiumTest.cpp: 2012-06-25 Alpha Lam Unreviewed, rolling out r121129. http://trac.webkit.org/changeset/121129 https://bugs.webkit.org/show_bug.cgi?id=89542 Chromium ASan failure: crbug.com/134402 * features.gypi: * public/WebSettings.h: * src/WebSettingsImpl.cpp: * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-06-25 Alpha Lam Roll Chromium DEPS to r144020 https://bugs.webkit.org/show_bug.cgi?id=89912 Build fixed now! Unreviewed. Rolled DEPS to fix chromium build. Patch by Scott Graham . * DEPS: 2012-06-25 Alec Flett IndexedDB: Stub out new onSuccess() handler for chromium https://bugs.webkit.org/show_bug.cgi?id=89895 This is the chromium side of a refactor which will introduce an onSuccess() method which includes the raw SerializedScriptValue to the frontend, so the primaryKey injection can happen in the front end, rather than the V8 helper process. Reviewed by Darin Fisher. * public/WebIDBCallbacks.h: (WebKit): (WebKit::WebIDBCallbacks::onSuccess): * src/IDBCallbacksProxy.cpp: (WebKit::IDBCallbacksProxy::onSuccess): * src/IDBCallbacksProxy.h: (IDBCallbacksProxy): * src/WebIDBCallbacksImpl.cpp: (WebKit::WebIDBCallbacksImpl::onSuccess): (WebKit): * src/WebIDBCallbacksImpl.h: (WebIDBCallbacksImpl): 2012-06-25 Joshua Bell IndexedDB: Remove unused backend property accessors https://bugs.webkit.org/show_bug.cgi?id=89893 Reviewed by Darin Fisher. Following the "metadata" API addition in trac.webkit.org/changeset/121059 per-property accessors can be removed from the Chromium WebKit API. * src/WebIDBDatabaseImpl.cpp: Removed name, version, objectStoreNames. * src/WebIDBDatabaseImpl.h: (WebIDBDatabaseImpl): * src/WebIDBIndexImpl.cpp: Removed name, keyPath, unique, multiEntry. * src/WebIDBIndexImpl.h: (WebIDBIndexImpl): * src/WebIDBObjectStoreImpl.cpp: Removed name, keyPath, autoIncrement, indexNames. * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): 2012-06-25 Ian Vollick [chromium] Layer chromium should need a redraw after getting its first non-empty bounds. https://bugs.webkit.org/show_bug.cgi?id=89784 Reviewed by James Robinson. Previously, we'd only set needs redraw if the old bounds were zero, and the new bounds were non-zero, but we should actually have checked that the old bounds were non-empty. * tests/LayerChromiumTest.cpp: 2012-06-25 Scott Graham Plumb Scrollbar button dimensions down to WebThemeEngine https://bugs.webkit.org/show_bug.cgi?id=89264 Reviewed by James Robinson. Rather than making the height of the scrollbar buttons the same as the width of the scrollbar, delegate to the WebThemeEngine. This allows matching the Aura theme rather than the standard Windows theme. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getThemePartSize): (WebCore): 2012-06-25 Zeev Lieber [Chromium] RenderPass textures are evicted at the end of every frame https://bugs.webkit.org/show_bug.cgi?id=89786 Reviewed by Adrienne Walker. Added unit tests to verify large textures are staying in memory and available for render pass optimization. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-25 Kinuko Yasuda Heap-use-after-free in WebKit::MainThreadFileSystemCallbacks https://bugs.webkit.org/show_bug.cgi?id=87019 Reviewed by David Levin. Should not access the CallbacksBridge's member field after it's freed. * src/WorkerFileSystemCallbacksBridge.cpp: (WebKit::WorkerFileSystemCallbacksBridge::cleanUpAfterCallback): 2012-06-24 Luke Macpherson Add runtime flag to enable/disable CSS variables (in addition to existing compile-time flag). https://bugs.webkit.org/show_bug.cgi?id=89542 Reviewed by Dimitri Glazkov. * features.gypi: * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setExperimentalCSSVariablesEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-06-23 Kwang Yul Seo [chromium] Return has value, in function returning void https://bugs.webkit.org/show_bug.cgi?id=89822 Reviewed by Adam Barth. A followup for r121091. * src/WebHistoryItem.cpp: (WebKit::WebHistoryItem::setPageScaleFactor): * src/WebImageLayer.cpp: (WebKit::WebImageLayer::setBitmap): * src/WebLayer.cpp: (WebKit::WebLayer::setMaskLayer): * src/WebOptionElement.cpp: (WebKit::WebOptionElement::setValue): (WebKit::WebOptionElement::setDefaultSelected): 2012-06-23 Kwang Yul Seo [chromium] Return has value, in function returning void https://bugs.webkit.org/show_bug.cgi?id=89805 Reviewed by Adam Barth. Make WebFrameImpl::replaceSelection not return a value because it is a function returning void. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::replaceSelection): 2012-06-22 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-06-22 David Grogan IndexedDB: Avoid infinite loop if we try to encode -1 for leveldb https://bugs.webkit.org/show_bug.cgi?id=89625 Reviewed by Tony Chang. * tests/IDBLevelDBCodingTest.cpp: (IDBLevelDBCoding::TEST): 2012-06-22 Michael Nordman [chromium] WebKit API plumbing for applicationCache.abort() https://bugs.webkit.org/show_bug.cgi?id=89792 Reviewed by Darin Fisher. * public/WebApplicationCacheHost.h: (WebKit::WebApplicationCacheHost::abort): * src/ApplicationCacheHost.cpp: (WebCore::ApplicationCacheHost::abort): 2012-06-22 James Robinson [chromium] LayerRendererChromium is not getting visibility messages in single threaded compositing mode. https://bugs.webkit.org/show_bug.cgi?id=89045 Reviewed by Adrienne Walker. Based on patch by Michal Mocny . Update various test fixtures and tests to cover scheduling, visibility, and resource allocation changes. * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestAbortFrameWhenInvisible): (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::CCLayerTreeHostTestAbortFrameWhenInvisible): (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::beginTest): (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::afterTest): (WTF): (WTF::TEST_F): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): * tests/CCTiledLayerTestCommon.h: * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::FakeWebGraphicsContext3D): (FakeWebGraphicsContext3D): (WebKit::FakeWebGraphicsContext3D::createTexture): * tests/LayerRendererChromiumTest.cpp: (TEST_F): * tests/TiledLayerChromiumTest.cpp: 2012-06-22 Sadrul Habib Chowdhury [chromium] Notify the document if a plugin accepts touch input events https://bugs.webkit.org/show_bug.cgi?id=89769 Reviewed by Adam Barth. The browser sends touch events to webkit only if webkit has any touch-event handlers. So it is necessary to notify the document when a plugin starts accepting touch-events so that it can in turn tell the browser to send it touch events. * public/WebPluginContainer.h: (WebPluginContainer): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::setIsAcceptingTouchEvents): (WebKit): (WebKit::WebPluginContainerImpl::WebPluginContainerImpl): (WebKit::WebPluginContainerImpl::~WebPluginContainerImpl): * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-06-22 Kenneth Russell Unreviewed, rolling out r121064. http://trac.webkit.org/changeset/121064 https://bugs.webkit.org/show_bug.cgi?id=88268 Broke Chromium Mac build. * public/WebView.h: (WebKit): (WebView): * src/WebLayerTreeView.cpp: * src/WebViewImpl.cpp: * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestScrollSimple::layout): (WTF::CCLayerTreeHostTestScrollMultipleRedraw::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommitAndDrawFrame): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommit): 2012-06-22 Dave Tu [chromium] Expose rendering statistics to WebWidget. https://bugs.webkit.org/show_bug.cgi?id=88268 Reviewed by James Robinson. The WebKit side of a basic framework for exposing rendering statistics to Chromium's --enable-benchmarking extension. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::renderingStatistics): (WebKit): 2012-06-22 Shawn Singh [chromium] Do not accumulate occlusion from 3d layers on the main thread https://bugs.webkit.org/show_bug.cgi?id=89704 Reviewed by James Robinson. * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc): (WebKitTests): (CCOcclusionTrackerTestUnsorted3dLayers): (WebKitTests::CCOcclusionTrackerTestUnsorted3dLayers::runMyTest): (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest): 2012-06-22 Joshua Bell IndexedDB: Snapshot metadata in front end to avoid IPC round-trips https://bugs.webkit.org/show_bug.cgi?id=88467 Reviewed by Tony Chang. Add conversions to/from WebCore IDB metadata type and plumbing for routing the IDBDatabaseBackendInterface::metadata() call through the public API.. * WebKit.gyp: New file added. * public/WebIDBMetadata.h: Conversion functions. (WebCore): (WebIDBMetadata): * src/IDBDatabaseBackendProxy.cpp: Plumbing. (WebKit::IDBDatabaseBackendProxy::metadata): (WebKit): * src/IDBDatabaseBackendProxy.h: Plumbing. (IDBDatabaseBackendProxy): * src/WebIDBDatabaseImpl.cpp: Plumbing. (WebKit::WebIDBDatabaseImpl::metadata): (WebKit): * src/WebIDBDatabaseImpl.h: Plumbing. (WebKit): (WebIDBDatabaseImpl): * src/WebIDBMetadata.cpp: Added - conversion functions. (WebKit): (WebKit::WebIDBMetadata::WebIDBMetadata): (WebKit::WebIDBMetadata::operator IDBDatabaseMetadata): 2012-06-22 Fady Samuel [Chromium] Browser Plugin: Expose advanceFocus to WebKit API so that guests can advance focus of theirs embedders https://bugs.webkit.org/show_bug.cgi?id=88827 Reviewed by Darin Fisher. A browser plugin needs to be able to tells its embedder when the guest is done tabbing through controls and wants its embedder to advance its tab position. * public/WebView.h: (WebView): (WebKit::WebView::advanceFocus): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::advanceFocus): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-06-22 Jeff Timanus [Chromium] Change implementing a fast-path for copying GPU-accelerated Canvas2D instances to WebGL textures. https://bugs.webkit.org/show_bug.cgi?id=86275 This change adds the necessary plumbing to the various rendering contexts to copy the backing store texture of a Canvas2D instance to be copied to a WebGL texture. The GL_CHROMIUM_copy_texture extension is necessary because the backing-store for a GPU-accelerated skia Canvas2D is normally in BGRA format, which is not supported by glCopyTexImage. Reviewed by Kenneth Russell. * DEPS: Rolled chromium to 143630 to fix chromium-linux ews failures. 2012-06-22 Kenneth Russell Unreviewed, rolling out r121025. http://trac.webkit.org/changeset/121025 https://bugs.webkit.org/show_bug.cgi?id=89580 Caused crash in EventHandler.shouldTurnVerticalTicksIntoHorizontal webkit unit test on 10.7 * WebKit.gypi: * tests/EventHandlerTest.cpp: Removed. 2012-06-22 Peter Beverloo [Chromium] Disable c++0x compatibility warnings in JavaScriptCore.gyp when building for Android https://bugs.webkit.org/show_bug.cgi?id=88853 Reviewed by Steve Block. The Android exclusions were necessary to fix a gyp generation error, as the gcc_version variable wasn't being defined for Android. Remove these exceptions when Chromium is able to define the gcc_version variable. * WebKit.gyp: * WebKitUnitTests.gyp: 2012-06-22 Robert Kroeger Suppress horizontal conversion of PlatformWheelEvents when hasPreciseScrollingDeltas is true https://bugs.webkit.org/show_bug.cgi?id=89580 WebKit GTK and Chromium Linux force vertical wheel events to scroll horizontally when over horizontal scroll bars. This is undesirable for touchpad scrolling with hasPreciseScrollingDeltas() == true. Added unit tests to show that EventHandler::shouldTurnVerticalTicksIntoHorizontal() is true only for PlatformWheelEvents when !hasPreciseScrollingDeltas(). Reviewed by Adam Barth. * WebKit.gypi: * tests/EventHandlerTest.cpp: Added. (MockScrollbar): (MockScrollbar::MockScrollbar): (MockScrollbar::~MockScrollbar): (MockHitTestResult): (MockHitTestResult::MockHitTestResult): (MockHitTestResult::scrollbar): (MockPlatformWheelEvent): (MockPlatformWheelEvent::MockPlatformWheelEvent): (EventHandlerTest): (EventHandlerTest::EventHandlerTest): (EventHandlerTest::externalShouldTurnVerticalTicksIntoHorizontal): (TEST): 2012-06-22 Amy Ousterhout Renamed DeviceOrientation to DeviceOrientationData https://bugs.webkit.org/show_bug.cgi?id=88663 Reviewed by Steve Block. Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. This change makes DeviceOrientationData consistent with DeviceMotionData. * public/WebDeviceOrientation.h: (WebDeviceOrientation): * src/DeviceOrientationClientProxy.cpp: (WebKit::DeviceOrientationClientProxy::lastOrientation): * src/DeviceOrientationClientProxy.h: (DeviceOrientationClientProxy): * src/WebDeviceOrientation.cpp: (WebKit::WebDeviceOrientation::WebDeviceOrientation): (WebKit::WebDeviceOrientation::operator=): (WebKit::WebDeviceOrientation::operator PassRefPtr): * src/WebDeviceOrientationController.cpp: (WebKit::WebDeviceOrientationController::didChangeDeviceOrientation): 2012-06-22 Joseph Pecoraro Web Inspector: InspectorState::updateCookie should not do JSON serialization if unsupported https://bugs.webkit.org/show_bug.cgi?id=89743 The Chromium port does want InspectorState updates. Reviewed by Yury Semikhatsky. * src/InspectorClientImpl.h: (WebKit::InspectorClientImpl::supportsInspectorStateUpdates): * src/WebDevToolsAgentImpl.h: (WebKit::WebDevToolsAgentImpl::supportsInspectorStateUpdates): 2012-06-21 Sheriff Bot Unreviewed, rolling out r120982. http://trac.webkit.org/changeset/120982 https://bugs.webkit.org/show_bug.cgi?id=89740 [chromium] ASSERTION FAILED: m_allocatedTextureIds.contains(textureId) (Requested by ukai on #webkit). * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestVisibilityAndAllocationControlDrawing): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::beginTest): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommitAndDrawFrame): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommit): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::afterTest): (WTF): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): * tests/CCTiledLayerTestCommon.h: (WebKitTests::FakeTextureAllocator::createTexture): (WebKitTests::FakeTextureAllocator::deleteTexture): * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::createTexture): (FakeWebGraphicsContext3D): * tests/LayerRendererChromiumTest.cpp: (TEST_F): * tests/TiledLayerChromiumTest.cpp: 2012-06-21 James Robinson [chromium] Initialize compositor's visibility state upon initialization https://bugs.webkit.org/show_bug.cgi?id=89712 Reviewed by Adrienne Walker. A given WebViewImpl's visibility state might change any number of times before compositing is enabled. If the visibility state is not the default (visible) when the compositor is initialized, we need to let it know the correct visibility state or it will start ticking uselessly in threaded mode. Tested manually, there's no way to create a new WebViewImpl in a non-visible state in a WebKit test that I know of. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): 2012-06-21 Sadrul Habib Chowdhury [chromium] Add touch-event support for WebPluginContainerImpl https://bugs.webkit.org/show_bug.cgi?id=89089 Reviewed by Adam Barth. * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::handleEvent): * src/WebPluginContainerImpl.h: (WebCore): (WebPluginContainerImpl): 2012-06-21 Oli Lan Add methods to select between offsets in an editable field. https://bugs.webkit.org/show_bug.cgi?id=89098 Reviewed by Ryosuke Niwa. Reviewed by Ryosuke Niwa. This adds a new method WebViewImpl::setEditableSelectionOffsets, which can be used to select between two character positions in the node currently beign edited. The offsets are assumed to be relative to the rootEditableElement. This can be used for IME features that require the ability to manipulate the selection, for example on Android where the method InputConnection#setSelection is used. This method calls a new method Editor::setSelectionOffsets. The method works for inputs/textareas (i.e. text form controls) and contenteditable nodes, and the new test in WebViewTest tests both these cases. * public/WebView.h: (WebView): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setEditableSelectionOffsets): (WebKit): * src/WebViewImpl.h: (WebViewImpl): * tests/WebViewTest.cpp: (WebKit::TEST_F): (WebKit): * tests/data/content_editable_populated.html: Added. * tests/data/input_field_populated.html: Added. 2012-06-19 James Robinson [chromium] LayerRendererChromium is not getting visibility messages in single threaded compositing mode. https://bugs.webkit.org/show_bug.cgi?id=89045 Reviewed by Adrienne Walker. Based on patch by Michal Mocny . Update various test fixtures and tests to cover scheduling, visibility, and resource allocation changes. * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestAbortFrameWhenInvisible): (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::CCLayerTreeHostTestAbortFrameWhenInvisible): (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::beginTest): (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::afterTest): (WTF): (WTF::TEST_F): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): * tests/CCTiledLayerTestCommon.h: * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::FakeWebGraphicsContext3D): (FakeWebGraphicsContext3D): (WebKit::FakeWebGraphicsContext3D::createTexture): * tests/LayerRendererChromiumTest.cpp: (TEST_F): * tests/TiledLayerChromiumTest.cpp: 2012-06-21 Mike West [Chromium] Enable CSP_NEXT on the Chromium port. https://bugs.webkit.org/show_bug.cgi?id=89683 Reviewed by Adam Barth. Enable CSP 1.1 on the Chromium port. This has zero practical effect, as no CSP 1.1 patches have landed yet. But it will. Oh it will. * features.gypi: ENABLE_CSP_NEXT=1 2012-06-21 Alec Flett IndexedDB: Implement spec behavior for multiEntry indexes with invalid/duplicate subkeys https://bugs.webkit.org/show_bug.cgi?id=86123 Reviewed by Darin Fisher. Add matching isValid() to WebIDBKey to match the one in IDBKey. * public/WebIDBKey.h: * src/WebIDBKey.cpp: (WebKit::WebIDBKey::isValid): (WebKit): * src/WebIDBKeyRange.cpp: (WebKit::WebIDBKeyRange::assign): 2012-06-21 Ian Vollick [chromium] Overlays when using the web inspector are blurry with device scale factor > 1 https://bugs.webkit.org/show_bug.cgi?id=89676 Reviewed by James Robinson. Whenever we construct a GraphicsLayerChromium, make initialize the device and page scale factors, if possible. * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-06-21 Min Qin remove ENABLE_FULLSCREEN_MEDIA_CONTROL flag https://bugs.webkit.org/show_bug.cgi?id=89614 Reviewed by Eric Carlson. Since desktop chrome now has fullscreen button, we don't need this flag anymore * features.gypi: 2012-06-20 Zeev Lieber [Chromium] Damage tracker is not used without partial swap, causing valid render passes to be removed https://bugs.webkit.org/show_bug.cgi?id=89589 Reviewed by Adrienne Walker. Added unit tests to check surface texture caching when partial swap is not used. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-20 Sheriff Bot Unreviewed, rolling out r120889. http://trac.webkit.org/changeset/120889 https://bugs.webkit.org/show_bug.cgi?id=89630 [Chromium] webkit_unit_tests didDrawNotCalledOnHiddenLayer start failing (Requested by ukai on #webkit). * tests/CCLayerTreeHostImplTest.cpp: 2012-06-20 Zeev Lieber [Chromium] Damage tracker is not used without partial swap, causing valid render passes to be removed https://bugs.webkit.org/show_bug.cgi?id=89589 Reviewed by Adrienne Walker. Added unit tests to check surface texture caching when partial swap is not used. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-20 Joshua Bell IndexedDB: Remove redundant IDBObjectStore.delete() overloads https://bugs.webkit.org/show_bug.cgi?id=89587 Reviewed by Darin Fisher. * public/WebIDBObjectStore.h: Add note to remove overload when Chromium is updated. (WebIDBObjectStore): * src/IDBObjectStoreBackendProxy.cpp: Delete IDBKey overload. * src/IDBObjectStoreBackendProxy.h: Delete IDBKey overload. (IDBObjectStoreBackendProxy): * src/WebIDBObjectStoreImpl.cpp: Delete IDBKey overload. * src/WebIDBObjectStoreImpl.h: Delete IDBKey overload. (WebIDBObjectStoreImpl): 2012-06-20 Garret Kelly Moving cookieEnabled/setCookieEnabled from Page to Settings, and exposing through WebSettings. https://bugs.webkit.org/show_bug.cgi?id=89545 Reviewed by Adam Barth. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setCookieEnabled): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-06-20 Raymes Khoury Perform hit-test from correct frame in isRectTopmost() https://bugs.webkit.org/show_bug.cgi?id=89492 Reviewed by Levi Weintraub. Hit-testing was being performed from the main frame, which gave the incorrect result if the plugin was in a different frame. * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::isRectTopmost): 2012-06-20 Alexandre Elias [chromium] Support mobile device rotation resizing https://bugs.webkit.org/show_bug.cgi?id=86819 Reviewed by Adam Barth. Resizes on a mobile device are caused either by rotation or on-screen-keyboard bringup, and need different treatment to remain naturally laid out, scaled and scrolled without disorienting the user. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::resize): 2012-06-19 James Robinson [chromium] Separate LayerRenderer initialization from updateLayers https://bugs.webkit.org/show_bug.cgi?id=89525 Reviewed by Adrienne Walker. Update tests to call initializeLayerRendererIfNeeded() before calling updateLayers() to reflect what the proxies do. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/TiledLayerChromiumTest.cpp: 2012-06-20 Christopher Cameron [chromium] webkit-backface-visibility doesn't work with video https://bugs.webkit.org/show_bug.cgi?id=88908 When determining a contents layer's backface culling, use the parent layer's transform and backface-visibility properties. Track which layers need this special treatment with useParentBackfaceVisibility and setUseParentBackfaceVisibility functions in WebCore::LayerChromium, WebKit::WebLayer, and WebCore::CCLayerImpl. Reviewed by Adrienne Walker. * src/WebLayer.cpp: (WebKit::WebLayer::setUseParentBackfaceVisibility): Add an accessor to specify that a layer should use its parent's backface culling behavior. 2012-06-20 Ian Vollick [chromium] Make sure that render surfaces are not pixel doubled with a device scale factor of 2 https://bugs.webkit.org/show_bug.cgi?id=86882 Reviewed by Adrienne Walker. To ensure that render surfaces are not pixel doubled when device scale factor is two, the render surface's owning layer's draw transform is scaled by the contents scale (in the same way that the parent matrix is scaled by the device scale factor). The transformedLayerRect's dimensions also need to be in pixel space. The surface origin transform should not scale, but needs to offset the correct number of pixels, and the replica transforms need to be modified to account for the scaling. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-20 Joshua Bell Unreviewed build fix. * tests/IDBDatabaseBackendTest.cpp: (WebCore::MockIDBCallbacks::~MockIDBCallbacks): (WebCore::FakeIDBDatabaseCallbacks::~FakeIDBDatabaseCallbacks): 2012-06-20 Joshua Bell [Chromium] IndexedDB: Don't close database if pending connections are in flight https://bugs.webkit.org/show_bug.cgi?id=89512 Reviewed by Tony Chang. * tests/IDBDatabaseBackendTest.cpp: (MockIDBCallbacks): (WebCore::MockIDBCallbacks::create): (WebCore::MockIDBCallbacks::MockIDBCallbacks): (WebCore): (FakeIDBDatabaseCallbacks): (WebCore::FakeIDBDatabaseCallbacks::create): (WebCore::FakeIDBDatabaseCallbacks::FakeIDBDatabaseCallbacks): (WebCore::TEST): 2012-06-20 Zeev Lieber [Chromium] Remove redundant #includes in compositor https://bugs.webkit.org/show_bug.cgi?id=89503 Reviewed by Adrienne Walker. Minor adjustments to #include statements to remove dependencies. No new tests. * src/WebCompositorImpl.cpp: * src/WebLayerTreeView.cpp: * tests/CCLayerTestCommon.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/CCOcclusionTrackerTest.cpp: * tests/CCQuadCullerTest.cpp: * tests/CCTiledLayerImplTest.cpp: * tests/ImageLayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: 2012-06-20 Hans Wennborg Speech JavaScript API: add SpeechRecognition.maxAlternatives attribute https://bugs.webkit.org/show_bug.cgi?id=89459 Reviewed by Eric Seidel. Plumbing for the maxAlternatives attribute. * public/WebSpeechRecognitionParams.h: (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams): (WebKit::WebSpeechRecognitionParams::maxAlternatives): (WebSpeechRecognitionParams): * src/SpeechRecognitionClientProxy.cpp: (WebKit::SpeechRecognitionClientProxy::start): * src/SpeechRecognitionClientProxy.h: (SpeechRecognitionClientProxy): 2012-06-20 Hironori Bono [chromium] Select the marker range when right-clicking on a marker. https://bugs.webkit.org/show_bug.cgi?id=89331 Reviewed by Hajime Morita. Chromium always selects only one word when right-clicking on a spelling marker. This prevents selecting whole region specified by a marker if the marker consists of two or more words. This change retrieves a range coverted by a marker and select the range. This emulates the behavior of Mac Chromium and it does not need any workarounds for Mac. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2012-06-19 Kenneth Russell Unreviewed, rolling out r120772. http://trac.webkit.org/changeset/120772 https://bugs.webkit.org/show_bug.cgi?id=89503 Broke build on Chromium Mac * src/WebCompositorImpl.cpp: * src/WebLayerTreeView.cpp: * tests/CCLayerTestCommon.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/CCOcclusionTrackerTest.cpp: * tests/CCQuadCullerTest.cpp: * tests/CCTiledLayerImplTest.cpp: * tests/ImageLayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: 2012-06-19 Zeev Lieber [Chromium] Remove redundant #includes in compositor https://bugs.webkit.org/show_bug.cgi?id=89503 Reviewed by Adrienne Walker. Minor adjustments to #include statements to remove dependencies. No new tests. * src/WebCompositorImpl.cpp: * src/WebLayerTreeView.cpp: * tests/CCLayerTestCommon.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/CCOcclusionTrackerTest.cpp: * tests/CCQuadCullerTest.cpp: * tests/CCTiledLayerImplTest.cpp: * tests/ImageLayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: 2012-06-19 Joshua Bell IndexedDB: Add new type (and chromium webkit API) for metadata snapshot https://bugs.webkit.org/show_bug.cgi?id=88678 Reviewed by Darin Fisher. * WebKit.gyp: * public/WebIDBDatabase.h: (WebKit::WebIDBDatabase::metadata): * public/WebIDBKeyPath.h: (WebIDBKeyPath): (WebKit::WebIDBKeyPath::WebIDBKeyPath): (WebKit::WebIDBKeyPath::~WebIDBKeyPath): (WebKit::WebIDBKeyPath::operator=): Used by Chromium backend. * public/WebIDBMetadata.h: Added new type. (WebKit): (WebIDBMetadata): (WebKit::WebIDBMetadata::WebIDBMetadata): (ObjectStore): (WebKit::WebIDBMetadata::ObjectStore::ObjectStore): (Index): (WebKit::WebIDBMetadata::Index::Index): * src/WebIDBKeyPath.cpp: Conform to normal WebXXX patern. (WebKit::WebIDBKeyPath::assign): (WebKit): (WebKit::WebIDBKeyPath::reset): 2012-06-19 Amy Ousterhout [Chromium] Style Fix in WebDeviceOrientationController https://bugs.webkit.org/show_bug.cgi?id=89337 Reviewed by Steve Block. Changing a local variable from a PassRefPtr to a RefPtr in order to be consistent with the style guide. * src/WebDeviceOrientationController.cpp: (WebKit::WebDeviceOrientationController::didChangeDeviceOrientation): 2012-06-19 Peter Wang Remove the function ScriptDebugServer::supportsNativeBreakpoints() https://bugs.webkit.org/show_bug.cgi?id=88759 Reviewed by Pavel Feldman. * src/js/DevTools.js: 2012-06-19 Yury Semikhatsky [Chromium] Web Inspector: remove unnecessary indirection from message loop instrumentation https://bugs.webkit.org/show_bug.cgi?id=89443 Removed start/stopMainThreadMonitoring methods from WebDevToolsAgentClient and WebDevToolsAgentImpl. The functionality is now implemented inside InspectorClientImpl. Reviewed by Vsevolod Vlasov. * public/WebDevToolsAgentClient.h: * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::clearBrowserCookies): (WebKit::InspectorClientImpl::startMainThreadMonitoring): (WebKit::InspectorClientImpl::stopMainThreadMonitoring): (WebKit::InspectorClientImpl::willProcessTask): (WebKit): (WebKit::InspectorClientImpl::didProcessTask): * src/InspectorClientImpl.h: (InspectorClientImpl): * src/WebDevToolsAgentImpl.cpp: * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): 2012-06-19 Mike West Introduce ENABLE_CSP_NEXT configuration flag. https://bugs.webkit.org/show_bug.cgi?id=89300 Reviewed by Adam Barth. The 1.0 draft of the Content Security Policy spec is just about to move to Last Call. We'll hide work on the upcoming 1.1 spec behind this ENABLE flag, disabled by default. Spec: https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html * features.gypi: 2012-06-19 Sheriff Bot Unreviewed, rolling out r120586. http://trac.webkit.org/changeset/120586 https://bugs.webkit.org/show_bug.cgi?id=89444 doesn't fix mac issue (Requested by morrita on #webkit). * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::replaceMisspelledRange): 2012-06-19 Mike West Add a scheme registry for bypassing Content Security Policy. https://bugs.webkit.org/show_bug.cgi?id=89373 Reviewed by Adam Barth. * public/WebSecurityPolicy.h: (WebSecurityPolicy): * src/WebSecurityPolicy.cpp: (WebKit::WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy): (WebKit): 2012-06-18 Adam Barth [Chromium] GesturePinchBegin and friends are gesture events https://bugs.webkit.org/show_bug.cgi?id=89398 Reviewed by James Robinson. * public/WebInputEvent.h: (WebKit::WebInputEvent::isGestureEventType): 2012-06-18 Amy Ousterhout [Chromium] DeviceOrientation Cleanup https://bugs.webkit.org/show_bug.cgi?id=89354 Reviewed by Kent Tamura. * public/WebDeviceOrientation.h: added const-qualifiers to getters, simplified an overly-complicated parameter to two functions (WebKit::WebDeviceOrientation::isNull): (WebKit::WebDeviceOrientation::canProvideAlpha): (WebKit::WebDeviceOrientation::alpha): (WebKit::WebDeviceOrientation::canProvideBeta): (WebKit::WebDeviceOrientation::beta): (WebKit::WebDeviceOrientation::canProvideGamma): (WebKit::WebDeviceOrientation::gamma): (WebKit::WebDeviceOrientation::canProvideAbsolute): (WebKit::WebDeviceOrientation::absolute): (WebDeviceOrientation): * public/WebDeviceOrientationClient.h: added WEBKIT_ASSERT_NOT_REACHED to virtual functions (WebKit::WebDeviceOrientationClient::setController): (WebKit::WebDeviceOrientationClient::startUpdating): (WebKit::WebDeviceOrientationClient::stopUpdating): (WebKit::WebDeviceOrientationClient::lastOrientation): * public/WebDeviceOrientationClientMock.h: added OVERRIDE specifier for virtual functions (WebDeviceOrientationClientMock): * src/DeviceOrientationClientProxy.h: designated functions as 'virtual' and added OVERRIDE specifier (DeviceOrientationClientProxy): * src/WebDeviceOrientation.cpp: simplified overly-complicated parameter to two functions (WebKit::WebDeviceOrientation::WebDeviceOrientation): (WebKit::WebDeviceOrientation::operator=): 2012-06-18 Ami Fischman Unreviewed. Rolled DEPS. * DEPS: 2012-06-14 James Robinson [chromium] Use WebImageLayer in GraphicsLayerChromium for image layers https://bugs.webkit.org/show_bug.cgi?id=89150 Reviewed by Adrienne Walker. Implementation of WebImageLayer. Note: This could (should?) live in WebCore/platform/chromium/support/, but it's here to be next to the other Web*Layer.cpp implementation files. * WebKit.gyp: * src/WebImageLayer.cpp: Added. (WebKit): (WebKit::WebImageLayer::create): (WebKit::WebImageLayer::WebImageLayer): (WebKit::WebImageLayer::setBitmap): 2012-06-14 James Robinson [chromium] GraphicsLayerChromium should use WebContentLayer directly https://bugs.webkit.org/show_bug.cgi?id=89145 Reviewed by Adrienne Walker. * src/WebContentLayerImpl.cpp: (WebKit::WebContentLayerImpl::paintContents): * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTestMainThreadTypes::createLayer): * tests/OpaqueRectTrackingContentLayerDelegateTest.cpp: (WebCore): (WebCore::OpaqueRectTrackingContentLayerDelegateTest::OpaqueRectTrackingContentLayerDelegateTest): (WebCore::OpaqueRectTrackingContentLayerDelegateTest::canvasRect): (WebCore::TEST_F): * tests/WebLayerTest.cpp: 2012-06-18 Ilya Sherman [Chromium] Ensure layout has happened before calling into hasNonEmptyBoundingBox() Also update existing code to use updateLayoutIgnorePendingStylesheets() https://bugs.webkit.org/show_bug.cgi?id=89258 Reviewed by James Robinson. * src/WebNode.cpp: (WebKit::WebNode::isFocusable): Use updateLayoutIgnorePendingStylesheets() (WebKit::WebNode::hasNonEmptyBoundingBox): Force layout before checking the bounding box 2012-06-18 Ian Vollick [chromium] Ensure that skipping frames during an accelerated animation doesn't cause starvation https://bugs.webkit.org/show_bug.cgi?id=87766 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestCheckerboardDoesNotStarveDraws): (WTF::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws): (WTF::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws::beginTest): (WTF::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws::afterTest): (WTF::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws::animateLayers): (WTF::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestCheckerboardDoesNotStarveDraws::prepareToDrawOnCCThread): (WTF::TEST_F): * tests/CCSchedulerStateMachineTest.cpp: (WebCore::TEST): (WebCore): * tests/CCThreadedTest.cpp: (WebKitTests::MockLayerTreeHostImpl::prepareToDraw): * tests/CCThreadedTest.h: (WebKitTests::TestHooks::prepareToDrawOnCCThread): 2012-06-18 Xianzhu Wang [Chromium] Change back "linuxish" to "linux" and include WebFontRendering.cpp on Android https://bugs.webkit.org/show_bug.cgi?id=89228 Reviewed by Tony Chang. * WebKit.gyp: * public/linux/WebFontRendering.h: (WebKit): (WebFontRendering): * public/linuxish/WebFontRendering.h: Removed. * src/linux/WebFontRendering.cpp: Renamed from Source/WebKit/chromium/src/linuxish/WebFontRendering.cpp. (WebKit): (WebKit::WebFontRendering::setHinting): (WebKit::WebFontRendering::setAutoHint): (WebKit::WebFontRendering::setUseBitmaps): (WebKit::WebFontRendering::setAntiAlias): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): (WebKit::WebFontRendering::setLCDOrder): (WebKit::WebFontRendering::setLCDOrientation): 2012-06-18 Hironori Bono [chromium] Spellchecker should show suggestions only when right-clicking a misspelled word. https://bugs.webkit.org/show_bug.cgi?id=89331 Reviewed by Hajime Morita. When a selection includes two or more misspelled words, it is not so easy to select one word from them and to show its suggestions. To avoid this problem, this change shows suggestions only when the selection is collapsed. For this case, we can use Range::setStart and setEnd to convert a DocumentMarker to a Range. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Added a check that the selection is collapsed. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::replaceMisspelledRange): Added a check that the selection is collapsed. Also, use Range::setStart() and Range::setEnd() to get the marker range to emulate the behavior of DocumentMarker::markersInRange(). 2012-06-14 Kinuko Yasuda [chromium] Cleanup: remove PlatformSupport::createAsyncFileSystem as it's no longer used https://bugs.webkit.org/show_bug.cgi?id=89083 Reviewed by Kentaro Hara. * src/PlatformSupport.cpp: 2012-06-15 Kinuko Yasuda XHR_RESPONSE_BLOB is not enabled on some platforms https://bugs.webkit.org/show_bug.cgi?id=88859 Reviewed by Adam Barth. Removing XHR_RESPONSE_BLOB since the current implementation has no platform-specific part. * src/PlatformSupport.cpp: * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableXHRResponseBlob): (WebKit::WebRuntimeFeatures::isXHRResponseBlobEnabled): 2012-06-17 MORITA Hajime Unreviewed build fix. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-17 Zeev Lieber [Chromium] Compositor should avoid drawing quads when cached textures are available and contents unchanged https://bugs.webkit.org/show_bug.cgi?id=88482 Reviewed by Adrienne Walker. Added tests to verify quad removal algorithm. Added infrastructure code to generate custom render passes out of a script encoded as C string. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerImplTest.cpp: (WebCore): (WebCore::TEST): * tests/CCLayerTreeHostImplTest.cpp: 2012-06-16 Robert Kroeger [chromium] Make the deviceScaleFactor dynamically adjustable. https://bugs.webkit.org/show_bug.cgi?id=88916 Reviewed by James Robinson. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): Removed unused static deviceScaleFactor. (WebKit::WebLayerTreeView::setDeviceScaleFactor): (WebKit): (WebKit::WebLayerTreeView::deviceScaleFactor): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setDeviceScaleFactor): Push the dynamic deviceScaleFactor to the compositor as required. (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/CCLayerTreeHostTest.cpp: Tests use dynamic setDeviceScaleFactor. (WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers): (WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::beginTest): (WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::commitCompleteOnCCThread): 2012-06-16 Sheriff Bot Unreviewed, rolling out r120536. http://trac.webkit.org/changeset/120536 https://bugs.webkit.org/show_bug.cgi?id=89296 Does not compile on chromium-linux (Requested by abarth on #webkit). * WebKit.gyp: * public/linux/WebFontRendering.h: * public/linuxish/WebFontRendering.h: Renamed from Source/WebKit/chromium/public/WebFontRendering.h. (WebKit): (WebFontRendering): * src/linuxish/WebFontRendering.cpp: Renamed from Source/WebKit/chromium/src/WebFontRendering.cpp. (WebKit): (WebKit::WebFontRendering::setHinting): (WebKit::WebFontRendering::setAutoHint): (WebKit::WebFontRendering::setUseBitmaps): (WebKit::WebFontRendering::setAntiAlias): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): (WebKit::WebFontRendering::setLCDOrder): (WebKit::WebFontRendering::setLCDOrientation): 2012-06-16 Sheriff Bot Unreviewed, rolling out r120539. http://trac.webkit.org/changeset/120539 https://bugs.webkit.org/show_bug.cgi?id=89295 Does not compile on chromium-mac (Requested by abarth on #webkit). * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerImplTest.cpp: (WebCore): (WebCore::TEST): * tests/CCLayerTreeHostImplTest.cpp: 2012-06-16 Zeev Lieber [Chromium] Compositor should avoid drawing quads when cached textures are available and contents unchanged https://bugs.webkit.org/show_bug.cgi?id=88482 Reviewed by Adrienne Walker. Added tests to verify quad removal algorithm. Added infrastructure code to generate custom render passes out of a script encoded as C string. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): * tests/CCLayerImplTest.cpp: (WebCore): (WebCore::TEST): * tests/CCLayerTreeHostImplTest.cpp: 2012-06-16 Xianzhu Wang [Chromium] Move chromium/public/linuxish/WebFontRendering.h out of linuxish directory https://bugs.webkit.org/show_bug.cgi?id=89228 Reverse dependency originally from WebCore::FontPlatformDataHarfBuzz to WebKit::WebFontRendering so that WebKit::WebFontRendering can be platform-independent. This also avoids the ambiguous name 'linuxish'. Reviewed by Tony Chang. * WebKit.gyp: * public/WebFontRendering.h: Copied from Source/WebKit/chromium/public/linuxish/WebFontRendering.h. Added getters under WEBKIT_IMPLEMENTATION. (WebFontRendering): * public/linux/WebFontRendering.h: * public/linuxish: Removed. * public/linuxish/WebFontRendering.h: Removed. * src/WebFontRendering.cpp: Copied from Source/WebKit/chromium/src/linuxish/WebFontRendering.cpp. Changed setters to be independent of platform-dependent implementation and added getters. (WebKit): (WebKit::WebFontRendering::setHinting): (WebKit::WebFontRendering::hinting): (WebKit::WebFontRendering::setAutoHint): (WebKit::WebFontRendering::autoHint): (WebKit::WebFontRendering::setUseBitmaps): (WebKit::WebFontRendering::useBitmaps): (WebKit::WebFontRendering::setAntiAlias): (WebKit::WebFontRendering::antiAlias): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::subpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): (WebKit::WebFontRendering::subpixelPositioning): * src/linuxish: Removed. * src/linuxish/WebFontRendering.cpp: Removed. 2012-06-16 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-06-16 Dan Alcantara [chromium] WebFrameClient::userAgentOverride() should take in a WebFrame* as its first argument https://bugs.webkit.org/show_bug.cgi?id=89233 Reviewed by Darin Fisher. Adds a WebFrame* to the WebFrameClient::userAgentOverride() function. * public/WebFrameClient.h: (WebKit::WebFrameClient::userAgentOverride): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::userAgent): * tests/FrameLoaderClientImplTest.cpp: 2012-06-15 Sheriff Bot Unreviewed, rolling out r120511. http://trac.webkit.org/changeset/120511 https://bugs.webkit.org/show_bug.cgi?id=89255 Breaks at least Android builder (Requested by wangxianzhu on #webkit). * WebKit.gyp: * public/linux/WebFontRendering.h: * public/linuxish/WebFontRendering.h: Renamed from Source/WebKit/chromium/public/WebFontRendering.h. (WebKit): (WebFontRendering): * src/linuxish/WebFontRendering.cpp: Renamed from Source/WebKit/chromium/src/WebFontRendering.cpp. (WebKit): (WebKit::WebFontRendering::setHinting): (WebKit::WebFontRendering::setAutoHint): (WebKit::WebFontRendering::setUseBitmaps): (WebKit::WebFontRendering::setAntiAlias): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): (WebKit::WebFontRendering::setLCDOrder): (WebKit::WebFontRendering::setLCDOrientation): 2012-06-15 Xianzhu Wang [Chromium] Move chromium/public/linuxish/WebFontRendering.h out of linuxish directory https://bugs.webkit.org/show_bug.cgi?id=89228 Reverse dependency originally from WebCore::FontPlatformDataHarfBuzz to WebKit::WebFontRendering so that WebKit::WebFontRendering can be platform-independent. This also avoids the ambiguous name 'linuxish'. Reviewed by Tony Chang. * WebKit.gyp: * public/WebFontRendering.h: Copied from Source/WebKit/chromium/public/linuxish/WebFontRendering.h. Added getters under WEBKIT_IMPLEMENTATION. (WebFontRendering): * public/linux/WebFontRendering.h: * public/linuxish: Removed. * public/linuxish/WebFontRendering.h: Removed. * src/WebFontRendering.cpp: Copied from Source/WebKit/chromium/src/linuxish/WebFontRendering.cpp. Changed setters to be independent of platform-dependent implementation and added getters. (WebKit): (WebKit::WebFontRendering::setHinting): (WebKit::WebFontRendering::hinting): (WebKit::WebFontRendering::setAutoHint): (WebKit::WebFontRendering::autoHint): (WebKit::WebFontRendering::setUseBitmaps): (WebKit::WebFontRendering::useBitmaps): (WebKit::WebFontRendering::setAntiAlias): (WebKit::WebFontRendering::antiAlias): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::subpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): (WebKit::WebFontRendering::subpixelPositioning): * src/linuxish: Removed. * src/linuxish/WebFontRendering.cpp: Removed. 2012-06-15 Tony Chang [chromium] Remove WebKit/chromium/public/gtk/WebFontInfo.h since it's no longer referenced. https://bugs.webkit.org/show_bug.cgi?id=89251 Reviewed by Adam Barth. This was a forwarding header when we moved the file to public/linux. * public/gtk/WebFontInfo.h: Removed. 2012-06-15 Bill Budge AssociatedURLLoader should allow trusted clients to read all headers, not just exposed ones. https://bugs.webkit.org/show_bug.cgi?id=89185 Reviewed by Adam Barth. This change adds an option to turn off whitelist filtering of response headers for CORS loads, and modifies AssociatedURLLoader check for that before filtering. * public/WebURLLoaderOptions.h: (WebKit::WebURLLoaderOptions::WebURLLoaderOptions): (WebURLLoaderOptions): * src/AssociatedURLLoader.cpp: (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveResponse): * tests/AssociatedURLLoaderTest.cpp: (WebKit): (WebKit::TEST_F): 2012-06-15 Sami Kyostila [chromium] Allow scrolling non-root layers in the compositor thread https://bugs.webkit.org/show_bug.cgi?id=73350 Reviewed by James Robinson. New unit tests to verify layer scrolling behavior and the associated utility functions. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal): (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::MockContentLayerDelegate::paintContents): (CCLayerTreeHostTestScrollChildLayer): (WTF::CCLayerTreeHostTestScrollChildLayer::CCLayerTreeHostTestScrollChildLayer): (WTF::CCLayerTreeHostTestScrollChildLayer::beginTest): (WTF::CCLayerTreeHostTestScrollChildLayer::applyScrollAndScale): (WTF::CCLayerTreeHostTestScrollChildLayer::beginCommitOnCCThread): (WTF::CCLayerTreeHostTestScrollChildLayer::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestScrollChildLayer::afterTest): (WTF): (WTF::TEST_F): * tests/WebCompositorInputHandlerImplTest.cpp: (WebKit::TEST_F): 2012-06-15 Hironori Bono Allow platforms to choose whether to remove markers on editing https://bugs.webkit.org/show_bug.cgi?id=88838 Reviewed by Hajime Morita. This change implements EditorClientImpl::checkGrammarOfString so DumpRenderTree can run grammar tests. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::isGrammarCheckingEnabled): Return true also when unified text-checking is enabled. (WebKit::EditorClientImpl::shouldEraseMarkersAfterChangeSelection): ditto. (WebKit::EditorClientImpl::checkGrammarOfString): Implement this function with our unified text-checker. 2012-06-14 Kent Tamura Support file extensions in HTMLInputElement::accept https://bugs.webkit.org/show_bug.cgi?id=88298 Reviewed by Hajime Morita. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::runOpenPanel): Use FileChooserSettings::acceptTypes() to get both of MIME types and file extensions. 2012-06-14 Kaustubh Atrawalkar Remove support for counterValueForElementById from chromium port https://bugs.webkit.org/show_bug.cgi?id=88851 Reviewed by Adam Barth. Moved the counterValueForElementById from LayoutTestCotroller to Internals so remove the old platform specific implementations as it exclusively tests WebCore functionality. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): 2012-06-14 Xianzhu Wang [Chromium-Android] Initialize font rendering in DumpRenderTree https://bugs.webkit.org/show_bug.cgi?id=89133 Reviewed by Adam Barth. * src/linuxish/WebFontRendering.cpp: (WebKit::WebFontRendering::setSubpixelPositioning): Now calls WebFontInfo::setSubpixelPositioning to avoid API users from calling both and simplify platform differences at call sites. 2012-06-14 Tony Chang [chromium] Port IFrameRedirectTest.Test from test_shell_tests to webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=89132 Reviewed by Adam Barth. This test is currently in src/webkit/glue/iframe_redirect_unittest.cc and uses test_shell's layoutTestController. Moving this will make it easier to get rid of layoutTestController in test_shell. * tests/WebFrameTest.cpp: (WebKit::TEST_F): (WebKit): * tests/data/iframe_redirect.html: Added. 2012-06-14 David Reveman [Chromium] Sub-pixel text rendering is incorrectly used for WebView with transparent background. https://bugs.webkit.org/show_bug.cgi?id=89033 Reviewed by James Robinson. Add canvas background argument to PageWidgetDelegate::paint and call PlatformCanvasSkia::setDrawingToImageBuffer to ensure that sub-pixel rendering is only used when WebView has opaque background. * src/PageWidgetDelegate.cpp: (WebKit::PageWidgetDelegate::paint): * src/PageWidgetDelegate.h: * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopupImpl::paint): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::paint): 2012-06-14 Shawn Singh [chromium] CCLayerTreeHostCommonTest.verifyHitTestingForSingleLayer failing in debug https://bugs.webkit.org/show_bug.cgi?id=89065 Reviewed by James Robinson. A debug assertion was being triggered in the hit-testing unit tests because I accidentally forgot to set the DebugScopedSetImplThread for the tests. This patch also re-enables the disabled broken test. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-14 Xianzhu Wang [Chromium] Add setAutoHint() and setUseBitmaps() in WebFontRendering https://bugs.webkit.org/show_bug.cgi?id=89014 Reviewed by James Robinson. * public/linuxish/WebFontRendering.h: (WebFontRendering): * src/linuxish/WebFontRendering.cpp: (WebKit): (WebKit::WebFontRendering::setAutoHint): (WebKit::WebFontRendering::setUseBitmaps): (WebKit::WebFontRendering::setAntiAlias): 2012-06-14 Daniel Erat [chromium/linux] Drop deprecated WebFontRenderStyle::useSubpixel https://bugs.webkit.org/show_bug.cgi?id=88263 Reviewed by Adam Barth. This removes the useSubpixel member, which was replaced by useSubpixelRendering. Chrome has been updated to set only the useSubpixelRendering field. No test updates since the existing behavior shouldn't change. * public/linux/WebFontInfo.h: (WebFontInfo): * public/linux/WebFontRenderStyle.h: * src/linux/WebFontInfo.cpp: (WebKit::WebFontInfo::renderStyleForStrike): * src/linux/WebFontRenderStyle.cpp: (WebKit::WebFontRenderStyle::toFontRenderStyle): (WebKit::WebFontRenderStyle::setDefaults): 2012-06-14 Shawn Singh [chromium] For hit testing in CCLayerTreeHostCommon, need to check that the transform is invertible before inverting it. https://bugs.webkit.org/show_bug.cgi?id=89049 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-14 Ian Vollick [chromium] Certain settings in CCSettings could be global https://bugs.webkit.org/show_bug.cgi?id=88384 Reviewed by James Robinson. * WebKit.gypi: * public/WebCompositor.h: (WebCompositor): * public/WebSettings.h: * src/WebCompositorImpl.cpp: (WebKit::WebCompositor::shutdown): (WebKit): (WebKit::WebCompositor::setPerTilePaintingEnabled): (WebKit::WebCompositor::setPartialSwapEnabled): (WebKit::WebCompositor::setAcceleratedAnimationEnabled): * src/WebLayerTreeView.cpp: (WebKit): (WebKit::WebLayerTreeView::Settings::operator CCLayerTreeSettings): * src/WebSettingsImpl.cpp: * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestShortlived1): (WTF::CCLayerTreeHostTestShortlived1::CCLayerTreeHostTestShortlived1): (WTF::CCLayerTreeHostTestShortlived1::beginTest): (WTF::CCLayerTreeHostTestShortlived1::afterTest): * tests/CCTestCommon.h: Added. (WebKitTests): (CCScopedSettings): (WebKitTests::CCScopedSettings::CCScopedSettings): (WebKitTests::CCScopedSettings::~CCScopedSettings): * tests/CCThreadedTest.cpp: (WebKitTests::MockLayerTreeHostImpl::create): (WebKitTests::MockLayerTreeHostImpl::MockLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (WebKitTests::CCThreadedTest::runTest): * tests/CCThreadedTest.h: (CCThreadedTest): (MockLayerTreeHostImpl): * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (WebKitTests::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest): * tests/LayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: (LayerRendererChromiumTest): (TEST_F): (TEST): * tests/TextureLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: * tests/TreeSynchronizerTest.cpp: (WebKitTests::TEST): 2012-06-14 James Robinson [chromium] Move opaque rectangle tracking logic out of compositor core https://bugs.webkit.org/show_bug.cgi?id=89031 Reviewed by Adrienne Walker. Moves the grayscale/subpixel AA text decision into NonCompositedContentHost and removes one layer of indirection betwen NCCH and WVI that existed only for historical reasons. Ports the opaque rect tracking tests that were in LayerTextureUpdaterTest to OpaquerectTrackingContentLayerDelegateTest to reflect the move in responsibilities. * WebKit.gypi: * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::NonCompositedContentHost): (WebKit::NonCompositedContentHost::setOpaque): (WebKit::NonCompositedContentHost::paintContents): * src/NonCompositedContentHost.h: (WebCore): (WebKit): (WebKit::NonCompositedContentHost::create): (NonCompositedContentHost): * src/WebContentLayerImpl.cpp: (WebKit::WebContentLayerImpl::paintContents): * src/WebContentLayerImpl.h: (WebContentLayerImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::paintRootLayer): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF::TestOpacityChangeLayerDelegate::paintContents): (WTF::MockContentLayerDelegate::paintContents): * tests/LayerChromiumTest.cpp: * tests/LayerTextureUpdaterTest.cpp: Removed. * tests/OpaqueRectTrackingContentLayerDelegateTest.cpp: Added. (WebCore): (PaintCallback): (TestLayerPainterChromium): (WebCore::TestLayerPainterChromium::TestLayerPainterChromium): (WebCore::PaintFillAlpha::operator()): (WebCore::PaintFillPartialOpaque::PaintFillPartialOpaque): (PaintFillPartialOpaque): (WebCore::PaintFillPartialOpaque::operator()): (OpaqueRectTrackingContentLayerDelegateTest): (WebCore::OpaqueRectTrackingContentLayerDelegateTest::OpaqueRectTrackingContentLayerDelegateTest): (WebCore::OpaqueRectTrackingContentLayerDelegateTest::skCanvas): (WebCore::OpaqueRectTrackingContentLayerDelegateTest::canvasRect): (WebCore::TEST_F): 2012-06-14 Justin Novosad [Chromium] webkitImageSmoothingEnabled canvas property does not work on redraw https://bugs.webkit.org/show_bug.cgi?id=89018 Reviewed by Stephen White. Rolling chromium DEPS to 141884 * DEPS: 2012-06-14 Alexander Pavlov [Chromium] Unreviewed, build fix for Mac 10.5 * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth): 2012-06-14 Eugene Klyuchnikov Web Inspector: Refactor message loop instrumentation. https://bugs.webkit.org/show_bug.cgi?id=88978 Reviewed by Pavel Feldman. 1) Remove "messageLoop" term 2) Reuse WebThread::TaskObserver interface 3) Move implementation (from embedder) to platform code. * public/WebDevToolsAgent.h: (WebDevToolsAgent): * public/WebDevToolsAgentClient.h: (WebDevToolsAgentClient): (WebKit::WebDevToolsAgentClient::startMainThreadMonitoring): Renamed medthod. (WebKit::WebDevToolsAgentClient::stopMainThreadMonitoring): Ditto. * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::startMainThreadMonitoring): Ditto. (WebKit::InspectorClientImpl::stopMainThreadMonitoring): Ditto. * src/InspectorClientImpl.h: (InspectorClientImpl): * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::startMainThreadMonitoring): Use platform threading. (WebKit::WebDevToolsAgentImpl::stopMainThreadMonitoring): Ditto. (WebKit::WebDevToolsAgentImpl::willProcessTask): Renamed medthod. (WebKit::WebDevToolsAgentImpl::didProcessTask): Ditto. * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): * src/WebKit.cpp: 2012-06-14 Alexander Pavlov Web Inspector: [Device Metrics] "Fit window" results in duplicate rescaling in WebDevToolsAgentImpl::autoZoomPageToFitWidth() https://bugs.webkit.org/show_bug.cgi?id=89092 Reviewed by Pavel Feldman. Do not apply the sizeRatio after it has been applied in scaledEmulatedFrameSize(). * src/WebDevToolsAgentImpl.cpp: (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth): (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor): 2012-06-14 Yoshifumi Inoue [Chromium][Forms] We should remove ENABLE_INPUT_TYPE_TIME=0 and so on to allows us to override them by ~/.gyp/include.gypi https://bugs.webkit.org/show_bug.cgi?id=89062 Reviewed by Kent Tamura. This patch removes ENABLE_INPUT_TYPE_*=0 from default entry of feature_defines to allows us overriding by ~/.gyp/include.gypi * features.gypi: Remove ENABLE_INPUT_TYPE_DATETIME=0, ENABLE_INPUT_TYPE_DATETIMELOCAL=0, and so on. 2012-06-14 Min Qin Remove the const keyword from MediaPlayerPrivate::enterFullscreen() https://bugs.webkit.org/show_bug.cgi?id=89044 Reviewed by Adam Barth. enterFullscreen() should be treated similarly as exitFullscreen() as it could alter the player state. This reverts the change from r120213. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::enterFullscreen): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-06-14 Dan Alcantara [chromium] Rename WebFrameClient::userAgent() to better reflect what it does https://bugs.webkit.org/show_bug.cgi?id=89028 Reviewed by Adam Barth. Renames WebFrameClient::userAgent() to userAgentOverride() and makes it return the user agent override string directly. * public/WebFrameClient.h: (WebFrameClient): (WebKit::WebFrameClient::userAgentOverride): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::userAgent): * tests/FrameLoaderClientImplTest.cpp: 2012-06-13 Jesse Greenwald [Chromium] Add WebDocument.images https://bugs.webkit.org/show_bug.cgi?id=88837 Reviewed by Adam Barth. This method is needed on Android to support the existing WebView.documentHasImages Java API. * public/WebDocument.h: (WebDocument): * src/WebDocument.cpp: (WebKit::WebDocument::images): (WebKit): 2012-06-13 Dominic Cooney Unreviewed: Disable verifyHitTestingForSingleLayer. https://bugs.webkit.org/show_bug.cgi?id=89065 It is failing on canary debug bots. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-13 Sheriff Bot Unreviewed, rolling out r120268. http://trac.webkit.org/changeset/120268 https://bugs.webkit.org/show_bug.cgi?id=89060 WebCompositor::setPerTilePaintingEnabled hits an assertion in DEBUG (Requested by dominicc|work on #webkit). * WebKit.gypi: * public/WebCompositor.h: (WebCompositor): * public/WebSettings.h: * src/WebCompositorImpl.cpp: (WebKit::WebCompositor::shutdown): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setPerTilePaintingEnabled): (WebKit): (WebKit::WebSettingsImpl::setPartialSwapEnabled): (WebKit::WebSettingsImpl::setThreadedAnimationEnabled): * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: * tests/CCTestCommon.h: Removed. * tests/CCThreadedTest.cpp: (WebKitTests::MockLayerTreeHostImpl::create): (WebKitTests::MockLayerTreeHostImpl::MockLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (WebKitTests::CCThreadedTest::runTest): * tests/CCThreadedTest.h: (CCThreadedTest): (MockLayerTreeHostImpl): * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (WebKitTests::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest): * tests/LayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: (LayerRendererChromiumTest): (TEST_F): (TEST): * tests/TextureLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: * tests/TreeSynchronizerTest.cpp: (WebKitTests::TEST): 2012-06-13 Hironori Bono [chromium] Add WebFrame::replaceMisspelledRange https://bugs.webkit.org/show_bug.cgi?id=88618 Reviewed by Kent Tamura. This change adds WebFrame::replaceMisspelledRange, which replaces the range of a misspelled marker with text so Chromium can use it for replacing misspelled words with suggetions. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::replaceMisspelledRange): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): 2012-06-13 Xianzhu Wang [Chromium] Let Android and Linux share WebFontRendering decl/impl. https://bugs.webkit.org/show_bug.cgi?id=88802 Reviewed by Adam Barth. * WebKit.gyp: * public/linux/WebFontRendering.h: Temporarily forwards to the new file under linuxish. * public/linuxish: Added. * public/linuxish/WebFontRendering.h: Copied from chromium/public/linux/WebFontRendering.h. * src/linux/WebFontRendering.cpp: Removed. * src/linuxish: Added. * src/linuxish/WebFontRendering.cpp: Copied from chromium/src/linux/WebFontRendering.cpp. 2012-06-13 Ian Vollick [chromium] Certain settings in CCSettings could be global https://bugs.webkit.org/show_bug.cgi?id=88384 Reviewed by James Robinson. * WebKit.gypi: * public/WebCompositor.h: (WebCompositor): * public/WebSettings.h: * src/WebCompositorImpl.cpp: (WebKit::WebCompositor::shutdown): (WebKit): (WebKit::WebCompositor::setPerTilePaintingEnabled): (WebKit::WebCompositor::setPartialSwapEnabled): (WebKit::WebCompositor::setAcceleratedAnimationEnabled): * src/WebLayerTreeView.cpp: (WebKit): (WebKit::WebLayerTreeView::Settings::operator CCLayerTreeSettings): * src/WebSettingsImpl.cpp: * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/CCLayerTreeHostImplTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestShortlived1): (WTF::CCLayerTreeHostTestShortlived1::CCLayerTreeHostTestShortlived1): (WTF::CCLayerTreeHostTestShortlived1::beginTest): (WTF::CCLayerTreeHostTestShortlived1::afterTest): * tests/CCTestCommon.h: Added. (WebKitTests): (CCScopedSettings): (WebKitTests::CCScopedSettings::CCScopedSettings): (WebKitTests::CCScopedSettings::~CCScopedSettings): * tests/CCThreadedTest.cpp: (WebKitTests::MockLayerTreeHostImpl::create): (WebKitTests::MockLayerTreeHostImpl::MockLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (WebKitTests::CCThreadedTest::runTest): * tests/CCThreadedTest.h: (CCThreadedTest): (MockLayerTreeHostImpl): * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (WebKitTests::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest): * tests/LayerChromiumTest.cpp: * tests/LayerRendererChromiumTest.cpp: (LayerRendererChromiumTest): (TEST_F): (TEST): * tests/TextureLayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: * tests/TreeSynchronizerTest.cpp: (WebKitTests::TEST): 2012-06-13 Dana Jansens [chromium] Assert if iterating an invalid RenderSurfaceLayerList, where a layer in the list has no RenderSurface https://bugs.webkit.org/show_bug.cgi?id=89004 Reviewed by Adrienne Walker. * tests/CCLayerIteratorTest.cpp: 2012-06-13 Shawn Singh [chromium] Implement hit-testing for impl-side input handling in accelerated compositor https://bugs.webkit.org/show_bug.cgi?id=88972 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-13 David Reveman [Chromium] Crash when WebViewImpl::setIsTransparent is called before the WebLayerTreeView has been initialized. https://bugs.webkit.org/show_bug.cgi?id=89013 Reviewed by James Robinson. Add !m_layerTreeView.isNull() check to WebViewImpl::setIsTransparent. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsTransparent): 2012-06-13 Sheriff Bot Unreviewed, rolling out r120220. http://trac.webkit.org/changeset/120220 https://bugs.webkit.org/show_bug.cgi?id=89021 The patch broke build Chromium Win Release (Requested by wangxianzhu on #webkit). * WebKit.gyp: * public/linux/WebFontRendering.h: (WebKit): (WebFontRendering): * public/linuxish/WebFontRendering.h: Removed. * src/linux/WebFontRendering.cpp: Renamed from Source/WebKit/chromium/src/linuxish/WebFontRendering.cpp. (WebKit): (WebKit::WebFontRendering::setHinting): (WebKit::WebFontRendering::setAntiAlias): (WebKit::WebFontRendering::setSubpixelGlyphs): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): (WebKit::WebFontRendering::setLCDOrder): (WebKit::WebFontRendering::setLCDOrientation): 2012-06-13 Xianzhu Wang [Chromium] Let Android and Linux share WebFontRendering decl/impl. https://bugs.webkit.org/show_bug.cgi?id=88802 Reviewed by Adam Barth. * WebKit.gyp: * public/linux/WebFontRendering.h: Temporarily forwards to the new file under linuxish. * public/linuxish: Added. * public/linuxish/WebFontRendering.h: Copied from chromium/public/linux/WebFontRendering.h. * src/linux/WebFontRendering.cpp: Removed. * src/linuxish: Added. * src/linuxish/WebFontRendering.cpp: Copied from chromium/src/linux/WebFontRendering.cpp. 2012-06-13 Martin Kosiba [Chromium] WebFrameImpl::find doesn't work for searching from a selection. https://bugs.webkit.org/show_bug.cgi?id=88885 Reviewed by Adam Barth. Remember the active match not just until the seatchText changes but for the entire find session. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::find): (WebKit::WebFrameImpl::setFindEndstateFocusAndSelection): 2012-06-13 Peter Beverloo [Chromium] Fix Clang build with USE(NATIVE_FULLSCREEN_VIDEO)=1 https://bugs.webkit.org/show_bug.cgi?id=88987 Reviewed by Simon Hausmann. The enterFullscreen method is declared as const by MediaPlayerPrivateInterface, so this one should be declared as such as well. Patch by Evgeniy Stepanov * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::enterFullscreen): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-06-13 MORITA Hajime REGRESSION(r118098): element does not render distributed children when cloned from another document https://bugs.webkit.org/show_bug.cgi?id=88148 Reviewed by Dimitri Glazkov. - Added ContextFeaturesClientImpl which implements WebCore::ContextFeaturesClient. - Replaced PagePopupFrameLoaderClient with PagePopupFeaturesClient. * WebKit.gyp: * public/WebPermissionClient.h: (WebKit): (WebKit::WebPermissionClient::allowWebComponents): * src/ContextFeaturesClientImpl.cpp: Renamed from Source/WebCore/bindings/generic/ContextEnabledFeatures.cpp. (WebKit): (WebKit::ContextFeaturesClientImpl::isEnabled): * src/ContextFeaturesClientImpl.h: Renamed from Source/WebCore/bindings/generic/ContextEnabledFeatures.h. (WebKit): (ContextFeaturesClientImpl): (WebKit::ContextFeaturesClientImpl::ContextFeaturesClientImpl): (WebKit::ContextFeaturesClientImpl::setPermissionClient): * src/FrameLoaderClientImpl.cpp: * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): * src/WebPagePopupImpl.cpp: (PagePopupFeaturesClient): (WebKit::PagePopupFeaturesClient::isEnabled): (WebKit): (WebKit::WebPagePopupImpl::initPage): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setPermissionClient): (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): 2012-06-12 Ian Vollick [chromium] Roll chromium rev in DEPS https://bugs.webkit.org/show_bug.cgi?id=88934 Reviewed by James Robinson. Rolling to 141410 * DEPS: 2012-06-12 James Robinson [chromium] Port Canvas2DLayerBridge over to WebExternalTextureLayer https://bugs.webkit.org/show_bug.cgi?id=88597 Reviewed by Adrienne Walker. Implementations for new WebExternalTextureLayer APIs, updates test. * src/WebExternalTextureLayer.cpp: (WebKit::WebExternalTextureLayer::willModifyTexture): (WebKit): (WebKit::WebExternalTextureLayer::setRateLimitContext): * tests/Canvas2DLayerBridgeTest.cpp: (Canvas2DLayerBridgeTest::fullLifecycleTest): 2012-06-12 Adrienne Walker [chromium] Paint scrollbars on WebKit thread and composite those textures https://bugs.webkit.org/show_bug.cgi?id=88145 Reviewed by James Robinson. Remove scrollbarLayerLostContext test that no longer makes sense. The compositor won't draw at all after a lost context if it has no contents. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-12 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): (WebCore::TEST): 2012-06-12 Dana Jansens [chromium] Set contentBounds() on impl layers in CCLayerTreeHostCommonTests https://bugs.webkit.org/show_bug.cgi?id=88903 Reviewed by Adrienne Walker. Without setting the contentBounds() on impl layers, the visibleLayerRect will be wrong. This is not the case for main-thread layers, which most of the tests in this file use. But this is a potential serious confusion for future test implementors so I'd like to make it explicit now. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-12 Dana Jansens [chromium] Return empty visibleLayerRect for layers with empty content bounds https://bugs.webkit.org/show_bug.cgi?id=88901 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-12 Mark Mentovai [chromium mac] Don't #include things in subframeworks of ApplicationServices.framework. #including the umbrella exposed an ambiguous name, FontMetrics, that needs to be fully qualified as WebCore::FontMetrics. https://bugs.webkit.org/show_bug.cgi?id=88569 Reviewed by Stephen White. * src/WebFontImpl.cpp: (WebKit::WebFontImpl::estimateTextBounds): 2012-06-12 James Robinson [chromium] REGRESSION(119769): Canvas2DLayerBridge may go away before its TextureLayerChromium https://bugs.webkit.org/show_bug.cgi?id=88910 Reviewed by Adrienne Walker. New unit test to verify that we can still update a TextureLayerChromium after the bridge owning it has gone away. * tests/Canvas2DLayerBridgeTest.cpp: 2012-06-12 Adrienne Walker [chromium] Fix incorrect LayerChromium scroll position for RTL overflow pages https://bugs.webkit.org/show_bug.cgi?id=88887 Reviewed by James Robinson. The scroll position on layers needs to take into account the scroll origin, since RTL pages start scrolled all the way to the right. Otherwise, when scrolling left the scroll position incorrectly will go negative, causing havok in scrollbar theme code that just assumes that it's always scrolled all the way to the left. Also, now that the scroll origin is passed into NCCH, handle scrollOrigin.y() for layer adjusting. This is always zero in practice, but it seemed awkward to just drop it and that assumption could always change in the future. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::setViewport): (WebKit::NonCompositedContentHost::paintContents): * src/NonCompositedContentHost.h: (NonCompositedContentHost): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::updateLayerTreeViewport): 2012-06-12 Shawn Singh [chromium] Make damage tracking more robust to early exits https://bugs.webkit.org/show_bug.cgi?id=84803 Reviewed by James Robinson. * tests/CCDamageTrackerTest.cpp: (WebKitTests::clearDamageForAllSurfaces): (WebKitTests::TEST_F): 2012-06-12 Sheriff Bot Unreviewed, rolling out r120051. http://trac.webkit.org/changeset/120051 https://bugs.webkit.org/show_bug.cgi?id=88852 some tests are crashing (Requested by morrita on #webkit). * WebKit.gyp: * public/WebPermissionClient.h: (WebKit::WebPermissionClient::allowWebComponents): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::allowShadowDOM): (WebKit): (WebKit::FrameLoaderClientImpl::allowStyleScoped): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopupImpl::initPage): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setPermissionClient): (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): 2012-06-12 MORITA Hajime REGRESSION(r118098): element does not render distributed children when cloned from another document https://bugs.webkit.org/show_bug.cgi?id=88148 Reviewed by Dimitri Glazkov. - Added ContextFeaturesClientImpl which implements WebCore::ContextFeaturesClient. - Replaced PagePopupFrameLoaderClient with PagePopupFeaturesClient. * WebKit.gyp: * public/WebPermissionClient.h: (WebKit): (WebKit::WebPermissionClient::allowWebComponents): * src/ContextFeaturesClientImpl.cpp: Renamed from Source/WebCore/bindings/generic/ContextEnabledFeatures.cpp. (WebKit): (WebKit::ContextFeaturesClientImpl::isEnabled): * src/ContextFeaturesClientImpl.h: Renamed from Source/WebCore/bindings/generic/ContextEnabledFeatures.h. (WebKit): (ContextFeaturesClientImpl): (WebKit::ContextFeaturesClientImpl::ContextFeaturesClientImpl): (WebKit::ContextFeaturesClientImpl::setPermissionClient): * src/FrameLoaderClientImpl.cpp: * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): * src/WebPagePopupImpl.cpp: (PagePopupFeaturesClient): (WebKit::PagePopupFeaturesClient::isEnabled): (WebKit): (WebKit::WebPagePopupImpl::initPage): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setPermissionClient): (WebKit::WebViewImpl::WebViewImpl): * src/WebViewImpl.h: (WebKit): 2012-06-11 Nico Weber Remove unused member variables found by clang's -Wunused-private-field https://bugs.webkit.org/show_bug.cgi?id=88812 Reviewed by Anders Carlsson. * src/AudioDestinationChromium.cpp: (WebCore::AudioDestinationChromium::AudioDestinationChromium): * src/AudioDestinationChromium.h: (AudioDestinationChromium): * src/InspectorFrontendClientImpl.cpp: (WebKit::InspectorFrontendClientImpl::InspectorFrontendClientImpl): * src/InspectorFrontendClientImpl.h: (InspectorFrontendClientImpl): * src/WebFrameImpl.cpp: (ChromePluginPrintContext): * src/WebInputEvent.cpp: * src/WorkerAsyncFileSystemChromium.cpp: (WebCore::WorkerAsyncFileSystemChromium::createWorkerFileSystemCallbacksBridge): * src/WorkerAsyncFileWriterChromium.cpp: (WebCore::WorkerAsyncFileWriterChromium::WorkerAsyncFileWriterChromium): * src/WorkerAsyncFileWriterChromium.h: (WorkerAsyncFileWriterChromium): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestSetVisible::CCLayerTreeHostTestSetVisible): (CCLayerTreeHostTestSetVisible): 2012-06-11 Vincent Scheib Consolidate Pointer Lock runtime enabled flags to just one. https://bugs.webkit.org/show_bug.cgi?id=88810 Reviewed by Dimitri Glazkov. * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enablePointerLock): (WebKit::WebRuntimeFeatures::isPointerLockEnabled): 2012-06-11 Alexis Menard [CSS3 Backgrounds and Borders] Protect box-decoration-break behind a feature flag. https://bugs.webkit.org/show_bug.cgi?id=88804 Reviewed by Tony Chang. Protect box-decoration-break behind a feature flag enabled by default. * features.gypi: 2012-05-11 James Robinson [chromium] Port DrawingBufferChromium from TextureLayerChromium over to WebExternalTextureLayer https://bugs.webkit.org/show_bug.cgi?id=86273 Reviewed by Adrienne Walker. * src/WebExternalTextureLayer.cpp: (WebTextureUpdaterImpl): (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl): (WebKit): (WebExternalTextureLayerImpl): (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl): (WebKit::WebExternalTextureLayer::create): (WebKit::WebExternalTextureLayer::clearClient): (WebKit::WebExternalTextureLayer::setOpaque): (WebKit::WebExternalTextureLayer::setPremultipliedAlpha): 2012-06-11 Dana Jansens [chromium] Separate CCVideoDrawQuad and from the layer tree and video provider by removing ManagedTexture and WebVideoFrame pointers from the quad https://bugs.webkit.org/show_bug.cgi?id=88363 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: * tests/CCTiledLayerTestCommon.h: (WebKitTests::FakeTextureCopier::copyToTexture): * tests/Canvas2DLayerChromiumTest.cpp: 2012-06-11 Joshua Bell IndexedDB: Object stores are not successfully deleted https://bugs.webkit.org/show_bug.cgi?id=88788 Reviewed by Tony Chang. * tests/IDBLevelDBCodingTest.cpp: (IDBLevelDBCoding::TEST): 2012-06-11 Shawn Singh [chromium] Implement position:fixed in compositor thread https://bugs.webkit.org/show_bug.cgi?id=70103 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: 2012-06-11 Sam Weinig Remove support for disconnected/excluded from search frames, they are not used by Safari anymore https://bugs.webkit.org/show_bug.cgi?id=88723 Reviewed by Dan Bernstein. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::scopeStringMatches): 2012-06-11 Varun Jain [chromium] WebInputEvent::isGestureEventType should return true for GestureTwoFingerTap https://bugs.webkit.org/show_bug.cgi?id=88789 Reviewed by Adam Barth. * public/WebInputEvent.h: (WebKit::WebInputEvent::isGestureEventType): 2012-06-11 Mark Pilgrim [Chromium] Call shared timer functions directly https://bugs.webkit.org/show_bug.cgi?id=88781 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-06-11 Amy Ousterhout [Chromium] Removing long WebDeviceOrientation constructor https://bugs.webkit.org/show_bug.cgi?id=88779 Reviewed by Adam Barth. Removing the WebDeviceOrientation constructor with nine parameters. Chromium has been changed to use the default constructor and setter functions instead (see https://chromiumcodereview.appspot.com/10542025/). * public/WebDeviceOrientation.h: 2012-06-11 David Dorwin [chromium] Provide access to the WebPlugin created by the helper plugin widget https://bugs.webkit.org/show_bug.cgi?id=88028 Reviewed by Adam Barth. A WebPlugin is created when the document created by createHelperPlugin() is laid out. Expose it so the embedder can interact with the plugin instance. * public/WebHelperPlugin.h: (WebKit): (WebHelperPlugin): * public/WebMediaPlayerClient.h: (WebKit): * public/WebPlugin.h: (WebKit::WebPlugin::isPlaceholder): (WebPlugin): * src/WebHelperPluginImpl.cpp: (WebKit::WebHelperPluginImpl::WebHelperPluginImpl): (WebKit): (WebKit::WebHelperPluginImpl::getPlugin): (WebKit::WebHelperPluginImpl::initPage): (WebKit::WebHelperPluginImpl::close): * src/WebHelperPluginImpl.h: (WebKit): (WebHelperPluginImpl): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::createHelperPlugin): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): * src/WebPagePopupImpl.cpp: 2012-06-05 Dana Jansens [chromium] Free texture from CCIOSurfaceLayerImpl when it is destroyed https://bugs.webkit.org/show_bug.cgi?id=88371 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-11 Kent Tamura [Chromium] Should call frameDetached() in WebPagePopupImpl::close() https://bugs.webkit.org/show_bug.cgi?id=88754 Reviewed by Adam Barth. * src/WebPagePopupImpl.cpp: (WebKit::WebPagePopupImpl::close): Calls FrameLoader::frameDetached(). 2012-06-11 Min Qin Adding a flag to show fullscreen media controls in chromium https://bugs.webkit.org/show_bug.cgi?id=88266 Reviewed by Adam Barth. Adding a flag to the gyp file so that we can enable fullscreen media control * features.gypi: 2012-06-09 Eugene Klyuchnikov Web Inspector: Add message loop instrumentation to public API and timeline agent https://bugs.webkit.org/show_bug.cgi?id=88639 Reviewed by Vsevolod Vlasov. Message loop instrumentation will show when the render thread is busy. That way developer can discover if a render thread business causes low fps, or not. * public/WebDevToolsAgent.h: (WebDevToolsAgent): * public/WebDevToolsAgentClient.h: (WebDevToolsAgentClient): (WebKit::WebDevToolsAgentClient::startMessageLoopMonitoring): Request message loop notifications. (WebKit::WebDevToolsAgentClient::stopMessageLoopMonitoring): Cancel message loop notifications. * src/InspectorClientImpl.cpp: (WebKit::InspectorClientImpl::startMessageLoopMonitoring): Request message loop notifications. (WebKit): (WebKit::InspectorClientImpl::stopMessageLoopMonitoring): Cancel message loop notifications. * src/InspectorClientImpl.h: (InspectorClientImpl): * src/WebDevToolsAgentImpl.cpp: (WebKit::WebDevToolsAgentImpl::startMessageLoopMonitoring): Request message loop notifications. (WebKit): (WebKit::WebDevToolsAgentImpl::stopMessageLoopMonitoring): Cancel message loop notifications. (WebKit::WebDevToolsAgentImpl::instrumentWillProcessTask): Message loop notification. (WebKit::WebDevToolsAgentImpl::instrumentDidProcessTask): Ditto. * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): 2012-06-08 David Reveman [Chromium] Compositor doesn't support translucent root layers. https://bugs.webkit.org/show_bug.cgi?id=87821 Reviewed by James Robinson. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::setOpaque): (WebKit): * src/NonCompositedContentHost.h: (NonCompositedContentHost): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::setHasTransparentBackground): (WebKit): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsTransparent): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/CCLayerTreeHostImplTest.cpp: * tests/LayerRendererChromiumTest.cpp: (ClearCountingContext): (ClearCountingContext::ClearCountingContext): (ClearCountingContext::clear): (ClearCountingContext::clearCount): (TEST): 2012-06-08 Ian Vollick [chromium] Single thread proxy's animation timer should short circuit if the layer renderer has not been initialized https://bugs.webkit.org/show_bug.cgi?id=88668 Reviewed by James Robinson. * WebKit.gypi: * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestWriteLayersRedraw::beginTest): (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::commitCompleteOnCCThread): (WTF): (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::CCLayerTreeHostTestLayerAddedWithAnimation): (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::beginTest): (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::didAddAnimation): (CCLayerTreeHostTestLayerAddedWithAnimation): * tests/CCSingleThreadProxyTest.cpp: Added. (FakeWebGraphicsContext3DMakeCurrentFails): (FakeWebGraphicsContext3DMakeCurrentFails::makeContextCurrent): (CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation): (CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation::CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation): (CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation::beginTest): (CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation::animateLayers): (CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation::didRecreateContext): (CCSingleThreadProxyTestInitializeLayerRendererFailsAfterAddAnimation::afterTest): (TEST_F): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer::CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer::beginTest): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer::animateLayers): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer::didRecreateContext): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer::didAddAnimation): (CCSingleThreadProxyTestDidAddAnimationBeforeInitializingLayerRenderer::afterTest): * tests/CCThreadedTest.cpp: Added. (WebKitTests): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::create): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::createTexture): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::deleteTexture): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::bindTexture): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::numTextures): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::texture): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetTextures): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::numUsedTextures): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::usedTexture): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetUsedTextures): (WebKitTests::CompositorFakeWebGraphicsContext3DWithTextureTracking::CompositorFakeWebGraphicsContext3DWithTextureTracking): (WebKitTests::TestHooks::createContext): (WebKitTests::MockLayerTreeHostImpl::create): (WebKitTests::MockLayerTreeHostImpl::beginCommit): (WebKitTests::MockLayerTreeHostImpl::commitComplete): (WebKitTests::MockLayerTreeHostImpl::prepareToDraw): (WebKitTests::MockLayerTreeHostImpl::drawLayers): (WebKitTests::MockLayerTreeHostImpl::animateLayers): (WebKitTests::MockLayerTreeHostImpl::lowFrequencyAnimationInterval): (WebKitTests::MockLayerTreeHostImpl::MockLayerTreeHostImpl): (MockLayerTreeHost): (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (MockLayerTreeHostClient): (WebKitTests::MockLayerTreeHostClient::create): (WebKitTests::MockLayerTreeHostClient::MockLayerTreeHostClient): (TimeoutTask): (WebKitTests::TimeoutTask::TimeoutTask): (WebKitTests::TimeoutTask::clearTest): (WebKitTests::TimeoutTask::~TimeoutTask): (WebKitTests::TimeoutTask::run): (BeginTask): (WebKitTests::BeginTask::BeginTask): (WebKitTests::BeginTask::~BeginTask): (WebKitTests::BeginTask::run): (EndTestTask): (WebKitTests::EndTestTask::EndTestTask): (WebKitTests::EndTestTask::~EndTestTask): (WebKitTests::EndTestTask::clearTest): (WebKitTests::EndTestTask::run): (WebKitTests::CCThreadedTest::CCThreadedTest): (WebKitTests::CCThreadedTest::endTest): (WebKitTests::CCThreadedTest::endTestAfterDelay): (WebKitTests::CCThreadedTest::postSetNeedsAnimateToMainThread): (WebKitTests::CCThreadedTest::postAddAnimationToMainThread): (WebKitTests::CCThreadedTest::postAddInstantAnimationToMainThread): (WebKitTests::CCThreadedTest::postSetNeedsCommitToMainThread): (WebKitTests::CCThreadedTest::postAcquireLayerTextures): (WebKitTests::CCThreadedTest::postSetNeedsRedrawToMainThread): (WebKitTests::CCThreadedTest::postSetNeedsAnimateAndCommitToMainThread): (WebKitTests::CCThreadedTest::postSetVisibleToMainThread): (WebKitTests::CCThreadedTest::postDidAddAnimationToMainThread): (WebKitTests::CCThreadedTest::doBeginTest): (WebKitTests::CCThreadedTest::timeout): (WebKitTests::CCThreadedTest::scheduleComposite): (WebKitTests::CCThreadedTest::onEndTest): (WebKitTests::CCThreadedTest::dispatchSetNeedsAnimate): (WebKitTests::CCThreadedTest::dispatchAddInstantAnimation): (WebKitTests::CCThreadedTest::dispatchAddAnimation): (WebKitTests::CCThreadedTest::dispatchSetNeedsAnimateAndCommit): (WebKitTests::CCThreadedTest::dispatchSetNeedsCommit): (WebKitTests::CCThreadedTest::dispatchAcquireLayerTextures): (WebKitTests::CCThreadedTest::dispatchSetNeedsRedraw): (WebKitTests::CCThreadedTest::dispatchSetVisible): (WebKitTests::CCThreadedTest::dispatchSetInvisible): (WebKitTests::CCThreadedTest::dispatchComposite): (WebKitTests::CCThreadedTest::dispatchDidAddAnimation): (WebKitTests::CCThreadedTest::runTest): * tests/CCThreadedTest.h: Added. (WebCore): (WebKit): (WebKitTests): (TestHooks): (WebKitTests::TestHooks::beginCommitOnCCThread): (WebKitTests::TestHooks::commitCompleteOnCCThread): (WebKitTests::TestHooks::prepareToDrawOnCCThread): (WebKitTests::TestHooks::drawLayersOnCCThread): (WebKitTests::TestHooks::animateLayers): (WebKitTests::TestHooks::willAnimateLayers): (WebKitTests::TestHooks::applyScrollAndScale): (WebKitTests::TestHooks::updateAnimations): (WebKitTests::TestHooks::layout): (WebKitTests::TestHooks::didRecreateContext): (WebKitTests::TestHooks::didAddAnimation): (WebKitTests::TestHooks::didCommit): (WebKitTests::TestHooks::didCommitAndDrawFrame): (WebKitTests::TestHooks::scheduleComposite): (WebKitTests::TestHooks::notifyAnimationStarted): (WebKitTests::TestHooks::notifyAnimationFinished): (CCThreadedTest): (WebKitTests::CCThreadedTest::clearTimeout): (WebKitTests::CCThreadedTest::clearEndTestTask): (WebKitTests::CCThreadedTest::layerTreeHost): (CCThreadedTestThreadOnly): (WebKitTests::CCThreadedTestThreadOnly::runTestThreaded): (MockLayerTreeHostImpl): (CompositorFakeWebGraphicsContext3DWithTextureTracking): 2012-06-08 David Grogan IndexedDB: rename some instances of open to registerFrontendCallbacks https://bugs.webkit.org/show_bug.cgi?id=88611 Reviewed by Tony Chang. * src/IDBDatabaseBackendProxy.cpp: (WebKit::IDBDatabaseBackendProxy::registerFrontendCallbacks): * src/IDBDatabaseBackendProxy.h: (IDBDatabaseBackendProxy): * src/WebIDBDatabaseImpl.cpp: (WebKit::WebIDBDatabaseImpl::open): * src/WebIDBDatabaseImpl.h: (WebIDBDatabaseImpl): 2012-06-08 Dana Jansens [chromium] Skip willDraw() and didDraw() on fully occluded layers https://bugs.webkit.org/show_bug.cgi?id=88435 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-08 James Robinson [chromium] Clean up some unnecessary LayerChromium.h includes https://bugs.webkit.org/show_bug.cgi?id=88599 Reviewed by Adam Barth. Removes unused include, update comment. * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::platformLayer): (WebKit::WebMediaPlayerClientImpl::paint): 2012-06-08 Jochen Eisinger Unreviewed. Rolled DEPS. * DEPS: 2012-06-08 Ian Vollick [chromium] Accelerated animations should use WebTransformOperations https://bugs.webkit.org/show_bug.cgi?id=87686 Reviewed by James Robinson. CCTransformKeyframe new owns a WebTransformOperations rather than a TransformOperations. LayerChromium's API has been changed so that LayerChromium::addAnimation should take only a CCActiveAnimation. GraphicsLayerChromium is new responsible for translating to WebTransformOperations and creating CCActiveAnimations. Tests that use the public API (that is, they call addAnimation with KeyframeValueList and Animation arguments) have been moved to GraphicsLayerChromiumTest. * tests/CCAnimationTestCommon.cpp: (WebCore::addOpacityTransition): (WebCore::addAnimatedTransform): (WebKitTests::FakeTransformTransition::getValue): * tests/CCAnimationTestCommon.h: * tests/CCKeyframedAnimationCurveTest.cpp: * tests/CCLayerAnimationControllerTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::beginTest): * tests/GraphicsLayerChromiumTest.cpp: (MockLayerTreeHostClient): (WebKitTests): (MockLayerTreeHost): (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (GraphicsLayerChromiumTest): (WebKitTests::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest): (WebKitTests::GraphicsLayerChromiumTest::~GraphicsLayerChromiumTest): (WebKitTests::GraphicsLayerChromiumTest::expectTranslateX): (WebKitTests::TEST_F): * tests/LayerChromiumTest.cpp: 2012-06-08 Robert Kroeger More than 8 fingers get ignored by touch https://bugs.webkit.org/show_bug.cgi?id=88359 Reviewed by James Robinson. * public/WebInputEvent.h: Increase of TouchPoints per TouchEvent from 8 to 12. 2012-06-08 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-06-08 Taiju Tsuiki Add FileSystem item to storage tree. https://bugs.webkit.org/show_bug.cgi?id=72691 Reviewed by Vsevolod Vlasov. * src/js/DevTools.js: 2012-06-08 Peter Beverloo [Chromium] Re-enable SHARED_WORKERS for Android until a build fix has been resolved. https://bugs.webkit.org/show_bug.cgi?id=88637 Unreviewed build fix. Linking content_shell on the Chromium side fails due to an unresolved call to WebSharedWorker::create(). Since this blocks WebKit rolls, temporarily re-enable the feature until this has been solved. * features.gypi: 2012-06-07 Nico Weber [chromium/mac] Improve deviceDPI, rect, and availableRect computation https://bugs.webkit.org/show_bug.cgi?id=88596 Reviewed by Adam Barth. Set deviceDPI to 160 for normal displays and 320 for HiDPI displays. (Why 160? That's what chromium's render_view.cc assumes as default single-resolution resolution at the moment. The only other place where this number gets used is fixed layout mode, which is currently not enabled.) Also fix rect and availableRect computations: They get returned in user space already. Needed for http://crbug.com/31960. * src/mac/WebScreenInfoFactory.mm: (WebKit::toUserSpace): (WebKit::deviceScaleFactor): (WebKit): (WebKit::WebScreenInfoFactory::screenInfo): 2012-06-07 Mark Pilgrim [Chromium] Move didStartWorkerRunLoop to Platform.h https://bugs.webkit.org/show_bug.cgi?id=88562 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-06-05 James Robinson [chromium] Move deferral-related logic out of Canvas2DLayerChromium https://bugs.webkit.org/show_bug.cgi?id=86050 Reviewed by Stephen White. * WebKit.gypi: * tests/Canvas2DLayerBridgeTest.cpp: Renamed from tests/Canvas2DLayerChromiumTest (Canvas2DLayerBridgeTest): (Canvas2DLayerBridgeTest::fullLifecycleTest): 2012-06-07 Sheriff Bot Unreviewed, rolling out r119744. http://trac.webkit.org/changeset/119744 https://bugs.webkit.org/show_bug.cgi?id=88584 Fails assertions in debug builds (Requested by jamesr_ on #webkit). * tests/CCLayerTreeHostImplTest.cpp: 2012-06-07 Adam Barth Settings::defaultDeviceScaleFactor is redundant with Page::deviceScaleFactor https://bugs.webkit.org/show_bug.cgi?id=88375 Reviewed by James Robinson. * public/WebSettings.h: (WebKit::WebSettings::setDefaultDeviceScaleFactor): (WebSettings): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange): * src/WebSettingsImpl.cpp: (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): * tests/WebFrameTest.cpp: (WebKit::TEST_F): 2012-06-07 Peter Beverloo [Chromium] features.gypi should have the correct definitions for Android https://bugs.webkit.org/show_bug.cgi?id=88533 Reviewed by Adam Barth. Make all features which are enabled on Android but disabled on other platforms, or are disabled on Android while enabled on other platforms, conditional. This also means that the selection of code compiled for Android will slightly change. This change also removes the enable_viewport variable as the value of this is no longer respected by WebKit - it's enabled by default for all of Chromium. Furthermore, ENABLE_OVERFLOW_SCROLLING is now listed in features.gypi again. * features.gypi: 2012-06-07 Dana Jansens [chromium] Free texture from CCIOSurfaceLayerImpl when it is destroyed https://bugs.webkit.org/show_bug.cgi?id=88371 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-07 Ami Fischman Plumb CORS attribute information from HTMLMediaElement to media players so it can be used https://bugs.webkit.org/show_bug.cgi?id=88349 Reviewed by Adam Barth. * public/WebMediaPlayer.h: (WebMediaPlayer): * src/AssertMatchingEnums.cpp: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::loadInternal): (WebKit::WebMediaPlayerClientImpl::didPassCORSAccessCheck): (WebKit): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-06-07 Daniel Erat Add setting to enable subpixel-positioned text on Linux. https://bugs.webkit.org/show_bug.cgi?id=88263 Reviewed by Tony Chang. Add subpixel positioning field to WebFontRenderStyle and rename subpixel rendering field. Make similar changes in WebFontRendering. Also add global WebFontInfo::setSubpixelPositioning() to turn subpixel positioning on or off (there's not currently a well-defined way to configure subpixel positioning via FontConfig). * public/linux/WebFontInfo.h: (WebFontInfo): * public/linux/WebFontRenderStyle.h: * public/linux/WebFontRendering.h: (WebFontRendering): * src/linux/WebFontInfo.cpp: (WebKit): (WebKit::WebFontInfo::setSubpixelPositioning): (WebKit::WebFontInfo::renderStyleForStrike): * src/linux/WebFontRenderStyle.cpp: (WebKit::WebFontRenderStyle::toFontRenderStyle): (WebKit::WebFontRenderStyle::setDefaults): * src/linux/WebFontRendering.cpp: (WebKit::WebFontRendering::setSubpixelGlyphs): (WebKit): (WebKit::WebFontRendering::setSubpixelRendering): (WebKit::WebFontRendering::setSubpixelPositioning): 2012-06-06 Dana Jansens [chromium] In each composited frame, didDraw() should only be called on layers for which willDraw() was called https://bugs.webkit.org/show_bug.cgi?id=88469 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-07 Sheriff Bot Unreviewed, rolling out r119694. http://trac.webkit.org/changeset/119694 https://bugs.webkit.org/show_bug.cgi?id=88529 it broke PrerenderBrowserTest.PrerenderHTML5VideoNetwork (Requested by loislo on #webkit). * public/WebMediaPlayer.h: (WebMediaPlayer): * src/AssertMatchingEnums.cpp: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::loadInternal): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-06-07 Sheriff Bot Unreviewed, rolling out r119689. http://trac.webkit.org/changeset/119689 https://bugs.webkit.org/show_bug.cgi?id=88516 it broke didDrawNotCalledOnScissoredLayer webkit_unit_test (Requested by loislo on #webkit). * tests/CCLayerTreeHostImplTest.cpp: 2012-06-07 Ami Fischman Plumb CORS attribute information from HTMLMediaElement to media players so it can be used https://bugs.webkit.org/show_bug.cgi?id=88349 Reviewed by Adam Barth. * public/WebMediaPlayer.h: (WebMediaPlayer): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::loadInternal): 2012-06-07 Yoshifumi Inoue [Platform] Introduce conversion from/to Deciaml to/from double and helper functions https://bugs.webkit.org/show_bug.cgi?id=88480 Reviewed by Kent Tamura. This patch added tests for Decimal::fromDouble, isInfinity, toDouble. * tests/DecimalTest.cpp: (TEST_F): 2012-06-07 Ami Fischman Unreviewed. Rolled DEPS. * DEPS: 2012-06-06 Dana Jansens [chromium] In each composited frame, didDraw() should only be called on layers for which willDraw() was called https://bugs.webkit.org/show_bug.cgi?id=88469 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-06 Kent Tamura Unreviewed, rolling out r60044. http://trac.webkit.org/changeset/60044 It made a regression, crbug.com/114922. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::invalidateContentsForSlowScroll): Do not hide popups by scrolling. (WebKit::ChromeClientImpl::scroll): ditto. 2012-06-06 Noel Gordon Unreviewed. Rolled DEPS. * DEPS: Roll to chromium 140955. 2012-06-06 Sheriff Bot Unreviewed, rolling out r119683. http://trac.webkit.org/changeset/119683 https://bugs.webkit.org/show_bug.cgi?id=88505 it broke webkit-unit-test WebLayerTreeViewThreadedTest.InstrumentationCallbacks on mac (Requested by loislo on #webkit). * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHost::create): * tests/Canvas2DLayerChromiumTest.cpp: (Canvas2DLayerChromiumTest::fullLifecycleTest): 2012-06-06 Robert Kroeger [Chromium] Re-enable handling of smooth scrolling on Chromium Linux/Windows https://bugs.webkit.org/show_bug.cgi?id=87535 by adding support for precise scrolling deltas on all Chromium platforms. Reviewed by James Robinson. * src/WebInputEventConversion.cpp: (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder): Create PlatformWheelEvents with m_hasPreciseScrollingDelta flag as required. * tests/ScrollAnimatorNoneTest.cpp: Added new unit test condiiton for precise scrolling. (TEST): 2012-06-06 Michal Mocny [chromium] Stop dropping texture limits when the layer tree host becomes invisible, and initialize with 0 allocation. https://bugs.webkit.org/show_bug.cgi?id=87747 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHost::create): * tests/Canvas2DLayerChromiumTest.cpp: (Canvas2DLayerChromiumTest::fullLifecycleTest): 2012-06-06 Mark Pilgrim [Chromium] Move createMessagePortChannel to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85764 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/WebFrame.h: (WebFrame): * public/WebMessagePortChannel.h: * public/WebMessagePortChannelClient.h: * public/WebSharedWorkerClient.h: (WebSharedWorkerClient): * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue): * src/PlatformMessagePortChannel.cpp: (WebCore::PlatformMessagePortChannel::PlatformMessagePortChannel): * src/PlatformMessagePortChannel.h: * src/SharedWorkerRepository.cpp: * src/WebSharedWorkerImpl.cpp: 2012-06-06 Amy Ousterhout [Chromium] DeviceOrientation cleanup https://bugs.webkit.org/show_bug.cgi?id=88406 Reviewed by Kent Tamura. Made default constructor public and added a set function for each property. This will allow us to remove the 8-parameter constructor. * public/WebDeviceOrientation.h: (WebKit::WebDeviceOrientation::WebDeviceOrientation): (WebKit::WebDeviceOrientation::setNull): (WebKit::WebDeviceOrientation::setAlpha): (WebKit::WebDeviceOrientation::setBeta): (WebKit::WebDeviceOrientation::setGamma): (WebKit::WebDeviceOrientation::setAbsolute): (WebDeviceOrientation): 2012-06-06 James Robinson [chromium] Move implementation of WebCore::GraphicsContext3D and related from WebKit/chromium/src to WebCore/platform/chromium/support https://bugs.webkit.org/show_bug.cgi?id=86257 Reviewed by Kenneth Russell. * WebKit.gyp: 2012-06-06 James Robinson [chromium] Unreviewed build fix, add an apparently used include of OwnArrayPtr.h back to GraphicsContext3DPrivate.h https://bugs.webkit.org/show_bug.cgi?id=88468 * src/GraphicsContext3DPrivate.h: 2012-06-06 James Robinson [chromium] Clean up GraphicsContext3D implementation https://bugs.webkit.org/show_bug.cgi?id=88460 Reviewed by Kenneth Russell. Chromium's implementation of the GraphicsContext3D implementation has been somewhat messy for historical reasons. The actual implementation of the majority of these functions is done by delegating to the Platform API WebGraphicsContext3D. A few bits of functionality - extension mapping, some compositor functionality, a readback utility - are implemented by code in WebKit. Previously, all GraphicsContext3D functions delegates to a clone of the interface in GraphicsContext3DPrivate which in turn delegated to WebGraphicsContext3D. This required duplicating the entire GraphicsContext3D interface and made updating the interface an epic pain in the rear. This patch provides the implementations of GraphicsContext3D functions in GraphicsContext3DChromium.cpp. Most of these functions delegate directly to WebGraphicsContext3D. The ones that do not delegate to GraphicsContext3DPrivate, which now has a dedicated header and cpp file. GraphicsContext3DPrivate.cpp implements all GraphicsContext3DPrivate functions. I've also reordered the implementation files so that the function order matches the associated header file and normalized the names of callback adapters. Refactor only, no change in functionality. Existing tests apply. * WebKit.gyp: * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::ensureEnabled): (WebCore::Extensions3DChromium::getGraphicsResetStatusARB): (WebCore::Extensions3DChromium::blitFramebuffer): (WebCore::Extensions3DChromium::renderbufferStorageMultisample): (WebCore::Extensions3DChromium::postSubBufferCHROMIUM): (WebCore::Extensions3DChromium::mapBufferSubDataCHROMIUM): (WebCore::Extensions3DChromium::unmapBufferSubDataCHROMIUM): (WebCore::Extensions3DChromium::mapTexSubImage2DCHROMIUM): (WebCore::Extensions3DChromium::unmapTexSubImage2DCHROMIUM): (WebCore::Extensions3DChromium::setVisibilityCHROMIUM): (WebCore::Extensions3DChromium::discardFramebufferEXT): (WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM): (WebCore::Extensions3DChromium::getTranslatedShaderSourceANGLE): (WebCore::Extensions3DChromium::rateLimitOffscreenContextCHROMIUM): (WebCore::Extensions3DChromium::texImageIOSurface2DCHROMIUM): (WebCore::Extensions3DChromium::texStorage2DEXT): (WebCore::Extensions3DChromium::createQueryEXT): (WebCore::Extensions3DChromium::deleteQueryEXT): (WebCore::Extensions3DChromium::isQueryEXT): (WebCore::Extensions3DChromium::beginQueryEXT): (WebCore::Extensions3DChromium::endQueryEXT): (WebCore::Extensions3DChromium::getQueryivEXT): (WebCore::Extensions3DChromium::getQueryObjectuivEXT): * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3D::GraphicsContext3D): (WebCore::GraphicsContext3D::~GraphicsContext3D): (WebCore::GraphicsContext3D::setContextLostCallback): (WebCore::GraphicsContext3D::setErrorMessageCallback): (WebCore::GraphicsContext3D::create): (WebCore::GraphicsContext3D::platformGraphicsContext3D): (WebCore::GraphicsContext3D::platformTexture): (WebCore::GraphicsContext3D::grContext): (WebCore::GraphicsContext3D::platformLayer): (WebCore): (WebCore::GraphicsContext3D::isGLES2Compliant): (WebCore::GraphicsContext3D::isResourceSafe): (WebCore::GraphicsContext3D::bindAttribLocation): (WebCore::GraphicsContext3D::bufferData): (WebCore::GraphicsContext3D::getActiveAttrib): (WebCore::GraphicsContext3D::getActiveUniform): (WebCore::GraphicsContext3D::getAttribLocation): (WebCore::GraphicsContext3D::getContextAttributes): (WebCore::GraphicsContext3D::getProgramInfoLog): (WebCore::GraphicsContext3D::getShaderInfoLog): (WebCore::GraphicsContext3D::getShaderSource): (WebCore::GraphicsContext3D::getString): (WebCore::GraphicsContext3D::getUniformLocation): (WebCore::GraphicsContext3D::shaderSource): (WebCore::GraphicsContext3D::texImage2D): (WebCore::GraphicsContext3D::texSubImage2D): (WebCore::GraphicsContext3D::reshape): (WebCore::GraphicsContext3D::markContextChanged): (WebCore::GraphicsContext3D::layerComposited): (WebCore::GraphicsContext3D::markLayerComposited): (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas): (WebCore::GraphicsContext3D::paintRenderingResultsToImageData): (WebCore::GraphicsContext3D::paintCompositedResultsToCanvas): (WebCore::GraphicsContext3D::getExtensions): (WebCore::GraphicsContext3D::getInternalFramebufferSize): * src/GraphicsContext3DPrivate.cpp: Added. (WebCore): (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate): (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate): (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext): (WebCore::GraphicsContext3DPrivate::extractWebGraphicsContext3D): (GrMemoryAllocationChangedCallback): (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback): (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged): (WebCore::GraphicsContext3DPrivate::grContext): (WebCore::GraphicsContext3DPrivate::markContextChanged): (WebCore::GraphicsContext3DPrivate::layerComposited): (WebCore::GraphicsContext3DPrivate::markLayerComposited): (WebCore::GraphicsContext3DPrivate::paintFramebufferToCanvas): (GraphicsContextLostCallbackAdapter): (WebCore::GraphicsContextLostCallbackAdapter::GraphicsContextLostCallbackAdapter): (WebCore::GraphicsContextLostCallbackAdapter::~GraphicsContextLostCallbackAdapter): (WebCore::GraphicsContextLostCallbackAdapter::onContextLost): (WebCore::GraphicsContext3DPrivate::setContextLostCallback): (GraphicsErrorMessageCallbackAdapter): (WebCore::GraphicsErrorMessageCallbackAdapter::GraphicsErrorMessageCallbackAdapter): (WebCore::GraphicsErrorMessageCallbackAdapter::~GraphicsErrorMessageCallbackAdapter): (WebCore::GraphicsErrorMessageCallbackAdapter::onErrorMessage): (WebCore::GraphicsContext3DPrivate::setErrorMessageCallback): (WebCore::GraphicsContext3DPrivate::getExtensions): (WebCore::GraphicsContext3DPrivate::initializeExtensions): (WebCore::GraphicsContext3DPrivate::supportsExtension): (WebCore::GraphicsContext3DPrivate::ensureExtensionEnabled): (WebCore::GraphicsContext3DPrivate::isExtensionEnabled): (WebCore::GraphicsContext3DPrivate::isResourceSafe): (GraphicsContext3DSwapBuffersCompleteCallbackAdapter): (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::GraphicsContext3DSwapBuffersCompleteCallbackAdapter): (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::~GraphicsContext3DSwapBuffersCompleteCallbackAdapter): (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::onSwapBuffersComplete): (WebCore::GraphicsContext3DPrivate::setSwapBuffersCompleteCallbackCHROMIUM): (GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged): (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM): * src/GraphicsContext3DPrivate.h: (GraphicsContext3DPrivate): (WebCore::GraphicsContext3DPrivate::webContext): (WebCore::GraphicsContext3DPrivate::preserveDrawingBuffer): 2012-06-06 Sadrul Habib Chowdhury [chromium] Avoid limiting page-scale-factor when device-scale-factor is applied in the compositor. https://bugs.webkit.org/show_bug.cgi?id=88417 Reviewed by James Robinson. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): 2012-06-06 Ami Fischman Unreviewed. Rolled DEPS. * DEPS: 2012-06-06 Nico Weber [chromium] Expose setPictographFontFamily through the chromium webkit api. https://bugs.webkit.org/show_bug.cgi?id=88393 Reviewed by Adam Barth. This was added to WebCore in https://bugs.webkit.org/show_bug.cgi?id=65197 * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setPictographFontFamily): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-06-06 Ryosuke Niwa Unreviewed. Rolled DEPS. * DEPS: 2012-06-06 Kinuko Yasuda Roll Chromium DEPS from r140700 to r140711. * DEPS: 2012-06-06 Ami Fischman [chromium] Add a WebKit::WebMediaPlayer::CORSMode enum in preparation for 88349 https://bugs.webkit.org/show_bug.cgi?id=88388 Reviewed by Darin Fisher. * public/WebMediaPlayer.h: 2012-06-05 Ryosuke Niwa Roll Chromium DEPS from r140653 to r140700. * DEPS: 2012-06-05 Kentaro Hara Unreviewed, rolling out r119494. http://trac.webkit.org/changeset/119494 https://bugs.webkit.org/show_bug.cgi?id=87911 We found similar APIs are already implemented * public/WebWidget.h: * src/WebViewImpl.cpp: * src/WebViewImpl.h: (WebViewImpl): * tests/WebViewTest.cpp: * tests/data/textarea.html: Removed. 2012-06-05 Ryosuke Niwa Roll Chromium DEPS from r140528 to r140653. * DEPS: 2012-06-05 Mark Pilgrim [Chromium] Move createLocalStorageNamespace to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85766 Reviewed by James Robinson. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/WebStorageArea.h: * public/WebStorageNamespace.h: * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKitPlatformSupport): 2012-06-05 Greg Billock New constructor for WebIntent to be used for delivery https://bugs.webkit.org/show_bug.cgi?id=87143 Reviewed by Darin Fisher. When delivering an intent to webkit, the caller needs to be able to provide the action, type, and data, and also extra data and ports. * public/WebIntent.h: (WebIntent): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::deliverIntent): * src/WebIntent.cpp: (WebKit::WebIntent::WebIntent): (WebKit): (WebKit::WebIntent::reset): (WebKit::WebIntent::messagePortChannelsRelease): 2012-06-05 Ryosuke Niwa Roll Chromium DEPS from r140492 to r140528. * DEPS: 2012-06-05 Seigo Nonaka [chromium] There is no way to retrieve composition character rectangle in WebKit/chromium https://bugs.webkit.org/show_bug.cgi?id=87911 Reviewed by Ryosuke Niwa. Add an API for retreieving each character bounds in composition text. This API is necessary for implementing IMR_QUERYCHARPOSITION message in Windows. The message is used by Japanese IME for showing their window at the correct position. * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::compositionCharacterBounds): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::compositionCharacterBounds): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-06-05 Dongwoo Im Add 'isProtocolHandlerRegistered' and 'unregisterProtocolHandler'. https://bugs.webkit.org/show_bug.cgi?id=73176 Reviewed by Adam Barth. Two more APIs are added in Custom Scheme Handler specification. http://dev.w3.org/html5/spec/Overview.html#custom-handlers One is 'isProtocolHandlerRegistered' to query whether the specific URL is registered or not. The other is 'unregisterProtocolHandler' to remove the registered URL. * features.gypi: Add a macro 'ENABLE_CUSTOM_SCHEME_HANDLER'. 2012-06-05 Kent Tamura Move some function definitions in EmptyClients.h to EmptyClients.cpp https://bugs.webkit.org/show_bug.cgi?id=88285 Reviewed by Ryosuke Niwa. * src/WebHelperPluginImpl.cpp: Remove unnecessary #includes, and add necessary #includes. * src/WebPagePopupImpl.cpp: ditto. 2012-06-05 Noel Gordon Unreviewed. Rolled DEPS. * DEPS: 2012-06-05 Adam Barth EventHandler shouldn't dispatch fake mousemove events when scrolling on devices that don't have a mouse https://bugs.webkit.org/show_bug.cgi?id=88270 Reviewed by James Robinson. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setDeviceSupportsMouse): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-06-04 Dana Jansens [chromium] Remove redundant setNeedsCommit when prepareToDraw fails https://bugs.webkit.org/show_bug.cgi?id=88246 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: 2012-06-04 Dana Jansens [chromium] Allow CCLayerImpl to find its layer tree host, and use this for CCVideoLayerImpl instead of always-null pointer. https://bugs.webkit.org/show_bug.cgi?id=88252 Reviewed by James Robinson. * tests/ScrollbarLayerChromiumTest.cpp: (WebCore::TEST): * tests/TreeSynchronizerTest.cpp: (WebKitTests::expectTreesAreIdentical): (WebKitTests::TEST): 2012-06-04 Ryosuke Niwa yet another build fix attempt. * src/WebHelperPluginImpl.cpp: 2012-06-04 Ryosuke Niwa Another Chromium Windows build fix attempt after r119411. * src/WebHelperPluginImpl.cpp: 2012-06-04 Shawn Singh [chromium] CCDamageTrackerTest.verifyDamageForPerspectiveClippedLayer needs to be cleaner https://bugs.webkit.org/show_bug.cgi?id=85245 Reviewed by James Robinson. Updated CCDamageTrackerTest.verifyDamageForPerspectiveClippedLayer so that the test is clearer and cleaner. The original test was covering what it needed, but in a confusing and not-so-practical way. This patch adds comments and performs a tighter test so that the intent is a bit more clear. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): 2012-06-04 Ryosuke Niwa Fix attempt after r119411. * src/WebHelperPluginImpl.cpp: 2012-06-04 Sadrul Habib Chowdhury [chromium] Fix software rendering for larger device-scale-factor https://bugs.webkit.org/show_bug.cgi?id=88136 Reviewed by Darin Fisher. The fix is to apply the device-scale factor on the GraphicsContext. (and add a WebWidgetClient::deviceScaleFactor method to facilitate that). * public/WebWidgetClient.h: (WebWidgetClient): (WebKit::WebWidgetClient::deviceScaleFactor): * src/PageWidgetDelegate.cpp: (WebKit::PageWidgetDelegate::paint): * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::paint): 2012-06-04 Sadrul Habib Chowdhury Combobox options and autofill options should not be scaled for device-scale factor. https://bugs.webkit.org/show_bug.cgi?id=87921 Reviewed by Darin Fisher. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::applyAutofillSuggestions): 2012-06-04 Dana Jansens [chromium] Make LayerRendererChromium use RenderPasses instead of RenderSurfaces https://bugs.webkit.org/show_bug.cgi?id=88132 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostImplTest.cpp: * tests/LayerRendererChromiumTest.cpp: (FakeCCRendererClient::FakeCCRendererClient): (FakeCCRendererClient::rootRenderPass): (FakeCCRendererClient): (TEST_F): 2012-06-04 David Dorwin Enable Chromium media player to instantiate a plugin https://bugs.webkit.org/show_bug.cgi?id=87399 Reviewed by Kent Tamura. Adds WebHelperPlugin, an off-screen widget that contains an tag. * WebKit.gyp: * public/WebHelperPlugin.h: Copied from Source/WebKit/chromium/public/WebPopupType.h. (WebKit): (WebHelperPlugin): (WebKit::WebHelperPlugin::~WebHelperPlugin): * public/WebMediaPlayerClient.h: (WebKit): * public/WebPopupType.h: * public/WebView.h: * public/WebViewClient.h: (WebKit): (WebViewClient): (WebKit::WebViewClient::initializeHelperPluginWebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::WebFrameImpl): (WebKit::WebFrameImpl::initializeAsMainFrame): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebHelperPluginImpl.cpp: Added. (WebKit): (WebKit::addString): (WebKit::writeDocument): (HelperPluginChromeClient): (WebKit::HelperPluginChromeClient::HelperPluginChromeClient): (WebKit::WebHelperPluginImpl::WebHelperPluginImpl): (WebKit::WebHelperPluginImpl::~WebHelperPluginImpl): (WebKit::WebHelperPluginImpl::init): (WebKit::WebHelperPluginImpl::initializeFrame): (WebKit::WebHelperPluginImpl::initPage): (WebKit::WebHelperPluginImpl::setCompositorSurfaceReady): (WebKit::WebHelperPluginImpl::composite): (WebKit::WebHelperPluginImpl::layout): (WebKit::WebHelperPluginImpl::setFocus): (WebKit::WebHelperPluginImpl::close): (WebKit::WebHelperPluginImpl::closeHelperPlugin): (WebKit::WebHelperPlugin::create): * src/WebHelperPluginImpl.h: Copied from Source/WebKit/chromium/public/WebPopupType.h. (WebCore): (WebKit): (WebHelperPluginImpl): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl): (WebKit::WebMediaPlayerClientImpl::createHelperPlugin): (WebKit): (WebKit::WebMediaPlayerClientImpl::closeHelperPlugin): * src/WebMediaPlayerClientImpl.h: (WebKit): (WebMediaPlayerClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::initializeMainFrame): (WebKit::WebViewImpl::initializeHelperPluginFrame): (WebKit): (WebKit::WebViewImpl::createHelperPlugin): * src/WebViewImpl.h: (WebKit): (WebViewImpl): 2012-06-04 Raymes Khoury Remove obsolete acceptMIMETypes member. https://bugs.webkit.org/show_bug.cgi?id=88241 Reviewed by Darin Fisher. Obsoleted by https://bugs.webkit.org/show_bug.cgi?id=87271 and http://codereview.chromium.org/10414085/. * public/WebFileChooserParams.h: (WebFileChooserParams): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::runOpenPanel): 2012-06-04 Zeev Lieber [chromium] Cleanup scissor rect computation/use with damage https://bugs.webkit.org/show_bug.cgi?id=87167 Reviewed by Adrienne Walker. Added unit tests to CCLayerTreeHostImpl using mock graphic context to verify end-to-end quad drawing. Added more test cases to CCLayerTreeHostCommon to verify clip and scissor rect computations. * tests/CCDamageTrackerTest.cpp: (WebKitTests::executeCalculateDrawTransformsAndVisibility): * tests/CCLayerIteratorTest.cpp: * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostImplTest.cpp: * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc): * tests/CCRenderSurfaceTest.cpp: 2012-06-03 Ryosuke Niwa Roll Chromium DEPS from r140222 to r140260. * DEPS: 2012-06-03 Ryosuke Niwa Roll Chromium DEPS from r140000 to r140222. * DEPS: 2012-06-03 Varun Jain [chromium] Add new gesture type (two finger tap) that triggers context menu. https://bugs.webkit.org/show_bug.cgi?id=88173 Reviewed by Adam Barth. * public/WebInputEvent.h: * src/PageWidgetDelegate.cpp: (WebKit::PageWidgetDelegate::handleInputEvent): * src/WebInputEventConversion.cpp: (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder): * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::handleInputEvent): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleGestureEvent): 2012-06-03 Robert Kroeger [chromium] replace isScrollGestureEventType with isGestureEventType https://bugs.webkit.org/show_bug.cgi?id=88097 This change replaces the unused and incorrect isScrollGestureEventType method with a correct and useful isGestureEventType method. Reviewed by Adam Barth. * public/WebInputEvent.h: (WebInputEvent): (WebKit::WebInputEvent::isGestureEventType): 2012-06-01 Alexandre Elias [chromium] Software compositor initialization and base classes https://bugs.webkit.org/show_bug.cgi?id=87920 Reviewed by James Robinson. Add a new setting to force software compositing. In this mode, no GraphicsContext3D should ever be created. * public/WebSettings.h: * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): (WebKit::WebLayerTreeView::context): * src/WebLayerTreeViewImpl.cpp: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::WebSettingsImpl): (WebKit::WebSettingsImpl::setForceSoftwareCompositing): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): (WebKit::WebSettingsImpl::forceSoftwareCompositing): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::createCompositorGraphicsContext3D): (WebKit::WebViewImpl::createContext3D): * tests/CCLayerTreeHostImplTest.cpp: (WebKitTests::CCLayerTreeHostImplTest::createContext): (WebKitTests::TEST_F): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommit::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread): * tests/CCTiledLayerTestCommon.cpp: (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect): * tests/CCTiledLayerTestCommon.h: (Texture): (WebKitTests::FakeTextureCopier::copyTexture): (WebKitTests::FakeTextureUploader::uploadTexture): * tests/Canvas2DLayerChromiumTest.cpp: (Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/FakeCCLayerTreeHostClient.h: * tests/LayerRendererChromiumTest.cpp: (FakeLayerRendererChromium::FakeLayerRendererChromium): (LayerRendererChromiumTest::LayerRendererChromiumTest): (LayerRendererChromiumTest): (TEST): * tests/TextureCopierTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-06-01 Sheriff Bot Unreviewed, rolling out r119283, r119287, and r119291. http://trac.webkit.org/changeset/119283 http://trac.webkit.org/changeset/119287 http://trac.webkit.org/changeset/119291 https://bugs.webkit.org/show_bug.cgi?id=88159 Not only broke compilation in the initial commit but also broke LayerChromiumTest.basicCreateAndDestroy (Requested by rniwa on #webkit). * tests/CCAnimationTestCommon.cpp: (WebCore::addOpacityTransition): (WebCore::addAnimatedTransform): (WebKitTests::FakeTransformTransition::getValue): * tests/CCAnimationTestCommon.h: * tests/CCKeyframedAnimationCurveTest.cpp: * tests/CCLayerAnimationControllerTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::beginTest): * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::MockGraphicsLayerClient::notifyAnimationStarted): (WebKitTests::MockGraphicsLayerClient::notifySyncRequired): (WebKitTests::MockGraphicsLayerClient::paintContents): (WebKitTests::MockGraphicsLayerClient::showDebugBorders): (WebKitTests::MockGraphicsLayerClient::showRepaintCounter): (WebKitTests::TEST): 2012-06-01 Ryosuke Niwa Use fully qualified name for Fixed to avoid the collision with "typedef SInt32 Fixed" in MacTypes.h * tests/GraphicsLayerChromiumTest.cpp: (WebKitTests::TEST_F): 2012-06-01 James Robinson [chromium] Unreviewed compile fix for r119283 For the record, Dana Jensens wrote this slightly faster than I did. * tests/CCAnimationTestCommon.h: 2012-06-01 Ian Vollick [chromium] Accelerated animations should use WebTransformOperations https://bugs.webkit.org/show_bug.cgi?id=87686 Reviewed by James Robinson. CCTransformKeyframe new owns a WebTransformOperations rather than a TransformOperations. LayerChromium's API has been changed so that LayerChromium::addAnimation should take only a CCActiveAnimation. GraphicsLayerChromium is new responsible for translating to WebTransformOperations and creating CCActiveAnimations. Tests that use the public API (that is, they call addAnimation with KeyframeValueList and Animation arguments) have been moved to GraphicsLayerChromiumTest. * tests/CCAnimationTestCommon.cpp: (WebCore::addOpacityTransition): (WebCore::addAnimatedTransform): (WebKitTests::FakeTransformTransition::getValue): * tests/CCAnimationTestCommon.h: * tests/CCKeyframedAnimationCurveTest.cpp: (WebCore::TEST): * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::beginTest): * tests/GraphicsLayerChromiumTest.cpp: (MockLayerTreeHostClient): (WebKitTests): (MockLayerTreeHost): (WebKitTests::MockLayerTreeHost::create): (WebKitTests::MockLayerTreeHost::createLayerTreeHostImpl): (WebKitTests::MockLayerTreeHost::MockLayerTreeHost): (GraphicsLayerChromiumTest): (WebKitTests::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest): (WebKitTests::GraphicsLayerChromiumTest::~GraphicsLayerChromiumTest): (WebKitTests::GraphicsLayerChromiumTest::expectTranslateX): (WebKitTests::TEST_F): 2012-06-01 Mark Pilgrim [Chromium] Call clipboard methods directly https://bugs.webkit.org/show_bug.cgi?id=88038 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * src/AssertMatchingEnums.cpp: * src/PlatformSupport.cpp: (WebCore::getCookieJar): 2012-06-01 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-06-01 Yoshifumi Inoue [Platform][Decimal] UInt128::operator/= calls makeUInt128 with wrong argument order https://bugs.webkit.org/show_bug.cgi?id=88044 Reviewed by Kent Tamura. * tests/DecimalTest.cpp: (TEST_F): Add a new test for multiplication. 2012-05-31 Hajime Morrita REGRESSION(r117572): editing/spelling/spellcheck-async-remove-frame.html crashes on Mac https://bugs.webkit.org/show_bug.cgi?id=86859 Removed a port specific fix which was introduced at r117572. Reviewed by Ryosuke Niwa. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::frameWillDetachPage): (WebKit::EditorClientImpl::requestCheckingOfString): * src/EditorClientImpl.h: (WebCore): (EditorClientImpl): * src/WebTextCheckingCompletionImpl.cpp: (WebKit::WebTextCheckingCompletionImpl::didFinishCheckingText): (WebKit::WebTextCheckingCompletionImpl::didCancelCheckingText): * src/WebTextCheckingCompletionImpl.h: (WebKit::WebTextCheckingCompletionImpl::WebTextCheckingCompletionImpl): (WebTextCheckingCompletionImpl): 2012-05-31 Sheriff Bot Unreviewed, rolling out r119146. http://trac.webkit.org/changeset/119146 https://bugs.webkit.org/show_bug.cgi?id=88035 android breakage fixed in http://crrev.com/139945 (Requested by fischman on #webkit). * public/WebMediaPlayer.h: (WebMediaPlayer): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::didLoadingProgress): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-05-31 Shawn Singh [chromium] Migrate to WebTransformationMatrix https://bugs.webkit.org/show_bug.cgi?id=87788 Reviewed by James Robinson. * src/WebLayer.cpp: (WebKit::WebLayer::setSublayerTransform): (WebKit::WebLayer::setTransform): * tests/CCAnimationTestCommon.cpp: (WebKitTests::FakeTransformTransition::getValue): * tests/CCAnimationTestCommon.h: * tests/CCDamageTrackerTest.cpp: (WebKitTests::executeCalculateDrawTransformsAndVisibility): (WebKitTests::TEST_F): * tests/CCKeyframedAnimationCurveTest.cpp: * tests/CCLayerAnimationControllerTest.cpp: * tests/CCLayerImplTest.cpp: (WebCore::TEST): * tests/CCLayerIteratorTest.cpp: * tests/CCLayerSorterTest.cpp: * tests/CCLayerTreeHostCommonTest.cpp: * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::commitCompleteOnCCThread): (WTF::setLayerPropertiesForTesting): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::beginTest): (WTF::setTestLayerPropertiesForTesting): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): * tests/CCLayerTreeTestCommon.h: (WebKitTests): * tests/CCMathUtilTest.cpp: * tests/CCOcclusionTrackerTest.cpp: (WebKitTests::CCOcclusionTrackerTest::createRoot): (WebKitTests::CCOcclusionTrackerTest::createLayer): (WebKitTests::CCOcclusionTrackerTest::createSurface): (WebKitTests::CCOcclusionTrackerTest::createDrawingLayer): (WebKitTests::CCOcclusionTrackerTest::createReplicaLayer): (WebKitTests::CCOcclusionTrackerTest::createDrawingSurface): (CCOcclusionTrackerTest): (WebKitTests::CCOcclusionTrackerTest::setBaseProperties): (WebKitTests::CCOcclusionTrackerTest::setProperties): (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::CCOcclusionTrackerTest3dTransform::runMyTest): (WebKitTests::CCOcclusionTrackerTestPerspectiveTransform::runMyTest): (WebKitTests::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest): (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter::runMyTest): (WebKitTests::CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded::runMyTest): (WebKitTests::CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded::runMyTest): * tests/CCQuadCullerTest.cpp: * tests/CCRenderSurfaceTest.cpp: * tests/FloatQuadTest.cpp: * tests/LayerChromiumTest.cpp: * tests/LinkHighlightTest.cpp: * tests/TiledLayerChromiumTest.cpp: * tests/WebTransformationMatrixTest.cpp: (WebKit::TEST): (WebKit): 2012-05-31 Ian Vollick [chromium] Single thread proxy should not tick animations unless the layer renderer has been initialized https://bugs.webkit.org/show_bug.cgi?id=87873 Reviewed by James Robinson. When the layer renderer fails to initialize, be sure to stop the animation timer. * tests/CCLayerTreeHostTest.cpp: (CompositorFakeWebGraphicsContext3DWithTextureTracking): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::create): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::createTexture): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::deleteTexture): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::bindTexture): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::numTextures): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::texture): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetTextures): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::numUsedTextures): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::usedTexture): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetUsedTextures): (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::CompositorFakeWebGraphicsContext3DWithTextureTracking): (WTF): (WTF::TestHooks::didRecreateContext): (TestHooks): (WTF::TestHooks::createContext): (CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::clearEndTestTask): (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest): (EndTestTask): (WTF::CCLayerTreeHostTest::EndTestTask::EndTestTask): (WTF::CCLayerTreeHostTest::EndTestTask::~EndTestTask): (WTF::CCLayerTreeHostTest::EndTestTask::clearTest): (WTF::CCLayerTreeHostTest::EndTestTask::run): (WTF::CCLayerTreeHostTest::runTest): (WTF::CCLayerTreeHostTest::endTestAfterDelay): (FakeWebGraphicsContext3DMakeCurrentFails): (WTF::FakeWebGraphicsContext3DMakeCurrentFails::makeContextCurrent): (CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation): (WTF::CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation::CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation): (WTF::CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation::beginTest): (WTF::CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation::animateLayers): (WTF::CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation::didRecreateContext): (WTF::CCLayerTreeHostTestInitializeLayerRendererFailsAfterAddAnimation::afterTest): (WTF::TEST_F): 2012-05-15 Brett Wilson Hook up GTK IsKeyPad flag for keyboard events, and preserve this flag on all platforms when converting back to a WebKeyboardEvent. https://bugs.webkit.org/show_bug.cgi?id=86514 Reviewed by Dimitri Glazkov. * src/WebInputEventConversion.cpp: (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder): * src/gtk/WebInputEventFactory.cpp: (WebKit::WebInputEventFactory::keyboardEvent): * tests/WebInputEventFactoryTestGtk.cpp: 2012-05-31 Alec Flett IndexedDB: Implement IDBTransaction.error and IDBRequest.error https://bugs.webkit.org/show_bug.cgi?id=87865 Reviewed by Tony Chang. IDBDatabaseError now honors IDB-specific DOMException codes, so make sure that's how they are passed to/from chromium. * src/WebIDBDatabaseError.cpp: (WebKit::WebIDBDatabaseError::assign): 2012-05-31 James Robinson [chromium] Assertion failures during compositor startup in lost context situations https://bugs.webkit.org/show_bug.cgi?id=87912 Reviewed by Adrienne Walker. Adds a unit test verifying that even if we lose our context during or before initialization we get through the rest of the path without failing ASSERT()s. * tests/LayerRendererChromiumTest.cpp: (LoseContextOnFirstGetContext): (LoseContextOnFirstGetContext::LoseContextOnFirstGetContext): (TEST): 2012-05-31 Sheriff Bot Unreviewed, rolling out r119125. http://trac.webkit.org/changeset/119125 https://bugs.webkit.org/show_bug.cgi?id=88007 Will break android build if rolled (Requested by rafaelw_ on #webkit). * public/WebMediaPlayer.h: (WebMediaPlayer): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::bytesLoaded): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-05-31 Dana Jansens [chromium] Move drawing code for RenderSurfaces into LayerRendererChromium https://bugs.webkit.org/show_bug.cgi?id=87877 Reviewed by James Robinson. * tests/CCRenderSurfaceTest.cpp: (WebCore::TEST): 2012-05-31 Ami Fischman Replace WebMediaPlayer::bytesLoaded() with an explicit didLoadingProgress() https://bugs.webkit.org/show_bug.cgi?id=86113 Reviewed by Eric Carlson. * public/WebMediaPlayer.h: (WebMediaPlayer): * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::didLoadingProgress): * src/WebMediaPlayerClientImpl.h: (WebMediaPlayerClientImpl): 2012-05-31 Ian Vollick [chromium] create WebTransformOperation interface for chromium platform https://bugs.webkit.org/show_bug.cgi?id=87510 Reviewed by James Robinson. * WebKit.gypi: * tests/WebTransformOperationsTest.cpp: Added. (TEST): (checkProgress): 2012-05-31 Alexander Pavlov Web Inspector: [Chromium] Cannot bring Inspector to front when paused on breakpoint https://bugs.webkit.org/show_bug.cgi?id=87871 Reviewed by Yury Semikhatsky. When input events handling is suppressed (due to the JS being paused on a breakpoint), we should report these events as NOT handled by the WebKit, so that the browser can handle them appropriately (on MacOS, switching between the application windows is done through the default key event handler, so if you run event.preventDefault() for all keydown events in a handler, the Chromium window switch will not occur on Cmd+`). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleInputEvent): 2012-05-31 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-05-30 Peter Beverloo [Chromium] Automatically install 64-bit linker for Android https://bugs.webkit.org/show_bug.cgi?id=79780 Reviewed by Adam Barth. Change the Android-specific dependencies to inherit their revision from Chromium's DEPS file, like many other dependencies do, solving the versioning problem that we're running in to right now. These are listed in Chromium's main DEPS file starting Chromium r139529. * DEPS: 2012-05-31 Yoshifumi Inoue Build fix for Chromium Linux (Tests) after r119073. * tests/DecimalTest.cpp: (TEST_F): 2012-05-31 Yoshifumi Inoue [Platform] Introduce Decimal class for Number/Range input type. https://bugs.webkit.org/show_bug.cgi?id=87360 Reviewed by Kent Tamura. This patch added unit test for Decimal class. * WebKit.gypi: * tests/DecimalTest.cpp: Added. (WebCore): (WebCore::operator<<): Output Decimal for unit test debugging (DecimalStepRange): (DecimalStepRange::DecimalStepRange): (DecimalStepRange::clampValue): (DecimalTest): (DecimalTest::encode): (DecimalTest::fromString): (DecimalTest::stepDown): (DecimalTest::stepUp): (TEST_F): 2012-05-30 Yury Semikhatsky Web Inspector: add MemoryUsageSupport::processMemorySizesInBytes https://bugs.webkit.org/show_bug.cgi?id=87830 Reviewed by James Robinson. * public/platform/WebKitPlatformSupport.h: pulled getProcessMemorySize up to the Source/Platform/chromium/public/Platform.h * src/PlatformSupport.cpp: 2012-05-31 Kent Tamura Unreviewed, rolling out r119062 and r119064. http://trac.webkit.org/changeset/119062 http://trac.webkit.org/changeset/119064 https://bugs.webkit.org/show_bug.cgi?id=87360 Broke build on Lion, SnowLoepard, Chromium Windows, and Chromium Linux 32 * WebKit.gypi: * tests/DecimalTest.cpp: Removed. 2012-05-30 Yoshifumi Inoue [Platform] Introduce Decimal class for Number/Range input type. https://bugs.webkit.org/show_bug.cgi?id=87360 Reviewed by Kent Tamura. This patch added unit test for Decimal class. * WebKit.gypi: * tests/DecimalTest.cpp: Added. (WebCore): (WebCore::operator<<): Output Decimal for unit test debugging (DecimalStepRange): (DecimalStepRange::DecimalStepRange): (DecimalStepRange::clampValue): (DecimalTest): (DecimalTest::encode): (DecimalTest::fromString): (DecimalTest::stepDown): (DecimalTest::stepUp): (TEST_F): 2012-05-30 Shawn Singh [chromium] Fix min/max bounds error in CCMathUtil.cpp https://bugs.webkit.org/show_bug.cgi?id=87915 Reviewed by James Robinson. * tests/CCMathUtilTest.cpp: (WebCore::TEST): (WebCore): 2012-05-30 Ami Fischman Roll chromium DEPS from r139300 to r139542. Unreviewed. https://bugs.webkit.org/show_bug.cgi?id=87868 * DEPS: 2012-05-30 Mark Pilgrim [Chromium] Call fileUtilities methods directly https://bugs.webkit.org/show_bug.cgi?id=87852 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-05-30 Sheriff Bot Unreviewed, rolling out r118986. http://trac.webkit.org/changeset/118986 https://bugs.webkit.org/show_bug.cgi?id=87914 Caused several IndexedDB browser_test failures on Chromium canary builders (Requested by rafaelw_ on #webkit). * src/WebIDBDatabaseError.cpp: (WebKit::WebIDBDatabaseError::assign): 2012-05-30 Dominic Mazzoni AX: Chromium WebAccessibilityObject should check if an AccessibilityObject is detached https://bugs.webkit.org/show_bug.cgi?id=87778 Reviewed by Adam Barth. Pretty simple - all places that previously just checked for null now also check if the wrapped AccessibilityObject is detached. * public/WebAccessibilityObject.h: (WebAccessibilityObject): * src/WebAccessibilityObject.cpp: (WebKit::WebAccessibilityObject::isDetached): (WebKit): (WebKit::WebAccessibilityObject::axID): (WebKit::WebAccessibilityObject::accessibilityDescription): (WebKit::WebAccessibilityObject::actionVerb): (WebKit::WebAccessibilityObject::canSetFocusAttribute): (WebKit::WebAccessibilityObject::canSetValueAttribute): (WebKit::WebAccessibilityObject::isValid): (WebKit::WebAccessibilityObject::childCount): (WebKit::WebAccessibilityObject::childAt): (WebKit::WebAccessibilityObject::firstChild): (WebKit::WebAccessibilityObject::focusedChild): (WebKit::WebAccessibilityObject::lastChild): (WebKit::WebAccessibilityObject::nextSibling): (WebKit::WebAccessibilityObject::parentObject): (WebKit::WebAccessibilityObject::previousSibling): (WebKit::WebAccessibilityObject::canSetSelectedAttribute): (WebKit::WebAccessibilityObject::isAnchor): (WebKit::WebAccessibilityObject::isAriaReadOnly): (WebKit::WebAccessibilityObject::isButtonStateMixed): (WebKit::WebAccessibilityObject::isChecked): (WebKit::WebAccessibilityObject::isCollapsed): (WebKit::WebAccessibilityObject::isControl): (WebKit::WebAccessibilityObject::isEnabled): (WebKit::WebAccessibilityObject::isFocused): (WebKit::WebAccessibilityObject::isHovered): (WebKit::WebAccessibilityObject::isIndeterminate): (WebKit::WebAccessibilityObject::isLinked): (WebKit::WebAccessibilityObject::isLoaded): (WebKit::WebAccessibilityObject::isMultiSelectable): (WebKit::WebAccessibilityObject::isOffScreen): (WebKit::WebAccessibilityObject::isPasswordField): (WebKit::WebAccessibilityObject::isPressed): (WebKit::WebAccessibilityObject::isReadOnly): (WebKit::WebAccessibilityObject::isRequired): (WebKit::WebAccessibilityObject::isSelected): (WebKit::WebAccessibilityObject::isSelectedOptionActive): (WebKit::WebAccessibilityObject::isVertical): (WebKit::WebAccessibilityObject::isVisible): (WebKit::WebAccessibilityObject::isVisited): (WebKit::WebAccessibilityObject::accessKey): (WebKit::WebAccessibilityObject::ariaHasPopup): (WebKit::WebAccessibilityObject::ariaLiveRegionAtomic): (WebKit::WebAccessibilityObject::ariaLiveRegionBusy): (WebKit::WebAccessibilityObject::ariaLiveRegionRelevant): (WebKit::WebAccessibilityObject::ariaLiveRegionStatus): (WebKit::WebAccessibilityObject::boundingBoxRect): (WebKit::WebAccessibilityObject::estimatedLoadingProgress): (WebKit::WebAccessibilityObject::helpText): (WebKit::WebAccessibilityObject::headingLevel): (WebKit::WebAccessibilityObject::hierarchicalLevel): (WebKit::WebAccessibilityObject::hitTest): (WebKit::WebAccessibilityObject::keyboardShortcut): (WebKit::WebAccessibilityObject::performDefaultAction): (WebKit::WebAccessibilityObject::roleValue): (WebKit::WebAccessibilityObject::selectionEnd): (WebKit::WebAccessibilityObject::selectionStart): (WebKit::WebAccessibilityObject::setFocused): (WebKit::WebAccessibilityObject::stringValue): (WebKit::WebAccessibilityObject::title): (WebKit::WebAccessibilityObject::titleUIElement): (WebKit::WebAccessibilityObject::url): (WebKit::WebAccessibilityObject::valueDescription): (WebKit::WebAccessibilityObject::valueForRange): (WebKit::WebAccessibilityObject::maxValueForRange): (WebKit::WebAccessibilityObject::minValueForRange): (WebKit::WebAccessibilityObject::node): (WebKit::WebAccessibilityObject::document): (WebKit::WebAccessibilityObject::hasComputedStyle): (WebKit::WebAccessibilityObject::computedStyleDisplay): (WebKit::WebAccessibilityObject::accessibilityIsIgnored): (WebKit::WebAccessibilityObject::lineBreaks): (WebKit::WebAccessibilityObject::columnCount): (WebKit::WebAccessibilityObject::rowCount): 2012-05-30 Shawn Singh Simplify TransformationMatrix rotation code to improve precision https://bugs.webkit.org/show_bug.cgi?id=86666 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): * tests/WebTransformationMatrixTest.cpp: (WebKit::TEST): (WebKit): 2012-05-30 Alec Flett IndexedDB: Implement IDBTransaction.error and IDBRequest.error https://bugs.webkit.org/show_bug.cgi?id=87865 Reviewed by Tony Chang. IDBDatabaseError now honors IDB-specific DOMException codes, so make sure that's how they are passed to/from chromium. * src/WebIDBDatabaseError.cpp: (WebKit::WebIDBDatabaseError::assign): 2012-05-30 Shawn Singh [chromium] Merge shared code in CCOcclusionTrackerTest https://bugs.webkit.org/show_bug.cgi?id=87798 Reviewed by Adrienne Walker. This patch simple uses a different existing macro function so that the same thing doesn't exist in multiple places, and so that the naming is more consistent with gtest's conventions. * tests/CCOcclusionTrackerTest.cpp: (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::CCOcclusionTrackerTestReplicaWithMask::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest): (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest): (WebKitTests::CCOcclusionTrackerTest3dTransform::runMyTest): (WebKitTests::CCOcclusionTrackerTestPerspectiveTransform::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::CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor::runMyTest): (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter::runMyTest): (WebKitTests::CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter::runMyTest): (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded::runMyTest): (WebKitTests::CCOcclusionTrackerTestMinimumTrackingSize::runMyTest): 2012-05-30 Tony Chang [chromium] port webframe_unittest.cc to webkit_unit_tests https://bugs.webkit.org/show_bug.cgi?id=87796 Reviewed by James Robinson. Move WebFrameTest.GetContentAsPlainText and WebFrameTest.GetFullHtmlOfPage to webkit_unit_tests. * tests/WebFrameTest.cpp: (WebKit::TEST_F): (WebKit): Add tests. 2012-05-30 Jochen Eisinger Match Firefox restrictions to window.blur and window.focus https://bugs.webkit.org/show_bug.cgi?id=86969 Reviewed by Adam Barth. Allow window.focus() during the dispatch of the click event on notifications. * src/WebNotification.cpp: (WebKit::WebNotification::dispatchClickEvent): 2012-05-29 Mark Pilgrim [Chromium] Move fileExists to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87531 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * src/PlatformSupport.cpp: (WebCore): 2012-05-29 Alec Flett IndexedDB: Align codes and names for IDB-specific and DOM-specific errors/exceptions https://bugs.webkit.org/show_bug.cgi?id=87276 Reviewed by Tony Chang. * public/WebIDBDatabaseException.h: * src/AssertMatchingEnums.cpp: 2012-05-29 Rafael Weinstein Unreviewed. Rolled DEPS. * DEPS: 2012-05-29 Dana Jansens [chromium] Unoccluded area in surfaces should always be clipped to the rootScissorRect https://bugs.webkit.org/show_bug.cgi?id=87677 Reviewed by Adrienne Walker. * tests/CCOcclusionTrackerTest.cpp: (CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor): (WebKitTests::CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor::runMyTest): (WebKitTests): 2012-05-29 David Barr Introduce ENABLE_CSS_IMAGE_RESOLUTION compile flag https://bugs.webkit.org/show_bug.cgi?id=87685 Reviewed by Eric Seidel. Add a configuration option for CSS image-resolution support, disabling it by default. * features.gypi: 2012-05-29 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-05-29 Hironori Bono Use WebSpellCheckClient::spellcheck to retrieve suggestions. https://bugs.webkit.org/show_bug.cgi?id=87690 Reviewed by Hajime Morita. This change uses WebSpellCheckClient::spellcheck as a fallback method to retrieve suggestions when a marker does not have any suggestions. (It consumes lots of CPU power to get suggestions for misspelled word, i.e. Chromium cannot afford to attach suggestions to all spelling markers.) * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Retrieve suggestions if markers do not have any. 2012-05-28 Takashi Toyoshima [WebSocket] Receiving reserved close codes, 1005, 1006, and 1015 must appear as code=1006 and wasClean=false https://bugs.webkit.org/show_bug.cgi?id=87084 Reviewed by Kent Tamura. Update close event codes corresponding to WebSocketChannel::CloseEventCode. * public/WebSocket.h: Update on newly defined close event codes 2012-05-28 MORITA Hajime Rename FrameLoaderClient::shadowDOMAllowed() to allowShadowDOM() https://bugs.webkit.org/show_bug.cgi?id=87101 Reviewed by Kentaro Hara. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::allowShadowDOM): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-05-28 Rob Flack [chromium] Only increase size of Combo Box Options when displayed on touch screen https://bugs.webkit.org/show_bug.cgi?id=85921 Reviewed by Adam Barth. Adds a flag to set whether the current device is a touch screen, independent of whether touch events are supported and use this for the combo box sizing. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::defaultDeviceScaleFactor): (WebKit): (WebKit::WebSettingsImpl::setDeviceSupportsTouch): (WebKit::WebSettingsImpl::deviceSupportsTouch): * src/WebSettingsImpl.h: (WebSettingsImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::applyAutofillSuggestions): * tests/PopupMenuTest.cpp: (WebKit::SelectPopupMenuTest::SetUp): (WebKit::SelectPopupMenuTest::TearDown): (SelectPopupMenuTest): (WebKit::TEST_F): 2012-05-25 Jesus Sanchez-Palencia WebKitTestRunner needs to support layoutTestController.setJavaScriptProfilingEnabled https://bugs.webkit.org/show_bug.cgi?id=42328 Reviewed by Eric Seidel. Removed private APIs that were only being used by DRT. * public/WebDevToolsAgent.h: (WebDevToolsAgent): * src/WebDevToolsAgentImpl.cpp: * src/WebDevToolsAgentImpl.h: (WebDevToolsAgentImpl): 2012-05-28 Peter Beverloo Unreviewed. Rolled DEPS. * DEPS: 2012-05-28 Peter Beverloo [Chromium] Build fix for the Android bot, set CXX_target at gyp generation-time https://bugs.webkit.org/show_bug.cgi?id=87649 Unreviewed build fix. Chromium Android builds were broken because v8 tried to compile files for target with the "-m32" flag. This was caused by a v8 check falling back to using "which g++" to find the right compiler, whereas it should have used the $CXX_target environment variable. This isn't being set for Android builds. * gyp_webkit: Set the CXX_target environment variable. Annotate the fix with a FIXME comment too. 2012-05-28 Keishi Hattori Expose value localization function of HTMLInputElement https://bugs.webkit.org/show_bug.cgi?id=84356 Reviewed by Kent Tamura. * public/WebInputElement.h: (WebInputElement): * src/WebInputElement.cpp: (WebKit::WebInputElement::localizeValue): (WebKit): 2012-05-28 MORITA Hajime Unreviewed Mac Chromium build fix. * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::allowStyleScoped): 2012-05-28 MORITA Hajime https://bugs.webkit.org/show_bug.cgi?id=87609 [Chromium] FrameLoaderClient::allowStyleScoped() should be implemented interms of WebPermissionClient Reviewed by Kent Tamura. Added allowStyleScoped() implementation which is essentially same as shadowDOMAllowed(). * src/FrameLoaderClientImpl.cpp: * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-05-25 Ryosuke Niwa Roll chromium DEPS from r139156 to r139184. * DEPS: 2012-05-25 Garrett Casto Allow WebTextFieldDecoratorClient to see applied decorations. https://bugs.webkit.org/show_bug.cgi?id=86557 Reviewed by Kent Tamura. * WebKit.gyp: Added new files. * public/WebInputElement.h: (WebKit::WebInputElement::decorationElementFor): Returns the WebElement attached to the WebInputElement by the given WebTextFieldDecoratorClient, if one exists. * src/TextFieldDecoratorImpl.cpp: (WebKit): * src/TextFieldDecoratorImpl.h: (TextFieldDecoratorImpl::decoratorClient): Get the WebTextFieldDecoratorClient owned by this object. 2012-05-25 Mihai Parparita Allow synchronous XHRs to be disabled in documents https://bugs.webkit.org/show_bug.cgi?id=87540 Reviewed by Eric Seidel. Synchronous XMLHttpRequests are a problematic API, since they result in blocked UI threads. Some clients may wish to always disable them; give them a setting to do so (see also r103629 for other cases where synchronous XHRs are disabled). * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setSyncXHRInDocumentsEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-05-25 Kinuko Yasuda [chromium] Deprecate FileUtilities::getFileSize and getFileModifiedTime in favor of getFileMetadata https://bugs.webkit.org/show_bug.cgi?id=87492 Reviewed by Adam Barth. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getFileMetadata): 2012-05-25 Ryosuke Niwa Roll Chromium DEPS from r139024 to r139156 in an attempt to fix Chromium Win builds. * DEPS: 2012-05-25 Mark Pilgrim [Chomium] Move sandboxSupport to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87518 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKitPlatformSupport): * public/platform/android/WebSandboxSupport.h: * public/platform/linux/WebFontFamily.h: * public/platform/linux/WebSandboxSupport.h: * public/platform/mac/WebSandboxSupport.h: * public/platform/win/WebSandboxSupport.h: * src/PlatformSupport.cpp: (WebCore::PlatformSupport::ensureFontLoaded): (WebCore::PlatformSupport::loadFont): (WebCore::PlatformSupport::getFontFamilyForCharacters): (WebCore::PlatformSupport::getRenderStyleForStrike): 2012-05-25 Dana Jansens [chromium] WebLayerTreeViewImpl should not hide methods in CCLayerTreeHost with signatures that match the Client interface https://bugs.webkit.org/show_bug.cgi?id=87301 Reviewed by James Robinson. Most methods in the CCLayerTreeHostClient interface have a matching method signature on CCLayerTreeHost that simply calls the client, if one exists at all. However, CCLayerTreeHost::updateAnimations() does important work in addition to calling the client. Currently WebLayerTreeViewImpl itself implements the interface for CCLayerTreeHostClient as well as CCLayerTreeHost, and simply forwards any call to a method in the client interface to its own client. This blocks WebViewImpl from calling CCLayerTreeHost::updateAnimations, since the method is also in the client interface. We change WebLayerTreeViewImpl to own a CCLayerTreeHost and a WebLayerTreeHostClientAdapter. This fixes the shadowing by making the two interfaces separate, and resolves lifetime issues by ensuring that the CCLayerTreeHost is destroyed before its client. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::setSurfaceReady): (WebKit::WebLayerTreeView::setRootLayer): (WebKit::WebLayerTreeView::compositorIdentifier): (WebKit::WebLayerTreeView::setViewportSize): (WebKit::WebLayerTreeView::viewportSize): (WebKit::WebLayerTreeView::setBackgroundColor): (WebKit::WebLayerTreeView::setVisible): (WebKit::WebLayerTreeView::setPageScaleFactorAndLimits): (WebKit::WebLayerTreeView::startPageScaleAnimation): (WebKit::WebLayerTreeView::setNeedsAnimate): (WebKit::WebLayerTreeView::setNeedsRedraw): (WebKit::WebLayerTreeView::commitRequested): (WebKit::WebLayerTreeView::composite): (WebKit::WebLayerTreeView::updateAnimations): (WebKit::WebLayerTreeView::compositeAndReadback): (WebKit::WebLayerTreeView::finishAllRendering): (WebKit::WebLayerTreeView::context): (WebKit::WebLayerTreeView::loseCompositorContext): * src/WebLayerTreeViewImpl.cpp: (WebKit): (WebLayerTreeViewClientAdapter): (WebKit::WebLayerTreeViewClientAdapter::WebLayerTreeViewClientAdapter): (WebKit::WebLayerTreeViewClientAdapter::~WebLayerTreeViewClientAdapter): (WebKit::WebLayerTreeViewImpl::create): (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl): (WebKit::WebLayerTreeViewImpl::~WebLayerTreeViewImpl): * src/WebLayerTreeViewImpl.h: (WebCore): (WebKit): (WebKit::WebLayerTreeViewImpl::layerTreeHost): (WebLayerTreeViewImpl): 2012-05-25 Kinuko Yasuda Unreviewed; rolling chromium deps. * DEPS: 2012-05-25 W. James MacLean [chromium] LayerChromium should recognise existing layer active animations when the layer is added. https://bugs.webkit.org/show_bug.cgi?id=87166 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostTest.cpp: (WTF::MockLayerTreeHost::didAddAnimationWasCalled): (MockLayerTreeHost): (WTF::MockLayerTreeHost::MockLayerTreeHost): (WTF): (CCLayerTreeHostTestLayerAddedWithAnimation): (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::CCLayerTreeHostTestLayerAddedWithAnimation): (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::beginTest): (WTF::CCLayerTreeHostTestLayerAddedWithAnimation::afterTest): 2012-05-17 Andrey Kosyakov [chromium] add instrumentation for compositing https://bugs.webkit.org/show_bug.cgi?id=83928 Reviewed by James Robinson. - plumb willCommit() and didComposite() to inspector instrumentation via WebViewImpl. * WebKit.gypi: Added WebLayerTreeViewTest * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeViewImpl::didBeginFrame): (WebKit): (WebKit::WebLayerTreeViewImpl::willCommit): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::didBeginFrame): (WebKit): (WebKit::WebViewImpl::willCommit): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostTest.cpp: * tests/FakeCCLayerTreeHostClient.h: * tests/WebLayerTest.cpp: * tests/WebLayerTreeViewTest.cpp: Added. 2012-05-25 Peter Beverloo [Chromium] Pull in Android tools from Chromium's repo through the DEPS file https://bugs.webkit.org/show_bug.cgi?id=87478 Reviewed by Kent Tamura. Chromium's r122048 added the forwarder tool, which forwards a TCP port listening on the device to a port on the host. This now is a required dependency of DumpRenderTree, so pull it in. Since it's likely that more tools will be required, pull in the entire tools/android/ directory in case the Chromium port for Android is being checked out or updated. * DEPS: Added Android-specific dependency on tools/android/ 2012-05-25 Sheriff Bot Unreviewed, rolling out r118461. http://trac.webkit.org/changeset/118461 https://bugs.webkit.org/show_bug.cgi?id=87468 Breaks two chromium browser_tests. (Requested by vsevik on #webkit). * src/WebViewImpl.cpp: (WebKit::WebViewImpl::resize): 2012-05-24 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-24 Kent Tamura PAGE_POPUP: window.setValueAndClosePopup should be moved to a per-context property of DOMWindow. https://bugs.webkit.org/show_bug.cgi?id=87086 Reviewed by Adam Barth. * src/WebPagePopupImpl.cpp: (WebKit): Add PagePopupFrameLoaderClient, which allows window.pagePopupController. (WebKit::WebPagePopupImpl::initPage): - Use PagePopupFrameLoaderClient - Remove the call of ScriptController::installFunctionsForPagePopup(). - Call DOMWindowPagePopup::install() to inform m_popupClient to a DOMWindowPagePopup object for the DOMWindow. 2012-05-21 Kinuko Yasuda Cleanup: add a file system call which captures the file metadata at once. https://bugs.webkit.org/show_bug.cgi?id=86995 Reviewed by David Levin. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getFileMetadata): (WebCore): 2012-05-24 Hironori Bono Enable grammar checking on Chromium when we paste text (Take 2) https://bugs.webkit.org/show_bug.cgi?id=74393 Reviewed by Ryosuke Niwa. This change enables grammar checking on Chromium and implements a mock grammar checker to fix a failing test. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Show suggestions when we right-click grammatically-misspelled words. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::isGrammarCheckingEnabled): Enable grammar checking when we enable asynchronous spellchecking. (WebKit::EditorClientImpl::checkGrammarOfString): set badGrammarLocation to -1 to avoid an assertion error. * src/WebTextCheckingResult.cpp: (WebKit::WebTextCheckingResult::operator TextCheckingResult): Fill GrammarDetails for grammatical errors. 2012-05-24 Alexandre Elias [chromium] Support mobile device rotation resizing https://bugs.webkit.org/show_bug.cgi?id=86819 Reviewed by Adam Barth. Resizes on a mobile device are caused either by rotation or on-screen-keyboard bringup, and need different treatment to remain naturally laid out, scaled and scrolled without disorienting the user. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::resize): 2012-05-24 Antoine Labour [chromium] Add a setForceRenderSurface to WebLayer for test/bench purpose https://bugs.webkit.org/show_bug.cgi?id=87436 Reviewed by James Robinson. * src/WebLayer.cpp: (WebKit::WebLayer::setForceRenderSurface): (WebKit): (WebKit::WebLayer::forceRenderSurface): * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): (WebKitTests): * tests/LayerChromiumTest.cpp: 2012-05-24 Adam Barth Fix the chromium-android build. * features.gypi: 2012-05-24 John Mellor Font Boosting: Add compile flag and runtime setting https://bugs.webkit.org/show_bug.cgi?id=87394 Reviewed by Adam Barth. Expose fontBoostingEnabled runtime setting via WebSettings. * features.gypi: * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setFontBoostingEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-05-24 Kinuko Yasuda Cleanup: introduce toFile() to reduce static cast from Blob to File https://bugs.webkit.org/show_bug.cgi?id=87234 Reviewed by Eric Seidel. * src/WebDragData.cpp: (WebKit::WebDragData::items): 2012-05-24 Lu Guanqun use built-in data type DashArray https://bugs.webkit.org/show_bug.cgi?id=87344 Reviewed by Eric Seidel. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): 2012-05-24 Mark Pilgrim [Chromium] Move queryLocalizedString to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85762 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/platform/WebKitPlatformSupport.h: (WebKit::WebKitPlatformSupport::getPluginList): * public/platform/WebLocalizedString.h: * src/LocalizedStrings.cpp: (WebCore::query): 2012-05-24 Dana Jansens [chromium] Only display frames created with memory allocations meant to be displayed https://bugs.webkit.org/show_bug.cgi?id=85108 Reviewed by Adrienne Walker. Removing code to protect visible textures when a tab becomes invisible, as we want to reduce our memory limit for invisible tabs and these textures should not be saved. * src/NonCompositedContentHost.cpp: * src/NonCompositedContentHost.h: (NonCompositedContentHost): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setVisibilityState): * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::didCommit): (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::scheduleComposite): (WTF::CCLayerTreeHostTest::dispatchComposite): (CCLayerTreeHostTest): (WTF::CCLayerTreeHostTest::doBeginTest): (CCLayerTreeHostTestTickAnimationWhileBackgrounded): (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::willAnimateLayers): (CCLayerTreeHostTestVisibilityAndAllocationControlDrawing): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::beginTest): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommitAndDrawFrame): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommit): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::afterTest): (WTF): 2012-05-24 Sheriff Bot Unreviewed, rolling out r118352. http://trac.webkit.org/changeset/118352 https://bugs.webkit.org/show_bug.cgi?id=87390 Caused 6 editing/spelling tests crash/fail on chromium in debug. (Requested by vsevik on #webkit). * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::isGrammarCheckingEnabled): * src/WebTextCheckingResult.cpp: (WebKit::WebTextCheckingResult::operator TextCheckingResult): 2012-05-24 Ian Vollick [chromium] Forcibly sync running animations in the waiting state when synchronized start times are needed. https://bugs.webkit.org/show_bug.cgi?id=87153 Reviewed by James Robinson. * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-05-23 Yury Semikhatsky Web Inspector: add a command to InspectorMemoryAgent for getting process memory break down https://bugs.webkit.org/show_bug.cgi?id=87263 Reviewed by Pavel Feldman. Added an API for retrieving render process private and shared memory in bytes. * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): (WebKit::WebKitPlatformSupport::getProcessMemorySize): * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getProcessMemorySize): (WebCore): 2012-05-24 Hironori Bono Enable grammar checking on Chromium when we paste text. https://bugs.webkit.org/show_bug.cgi?id=74393 Reviewed by Hajime Morita. This change enables grammar checking on Chromium and implements a mock grammar checker to fix a failing test. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Show suggestions when we right-click grammatically-misspelled words. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::isGrammarCheckingEnabled): Enable grammar checking when we enable asynchronous spellchecking. * src/WebTextCheckingResult.cpp: (WebKit::WebTextCheckingResult::operator TextCheckingResult): Fill GrammarDetails for grammatical errors. 2012-05-24 Vivek Galatage Web Inspector: localStorage items are not updated when the storage changes https://bugs.webkit.org/show_bug.cgi?id=83012 Reviewed by Pavel Feldman. Instrumented the DOM Storage Events in order to update the frontend. * src/StorageAreaProxy.cpp: (WebCore::StorageAreaProxy::dispatchLocalStorageEvent): (WebCore::StorageAreaProxy::dispatchSessionStorageEvent): 2012-05-23 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-23 Dana Jansens [chromium] Enable the CCLayerTreeHostTestCanDrawBlocksDrawing test in single-threaded mode https://bugs.webkit.org/show_bug.cgi?id=87308 Reviewed by James Robinson. Chromium bug: http://crbug.com/127481 Unit test: CCLayerTreeHostTestCanDrawBlocksDrawing.runSingleThread * tests/CCLayerTreeHostTest.cpp: (WTF::TestHooks::didCommit): (WTF): (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::didCommit): 2012-05-23 James Robinson Add a Setting to make position:fixed form a new stacking context https://bugs.webkit.org/show_bug.cgi?id=87186 Reviewed by Adam Barth. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setFixedPositionCreatesStackingContext): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-05-23 James Robinson [chromium] Turn ENABLE(OVERFLOW_SCROLLING) off for Chromium port https://bugs.webkit.org/show_bug.cgi?id=87177 Reviewed by Eric Seidel. Removes ENABLE(OVERFLOW_SCROLLING) from the set of enables set by Chromium. This guards a new non-standard CSS property, -webkit-overflow-scrolling, that was introduced by iOS5 intended for mobile browsers. This property is very partially implemented in Chromium but the way it's implemented does cause new stacking contexts to be created that otherwise would not be, breaking "desktop" pages. This turns the feature off until we can figure out how to deal with the compatibility issues. * features.gypi: 2012-05-23 Jay Civelli [chromium] Provides a way to cancel an external popup menu before it is shown. https://bugs.webkit.org/show_bug.cgi?id=83474 Reviewed by Kent Tamura. * src/ExternalPopupMenu.cpp: (WebKit::ExternalPopupMenu::show): 2012-05-23 Michael Nordman [chromium] DomStorage events handling needs TLC (3) https://bugs.webkit.org/show_bug.cgi?id=87031 https://code.google.com/p/chromium/issues/detail?id=128482 Only queue storage events for Documents which have allocated a WebCore::Storage instance since pages that have attached onstorage event handlers must have a non-null Storage instance. Reviewed by Adam Barth. * src/StorageAreaProxy.cpp: (WebCore::StorageAreaProxy::dispatchLocalStorageEvent): (WebCore::StorageAreaProxy::dispatchSessionStorageEvent): (WebCore::StorageAreaProxy::isEventSource): 2012-05-23 Sheriff Bot Unreviewed, rolling out r118218. http://trac.webkit.org/changeset/118218 https://bugs.webkit.org/show_bug.cgi?id=87299 breaks webkit win builder (Requested by pilgrim_google__ on #webkit). * WebKit.gyp: * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): (WebKit::WebKitPlatformSupport::queryLocalizedString): * public/platform/WebLocalizedString.h: (WebKit): * src/LocalizedStrings.cpp: (WebCore::query): 2012-05-23 Mark Pilgrim [Chromium] Move themeEngine to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87268 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKit::WebKitPlatformSupport::sandboxSupport): * public/platform/android/WebThemeEngine.h: * public/platform/linux/WebThemeEngine.h: * public/platform/mac/WebThemeEngine.h: * public/platform/win/WebThemeEngine.h: * src/AssertMatchingEnums.cpp: * src/PlatformSupport.cpp: (WebCore::PlatformSupport::paintButton): (WebCore::PlatformSupport::paintMenuList): (WebCore::PlatformSupport::paintScrollbarArrow): (WebCore::PlatformSupport::paintScrollbarThumb): (WebCore::PlatformSupport::paintScrollbarTrack): (WebCore::PlatformSupport::paintSpinButton): (WebCore::PlatformSupport::paintTextField): (WebCore::PlatformSupport::paintTrackbar): (WebCore::PlatformSupport::paintProgressBar): (WebCore::PlatformSupport::getThemePartSize): (WebCore::PlatformSupport::paintThemePart): 2012-05-23 Raymes Khoury Change acceptMIMETypes member to acceptTypes now that file extensions are legal accept types https://bugs.webkit.org/show_bug.cgi?id=87271 Reviewed by Darin Fisher. * public/WebFileChooserParams.h: (WebFileChooserParams): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::runOpenPanel): 2012-05-23 Dana Jansens [chromium] Layers on main thread should get a RenderSurface for animating transform only if masksToBounds is true also https://bugs.webkit.org/show_bug.cgi?id=87184 Reviewed by James Robinson. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): 2012-05-23 Mark Pilgrim [Chromium] Move queryLocalizedString to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85762 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/platform/WebKitPlatformSupport.h: (WebKit::WebKitPlatformSupport::getPluginList): * public/platform/WebLocalizedString.h: * src/LocalizedStrings.cpp: (WebCore::query): 2012-05-23 Antti Koivisto Build fix. Not reviewed. * src/WebDocument.cpp: (WebKit::WebDocument::insertUserStyleSheet): 2012-05-22 Alexandre Elias [chromium] Apply viewport tag initial-scale only once https://bugs.webkit.org/show_bug.cgi?id=82949 Reviewed by Adam Barth. First, check that isPageScaleFactorSet return false before setting initial-scale. We need to call dispatchViewportPropertiesDidChange() when the viewport width changes, since that's an input to the viewport tag calculation. When this happens, we shouldn't pop back to initial scale. Second, check that isNewNavigation is true when deciding to clear isPageScaleFactorIsSet in didCommitLoad. We only want to clear it on the very first commit, otherwise we'll pop back to initial scale if the user zooms in before the load is complete. New test WebFrameTest::FixedLayoutInitializeAtMinimumPageScale. * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::didCommitLoad): 2012-05-21 Shawn Singh Improve W3C conformance of backface-visibility https://bugs.webkit.org/show_bug.cgi?id=84195 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-05-22 Sheriff Bot Unreviewed, rolling out r118095. http://trac.webkit.org/changeset/118095 https://bugs.webkit.org/show_bug.cgi?id=87201 "Causing crashes on Mac in WebCore::StyleResolver::adjustRenderStyle (Requested by sundiamonde on #webkit). * public/WebSettings.h: * src/WebSettingsImpl.cpp: * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-05-22 Xianzhu Wang [Chromium-Android] Run DumpRenderTree as an apk (C++ and gyp part) https://bugs.webkit.org/show_bug.cgi?id=86922 Reviewed by Kent Tamura. * All.gyp: Added DumpRenderTree_apk into dependencies for Android. 2012-05-22 Mark Pilgrim [Chromium] Call canAccelerate2dCanvas directly https://bugs.webkit.org/show_bug.cgi?id=86893 Reviewed by James Robinson. Part of a refactoring series. See tracking bug 82948. * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): * src/PlatformSupport.cpp: (WebCore): 2012-05-22 Dana Jansens [chromium] Don't drop children of a RenderSurface from the renderSurfaceLayerList when then position of the surface in its clipRect is not known https://bugs.webkit.org/show_bug.cgi?id=87181 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): (WebKitTests): 2012-05-22 MORITA Hajime [Chromium][API] Introduce WebPermissionClient::allowWebComponents() https://bugs.webkit.org/show_bug.cgi?id=87097 Reviewed by Kent Tamura. - Added WebPermissionClient::allowWebComponents(), and - Implemented FrameLoaderClientImpl::shadowDOMAllowed() using it. * public/WebPermissionClient.h: (WebPermissionClient): (WebKit::WebPermissionClient::allowWebComponents): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::shadowDOMAllowed): (WebKit): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-05-22 James Robinson Add a Setting to make position:fixed form a new stacking context https://bugs.webkit.org/show_bug.cgi?id=87186 Reviewed by Adam Barth. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setFixedPositionCreatesStackingContext): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-05-22 Dana Jansens [chromium] Don't force the visibleLayerRect to be empty for animating layers whose front face is not visible https://bugs.webkit.org/show_bug.cgi?id=86886 Reviewed by Adrienne Walker. * tests/CCLayerTreeHostCommonTest.cpp: (WebKitTests::TEST): 2012-05-22 Mark Pilgrim [Chromium] Move cookieJar to Platform.h https://bugs.webkit.org/show_bug.cgi?id=86755 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * WebKit.gyp: * public/platform/WebCookie.h: * public/platform/WebCookieJar.h: * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKit::WebKitPlatformSupport::themeEngine): * src/PlatformSupport.cpp: (WebCore::getCookieJar): 2012-05-22 Jochen Eisinger Unreviewed. Rolled DEPS. * DEPS: 2012-05-22 Kausalya Madhusudhanan [Chromium] Use overloaded printBegin() webkit API to support auto fit to page functionality. https://bugs.webkit.org/show_bug.cgi?id=86684 Reviewed by Darin Fisher. * public/WebFrame.h: (WebFrame): * public/WebPlugin.h: (WebPlugin): * public/WebPrintParams.h: (WebKit::WebPrintParams::WebPrintParams): (WebPrintParams): * src/WebFrameImpl.cpp: (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::printBegin): 2012-05-22 Adam Barth [Chromium] Expose setMediaPlaybackRequiresUserGesture via WebSettings https://bugs.webkit.org/show_bug.cgi?id=87164 Reviewed by Eric Seidel. This is used by the Chromium Android port. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setMediaPlaybackRequiresUserGesture): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-05-21 Shawn Singh [chromium] Add unit testing for WebTransformationMatrix::blend() https://bugs.webkit.org/show_bug.cgi?id=87066 Reviewed by Adrienne Walker. 8 more unit tests added: WebTransformationMatrixTest.verifyBlendForTranslation WebTransformationMatrixTest.verifyBlendForScale WebTransformationMatrixTest.verifyBlendForSkewX WebTransformationMatrixTest.verifyBlendForSkewY WebTransformationMatrixTest.verifyBlendForRotationAboutX WebTransformationMatrixTest.verifyBlendForRotationAboutY WebTransformationMatrixTest.verifyBlendForRotationAboutZ WebTransformationMatrixTest.verifyBlendForCompositeTransform * tests/WebTransformationMatrixTest.cpp: (WebKit::TEST): (WebKit): (WebKit::printTransform): == Rolled over to ChangeLog-2012-05-22 ==