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

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

Issue 2884763003: Combine and simplify LayoutTableSection::DirtiedRows() and DirtiedEffectiveColumns() (Closed)
Patch Set: Rebase on origin/master Created 3 years, 7 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 2733782f867c284aa0fe936a754b6375926d3832..1380b1907c857889972587d5570bdbe86d23067f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.h
@@ -347,6 +347,14 @@ class CORE_EXPORT LayoutTableCell final : public LayoutBlockFlow {
bool HasLineIfEmpty() const override;
+ static bool CompareInDOMOrder(const LayoutTableCell* cell1,
+ const LayoutTableCell* cell2) {
+ DCHECK(cell1->Section() == cell2->Section());
+ if (cell1->RowIndex() == cell2->RowIndex())
+ return cell1->absolute_column_index_ < cell2->absolute_column_index_;
+ return cell1->RowIndex() < cell2->RowIndex();
+ }
+
protected:
void StyleDidChange(StyleDifference, const ComputedStyle* old_style) override;
void ComputePreferredLogicalWidths() override;

Powered by Google App Engine
This is Rietveld 408576698