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

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

Issue 2422953003: Repeating header groups should align properly when captions are present (Closed)
Patch Set: 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/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index d01f9f790e489a7b99a65cc3a06b322a53db4fa6..4e683f1d67806bcafe3edb7543f132e58dff476e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -1471,6 +1471,14 @@ LayoutTableCell* LayoutTable::cellAfter(const LayoutTableCell* cell) const {
return cell->section()->primaryCellAt(cell->rowIndex(), effCol);
}
+LayoutTableCaption* LayoutTable::topCaption() const {
+ for (auto& caption : m_captions) {
+ if (caption->style()->captionSide() == ECaptionSide::Top)
mstensho (USE GERRIT) 2016/10/17 19:21:13 There may be more than one top caption.
+ return caption;
+ }
+ return nullptr;
+}
+
int LayoutTable::baselinePosition(FontBaseline baselineType,
bool firstLine,
LineDirectionMode direction,

Powered by Google App Engine
This is Rietveld 408576698