Chromium Code Reviews| 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, |