Commit 4a021a11 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[WK2][CoordinatedGraphics] fix build after r156560

https://bugs.webkit.org/show_bug.cgi?id=122028

Fixing build.

Patch by Ralph Thomas <ralpht@gmail.com> on 2013-09-27
Reviewed by Anders Carlsson.

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::paintLayerContents):
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 46197ca1
2013-09-27 Ralph Thomas <ralpht@gmail.com>
[WK2][CoordinatedGraphics] fix build after r156560
https://bugs.webkit.org/show_bug.cgi?id=122028
Fixing build.
Reviewed by Anders Carlsson.
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::paintLayerContents):
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2013-09-27 Anders Carlsson <andersca@apple.com>
 
Use std::unique_ptr for GraphicsLayer creation
......
......@@ -352,7 +352,7 @@ void CoordinatedLayerTreeHost::destroyPageOverlayLayer()
void CoordinatedLayerTreeHost::paintLayerContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, const IntRect& clipRect)
{
if (graphicsLayer == m_pageOverlayLayer) {
if (graphicsLayer == m_pageOverlayLayer.get()) {
// Overlays contain transparent contents and won't clear the context as part of their rendering, so we do it here.
graphicsContext.clearRect(clipRect);
m_webPage->drawPageOverlay(m_pageOverlay.get(), graphicsContext, clipRect);
......
......@@ -122,7 +122,7 @@ private:
OwnPtr<WebCore::CompositingCoordinator> m_coordinator;
// The page overlay layer. Will be null if there's no page overlay.
OwnPtr<WebCore::GraphicsLayer> m_pageOverlayLayer;
std::unique_ptr<WebCore::GraphicsLayer> m_pageOverlayLayer;
RefPtr<PageOverlay> m_pageOverlay;
#if ENABLE(CSS_SHADERS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment