summaryrefslogtreecommitdiff
path: root/Source/WebKit/win/WebView.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-17 16:21:14 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-17 16:21:14 +0200
commit8995b83bcbfbb68245f779b64e5517627c6cc6ea (patch)
tree17985605dab9263cc2444bd4d45f189e142cca7c /Source/WebKit/win/WebView.cpp
parentb9c9652036d5e9f1e29c574f40bc73a35c81ace6 (diff)
downloadqtwebkit-8995b83bcbfbb68245f779b64e5517627c6cc6ea.tar.gz
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
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