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

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

Issue 2549973003: Revert commit# 415577 "Add grid/flex layout support for <fieldset>" (Closed)
Patch Set: updated TestExpectations, verified that there are no changes in images 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 58f766523eca70c5407c3e092cbb1e243bcb38b3..ece99a84d395e93bb41dc4e28edcb49ed26b11ae 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -362,9 +362,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
@@ -1990,9 +1987,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