Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index 6e65f69ea36471d80e30018b2115098f56be64ee..7e1ae97a9fef89bea03897c6eaa9d556e3e44e09 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -638,7 +638,7 @@ void RenderBoxModelObject::paintFillLayerExtended(const PaintInfo& paintInfo, co |
if (!bgLayer->next() && bgColor.hasAlpha() && view()->frameView()) { |
Element* ownerElement = document().ownerElement(); |
if (ownerElement) { |
- if (!ownerElement->hasTagName(frameTag)) { |
+ if (!isHTMLFrameElement(*ownerElement)) { |
// 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> |