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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.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/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 {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698