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

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

Issue 2150003005: Add grid/flex layout support for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert a11y test expectations & explicitely set a11y fieldset role to GroupRole 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 88c0166f0b993a1083e9301a771162f982c0cb5a..0a387ddc25d4876e42721d0d67e1d5c873cfbf35 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1736,6 +1736,9 @@ LayoutBlock* LayoutBlock::createAnonymousWithParentAndDisplay(const LayoutObject
if (display == FLEX || display == INLINE_FLEX) {
newBox = LayoutFlexibleBox::createAnonymous(&parent->document());
newDisplay = FLEX;
+ } else if (display == GRID || display == INLINE_GRID) {
+ newBox = LayoutGrid::createAnonymous(&parent->document());
+ newDisplay = GRID;
} else {
newBox = LayoutBlockFlow::createAnonymous(&parent->document());
newDisplay = BLOCK;

Powered by Google App Engine
This is Rietveld 408576698