From 17c9af86d88ba238f6574f45cc821ce7e68d1fa1 Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Wed, 23 Feb 2011 17:17:20 -0800 Subject: Fixed element in iframe support We first identify the iframe for each LayerAndroid. Then when traverse to update the fixed elements, we use the parent iframe info to update the fixed position. Change-Id: I13e0333fc6453414cea2343a787c41d525f6e3d2 --- WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp') diff --git a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index f2163cc..8ea274e 100644 --- a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -227,6 +227,9 @@ void GraphicsLayerAndroid::updateFixedPosition() RenderLayer* renderLayer = renderLayerFromClient(m_client); RenderView* view = static_cast(renderLayer->renderer()); + // We will need the Iframe flag in the LayerAndroid tree for fixed position + if (view && view->isRenderIFrame()) + m_contentLayer->setIsIframe(true); // If we are a fixed position layer, just set it if (view->isPositioned() && view->style()->position() == FixedPosition) { // We need to get the passed CSS properties for the element -- cgit v1.1