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

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

Issue 2805103003: Optimize collapsed border calculation (step 2) (Closed)
Patch Set: - Created 3 years, 8 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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.h b/third_party/WebKit/Source/core/layout/LayoutTable.h
index a6ea41f20895f1e328198d7bcf213fbf4f82e08e..e6046ef0bb46403c63a817815f983a83ea8ec469 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h
@@ -417,6 +417,13 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
}
void InvalidateCollapsedBorders();
void InvalidateCollapsedBordersForAllCellsIfNeeded();
+ bool NeedsInvalidateCollapsedBordersForAllCells() const {
+ return needs_invalidate_collapsed_borders_for_all_cells_;
+ }
+ void SetNeedsInvalidateCollapsedBordersForAllCells() {
+ InvalidateCollapsedBorders();
+ needs_invalidate_collapsed_borders_for_all_cells_ = true;
+ }
bool HasSections() const { return Header() || Footer() || FirstBody(); }
@@ -535,6 +542,7 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
void DistributeExtraLogicalHeight(int extra_logical_height);
+ void InvalidateCollapsedBordersOfAffectedCells();
void RecalcCollapsedBordersIfNeeded();
// TODO(layout-dev): All mutables in this class are lazily updated by

Powered by Google App Engine
This is Rietveld 408576698