diff options
author | Patrick Scott <phanna@android.com> | 2011-03-02 10:45:24 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2011-03-07 09:11:25 -0500 |
commit | 9e143ba2bd15b3dd507999ba142269ab17df938a (patch) | |
tree | e1661ae18b008491e59c1597069e1b81e0ef8294 /WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | 4ffd02f8c673bc6ce1a6b96f9fd3b21e8337ec7c (diff) | |
download | external_webkit-9e143ba2bd15b3dd507999ba142269ab17df938a.zip external_webkit-9e143ba2bd15b3dd507999ba142269ab17df938a.tar.gz external_webkit-9e143ba2bd15b3dd507999ba142269ab17df938a.tar.bz2 |
Do not merge.
Remove the notion of root layers.
We were computing the root layer status incorrectly for some child layers. If an
iframe has a layer but it hasn't been attached, we might assume it is the root
layer of the tree and not produce a recording content.
Bug: 3492471
Change-Id: Ib81fb26d76742d74ebe244c34c1fab353fb9b78d
Diffstat (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index 7963ae0..4cd48a8 100644 --- a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -124,11 +124,7 @@ GraphicsLayerAndroid::GraphicsLayerAndroid(GraphicsLayerClient* client) : m_foregroundClipLayer(0) { RenderLayer* renderLayer = renderLayerFromClient(m_client); - m_contentLayer = new LayerAndroid(renderLayer, true); - if (renderLayer) { - m_contentLayer->setIsRootLayer(renderLayer->isRootLayer() - && !(renderLayer->renderer()->frame()->ownerElement())); - } + m_contentLayer = new LayerAndroid(renderLayer); gDebugGraphicsLayerAndroidInstances++; } @@ -390,8 +386,6 @@ void GraphicsLayerAndroid::setDrawsContent(bool drawsContent) if (drawsContent == m_drawsContent) return; GraphicsLayer::setDrawsContent(drawsContent); - if (m_contentLayer->isRootLayer()) - return; if (m_drawsContent) { m_haveContents = true; setNeedsDisplay(); @@ -503,7 +497,7 @@ void GraphicsLayerAndroid::updateScrollingLayers() if (layerNeedsOverflow) { ASSERT(!m_foregroundLayer && !m_foregroundClipLayer); m_foregroundLayer = new ScrollableLayerAndroid(layer); - m_foregroundClipLayer = new LayerAndroid(layer, false); + m_foregroundClipLayer = new LayerAndroid(layer); m_foregroundClipLayer->setMasksToBounds(true); m_foregroundClipLayer->addChild(m_foregroundLayer); m_contentLayer->addChild(m_foregroundClipLayer); |