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( |