Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/dom/PseudoElement.cpp

Issue 2168373002: Revert of Reland "Implement FullScreen using top layer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve WebFrameTest.cpp conflict and appease presubmit Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/dom/PseudoElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/PseudoElement.cpp b/third_party/WebKit/Source/core/dom/PseudoElement.cpp
index a8fbed8f8782e14537e43adf5d74f6409c0be929..1b15a9a87ef0a6d8e5ddade8344cfd1988a34baa 100644
--- a/third_party/WebKit/Source/core/dom/PseudoElement.cpp
+++ b/third_party/WebKit/Source/core/dom/PseudoElement.cpp
@@ -29,7 +29,6 @@
#include "core/dom/FirstLetterPseudoElement.h"
#include "core/frame/UseCounter.h"
#include "core/inspector/InspectorInstrumentation.h"
-#include "core/layout/GeneratedChildren.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutQuote.h"
#include "core/style/ContentData.h"
@@ -125,13 +124,6 @@ void PseudoElement::attachLayoutTree(const AttachContext& context)
if (!layoutObject)
return;
- // This is to ensure that bypassing the canHaveGeneratedChildren check in
- // StyleResolver::createPseudoElementIfNeeded does not result in the
- // backdrop pseudo element's layout object becoming the child of a layout
- // object that doesn't allow children.
- DCHECK(layoutObject->parent());
- DCHECK(canHaveGeneratedChildren(*layoutObject->parent()));
-
ComputedStyle& style = layoutObject->mutableStyleRef();
if (style.styleType() != PseudoIdBefore && style.styleType() != PseudoIdAfter)
return;
« no previous file with comments | « third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine