https://bugs.webkit.org/show_bug.cgi?id=125781
<rdar://problem/
27684457>
Reviewed by Simon Fraser.
Source/WebCore:
RenderTableSection::calcRowLogicalHeight misused minimumValueForLength to fallback to 0 for non-fixed values.
While this patch fixes the assertion, the table section code needs works to support calc values. See webkit.org/b/161273.
Test: fast/table/assert-on-min-max-content-values.html
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::calcRowLogicalHeight):
LayoutTests:
* fast/table/assert-on-min-max-content-values-expected.txt: Added.
* fast/table/assert-on-min-max-content-values.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205056
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2016-08-26 Zalan Bujtas <zalan@apple.com>
+
+ ASSERT_NOT_REACHED() is touched in WebCore::minimumValueForLength
+ https://bugs.webkit.org/show_bug.cgi?id=125781
+ <rdar://problem/27684457>
+
+ Reviewed by Simon Fraser.
+
+ * fast/table/assert-on-min-max-content-values-expected.txt: Added.
+ * fast/table/assert-on-min-max-content-values.html: Added.
+
2016-08-26 Ryan Haddad <ryanhaddad@apple.com>
Rebaseline fast/dom/focus-contenteditable.html for ios-simulator after r205044.
--- /dev/null
+PASS if no assert in debug.
+
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+<title>This tests that we don't assert on tables with min/max-content values.</title>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+</head>
+<body>
+PASS if no assert in debug.
+<table style="-webkit-writing-mode: vertical-rl;">
+<tbody>
+ <tr style="width: -webkit-min-content;"></tr>
+ <tr style="width: -webkit-max-content;"></tr>
+ <tr style="width: calc(50px - 10%);"></tr>
+</tbody>
+</table>
+</body>
+</html>
+2016-08-26 Zalan Bujtas <zalan@apple.com>
+
+ ASSERT_NOT_REACHED() is touched in WebCore::minimumValueForLength
+ https://bugs.webkit.org/show_bug.cgi?id=125781
+ <rdar://problem/27684457>
+
+ Reviewed by Simon Fraser.
+
+ RenderTableSection::calcRowLogicalHeight misused minimumValueForLength to fallback to 0 for non-fixed values.
+ While this patch fixes the assertion, the table section code needs works to support calc values. See webkit.org/b/161273.
+
+ Test: fast/table/assert-on-min-max-content-values.html
+
+ * rendering/RenderTableSection.cpp:
+ (WebCore::RenderTableSection::calcRowLogicalHeight):
+
2016-08-26 Andreas Kling <akling@apple.com>
REGRESSION (r204987): fast/canvas-composite-* tests are now flaky assertion failures
cell->setCol(table()->effColToCol(col));
}
+static LayoutUnit resolveLogicalHeightForRow(const Length& rowLogicalHeight)
+{
+ if (rowLogicalHeight.isFixed())
+ return rowLogicalHeight.value();
+ if (rowLogicalHeight.isCalculated())
+ return rowLogicalHeight.nonNanCalculatedValue(0);
+ return 0;
+}
+
LayoutUnit RenderTableSection::calcRowLogicalHeight()
{
#ifndef NDEBUG
LayoutUnit baselineDescent = 0;
// Our base size is the biggest logical height from our cells' styles (excluding row spanning cells).
- m_rowPos[r + 1] = std::max(m_rowPos[r] + minimumValueForLength(m_grid[r].logicalHeight, 0), LayoutUnit::fromPixel(0));
+ m_rowPos[r + 1] = std::max(m_rowPos[r] + resolveLogicalHeightForRow(m_grid[r].logicalHeight), LayoutUnit::fromPixel(0));
Row& row = m_grid[r].row;
unsigned totalCols = row.size();