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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.h

Issue 2412923002: Top-align table cells in rows that cross fragmentainer boundaries. (Closed)
Patch Set: Let's keep the pagination strut substraction thing a bit longer, since removing it affects some DRT… Created 4 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/LayoutTableCell.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.h b/third_party/WebKit/Source/core/layout/LayoutTableCell.h
index 963a5aa24391ac67e7175c160f2cbb24226acec4..57f1089872620997692b0e55e7b3e25404fa6d20 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.h
@@ -200,7 +200,13 @@ class CORE_EXPORT LayoutTableCell final : public LayoutBlockFlow {
va == VerticalAlignSub || va == VerticalAlignLength;
}
- void computeIntrinsicPadding(int rowHeight, SubtreeLayoutScope&);
+ // Align the cell in the block direction. This is done by calculating an
+ // intrinsic padding before and after the cell contents, so that all cells in
+ // the row get the same logical height.
+ void computeIntrinsicPadding(int rowHeight,
+ EVerticalAlign,
+ SubtreeLayoutScope&);
+
void clearIntrinsicPadding() { setIntrinsicPadding(0, 0); }
int intrinsicPaddingBefore() const { return m_intrinsicPaddingBefore; }
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698