Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index 912a43f0bf0c2097b303a512937a1e43ec2728b4..e7bcac31b664395a941b001d462547090228f6a4 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -566,8 +566,7 @@ void RenderBoxModelObject::paintFillLayerExtended(const PaintInfo& paintInfo, co |
if (isRoot) { |
isOpaqueRoot = true; |
if (!bgLayer.next() && bgColor.hasAlpha() && view()->frameView()) { |
- Element* ownerElement = document().ownerElement(); |
- if (ownerElement) { |
+ if (HTMLFrameOwnerElement* ownerElement = document().ownerElement()) { |
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 |