summaryrefslogtreecommitdiff
path: root/Source/WebKit/win/WebView.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-15 16:08:57 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-15 16:08:57 +0200
commit5466563f4b5b6b86523e3f89bb7f77e5b5270c78 (patch)
tree8caccf7cd03a15207cde3ba282c88bf132482a91 /Source/WebKit/win/WebView.cpp
parent33b26980cb24288b5a9f2590ccf32a949281bb79 (diff)
downloadqtwebkit-5466563f4b5b6b86523e3f89bb7f77e5b5270c78.tar.gz
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
Diffstat (limited to 'Source/WebKit/win/WebView.cpp')
-rw-r--r--Source/WebKit/win/WebView.cpp21
1 files changed, 10 insertions, 11 deletions
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<Vector<String> > toStringVector(unsigned patternsCount, BSTR* patterns)
+static Vector<String> toStringVector(unsigned patternsCount, BSTR* patterns)
{
- // Convert the patterns into a Vector.
- if (patternsCount == 0)
- return nullptr;
- OwnPtr<Vector<String> > patternsVector = adoptPtr(new Vector<String>);
+ Vector<String> 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).
// <http://webkit.org/b/52603>
- 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