Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index aff399f4b84719b13b22ab2811853fd989851923..778bbe93681d08f968d62d52795d0fd3c82b822e 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2793,7 +2793,8 @@ bool Element::needsPseudoElement(PseudoId pseudoId, const RenderStyle& style) co |
return false; |
if (!renderer() || !pseudoElementRendererIsNeeded(&style)) |
return false; |
- if (!renderer()->canHaveGeneratedChildren()) |
+ /* It's safe to have a backdrop since its renderer is always a child of RenderView. */ |
+ if (pseudoId != BACKDROP && !renderer()->canHaveGeneratedChildren()) |
return false; |
return true; |
} |