From 8995b83bcbfbb68245f779b64e5517627c6cc6ea Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 17 Oct 2012 16:21:14 +0200 Subject: Imported WebKit commit cf4f8fc6f19b0629f51860cb2d4b25e139d07e00 (http://svn.webkit.org/repository/webkit/trunk@131592) New snapshot that includes the build fixes for Mac OS X 10.6 and earlier as well as the previously cherry-picked changes --- 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