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

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 2c7f1e610b4f8f2415cbb455396d0d10254d77c9..56bc29f18e4f2e8e92e4cc51f6209d826e30b62d 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(

Powered by Google App Engine
This is Rietveld 408576698