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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index bc34b9db1025b2770f6ea5057c156dcd55f505d4..5ef43ac06831e6c32437ac5f8e4769fb89acd687 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -258,7 +258,10 @@ void LayoutBlock::addChildBeforeDescendant(LayoutObject* newChild, LayoutObject*
// If the requested insertion point is not one of our children, then this is because
// there is an anonymous container within this object that contains the beforeDescendant.
- if (beforeDescendantContainer->isAnonymousBlock()) {
+ if (beforeDescendantContainer->isAnonymousBlock()
+ // Full screen layoutObjects and full screen placeholders act as anonymous blocks, not tables:
+ || beforeDescendantContainer->isLayoutFullScreen()
+ || beforeDescendantContainer->isLayoutFullScreenPlaceholder()) {
// Insert the child into the anonymous block box instead of here.
if (newChild->isInline() || newChild->isFloatingOrOutOfFlowPositioned() || beforeDescendant->parent()->slowFirstChild() != beforeDescendant)
beforeDescendant->parent()->addChild(newChild, beforeDescendant);
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698