summaryrefslogtreecommitdiff
path: root/Source/WebKit/win/WebView.cpp
diff options
context:
space:
mode:
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