Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp |
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
index 4e92ef10f2b87a184a981c15ef12dd3e53582623..79293e36501b7d5baaf24fd6319dc04c762d29d5 100644 |
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
@@ -1696,7 +1696,7 @@ bool CompositedLayerMapping::containsPaintedContent() const |
// Now look at the body's renderer. |
HTMLElement* body = renderObject->document().body(); |
- RenderObject* bodyObject = (body && body->hasLocalName(bodyTag)) ? body->renderer() : 0; |
+ RenderObject* bodyObject = isHTMLBodyElement(body) ? body->renderer() : 0; |
if (bodyObject && hasBoxDecorationsOrBackgroundImage(bodyObject->style())) |
return true; |
} |