Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index 46c0acf2d13dddbefaa4c4d0eec6f2558cfcec27..11fe4cda51b931443bf3813cb916a09e4267616b 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -2560,7 +2560,7 @@ RenderObject* RenderObject::rendererForRootBackground() |
// anonymous blocks created by inline <body> tags etc. We can locate the <body> |
// render object very easily via the DOM. |
HTMLElement* body = document().body(); |
- RenderObject* bodyObject = (body && body->hasLocalName(bodyTag)) ? body->renderer() : 0; |
+ RenderObject* bodyObject = isHTMLBodyElement(body) ? body->renderer() : 0; |
if (bodyObject) |
return bodyObject; |
} |