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); |
} |