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

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

Issue 2846563002: Optimize collapsed border calculation (step 1) (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 a803b6f9efd7f44136230548ae6626e9e9b9c967..a6ea41f20895f1e328198d7bcf213fbf4f82e08e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h
@@ -416,6 +416,7 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
return collapsed_borders_;
}
void InvalidateCollapsedBorders();
+ void InvalidateCollapsedBordersForAllCellsIfNeeded();
wkorman 2017/04/27 20:11:15 nit: believe we're not using 'IfNeeded' suffix any
Xianzhu 2017/04/28 20:31:44 This "IfNeeded" is meaningful because the function
wkorman 2017/04/28 21:40:15 Am fine with this. But for general discussion, I
bool HasSections() const { return Header() || Footer() || FirstBody(); }
@@ -588,6 +589,7 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
// field.
CollapsedBorderValues collapsed_borders_;
bool collapsed_borders_valid_ : 1;
+ bool needs_invalidate_collapsed_borders_for_all_cells_ : 1;
mutable bool has_col_elements_ : 1;
mutable bool needs_section_recalc_ : 1;

Powered by Google App Engine
This is Rietveld 408576698