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

Unified Diff: Source/core/layout/LayoutTableSection.cpp

Issue 1121173002: Fix shrink-to-fit when children's writing-mode is orthogonal (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: float tests added + cleanup a bit Created 5 years, 7 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: Source/core/layout/LayoutTableSection.cpp
diff --git a/Source/core/layout/LayoutTableSection.cpp b/Source/core/layout/LayoutTableSection.cpp
index 7183a5c25dfb74a4139dcf6f8ee89d42644c5b22..b9734bc42e5d4a6075f666f02bf39f0da0850571 100644
--- a/Source/core/layout/LayoutTableSection.cpp
+++ b/Source/core/layout/LayoutTableSection.cpp
@@ -814,6 +814,12 @@ void LayoutTableSection::layout()
}
int tableLayoutLogicalWidth = columnPos[endCol] - columnPos[startColumn] - table()->hBorderSpacing();
cell->setCellLogicalWidth(tableLayoutLogicalWidth, layouter);
+
+ if (cell->needsRecalcLogicalWidthAfterLayoutChildren()) {
+ cell->clearNeedsRecalcLogicalWidthAfterLayoutChildren();
+ cell->setPreferredLogicalWidthsDirty(MarkOnlyThis);
+ table()->setNeedsRecalcLogicalWidthAfterLayoutChildren();
+ }
}
if (LayoutTableRow* rowLayoutObject = m_grid[r].rowLayoutObject) {
« Source/core/layout/LayoutBlockFlow.cpp ('K') | « Source/core/layout/LayoutTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698