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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2555413002: Revert commit# 415577 "Add grid/flex layout support for <fieldset>" (Closed)
Patch Set: Created 4 years 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 8e413135d2792c063e08c46f16096b1b88dc2707..810a240d11a4bfbec27f925d0c110d86d9d44bea 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -356,9 +356,6 @@ void LayoutBlock::removeLeftoverAnonymousBlock(LayoutBlock* child) {
if (child->continuation())
return;
- if (isFieldset())
- return;
-
// Promote all the leftover anonymous block's children (to become children of
// this block instead). We still want to keep the leftover block in the tree
// for a moment, for notification purposes done further below (flow threads
@@ -1993,9 +1990,6 @@ LayoutBlock* LayoutBlock::createAnonymousWithParentAndDisplay(
if (display == EDisplay::Flex || display == EDisplay::InlineFlex) {
newBox = LayoutFlexibleBox::createAnonymous(&parent->document());
newDisplay = EDisplay::Flex;
- } else if (display == EDisplay::Grid || display == EDisplay::InlineGrid) {
- newBox = LayoutGrid::createAnonymous(&parent->document());
- newDisplay = EDisplay::Grid;
} else {
newBox = LayoutBlockFlow::createAnonymous(&parent->document());
newDisplay = EDisplay::Block;

Powered by Google App Engine
This is Rietveld 408576698