Index: third_party/WebKit/Source/core/layout/LayoutTableSection.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.h b/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
index 5c0b9f709abc48d4a51a338860def83cb4f00e89..6c82c3ad636b143ac072101362950aa8f60942a8 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
@@ -56,6 +56,13 @@ |
unsigned m_start; |
unsigned m_end; |
}; |
+ |
+inline bool operator==(const CellSpan& a, const CellSpan& b) { |
+ return a.start() == b.start() && a.end() == b.end(); |
+} |
+inline bool operator!=(const CellSpan& a, const CellSpan& b) { |
+ return !(a == b); |
+} |
class LayoutTableCell; |
class LayoutTableRow; |
@@ -296,8 +303,13 @@ |
// columnPos vectors. |
LayoutRect logicalRectForWritingModeAndDirection(const LayoutRect&) const; |
+ CellSpan fullTableRowSpan() const { return CellSpan(0, m_grid.size()); } |
+ CellSpan fullTableEffectiveColumnSpan() const { |
+ return CellSpan(0, table()->numEffectiveColumns()); |
+ } |
CellSpan dirtiedRows(const LayoutRect& visualRect) const; |
CellSpan dirtiedEffectiveColumns(const LayoutRect& visualRect) const; |
+ |
const HashSet<LayoutTableCell*>& overflowingCells() const { |
return m_overflowingCells; |
} |
@@ -401,11 +413,6 @@ |
void computeOverflowFromCells(unsigned totalRows, unsigned nEffCols); |
- CellSpan fullTableRowSpan() const { return CellSpan(0, m_grid.size()); } |
- CellSpan fullTableEffectiveColumnSpan() const { |
- return CellSpan(0, table()->numEffectiveColumns()); |
- } |
- |
// These two functions take a rectangle as input that has been flipped by |
// logicalRectForWritingModeAndDirection. |
// The returned span of rows or columns is end-exclusive, and empty if |