summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
index 45141e1..2807163 100644
--- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
@@ -352,7 +352,6 @@ void GraphicsLayerAndroid::setSize(const FloatSize& size)
}
m_contentLayer->setSize(size.width(), size.height());
- m_contentLayer->setContent(0);
setNeedsDisplay();
askForSync();
}
@@ -849,13 +848,14 @@ bool GraphicsLayerAndroid::paintContext(LayerAndroid* layer,
// a new picture every time.
WebCore::PicturePile picture;
picture.setSize(IntSize(m_size.width(), m_size.height()));
- PicturePileLayerContent* content = new PicturePileLayerContent(picture);
- layer->setContent(content);
- SkSafeUnref(content);
// TODO: add content checks (text, opacity, etc.)
picture.updatePicturesIfNeeded(this);
+ PicturePileLayerContent* content = new PicturePileLayerContent(picture);
+ layer->setContent(content);
+ SkSafeUnref(content);
+
return true;
}