Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 19098002: Introduce isHTMLHtmlElement and toHTMLHtmlElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698