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-04-18 Hironori Bono Split SpellChecker::didCheck() to SpellChecker::didCheckSucceeded() and SpellChecker::didCheckCanceled() https://bugs.webkit.org/show_bug.cgi?id=83748 Reviewed by Ryosuke Niwa. This change adds a new API WebTextCheckingCompletion::didCancelCheckingText(), which encapsulates SpellChecker::didCheckCanceled() and implements it so Chromium can use it. * public/WebTextCheckingCompletion.h: (WebKit::WebTextCheckingCompletion::didCancelCheckingText): * src/WebTextCheckingCompletionImpl.cpp: (WebKit::WebTextCheckingCompletionImpl::didFinishCheckingText): (WebKit): (WebKit::WebTextCheckingCompletionImpl::didCancelCheckingText): * src/WebTextCheckingCompletionImpl.h: (WebTextCheckingCompletionImpl): 2012-02-24 Shinya Kawanaka SpellCheckRequest needs to know the context where the spellcheck happened. https://bugs.webkit.org/show_bug.cgi?id=79320 Reviewed by Hajime Morita. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::requestCheckingOfString): * src/EditorClientImpl.h: (EditorClientImpl): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::requestTextChecking): 2012-05-18 MORITA Hajime https://bugs.webkit.org/show_bug.cgi?id=85515 Stale frame in WebCore::SpellChecker::didCheckSucceeded Added WebTextCheckingCompletionImpl::invalidate() to mark pending spellcheck request as invalid, and added frameWillDetachPage() to fire it. Reviewed by Ryosuke Niwa. * src/EditorClientImpl.cpp: (WebKit::EditorClientImpl::frameWillDetachPage): (WebKit): (WebKit::EditorClientImpl::requestCheckingOfString): (WebKit::EditorClientImpl::didCheckString): * src/EditorClientImpl.h: (WebKit): (EditorClientImpl): * src/WebTextCheckingCompletionImpl.cpp: (WebKit::WebTextCheckingCompletionImpl::didFinishCheckingText): (WebKit::WebTextCheckingCompletionImpl::didCancelCheckingText): (WebKit::WebTextCheckingCompletionImpl::invalidate): (WebKit): * src/WebTextCheckingCompletionImpl.h: (WebKit): (WebKit::WebTextCheckingCompletionImpl::WebTextCheckingCompletionImpl): (WebTextCheckingCompletionImpl): (WebKit::WebTextCheckingCompletionImpl::spellChecker): 2012-03-23 Adam Barth Remove support for "magic" iframe https://bugs.webkit.org/show_bug.cgi?id=81590 Reviewed by Eric Seidel. Remove FrameLoaderClient methods that no longer exist. * public/WebFrameClient.h: (WebFrameClient): * src/FrameLoaderClientImpl.cpp: (WebKit): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): 2012-02-18 raman Tenneti Track the NPN protocol version negotiated with the server https://bugs.webkit.org/show_bug.cgi?id=77349 Reviewed by Darin Fisher. [chromium] Added ExtraData to WebURLResponse. * WebKit.gypi: * public/platform/WebURLResponse.h: (ExtraData): (WebKit::WebURLResponse::ExtraData::~ExtraData): (WebURLResponse): * src/WebURLResponse.cpp: (WebKit::WebURLResponse::extraData): (WebKit): (WebKit::WebURLResponse::setExtraData): * tests/WebURLResponseTest.cpp: Added. (WebKit): (TestExtraData): (WebKit::TestExtraData::TestExtraData): (WebKit::TestExtraData::~TestExtraData): (WebKit::TEST): 2012-02-17 Joshua Bell IndexedDB: Support overloaded methods that take IDBKey or IDBKeyRange https://bugs.webkit.org/show_bug.cgi?id=78399 Implements the WebKit API for IDBObjectStore.delete(IDBKeyRange), to exercise the overload capability. Reviewed by Tony Chang. * src/IDBObjectStoreBackendProxy.cpp: (WebKit::IDBObjectStoreBackendProxy::deleteFunction): (WebKit): * src/IDBObjectStoreBackendProxy.h: (IDBObjectStoreBackendProxy): * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::deleteFunction): (WebKit): * src/WebIDBObjectStoreImpl.h: (WebIDBObjectStoreImpl): 2012-02-17 Michal Mocny [chromium] GL_CHROMIUM_gpu_memory_manager extension https://bugs.webkit.org/show_bug.cgi?id=77155 Reviewed by James Robinson. * public/platform/WebGraphicsContext3D.h: (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM): * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::setGpuMemoryAllocationChangedCallbackCHROMIUM): (WebCore): * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3D::~GraphicsContext3D): (GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged): (WebCore): (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM): * src/GraphicsContext3DPrivate.h: (WebCore): * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM): (FakeWebGraphicsContext3D): 2012-02-17 Mihnea Ovidenie CSS regions enabled by default https://bugs.webkit.org/show_bug.cgi?id=78525 Reviewed by David Hyatt. Add a runtime preference to enable/disable regions functionality at runtime(WebKitCSSRegionsEnabled). CSSRegions are still enabled by default. In DRT, use layoutTestController.overridePreference("WebKitCSSRegionsEnabled", "0") to disable the css regions functionality. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setExperimentalCSSRegionsEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-02-17 Scott Graham [Chromium] pack Gamepad shared memory structure https://bugs.webkit.org/show_bug.cgi?id=78022 Reviewed by Darin Fisher. Add #pragma pack around definition of shared memory structures to avoid differences across compilers and platforms. Add COMPILE_ASSERT to verify expected size. * public/platform/WebGamepad.h: (WebKit): * public/platform/WebGamepads.h: (WebKit): 2012-02-17 Tim Dresser [chromium] Refactor video drawing to be more data driven https://bugs.webkit.org/show_bug.cgi?id=76720 Reviewed by James Robinson. CCLayerTreeHostImplTest.didDrawCalledOnAllLayers ensures that CCLayerImpl::didDraw() is called on all layers, including layers on different render surfaces. * tests/CCLayerTreeHostImplTest.cpp: (DidDrawCheckLayer): (WebKit::DidDrawCheckLayer::create): (WebKit::DidDrawCheckLayer::didDraw): (WebKit::DidDrawCheckLayer::didDrawCalled): (WebKit::DidDrawCheckLayer::DidDrawCheckLayer): (WebKit): (WebKit::TEST_F): 2012-02-17 Ilya Tikhonovsky Unreviewed, rolling out r108071. http://trac.webkit.org/changeset/108071 https://bugs.webkit.org/show_bug.cgi?id=77155 chromium-mac compilation failed * public/platform/WebGraphicsContext3D.h: (WebGraphicsContext3D): * src/Extensions3DChromium.cpp: * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3D::~GraphicsContext3D): * src/GraphicsContext3DPrivate.h: (WebCore): * tests/FakeWebGraphicsContext3D.h: 2012-02-17 Michal Mocny [chromium] GL_CHROMIUM_gpu_memory_manager extension https://bugs.webkit.org/show_bug.cgi?id=77155 Reviewed by James Robinson. * public/platform/WebGraphicsContext3D.h: (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM): * src/Extensions3DChromium.cpp: (WebCore::Extensions3DChromium::setGpuMemoryAllocationChangedCallbackCHROMIUM): (WebCore): * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3D::~GraphicsContext3D): (GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter): (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged): (WebCore): (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM): * src/GraphicsContext3DPrivate.h: (WebCore): * tests/FakeWebGraphicsContext3D.h: (WebKit::FakeWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM): (FakeWebGraphicsContext3D): 2012-02-17 Ilya Tikhonovsky Unreviewed. Chromium DEPS roll * DEPS: from 122122 to 122498 2012-02-16 Alexandre Elias [chromium] Bundle page scale factor and limits in CCLayerTreeHost https://bugs.webkit.org/show_bug.cgi?id=78762 Setting page scale factor and its limits in separate methods may cause clamping bugs if one of them makes it to the impl thread before the other. Change the API to bundle them together, which matches the existing impl-side interface. Reviewed by James Robinson. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::computePageScaleFactorLimits): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit::WebViewImpl::updateLayerTreeViewport): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestStartPageScaleAnimation::applyScrollAndScale): 2012-02-16 Varun Jain [Chromium] Add method to WebViewImpl to extract zoom/scroll params for gesture events on touch devices https://bugs.webkit.org/show_bug.cgi?id=72909 Reviewed by James Robinson. * src/WebViewImpl.cpp: (std): (WebKit): (WebKit::WebViewImpl::computeBlockBounds): (WebKit::WebViewImpl::widenRectWithinPageBounds): (WebKit::WebViewImpl::computeScaleAndScrollForHitRect): * src/WebViewImpl.h: (WebViewImpl): * tests/WebFrameTest.cpp: (WebKit): (WebKit::TEST_F): * tests/data/get_scale_for_auto_zoom_into_div_test.html: Added. 2012-02-16 Sami Kyostila [chromium] LayerChromium::setNeedsDisplay does not apply contents scale correctly https://bugs.webkit.org/show_bug.cgi?id=77464 Added a new unit test for TiledLayerChromium to verify its invalidation behavior when the contents scale changes. Also enhance and existing unit test for LayerChromium to verify the paint rectangle dimensions instead just checking that it is not empty. Reviewed by James Robinson. * tests/LayerChromiumTest.cpp: * tests/TiledLayerChromiumTest.cpp: (WTF::FakeTiledLayerChromium::setNeedsDisplayRect): (FakeTiledLayerChromium): (WTF::FakeTiledLayerChromium::lastNeedsDisplayRect): (WTF::TEST): (WTF): 2012-02-16 MORITA Hajime https://bugs.webkit.org/show_bug.cgi?id=78065 [Chromium] Should eliminate WebTextCheckingResult legacy APIs Reviewed by Kent Tamura. Removed unused legacy members. * public/WebTextCheckingResult.h: (WebKit::WebTextCheckingResult::WebTextCheckingResult): (WebTextCheckingResult): * src/AssertMatchingEnums.cpp: 2012-02-16 Evan Martin [chromium] pull third_party/gold to fix linux build https://bugs.webkit.org/show_bug.cgi?id=78842 Reviewed by Tony Chang. The Chrome build now depends on third_party/gold also being checked out. * DEPS: 2012-02-15 Michael Nordman Fix bugs in the implementation of WebDatabase::closeDatabaseImmediately. https://bugs.webkit.org/show_bug.cgi?id=78841 WebDatabase now delegates this function entirely to DatabaseTracker. This is part of resolving http://crbug.com/98939 Reviewed by David Levin. * src/WebDatabase.cpp: (WebKit::WebDatabase::closeDatabaseImmediately): 2012-02-16 Dana Jansens [Chromium] Occlusion tracking with CSS filters https://bugs.webkit.org/show_bug.cgi?id=77498 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestLayerOcclusionWithFilters): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::CCLayerTreeHostTestLayerOcclusionWithFilters): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::afterTest): (WTF): 2012-02-16 Joshua Bell IndexedDB: Chromium WebKit API support for IDBObjectStore.delete(IDBKeyRange) https://bugs.webkit.org/show_bug.cgi?id=78619 Add an overload to WebIDBObjectStore::deleteFunction(). First part of a two-sided patch. Reviewed by Darin Fisher. * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::deleteFunction): 2012-02-16 Dana Jansens [chromium] Clipping/Transforms applied in wrong order in opaque paint tracking https://bugs.webkit.org/show_bug.cgi?id=78775 Reviewed by Stephen White. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): 2012-02-16 Daniel Cheng [chromium] Add WEBKIT_EXPORT to new WebDragData methods. https://bugs.webkit.org/show_bug.cgi?id=78843 Reviewed by Tony Chang. * public/platform/WebDragData.h: (WebDragData): 2012-02-16 Viet-Trung Luu [chromium] Add method to WebPluginContainer to check if a rectangle is topmost https://bugs.webkit.org/show_bug.cgi?id=78166 Reviewed by Darin Fisher. * public/WebPluginContainer.h: (WebPluginContainer): * src/WebPluginContainerImpl.cpp: * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): 2012-02-16 Yosifumi Inoue Build Fix: R107894 breaks Chromium Linux Build. https://bugs.webkit.org/show_bug.cgi?id=78790 WebDragDataPrivate::types, inherited from ChromiumDataObject, returns PassRef since r107894. However, WebDragData expected to get old return value type HashSet. Reviewed by Kent Tamura. * src/WebDragData.cpp: (WebKit::WebDragData::items): Use RefPtr rather than HashSet for value of m_private->types(). 2012-02-15 Sami Kyostila Enable -webkit-overflow-scrolling CSS property https://bugs.webkit.org/show_bug.cgi?id=78664 Reviewed by Eric Seidel. * features.gypi: 2012-02-15 Tommy Widenflycht MediaStream API: Removing SecurityContext from the embedder API https://bugs.webkit.org/show_bug.cgi?id=73816 Reviewed by Darin Fisher. * bridge/PeerConnectionHandler.cpp: (WebCore::PeerConnectionHandler::create): (WebCore::PeerConnectionHandler::PeerConnectionHandler): * bridge/PeerConnectionHandlerInternal.cpp: (WebCore::PeerConnectionHandlerInternal::PeerConnectionHandlerInternal): * bridge/PeerConnectionHandlerInternal.h: (WebCore): (PeerConnectionHandlerInternal): * public/platform/WebPeerConnectionHandler.h: (WebPeerConnectionHandler): (WebKit::WebPeerConnectionHandler::initialize): 2012-02-15 Peter Beverloo [Chromium] Roll DEPS to r122122 https://bugs.webkit.org/show_bug.cgi?id=78754 Unreviewed DEPS roll. * DEPS: 2012-02-01 Daniel Cheng [chromium] Add setter/getter to expose drag data as a list of items https://bugs.webkit.org/show_bug.cgi?id=77125 This change supports the unification of the data store backing ChromiumDataObject and DataTransferItemListChromium. ChromiumDataObject will represent dragging and clipboard data as a list of data nodes to make it more straightforward to implement the HTML spec for DataTransferItemList. Thus, we extend the abstraction to the webkit glue layer to simplify the serialization/deserialization between platform-specific data and WebDragData. The other setter/getter methods are deprecated and will be removed once the dependencies in Chromium code are gone. Reviewed by Darin Fisher. * public/platform/WebDragData.h: (WebKit): (WebDragData): * src/WebDragData.cpp: (WebKit::WebDragData::items): (WebKit): (WebKit::WebDragData::setItems): (WebKit::WebDragData::addItem): 2012-02-15 Sadrul Habib Chowdhury Notify ChromeClient when touch-event handlers are installed/removed. https://bugs.webkit.org/show_bug.cgi?id=77440 Reviewed by Darin Fisher and Ryosuke Niwa. * public/WebViewClient.h: (WebKit::WebViewClient::numberOfTouchEventHandlersChanged): * src/ChromeClientImpl.cpp: (WebKit::ChromeClientImpl::numTouchEventHandlersChanged): (WebKit): * src/ChromeClientImpl.h: (ChromeClientImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::numberOfTouchEventHandlersChanged): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-02-15 Anders Carlsson Remove ScrollableArea::handleGestureEvent https://bugs.webkit.org/show_bug.cgi?id=78661 Reviewed by Adam Roben. Update for WebCore changes. * src/WebPluginContainerImpl.cpp: * src/WebPluginContainerImpl.h: (WebPluginContainerImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::gestureEvent): 2012-02-14 Takashi Toyoshima Provide SocketStreamHandleInternal::toWebSocketStreamHandle(SocketStreamHandle*). https://bugs.webkit.org/show_bug.cgi?id=78581 Reviewed by Kent Tamura. Now, there is no way to convert SocketStreamHandle to WebSocketStreamHandle. In subsequent changes, I'll use this function in FrameLoaderClientImpl. * src/SocketStreamHandle.cpp: Remove SocketStreamHandleInternal class declaration. * src/SocketStreamHandleInternal.h: Move SocketStreamHandleInternal class declaration from SocketStreamHandle.cpp to expose, and add conversion function to WebSocketStreamHandle from SocketStreamHandle. (WebKit): (WebCore): (SocketStreamHandleInternal): (WebCore::SocketStreamHandleInternal::create): (WebCore::SocketStreamHandleInternal::toWebSocketStreamHandle): * WebKit.gyp: Add SocketStreamHandleInternal.h entry. 2012-02-14 Sheriff Bot Unreviewed, rolling out r107766. http://trac.webkit.org/changeset/107766 https://bugs.webkit.org/show_bug.cgi?id=78665 Breaks Chromium Win build (Requested by bashi1 on #webkit). * WebKit.gypi: * tests/WebSocketDeflaterTest.cpp: Removed. 2012-02-14 Kenichi Ishibashi [WebSocket] Add extension attribute support https://bugs.webkit.org/show_bug.cgi?id=78557 Add WebSocketExtensionDispatcher::acceptedExtensions() checks. Reviewed by Kent Tamura. * tests/WebSocketExtensionDispatcherTest.cpp: (WebCore::TEST_F): 2012-02-14 Kenichi Ishibashi [WebSocket] Add deflater/inflater classes. https://bugs.webkit.org/show_bug.cgi?id=78449 Add tests which ensure WebSocketDeflater/WebSocketInflater can compress/decompress data correctly. Reviewed by Kent Tamura. * WebKit.gypi: * tests/WebSocketDeflaterTest.cpp: Added. (WebCore): (WebCore::TEST): 2012-02-14 Dana Jansens [chromium] Compare filters on impl thread when setting them, and test setting in unit tests https://bugs.webkit.org/show_bug.cgi?id=78643 Reviewed by James Robinson. * tests/CCLayerImplTest.cpp: (WebCore::TEST): 2012-02-14 Ramya Chandrasekaran Last character display for passwords in Android. https://bugs.webkit.org/show_bug.cgi?id=78532 Reviewed by Adam Barth. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setPasswordEchoEnabled): (WebKit): (WebKit::WebSettingsImpl::setPasswordEchoDurationInSeconds): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-02-14 David Reveman [Chromium] Expose perTilePainting setting through WebLayerTreeView::Settings interface. https://bugs.webkit.org/show_bug.cgi?id=76937 Reviewed by James Robinson. Add perTilePainting to WebLayerTreeView::Settings. * public/platform/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (Settings): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): 2012-02-14 Vsevolod Vlasov Web Inspector: Make ScriptsNavigator default file selector. https://bugs.webkit.org/show_bug.cgi?id=78349 Reviewed by Pavel Feldman. * src/js/Tests.js: (.TestSuite.prototype.testNoScriptDuplicatesOnPanelSwitch.checkNoDuplicates): (.TestSuite.prototype.uiSourceCodesToString_): (.TestSuite.prototype.nonAnonymousUISourceCodes_): (.TestSuite.prototype._scriptsAreParsed): (.TestSuite.prototype._waitUntilScriptsAreParsed.waitForAllScripts): (.TestSuite.prototype._waitUntilScriptsAreParsed): 2012-02-14 Hayato Ito Make ShadowRoot.nodeType return DOCUMENT_FRAGMENT_NODE. https://bugs.webkit.org/show_bug.cgi?id=77514 Reviewed by Dimitri Glazkov. NodeType.SHADOW_ROOT_NODE type is finally gone. * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::buildContentForNode): 2012-02-14 David Reveman [Chromium] Inconsistent initialization of CCSettings in WebLayerTreeView. https://bugs.webkit.org/show_bug.cgi?id=76927 Reviewed by James Robinson. Remove unnecessary initialization and include maxPartialTextureUpdates in FIXME comment. * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::Settings::operator CCSettings): 2012-02-14 Sheriff Bot Unreviewed, rolling out r107661. http://trac.webkit.org/changeset/107661 https://bugs.webkit.org/show_bug.cgi?id=78591 crash on lion/qt bots (Requested by hayato on #webkit). * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::buildContentForNode): 2012-02-14 Yuzhu Shen [chromium] Pepper plugins don't receive mouse movement information in non-mouse-lock mode. https://bugs.webkit.org/show_bug.cgi?id=78014 This change makes WebMouseEventBuilder pass along mouse movement information properly. There isn't test for this change because: - the movement information added is only used by pepper, and there isn't any test for pepper at the WebKit side. (WebKit doesn't know about pepper.) - this change is trivial. It just copies two newly-added data fields from MouseEvent to WebMouseEventBuilder during conversion. Reviewed by Tony Chang. * src/WebInputEventConversion.cpp: (WebKit::WebMouseEventBuilder::WebMouseEventBuilder): 2012-02-11 Nikolas Zimmermann Convert svg/animations to use SMIL methods for driving the timeline https://bugs.webkit.org/show_bug.cgi?id=78422 Reviewed by Dirk Schulze. Remove SVG animation sampling functionality provided for DRT, which no longer uses it. Instead we switched the svg/animations tests to use SVGSVGElement.setCurrentTime. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: * src/WebFrameImpl.h: (WebFrameImpl): 2012-02-13 Mihai Parparita [Chromium] Remove BoundObject https://bugs.webkit.org/show_bug.cgi?id=78531 Reviewed by Pavel Feldman. Remove the BoundObject class, references to it were removed in r56999. * WebKit.gyp: * src/BoundObject.cpp: Removed. * src/BoundObject.h: Removed. * src/WebDevToolsFrontendImpl.cpp: 2012-02-13 W. James MacLean [chromium] Remove obsolete zoom animation pathway. https://bugs.webkit.org/show_bug.cgi?id=78359 Reviewed by James Robinson. This patch removes dead code from the previous incarnation of zoom animation for chromium. * src/WebViewImpl.cpp: 2012-02-13 Hayato Ito Make ShadowRoot.nodeType return DOCUMENT_FRAGMENT_NODE. https://bugs.webkit.org/show_bug.cgi?id=77514 Reviewed by Dimitri Glazkov. NodeType.SHADOW_ROOT_NODE type is finally gone. * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::buildContentForNode): 2012-02-13 Nico Weber [chromium] Let WebKit::initialize call InitWebCoreSystemInterface on mac. https://bugs.webkit.org/show_bug.cgi?id=78246 This allows removing a bunch of code in chromium land (https://chromiumcodereview.appspot.com/9374020/), and helps with the component build on mac (InitWebCoreSystemInterface is not an exported function, and it shouldn't be). Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm early-returns when it's called twice, so it's safe to land this change, and remove the calls in client code in a later CL. Reviewed by Darin Fisher. * src/WebKit.cpp: (WebKit::initializeWithoutV8): 2012-02-13 Yosifumi Inoue [Forms] Use enum instead of bool for HTMLInputElement::setValue https://bugs.webkit.org/show_bug.cgi?id=75217 Reviewed by Kent Tamura. * src/WebInputElement.cpp: (WebKit::WebInputElement::setValue): Use enum for HTMLInputElement::setValue 2012-02-12 Hajime Morrita Page should have less intrusive way to associate API implementation objects. https://bugs.webkit.org/show_bug.cgi?id=78085 Reviewed by Adam Barth. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): 2012-02-10 David Grogan Disable IndexedDB permissions check from shared workers https://bugs.webkit.org/show_bug.cgi?id=78316 We want to temporarily bypass this check because it causes a crash when called from a shared worker. We'll have to fix it before including idb on shared workers in a release but don't want to stop developers from testing out idb on shared workers. No new tests because it affects shared workers only, which aren't testable by DRT. Reviewed by Tony Chang. * src/IDBFactoryBackendProxy.cpp: (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread): 2012-02-10 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-02-09 Kenichi Ishibashi Add WebSocket extension support https://bugs.webkit.org/show_bug.cgi?id=78079 Add some tests which check WebSocketExtensions::processHeaderValue() parses the given response correctly. Reviewed by Kent Tamura. * WebKit.gypi: * tests/WebSocketExtensionDispatcherTest.cpp: Added. (WebCore): (MockWebSocketExtensionProcessor): (WebCore::MockWebSocketExtensionProcessor::MockWebSocketExtensionProcessor): (WebSocketExtensionDispatcherTest): (WebCore::WebSocketExtensionDispatcherTest::WebSocketExtensionDispatcherTest): (WebCore::WebSocketExtensionDispatcherTest::SetUp): (WebCore::WebSocketExtensionDispatcherTest::TearDown): (WebCore::WebSocketExtensionDispatcherTest::addMockProcessor): (WebCore::WebSocketExtensionDispatcherTest::appendResult): (WebCore::MockWebSocketExtensionProcessor::processResponse): (WebCore::TEST_F): 2012-02-09 W. James MacLean [chromium] Add support for starting page/scale animations on CC impl thread from WebViewImpl https://bugs.webkit.org/show_bug.cgi?id=77872 Reviewed by James Robinson. Provides a pathway to invoke CCLayerTreeHostImpl::startPageScaleAnimation() from WebViewImpl. This is intended to support scale and scroll animations, such as WebInputEvent::GestureDoubleTap. * src/WebViewImpl.cpp: (WebKit): (WebKit::WebViewImpl::startPageScaleAnimation): * src/WebViewImpl.h: (WebViewImpl): * tests/CCLayerTreeHostTest.cpp: (WTF): (CCLayerTreeHostTestStartPageScaleAnimation): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::CCLayerTreeHostTestStartPageScaleAnimation): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::beginTest): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::requestStartPageScaleAnimation): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::applyScrollAndScale): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestStartPageScaleAnimation::afterTest): (WTF::TEST_F): 2012-02-09 John Bates [Chromium] Add chromium-style tracing support https://bugs.webkit.org/show_bug.cgi?id=76885 Reviewed by Darin Fisher. This code enables WebKit trace events to pass through more data to the chromium platform tracing API and generally to use the full tracing API provided by chromium. * public/platform/WebKitPlatformSupport.h: (WebKit::WebKitPlatformSupport::getTraceCategoryEnabledFlag): (WebKit::WebKitPlatformSupport::addTraceEvent): * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getTraceCategoryEnabledFlag): (WebCore::PlatformSupport::addTraceEvent): 2012-02-09 Jonathan Backer [chromium] Plumb setNeedsRedraw. https://bugs.webkit.org/show_bug.cgi?id=78248 Reviewed by James Robinson. * public/platform/WebLayerTreeView.h: (WebLayerTreeView): * src/WebLayerTreeView.cpp: (WebKit::WebLayerTreeView::setNeedsRedraw): (WebKit): 2012-02-09 Jonathan Backer [chromium] Add setNeedsRedraw to WebWidget https://bugs.webkit.org/show_bug.cgi?id=77555 Reviewed by James Robinson. * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::setNeedsRedraw): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setNeedsRedraw): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-02-08 Raymond Liu Fix a typo for r107125 https://bugs.webkit.org/show_bug.cgi?id=77804 Reviewed by James Robinson. * tests/WebCompositorInputHandlerImplTest.cpp: 2012-02-08 David Reveman [Chromium] Avoid unnecessary full tile updates without breaking atomicity of commits. https://bugs.webkit.org/show_bug.cgi?id=76740 Reviewed by James Robinson. Add CCLayerTreeHostTestAtomicCommitWithPartialUpdate and TiledLayerChromiumTest.partialUpdates tests that verifies atomicity of commits with partial updates. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestAtomicCommit::CCLayerTreeHostTestAtomicCommit): (WTF::CCLayerTreeHostTestAtomicCommit::beginTest): (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommit::layout): (CCLayerTreeHostTestAtomicCommit): (CCLayerTreeHostTestAtomicCommitWithPartialUpdate): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::CCLayerTreeHostTestAtomicCommitWithPartialUpdate): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::beginTest): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::layout): (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::afterTest): (WTF): (WTF::TEST_F): * tests/TiledLayerChromiumTest.cpp: (WTF::FakeLayerTextureUpdater::Texture::Texture): (WTF::FakeLayerTextureUpdater::Texture::updateRect): (Texture): (WTF::FakeLayerTextureUpdater::FakeLayerTextureUpdater): (FakeLayerTextureUpdater): (WTF::FakeLayerTextureUpdater::updateCount): (WTF::FakeLayerTextureUpdater::clearUpdateCount): (WTF::FakeLayerTextureUpdater::updateRect): (WTF::FakeLayerTextureUpdater::createTexture): (FakeTiledLayerChromium): (WTF::TEST): (WTF): 2012-02-07 MORITA Hajime Replacement text should be available from the marker. https://bugs.webkit.org/show_bug.cgi?id=77934 didFinishCheckingText() accidentally dropped the description text given from the backend. Fixed to copy it on the API-to-Core convertion. The test won't work without this fix. Reviewed by Kent Tamura. * src/WebTextCheckingCompletionImpl.cpp: (WebKit::toCoreResults): 2012-02-08 Dmitry Lomov [V8][Chromium] Race between worker accessing WebDatabase and frame closing down. https://bugs.webkit.org/show_bug.cgi?id=78150 Handle case when the frame is shut down under us gracefully. Reviewed by David Levin. * src/DatabaseObserver.cpp: (WebCore::DatabaseObserver::canEstablishDatabase): Handle WebWorkerBase::view returning 0. * src/IDBFactoryBackendProxy.cpp: (WebKit::IDBFactoryBackendProxy::openFromWorker): Handle WebWorkerBase::view returning 0. * src/WebWorkerClientImpl.cpp: (WebKit::WebWorkerClientImpl::allowFileSystem): (WebKit::WebWorkerClientImpl::allowDatabase): (WebKit::WebWorkerClientImpl::view): 2012-02-08 Adam Klein DOM mutations should not be delivered on worker threads https://bugs.webkit.org/show_bug.cgi?id=77898 Reviewed by Dmitry Titov. * src/WebDevToolsFrontendImpl.cpp: (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend): 2012-02-08 Scott Graham Roll Chromium DEPS https://bugs.webkit.org/show_bug.cgi?id=78152 Reviewed by Adam Barth. * DEPS: 2012-02-08 Dana Jansens [Chromium] Fix opaque tracking for box shadows and non-composited child elements https://bugs.webkit.org/show_bug.cgi?id=78073 Reviewed by Stephen White. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): (WebCore): 2012-02-08 Shawn Singh [chromium] Remove incorrect early exit in CCDamageTracker https://bugs.webkit.org/show_bug.cgi?id=76924 Reviewed by James Robinson. * tests/CCDamageTrackerTest.cpp: (WebKitTests::emulateDrawingOneFrame): (WebKitTests::TEST_F): (WebKitTests): 2012-02-08 Sadrul Habib Chowdhury Add support for pinch gesture processing in the MT compositor. https://bugs.webkit.org/show_bug.cgi?id=77804 Reviewed by James Robinson. * public/WebInputEvent.h: * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::WebCompositorInputHandlerImpl): (WebKit::WebCompositorInputHandlerImpl::handleInputEvent): * src/WebCompositorInputHandlerImpl.h: (WebCompositorInputHandlerImpl): * src/WebInputEventConversion.cpp: (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder): * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::handleInputEvent): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::handleInputEvent): * tests/WebCompositorInputHandlerImplTest.cpp: 2012-02-08 Nico Weber [chromium] Make dependency on Accelerate.framework explicit. https://bugs.webkit.org/show_bug.cgi?id=78131 It's used by platform/audio/mac/FFTFrameMac.cpp. The explicit dependency is needed to build a libwebkit.dylib. Reviewed by Tony Chang. * WebKit.gyp: 2012-02-08 Bernhard Bauer [Chromium] Don't add selection from password fields to context menu. https://bugs.webkit.org/show_bug.cgi?id=77733 Reviewed by Adam Barth. * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 2012-02-08 Nico Weber [chromium] Let -Wglobal-constructors hack in shared build metastasize to mac https://bugs.webkit.org/show_bug.cgi?id=78130 Reviewed by Tony Chang. * WebKit.gyp: 2012-02-08 Alexei Svitkine Chromium: Fix Mac rubber band overhang drawing on composited pages and re-enable tests. https://bugs.webkit.org/show_bug.cgi?id=78007 This got broken by: http://trac.webkit.org/changeset/105470 And the tests were accidentally(?) disabled in: http://trac.webkit.org/changeset/95191 There is still three tests that fail from the set, but the cause for these is different, which I'm still investigating. Reviewed by James Robinson. * src/NonCompositedContentHost.cpp: (WebKit::NonCompositedContentHost::NonCompositedContentHost): 2012-02-07 James Robinson [chromium] Move geometry headers in Platform API to Platform directory https://bugs.webkit.org/show_bug.cgi?id=78067 Reviewed by Adam Barth. Add forwarding headers for several API types moved into Platform. * public/platform/WebFloatPoint.h: * public/platform/WebFloatQuad.h: * public/platform/WebFloatRect.h: * public/platform/WebPoint.h: * public/platform/WebRect.h: * public/platform/WebSize.h: 2012-02-07 MORITA Hajime [Chromium] WebTextCheckingResult should have new default constructor https://bugs.webkit.org/show_bug.cgi?id=78066 Reviewed by Ryosuke Niwa. Added a new default constructor. ex-default constructor will be removed in an upcoming change. * public/WebTextCheckingResult.h: (WebKit::WebTextCheckingResult::WebTextCheckingResult): (WebTextCheckingResult): 2012-02-07 Gregg Tavares Plumb through webGLErrorsToConsoleEnable in WebSettings https://bugs.webkit.org/show_bug.cgi?id=78061 Reviewed by Kenneth Russell. * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setWebGLErrorsToConsoleEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-02-07 Robert Kroeger [chromium] Remove no longer necessary Chromium gesture recognizer code. https://bugs.webkit.org/show_bug.cgi?id=77492 Reviewed by Adam Barth. * WebKit.gypi: * features.gypi: * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::createFrameView): * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::WebPopupMenuImpl): (WebKit::WebPopupMenuImpl::handleTouchEvent): * src/WebPopupMenuImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::touchEvent): * src/WebViewImpl.h: (WebCore): (WebViewImpl): * tests/InnerGestureRecognizerTest.cpp: Removed. 2012-02-07 David Reveman [Chromium] REGRESSION(r101854): Causing large amounts of unnecessary repainting. https://bugs.webkit.org/show_bug.cgi?id=78020 Reviewed by James Robinson. Update TextureManagerTest.requestTextureExceedingPreferredLimit test. * tests/TextureManagerTest.cpp: (WTF::TextureManagerTest::requestTexture): (WTF::TEST_F): 2012-02-07 Dana Jansens [chromium] Unit test for bug #77996 https://bugs.webkit.org/show_bug.cgi?id=78019 Reviewed by James Robinson. * tests/CCLayerTreeHostTest.cpp: (CCLayerTreeHostTestManySurfaces): (WTF::CCLayerTreeHostTestManySurfaces::CCLayerTreeHostTestManySurfaces): (WTF::CCLayerTreeHostTestManySurfaces::beginTest): (WTF::CCLayerTreeHostTestManySurfaces::afterTest): (WTF): 2012-02-07 Sadrul Habib Chowdhury Process Scroll-gesture events from the compositor. https://bugs.webkit.org/show_bug.cgi?id=77477 Reviewed by James Robinson. * src/WebCompositorInputHandlerImpl.cpp: (WebKit::WebCompositorInputHandlerImpl::WebCompositorInputHandlerImpl): (WebKit::WebCompositorInputHandlerImpl::handleInputEvent): * src/WebCompositorInputHandlerImpl.h: (WebCompositorInputHandlerImpl): 2012-02-07 Anders Carlsson ScrollableAreaSet should be moved from Page to FrameView https://bugs.webkit.org/show_bug.cgi?id=62762 Reviewed by Beth Dakin. Update for changes to WebCore now that the scrollable area set is kept per frame view. * src/ScrollbarGroup.cpp: (WebKit::ScrollbarGroup::ScrollbarGroup): (WebKit::ScrollbarGroup::~ScrollbarGroup): * src/ScrollbarGroup.h: (WebCore): (ScrollbarGroup): * src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::scrollbarGroup): 2012-02-07 Hans Wennborg Chromium: remove WebSpeechInputResult::set https://bugs.webkit.org/show_bug.cgi?id=77977 Reviewed by Darin Fisher. It was renamed to assign() in r106475. * public/WebSpeechInputResult.h: 2012-02-07 Sheriff Bot Unreviewed, rolling out r106935. http://trac.webkit.org/changeset/106935 https://bugs.webkit.org/show_bug.cgi?id=77994 "Crashes runMultiThread webkit_unit_test" (Requested by tonyg- cr on #webkit). * public/WebWidget.h: (WebWidget): * src/WebViewImpl.cpp: * src/WebViewImpl.h: (WebViewImpl): 2012-02-07 Jonathan Backer [chromium] Add setNeedsRedraw to WebWidget https://bugs.webkit.org/show_bug.cgi?id=77555 Reviewed by James Robinson. * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::setNeedsRedraw): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setNeedsRedraw): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-02-07 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-02-06 James Robinson [chromium] canvas demo is slow due to unnecessary resource cleanups https://bugs.webkit.org/show_bug.cgi?id=77135 Reviewed by Kenneth Russell. * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/TextureManagerTest.cpp: * tests/TiledLayerChromiumTest.cpp: 2012-02-06 Julien Chaffraix Unreviewed gardening. * DEPS: Rolling the DEPS to get the apple_webkit update and fix the Chromium build. 2012-02-06 Emil A Eklund Convert PopupMenuClient::clientPadding over to new layout abstraction https://bugs.webkit.org/show_bug.cgi?id=77798 Reviewed by Eric Seidel. Change PopupMenuClient and all classes inheriting from it to use the new layout types for padding. * src/AutofillPopupMenuClient.cpp: (WebKit::AutofillPopupMenuClient::clientPaddingLeft): (WebKit::AutofillPopupMenuClient::clientPaddingRight): * src/AutofillPopupMenuClient.h: (AutofillPopupMenuClient): * tests/PopupMenuTest.cpp: (WebKit::TestPopupMenuClient::clientPaddingLeft): (WebKit::TestPopupMenuClient::clientPaddingRight): 2012-02-06 James Robinson [chromium] Drop tiles completely outside of layer bounds when resizing to a smaller size https://bugs.webkit.org/show_bug.cgi?id=77910 Reviewed by Kenneth Russell. Adds test for resizing a layer to cover fewer tiles. Test hits ASSERT()s without any code changes. * tests/TiledLayerChromiumTest.cpp: (::TEST): 2012-02-06 Ryosuke Niwa Revert r106859. It was completely bogus. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::doPixelReadbackToCanvas): 2012-02-06 Ryosuke Niwa Chromium build fix after r106836. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::doPixelReadbackToCanvas): 2012-02-06 Eric Uhrhane [filesystem/Chromium] crackFileSystemURL needs to use innerURL https://bugs.webkit.org/show_bug.cgi?id=77881 Reviewed by Adam Barth. * src/AsyncFileSystemChromium.cpp: (WebCore::AsyncFileSystem::crackFileSystemURL): Add the new code path, taken only if innerURL is present. 2012-02-03 James Robinson [chromium] Support detaching TextureManager from ManagedTexture https://bugs.webkit.org/show_bug.cgi?id=77655 Adds unit test for destroying a TextureManager while ManagedTextures are still alive referring to it. Reviewed by Kenneth Russell. * tests/TextureManagerTest.cpp: 2012-02-06 Matthew Delaney toDataURL() uses stale data after putImageData() https://bugs.webkit.org/show_bug.cgi?id=65767 Reviewed by Chris Marrin. * src/WebViewImpl.cpp: Updated method name. (WebKit::WebViewImpl::doPixelReadbackToCanvas): 2012-02-06 Caio Marcelo de Oliveira Filho Provide more attribute methods in Element https://bugs.webkit.org/show_bug.cgi?id=77800 Reviewed by Ryosuke Niwa. * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::openTagToString): access attributes via Element interface. 2012-02-04 Shawn Singh [chromium] Add support to force full damage in CCDamageTracker https://bugs.webkit.org/show_bug.cgi?id=76805 Reviewed by James Robinson. * tests/CCDamageTrackerTest.cpp: (WebKitTests::TEST_F): (WebKitTests): 2012-02-03 James Robinson [chromium] Defer makeContextCurrent in compositor until first frame https://bugs.webkit.org/show_bug.cgi?id=77269 Reviewed by Kenneth Russell. * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTestSetViewportSize::beginTest): * tests/TiledLayerChromiumTest.cpp: (WTF::TEST): 2012-02-03 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=77691 Fix PlatformScreen layering violation and PlatformScreenMac's incorrect use of device scale Reviewed by Andy Estes. These two functions now take a Widget again rather than a FrameView. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::screenRect): (WebCore::PlatformSupport::screenAvailableRect): 2012-02-03 John Knottenbelt [skia] Fix unit test PlatformContextSkiaTest.trackOpaqueOvalTest https://bugs.webkit.org/show_bug.cgi?id=77738 We need to clear the bitmap before the test runs, otherwise the contents of the bitmap will be uninitialised. This causes an unpredicatable result as the canvas draw operations blend the destination bitmap with the source colour. Similarly, valgrind discovered that PlatformContextSkiaTest.trackOpaqueTest and PlatformContextSkiaTest.trackOpaqueLineTest suffers from the same problem. Also, re-enable WebFrameTest.FindInPage which was falsely blamed for making this test fail. Reviewed by Stephen White. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): * tests/WebFrameTest.cpp: (WebKit::TEST_F): 2012-02-03 Dana Jansens [Chromium] Use the current clip when marking paints as opaque https://bugs.webkit.org/show_bug.cgi?id=77582 Reviewed by Stephen White. * tests/PlatformContextSkiaTest.cpp: (WebCore::TEST): (WebCore): 2012-02-03 Yury Semikhatsky Unreviewed. Update Chromium deps. * DEPS: 2012-02-02 Tommy Widenflycht [chromium] MediaStream API: Adding the embedding code for MediaStreamCenter https://bugs.webkit.org/show_bug.cgi?id=73130 Reviewed by Darin Fisher. * WebKit.gyp: * bridge/MediaStreamCenter.cpp: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebCore): (WebCore::MediaStreamCenter::MediaStreamCenter): (WebCore::MediaStreamCenter::~MediaStreamCenter): (WebCore::MediaStreamCenter::queryMediaStreamSources): (WebCore::MediaStreamCenter::didSetMediaStreamTrackEnabled): (WebCore::MediaStreamCenter::didStopLocalMediaStream): (WebCore::MediaStreamCenter::didConstructMediaStream): * bridge/MediaStreamCenterInternal.cpp: Added. (WebCore): (WebCore::MediaStreamCenterInternal::MediaStreamCenterInternal): (WebCore::MediaStreamCenterInternal::~MediaStreamCenterInternal): (WebCore::MediaStreamCenterInternal::queryMediaStreamSources): (WebCore::MediaStreamCenterInternal::didSetMediaStreamTrackEnabled): (WebCore::MediaStreamCenterInternal::didStopLocalMediaStream): (WebCore::MediaStreamCenterInternal::didConstructMediaStream): (WebCore::MediaStreamCenterInternal::stopLocalMediaStream): * bridge/MediaStreamCenterInternal.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebKit): (WebCore): (MediaStreamCenterInternal): * public/platform/WebKitPlatformSupport.h: (WebKit): (WebKit::WebKitPlatformSupport::createMediaStreamCenter): * public/platform/WebMediaStreamCenter.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebKit): (WebMediaStreamCenter): (WebKit::WebMediaStreamCenter::~WebMediaStreamCenter): * public/platform/WebMediaStreamCenterClient.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebKit): (WebMediaStreamCenterClient): (WebKit::WebMediaStreamCenterClient::~WebMediaStreamCenterClient): * public/platform/WebMediaStreamComponent.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebCore): (WebKit): (WebMediaStreamComponent): (WebKit::WebMediaStreamComponent::WebMediaStreamComponent): (WebKit::WebMediaStreamComponent::~WebMediaStreamComponent): (WebKit::WebMediaStreamComponent::isNull): * public/platform/WebMediaStreamDescriptor.h: (WebKit): (WebMediaStreamDescriptor): * public/platform/WebMediaStreamSourcesRequest.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebCore): (WebKit): (WebMediaStreamSourcesRequest): (WebKit::WebMediaStreamSourcesRequest::WebMediaStreamSourcesRequest): (WebKit::WebMediaStreamSourcesRequest::~WebMediaStreamSourcesRequest): (WebKit::WebMediaStreamSourcesRequest::isNull): * src/UserMediaClientImpl.h: (UserMediaClientImpl): * src/WebMediaStreamComponent.cpp: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebKit): (WebKit::WebMediaStreamComponent::WebMediaStreamComponent): (WebKit::WebMediaStreamComponent::operator=): (WebKit::WebMediaStreamComponent::reset): (WebKit::WebMediaStreamComponent::operator PassRefPtr): (WebKit::WebMediaStreamComponent::operator MediaStreamComponent*): (WebKit::WebMediaStreamComponent::isEnabled): (WebKit::WebMediaStreamComponent::source): * src/WebMediaStreamDescriptor.cpp: (WebKit::WebMediaStreamDescriptor::WebMediaStreamDescriptor): (WebKit): (WebKit::WebMediaStreamDescriptor::audioSources): (WebKit::WebMediaStreamDescriptor::videoSources): * src/WebMediaStreamSourcesRequest.cpp: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h. (WebKit): (WebKit::WebMediaStreamSourcesRequest::WebMediaStreamSourcesRequest): (WebKit::WebMediaStreamSourcesRequest::reset): (WebKit::WebMediaStreamSourcesRequest::audio): (WebKit::WebMediaStreamSourcesRequest::video): (WebKit::WebMediaStreamSourcesRequest::didCompleteQuery): 2012-02-02 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-02-02 Allan Sandfeld Jensen Update enum name for HitTestRequest::RequestType https://bugs.webkit.org/show_bug.cgi?id=77620 Reviewed by Kenneth Rohde Christiansen. * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::visiblePositionForWindowPoint): 2012-02-02 Kinuko Yasuda Cleanup: Move chrome-specific filesystem type handling code (for FileSystem API) under chromium directory (re-landing r105395) https://bugs.webkit.org/show_bug.cgi?id=76551 * src/AssertMatchingEnums.cpp: Removed the matching assertion for AsyncFileSystem::External (as now we directly use WebFileSystem::TypeExternal). * src/AsyncFileSystemChromium.cpp: (WebCore::AsyncFileSystem::crackFileSystemURL): Added. (WebCore::AsyncFileSystem::isValidType): Added. (WebCore::AsyncFileSystemChromium::toURL): Added. * src/AsyncFileSystemChromium.h: (AsyncFileSystemChromium): * src/WorkerAsyncFileSystemChromium.cpp: Made this subclass of AsyncFileSystemChromium (rather than that of AsyncFileSystem) (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium): * src/WorkerAsyncFileSystemChromium.h: (WorkerAsyncFileSystemChromium): 2012-02-01 Caio Marcelo de Oliveira Filho Avoid creating NamedNodeMap unnecessarily https://bugs.webkit.org/show_bug.cgi?id=77574 Reviewed by Ryosuke Niwa. * src/WebPageSerializerImpl.cpp: (WebKit::WebPageSerializerImpl::openTagToString): use updatedAttributes(). 2012-02-01 Justin Novosad [Chromium] Enable deferred canvas rendering in the skia port https://bugs.webkit.org/show_bug.cgi?id=76732 Reviewed by Stephen White. Adding a new setting for enabling deferred 2d canvas rendering * public/WebSettings.h: * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setDeferred2dCanvasEnabled): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-02-01 Sheriff Bot Unreviewed, rolling out r106382. http://trac.webkit.org/changeset/106382 https://bugs.webkit.org/show_bug.cgi?id=77571 Causing chromium crashes in PNGImageDecoder (Requested by japhet on #webkit). * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): (WebKit::WebKitPlatformSupport::isTraceEventEnabled): (WebKit::WebKitPlatformSupport::traceEventBegin): (WebKit::WebKitPlatformSupport::traceEventEnd): * src/PlatformSupport.cpp: (WebCore::PlatformSupport::isTraceEventEnabled): (WebCore): (WebCore::PlatformSupport::traceEventBegin): (WebCore::PlatformSupport::traceEventEnd): 2012-02-01 Dirk Pranke TestWebKitAPI isn't being built on chromium bots any more https://bugs.webkit.org/show_bug.cgi?id=77563 Reviewed by Dimitri Glazkov. I accidentally dropped it in the refactoring in r105449. * All.gyp: 2012-02-01 Hans Wennborg Rename WebSpeechInputResult::set() to assign() https://bugs.webkit.org/show_bug.cgi?id=77540 Reviewed by Darin Fisher. It was suggested in a previous code review (https://bugs.webkit.org/show_bug.cgi?id=77083#c5) that this function should be called assign(). * public/WebSpeechInputResult.h: (WebSpeechInputResult): (WebKit::WebSpeechInputResult::set): * src/WebSpeechInputResult.cpp: (WebKit::WebSpeechInputResult::assign): 2012-02-01 Kent Tamura [Chromium] Disable WebFrameTest.FindInPage https://bugs.webkit.org/show_bug.cgi?id=77186 Disable it because PlatformContextSkiaTest.trackOpaqueOvalTest has been failing since FindInPage test was committed. * tests/WebFrameTest.cpp: (WebKit::TEST_F): 2012-01-31 Ami Fischman [chromium] enable -Wexit-time-destructors for webkit unit tests https://bugs.webkit.org/show_bug.cgi?id=77300 Fix the only extant violation (verified by building webkit_unit_tests in static build). Reviewed by Tony Chang. * WebKitUnitTests.gyp: * tests/FrameTestHelpers.cpp: (WebKit::FrameTestHelpers::defaultWebFrameClient): (WebKit::FrameTestHelpers::defaultWebViewClient): 2012-01-31 Nico Weber [chromium] Expose windowResizerRectChanged() on WebWidget. https://bugs.webkit.org/show_bug.cgi?id=77453 Needed for http://crbug.com/111266 Reviewed by Darin Fisher. * public/WebWidget.h: (WebWidget): (WebKit::WebWidget::didChangeWindowResizerRect): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::didChangeWindowResizerRect): (WebKit): * src/WebViewImpl.h: (WebViewImpl): 2012-01-31 Nat Duca [chromium] Import PaintAggregator https://bugs.webkit.org/show_bug.cgi?id=53715 Reviewed by Darin Fisher. * WebKit.gyp: * WebKit.gypi: * src/painting/PaintAggregator.cpp: Added. (WebKit::calculateArea): (WebKit::subtractIntersection): (WebKit::sharesEdge): (WebKit::PaintAggregator::PendingUpdate::PendingUpdate): (WebKit::PaintAggregator::PendingUpdate::~PendingUpdate): (WebKit::PaintAggregator::PendingUpdate::calculateScrollDamage): (WebKit::PaintAggregator::PendingUpdate::calculatePaintBounds): (WebKit::PaintAggregator::hasPendingUpdate): (WebKit::PaintAggregator::clearPendingUpdate): (WebKit::PaintAggregator::popPendingUpdate): (WebKit::PaintAggregator::invalidateRect): (WebKit::PaintAggregator::scrollRect): (WebKit::PaintAggregator::scrollPaintRect): (WebKit::PaintAggregator::shouldInvalidateScrollRect): (WebKit::PaintAggregator::invalidateScrollRect): (WebKit::PaintAggregator::combinePaintRects): * src/painting/PaintAggregator.h: Added. * tests/PaintAggregatorTest.cpp: Added. (WebKit::TEST): 2012-01-31 Fady Samuel [Chromium] ChromeClientImpl::dispatchViewportPropertiesDidChange is repeatedly called in Google News https://bugs.webkit.org/show_bug.cgi?id=77429 Reviewed by Darin Fisher. m_webView->isPageScaleFactorSet() is tested in ChromeClientImpl::layoutUpdated, and it is never true, because WebViewImpl::setPageScaleFactorPreservingScrollOffset is called repeatedly and exits early and thus never calls WebViewImpl::setPageScaleFactor which sets the flag. The simplest solution is to simply get rid of the early return in WebViewImpl::setPageScaleFactorPreservingScrollOffset. * src/WebViewImpl.cpp: (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset): 2012-01-31 Fady Samuel [Chromium] Expose setLayoutFallbackWidth as a WebSetting https://bugs.webkit.org/show_bug.cgi?id=77431 Reviewed by Darin Fisher. The layout fallback width is the default fixed layout width set for desktop web pages that lack a viewport tag. This width can vary from platform to platform and can depend on other factors, and so it should be a setting exposed to Chromium. * public/WebSettings.h: (): * src/WebSettingsImpl.cpp: (WebKit::WebSettingsImpl::setLayoutFallbackWidth): (WebKit): * src/WebSettingsImpl.h: (WebSettingsImpl): 2012-01-31 Dana Jansens [chromium] Compute occlusion during paint loop https://bugs.webkit.org/show_bug.cgi?id=76858 Reviewed by James Robinson. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): (WebCore): * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty): (WTF): (TestLayerChromium): (WTF::TestLayerChromium::create): (WTF::TestLayerChromium::paintContentsIfDirty): (WTF::TestLayerChromium::drawsContent): (WTF::TestLayerChromium::occludedScreenSpace): (WTF::TestLayerChromium::clearOccludedScreenSpace): (WTF::TestLayerChromium::TestLayerChromium): (WTF::setLayerPropertiesForTesting): (CCLayerTreeHostTestLayerOcclusion): (WTF::CCLayerTreeHostTestLayerOcclusion::CCLayerTreeHostTestLayerOcclusion): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusion::afterTest): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/TiledLayerChromiumTest.cpp: (WTF::FakeLayerTextureUpdater::setOpaquePaintRect): (FakeLayerTextureUpdater): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::FakeLayerTextureUpdater::prepareToUpdate): (WTF::TEST): (WTF): 2012-01-31 John Bates [Chromium] Add chromium-style tracing support https://bugs.webkit.org/show_bug.cgi?id=76885 Reviewed by Darin Fisher. This code enables WebKit trace events to pass through more data to the chromium platform tracing API and generally to use the full tracing API provided by chromium. * public/platform/WebKitPlatformSupport.h: (WebKit::WebKitPlatformSupport::getTraceCategoryEnabledFlag): (WebKit::WebKitPlatformSupport::addTraceEvent): * src/PlatformSupport.cpp: (WebCore::PlatformSupport::getTraceCategoryEnabledFlag): (WebCore::PlatformSupport::addTraceEvent): 2012-01-31 Antoine Labour Add back temporarily WebKitPlatformSupport::createGraphicsContext3D() to fix build https://bugs.webkit.org/show_bug.cgi?id=77467 Rubber-stamped by Nate Chapin . * public/platform/WebKitPlatformSupport.h: (WebKitPlatformSupport): (WebKit::WebKitPlatformSupport::createGraphicsContext3D): 2012-01-31 Antoine Labour Merge WebGraphicsContext3D creation and initialization, and move it to WebViewClient. https://bugs.webkit.org/show_bug.cgi?id=76593 Reviewed by Darin Fisher. * public/WebViewClient.h: (WebKit::WebViewClient::createGraphicsContext3D): * public/platform/WebGraphicsContext3D.h: (WebKit::WebGraphicsContext3D::initialize): * public/platform/WebKitPlatformSupport.h: * src/GraphicsContext3DChromium.cpp: 2012-01-26 Hans Wennborg Speech Input: move MockSpeechInputClient into Chromium DumpRenderTree implementation https://bugs.webkit.org/show_bug.cgi?id=77083 Reviewed by Darin Fisher. Remove the WebSpeechInputControllerMock interface and proxy implementation. The mock is moving to the DumpRenderTree implementation instead, which removes the need to expose this interface in the WebKit API. Also add a proper copy constructor for WebSpeechInputResult. The default one doesn't do a proper copy. * WebKit.gyp: * public/WebSpeechInputControllerMock.h: Removed. * public/WebSpeechInputResult.h: (WebKit::WebSpeechInputResult::WebSpeechInputResult): (WebSpeechInputResult): * src/WebSpeechInputControllerMockImpl.cpp: Removed. * src/WebSpeechInputControllerMockImpl.h: Removed. * src/WebSpeechInputResult.cpp: (WebKit::WebSpeechInputResult::set): (WebKit): 2012-01-31 Sheriff Bot Unreviewed. Rolled DEPS. * DEPS: 2012-01-30 Sheriff Bot Unreviewed, rolling out r106324. http://trac.webkit.org/changeset/106324 https://bugs.webkit.org/show_bug.cgi?id=77406 Broke CCLayerTreeHostTestLayerOcclusion.runMultiThread and runSingleThread (Requested by yuzo1 on #webkit). * tests/CCLayerTreeHostCommonTest.cpp: (WebCore): * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/TiledLayerChromiumTest.cpp: (FakeLayerTextureUpdater): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::FakeLayerTextureUpdater::prepareToUpdate): 2012-01-30 Dana Jansens [chromium] Compute occlusion during paint loop https://bugs.webkit.org/show_bug.cgi?id=76858 Reviewed by James Robinson. * tests/CCLayerTreeHostCommonTest.cpp: (WebCore::TEST): (WebCore): * tests/CCLayerTreeHostTest.cpp: (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty): (WTF): (TestLayerChromium): (WTF::TestLayerChromium::create): (WTF::TestLayerChromium::paintContentsIfDirty): (WTF::TestLayerChromium::drawsContent): (WTF::TestLayerChromium::occludedScreenSpace): (WTF::TestLayerChromium::clearOccludedScreenSpace): (WTF::TestLayerChromium::TestLayerChromium): (WTF::setLayerPropertiesForTesting): (CCLayerTreeHostTestLayerOcclusion): (WTF::CCLayerTreeHostTestLayerOcclusion::CCLayerTreeHostTestLayerOcclusion): (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest): (WTF::CCLayerTreeHostTestLayerOcclusion::afterTest): * tests/Canvas2DLayerChromiumTest.cpp: (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest): * tests/TiledLayerChromiumTest.cpp: (WTF::FakeLayerTextureUpdater::setOpaquePaintRect): (FakeLayerTextureUpdater): (WTF::FakeTiledLayerChromium::paintContentsIfDirty): (WTF::FakeLayerTextureUpdater::prepareToUpdate): (WTF::TEST): (WTF): 2012-01-30 Gregg Tavares Add Plumming to get graphics error messages to JS Console https://bugs.webkit.org/show_bug.cgi?id=77238 Reviewed by Kenneth Russell. * public/platform/WebGraphicsContext3D.h: (WebGraphicsErrorMessageCallback): (WebKit::WebGraphicsContext3D::WebGraphicsErrorMessageCallback::~WebGraphicsErrorMessageCallback): (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::setErrorMessageCallback): * src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3D::~GraphicsContext3D): (WebCore): (GraphicsErrorMessageCallbackAdapter): (WebCore::GraphicsErrorMessageCallbackAdapter::~GraphicsErrorMessageCallbackAdapter): (WebCore::GraphicsErrorMessageCallbackAdapter::GraphicsErrorMessageCallbackAdapter): (WebCore::GraphicsErrorMessageCallbackAdapter::onErrorMessage): (WebCore::GraphicsErrorMessageCallbackAdapter::create): (WebCore::GraphicsContext3DPrivate::setErrorMessageCallback): * src/GraphicsContext3DPrivate.h: (WebCore): (): 2012-01-30 Sheriff Bot Unreviewed, rolling out r106259. http://trac.webkit.org/changeset/106259 https://bugs.webkit.org/show_bug.cgi?id=77395 Breaks shared builders as they also build webkittests with -Wexit-time-destructors. (Requested by leviw on #webkit). * WebKitUnitTests.gyp: 2012-01-30 Dana Jansens [chromium] Use region reported painted opaque for draw culling https://bugs.webkit.org/show_bug.cgi?id=76015 Reviewed by James Robinson. * tests/CCLayerTreeHostImplTest.cpp: (WebKit::BlendStateCheckLayer::appendQuads): (WebKit::BlendStateCheckLayer::setOpaqueColor): (BlendStateCheckLayer): (WebKit::BlendStateCheckLayer::BlendStateCheckLayer): (WebKit::TEST_F): * tests/CCQuadCullerTest.cpp: (WebCore::MakeTileQuad): (WebCore::setQuads): (WebCore::TEST): (WebCore): * tests/CCTiledLayerImplTest.cpp: (CCLayerTestCommon::createLayer): (CCLayerTestCommon::TEST): (CCLayerTestCommon::getQuads): (CCLayerTestCommon::coverageVisibleRectOnTileBoundaries): (CCLayerTestCommon::coverageVisibleRectIntersectsTiles): (CCLayerTestCommon::coverageVisibleRectIntersectsBounds): (CCLayerTestCommon): 2012-01-30 Adrienne Walker [chromium] Always pre-reserve scrollbar and scroll corner textures https://bugs.webkit.org/show_bug.cgi?id=77251 Reviewed by James Robinson. * src/NonCompositedContentHost.cpp: (WebKit::reserveScrollbarLayers): (WebKit): (WebKit::NonCompositedContentHost::setViewport): 2012-01-30 Ryosuke Niwa Roll Chromium DEPS from 119623 to 119700. * DEPS: 2012-01-30 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=77263 PlatformScreenMac should not rely on NSWindow for important bits of data Reviewed by Geoff Garen. These two functions now take a FrameView instead of a Widget. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::screenRect): (WebCore::PlatformSupport::screenAvailableRect): 2012-01-30 Ami Fischman [chromium] enable -Wexit-time-destructors for webkit unit tests https://bugs.webkit.org/show_bug.cgi?id=77300 Reviewed by Tony Chang. * WebKitUnitTests.gyp: Enable clang check for exit time destructors. 2012-01-30 Tommy Widenflycht [chromium] MediaStream API: Fix a few memory leaks https://bugs.webkit.org/show_bug.cgi?id=77334 Reviewed by Darin Fisher. It seems that either the behaviour of WebPrivatePtr has changed or I misunderstood something, but I fixed a memory leak in WebMediaStreamDescriptor and safeguarded WebMediaStreamSource. * public/platform/WebMediaStreamDescriptor.h: (WebKit::WebMediaStreamDescriptor::WebMediaStreamDescriptor): * public/platform/WebMediaStreamSource.h: (WebKit::WebMediaStreamSource::WebMediaStreamSource): (WebKit::WebMediaStreamSource::operator=): (WebMediaStreamSource): * src/WebMediaStreamDescriptor.cpp: (WebKit::WebMediaStreamDescriptor::assign): * src/WebMediaStreamSource.cpp: (WebKit::WebMediaStreamSource::assign): (WebKit): 2012-01-30 Jochen Eisinger [chromium] remove exit time destructors from TextureManagerTest https://bugs.webkit.org/show_bug.cgi?id=77333 Reviewed by Tony Gentilcore. Non-trivial, global objects require an at-exit time destructor which add unnecessary complexity and delays to shutdown. * tests/FakeCCLayerTreeHostClient.h: added newline at EOF * tests/TextureManagerTest.cpp: (WTF::FakeTextureAllocator::~FakeTextureAllocator): (TextureManagerTest): (WTF::TextureManagerTest::TextureManagerTest): (WTF::TextureManagerTest::~TextureManagerTest): (WTF::TextureManagerTest::texturesMemorySize): (WTF::TextureManagerTest::createTextureManager): (WTF::TextureManagerTest::requestTexture): (WTF::TEST_F): 2012-01-30 Hans Wennborg Unreviewed, rolling out r106219. http://trac.webkit.org/changeset/106219 https://bugs.webkit.org/show_bug.cgi?id=77083 This broke Chromium's test_shell. * WebKit.gyp: * public/WebSpeechInputControllerMock.h: Added. (WebKit): (WebSpeechInputControllerMock): (WebKit::WebSpeechInputControllerMock::~WebSpeechInputControllerMock): * public/WebSpeechInputResult.h: (WebSpeechInputResult): * src/WebSpeechInputControllerMockImpl.cpp: Added. (WebKit): (WebKit::WebSpeechInputControllerMock::create): (WebKit::WebSpeechInputControllerMockImpl::WebSpeechInputControllerMockImpl): (WebKit::WebSpeechInputControllerMockImpl::~WebSpeechInputControllerMockImpl): (WebKit::WebSpeechInputControllerMockImpl::addMockRecognitionResult): (WebKit::WebSpeechInputControllerMockImpl::clearResults): (WebKit::WebSpeechInputControllerMockImpl::didCompleteRecording): (WebKit::WebSpeechInputControllerMockImpl::didCompleteRecognition): (WebKit::WebSpeechInputControllerMockImpl::setRecognitionResult): (WebKit::WebSpeechInputControllerMockImpl::startRecognition): (WebKit::WebSpeechInputControllerMockImpl::cancelRecognition): (WebKit::WebSpeechInputControllerMockImpl::stopRecording): * src/WebSpeechInputControllerMockImpl.h: Added. (WebCore): (WebKit): (WebSpeechInputControllerMockImpl): * src/WebSpeechInputResult.cpp: 2012-01-26 Hans Wennborg Speech Input: move MockSpeechInputClient into Chromium DumpRenderTree implementation https://bugs.webkit.org/show_bug.cgi?id=77083 Reviewed by Darin Fisher. Remove the WebSpeechInputControllerMock interface and proxy implementation. The mock is moving to the DumpRenderTree implementation instead, which removes the need to expose this interface in the WebKit API. Also add a proper copy constructor for WebSpeechInputResult. The default one doesn't do a proper copy. * WebKit.gyp: * public/WebSpeechInputControllerMock.h: Removed. * public/WebSpeechInputResult.h: (WebKit::WebSpeechInputResult::WebSpeechInputResult): (WebSpeechInputResult): * src/WebSpeechInputControllerMockImpl.cpp: Removed. * src/WebSpeechInputControllerMockImpl.h: Removed. * src/WebSpeechInputResult.cpp: (WebKit::WebSpeechInputResult::set): (WebKit): 2012-01-29 Kent Tamura [Chromium] REGRESSION(r87067): WebFrame::setFindEndstateFocusAndSelection() doesn't set the selection for and