| Index: Source/core/rendering/RenderObject.cpp
|
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
|
| index a5011014de634475f67f48692b2b7ba2d82f23ac..d84ea8aecb5825db1bc215d3daca5215dc153770 100644
|
| --- a/Source/core/rendering/RenderObject.cpp
|
| +++ b/Source/core/rendering/RenderObject.cpp
|
| @@ -35,6 +35,7 @@
|
| #include "core/editing/htmlediting.h"
|
| #include "core/html/HTMLAnchorElement.h"
|
| #include "core/html/HTMLElement.h"
|
| +#include "core/html/HTMLHtmlElement.h"
|
| #include "core/html/HTMLTableElement.h"
|
| #include "core/page/EventHandler.h"
|
| #include "core/page/Frame.h"
|
| @@ -2287,7 +2288,7 @@ bool RenderObject::isRooted(RenderView** view) const
|
| RenderObject* RenderObject::rendererForRootBackground()
|
| {
|
| ASSERT(isRoot());
|
| - if (!hasBackground() && node() && node()->hasTagName(HTMLNames::htmlTag)) {
|
| + if (!hasBackground() && node() && isHTMLHtmlElement(node())) {
|
| // Locate the <body> element using the DOM. This is easier than trying
|
| // to crawl around a render tree with potential :before/:after content and
|
| // anonymous blocks created by inline <body> tags etc. We can locate the <body>
|
|
|