summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-24 10:14:43 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-24 10:14:43 -0700
commit99231f8e5c2dfae0faab1efc56462f750832f3c8 (patch)
tree7e626ec34a7cbd210e35f8030c007b9bc1dc0aa0 /Source/WebCore/platform/graphics
parent1cbc42144e272dc48c17e23d1275405e19619b35 (diff)
parentb3725cedeb43722b3b175aaeff70552e562d2c94 (diff)
downloadexternal_webkit-99231f8e5c2dfae0faab1efc56462f750832f3c8.zip
external_webkit-99231f8e5c2dfae0faab1efc56462f750832f3c8.tar.gz
external_webkit-99231f8e5c2dfae0faab1efc56462f750832f3c8.tar.bz2
Merge "Check that the view is not null in GraphicsLayerAndroid::updateFixedPosition()"
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r--Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
index d7b792b..992585a 100644
--- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
@@ -226,8 +226,11 @@ void GraphicsLayerAndroid::updateFixedPosition()
RenderLayer* renderLayer = renderLayerFromClient(m_client);
RenderView* view = static_cast<RenderView*>(renderLayer->renderer());
+ if (!view)
+ return;
+
// We will need the Iframe flag in the LayerAndroid tree for fixed position
- if (view && view->isRenderIFrame())
+ if (view->isRenderIFrame())
m_contentLayer->setIsIframe(true);
// If we are a fixed position layer, just set it
if (view->isPositioned() && view->style()->position() == FixedPosition) {