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

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

Issue 1368243002: Don't deduct min-width from the available width for empty cells (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/TableLayoutAlgorithmAuto.cpp
diff --git a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp
index 009e07bd881a361f44e4c5c2f4e2b99ba47e6bf6..d2da565c270329094478ae97085cd52a9be834df 100644
--- a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp
+++ b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp
@@ -545,8 +545,9 @@ void TableLayoutAlgorithmAuto::layout()
} else {
numAuto++;
totalAuto += m_layoutStruct[i].clampedEffectiveMaxLogicalWidth();
- allocAuto += cellLogicalWidth;
}
+ if (!m_layoutStruct[i].columnHasNoCells)
+ allocAuto += cellLogicalWidth;
break;
default:
break;
@@ -599,6 +600,7 @@ void TableLayoutAlgorithmAuto::layout()
}
if (available > 0 && numAutoEmptyCellsOnly) {
unsigned total = numAutoEmptyCellsOnly;
+ available += allocAuto;
mstensho (USE GERRIT) 2015/09/30 11:09:39 |available| already contains |allocAuto|, if |numA
distributeWidthToColumns<unsigned, Auto, EmptyCells, InitialWidth, StartToEnd>(available, total);
}

Powered by Google App Engine
This is Rietveld 408576698