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

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

Issue 2620623002: Implement display:flow-root (Closed)
Patch Set: bug 672508 Created 3 years, 11 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 84a846f892a69ea94e5219745c886faa954c5d85..fa67cdc151484c6588b623eab414ed03d0f089e8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -535,7 +535,7 @@ bool LayoutBlock::createsNewFormattingContext() const {
isTableCaption() || isFieldset() || isWritingModeRoot() ||
isDocumentElement() || isColumnSpanAll() || isGridItem() ||
style()->containsPaint() || style()->containsLayout() ||
- isSVGForeignObject();
+ isSVGForeignObject() || style()->display() == EDisplay::FlowRoot;
}
static inline bool changeInAvailableLogicalHeightAffectsChild(
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698