Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 882eadfab0ba37ccc82799febfbb9f140d5083b5..34fc12d66be7a5e8ed52a32458335a14094aa045 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -4709,9 +4709,11 @@ bool LayoutBox::shouldBeConsideredAsReplaced() const { |
DISABLE_CFI_PERF |
bool LayoutBox::avoidsFloats() const { |
+ // crbug.com/460704: This should be merged with createsNewFormattingContext(). |
return shouldBeConsideredAsReplaced() || hasOverflowClip() || isHR() || |
isLegend() || isWritingModeRoot() || isFlexItemIncludingDeprecated() || |
- style()->containsPaint() || style()->containsLayout(); |
+ style()->containsPaint() || style()->containsLayout() || |
+ style()->display() == EDisplay::FlowRoot; |
} |
bool LayoutBox::hasNonCompositedScrollbars() const { |