Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 142703011: Revert "Retry "Replace RenderFullScreen with top layer"" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/fullscreen.css ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 848317167021116b6abb1261ddc5415055fabbc2..bb0e88f02db769598fa0058cd61e12f397786a87 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -880,9 +880,7 @@ PassRefPtr<PseudoElement> StyleResolver::createPseudoElementIfNeeded(Element& pa
if (pseudoId == BACKDROP && !parent.isInTopLayer())
return 0;
- // It's safe to have a backdrop since its renderer is always a child of RenderView.
- ASSERT(static_cast<RenderObject*>(parentRenderer->view())->canHaveGeneratedChildren());
- if (pseudoId != BACKDROP && !parentRenderer->canHaveGeneratedChildren())
+ if (!parentRenderer->canHaveGeneratedChildren())
return 0;
RenderStyle* parentStyle = parentRenderer->style();
« no previous file with comments | « Source/core/css/fullscreen.css ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698