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

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

Issue 1396493005: Table rowspan cell's height resize when percent element present in the cell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed Layout test and expectation Created 5 years, 2 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/LayoutTableSection.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
index afb1424af20b17dd535baaf7b8b72eb90a7b5c23..3a608f82773b699e561bfed3ce079dc761b6c18d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -763,6 +763,12 @@ int LayoutTableSection::calcRowLogicalHeight()
rowSpanCells.append(cell);
lastRowSpanCell = cell;
+ if (cell->hasOverrideLogicalContentHeight()) {
+ cell->clearIntrinsicPadding();
+ cell->clearOverrideSize();
+ cell->forceChildLayout();
+ }
+
// Find out the baseline. The baseline is set on the first row in a rowSpan.
updateBaselineForCell(cell, r, baselineDescent);
}

Powered by Google App Engine
This is Rietveld 408576698