Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 6d4ed92c942a7e3d92e2d673cee556c8c178b04f..bc218a0dbd6f59582f823de6b9dd12f75268cd66 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -1284,7 +1284,7 @@ void StyleResolver::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty |
style->setTransformStyle3D(TransformStyle3DFlat); |
// Seamless iframes behave like blocks. Map their display to inline-block when marked inline. |
- if (e && e->hasTagName(iframeTag) && style->display() == INLINE && static_cast<HTMLIFrameElement*>(e)->shouldDisplaySeamlessly()) |
+ if (e && e->hasTagName(iframeTag) && style->display() == INLINE && toHTMLIFrameElement(e)->shouldDisplaySeamlessly()) |
style->setDisplay(INLINE_BLOCK); |
adjustGridItemPosition(style); |