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

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

Issue 2799363003: A column-span:all element should always establish a new formatting context. (Closed)
Patch Set: Created 3 years, 8 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 3a4b357cc158a3f7e9f11cccc08596cf41dab721..52a3830a16982f9665d744375e5c3a2d7febe190 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -559,7 +559,8 @@ bool LayoutBlock::createsNewFormattingContext() const {
hasOverflowClip() || isFlexItemIncludingDeprecated() ||
style()->specifiesColumns() || isLayoutFlowThread() || isTableCell() ||
isTableCaption() || isFieldset() || isWritingModeRoot() ||
- isDocumentElement() || isColumnSpanAll() || isGridItem() ||
+ isDocumentElement() || isGridItem() ||
+ style()->getColumnSpan() == ColumnSpanAll ||
style()->containsPaint() || style()->containsLayout() ||
isSVGForeignObject() || style()->display() == EDisplay::kFlowRoot;
}

Powered by Google App Engine
This is Rietveld 408576698