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

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

Issue 2430313004: Paint collapsed borders of a table as one display item (Closed)
Patch Set: Rebaseline on mac and win Created 4 years, 1 month 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.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
@@ -57,6 +57,13 @@ class CellSpan {
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 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent {
// 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 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent {
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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698