From 5466563f4b5b6b86523e3f89bb7f77e5b5270c78 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 15 Oct 2012 16:08:57 +0200 Subject: Imported WebKit commit 0dc6cd75e1d4836eaffbb520be96fac4847cc9d2 (http://svn.webkit.org/repository/webkit/trunk@131300) WebKit update which introduces the QtWebKitWidgets module that contains the WK1 widgets based API. (In fact it renames QtWebKit to QtWebKitWidgets while we're working on completing the entire split as part of https://bugs.webkit.org/show_bug.cgi?id=99314 --- Source/WebKit/win/WebView.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'Source/WebKit/win/WebView.cpp') diff --git a/Source/WebKit/win/WebView.cpp b/Source/WebKit/win/WebView.cpp index a90f67e75..d454c9882 100644 --- a/Source/WebKit/win/WebView.cpp +++ b/Source/WebKit/win/WebView.cpp @@ -6227,15 +6227,14 @@ void WebView::exitFullscreen() #endif } -static PassOwnPtr > toStringVector(unsigned patternsCount, BSTR* patterns) +static Vector toStringVector(unsigned patternsCount, BSTR* patterns) { - // Convert the patterns into a Vector. - if (patternsCount == 0) - return nullptr; - OwnPtr > patternsVector = adoptPtr(new Vector); + Vector patternsVector; + if (!patternsCount) + return patternsVector; for (unsigned i = 0; i < patternsCount; ++i) - patternsVector->append(toString(patterns[i])); - return patternsVector.release(); + patternsVector.append(toString(patterns[i])); + return patternsVector; } HRESULT WebView::addUserScriptToGroup(BSTR groupName, IWebScriptWorld* iWorld, BSTR source, BSTR url, @@ -6488,7 +6487,7 @@ void WebView::setAcceleratedCompositing(bool accelerated) // FIXME: We could perhaps get better performance by never allowing this layer to // become tiled (or choosing a higher-than-normal tiling threshold). // - m_backingLayer = GraphicsLayer::create(this); + m_backingLayer = GraphicsLayer::create(0, this); m_backingLayer->setDrawsContent(true); m_backingLayer->setContentsOpaque(true); RECT clientRect; @@ -6631,7 +6630,7 @@ void WebView::notifyAnimationStarted(const GraphicsLayer*, double) ASSERT_NOT_REACHED(); } -void WebView::notifySyncRequired(const GraphicsLayer*) +void WebView::notifyFlushRequired(const GraphicsLayer*) { flushPendingGraphicsLayerChangesSoon(); } @@ -6673,9 +6672,9 @@ void WebView::flushPendingGraphicsLayerChanges() // Updating layout might have taken us out of compositing mode. if (m_backingLayer) - m_backingLayer->syncCompositingStateForThisLayerOnly(); + m_backingLayer->flushCompositingStateForThisLayerOnly(); - view->syncCompositingStateIncludingSubframes(); + view->flushCompositingStateIncludingSubframes(); } #endif -- cgit v1.2.1