Index: Source/core/rendering/RenderBlock.cpp |
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
index fbcc31eb3c1ddbed2c55e49fdf3f75103d6adc04..5a0276541b02a83a74c5bd8e532d204787987e7b 100644 |
--- a/Source/core/rendering/RenderBlock.cpp |
+++ b/Source/core/rendering/RenderBlock.cpp |
@@ -3814,7 +3814,7 @@ bool RenderBlock::hasLineIfEmpty() const |
if (node()->isRootEditableElement()) |
return true; |
- if (node()->isShadowRoot() && toShadowRoot(node())->host()->hasTagName(inputTag)) |
+ if (node()->isShadowRoot() && isHTMLInputElement(*toShadowRoot(node())->host())) |
return true; |
return false; |