DescriptionDon't always invalidate collapsed borders during table layout
Many layout changes e.g. resizing doesn't affect computed collapsed
borders so don't need to invalidate collapsed borders.
We need to invalidate collapsed borders when
1. Table sections are set need recalc (when table structure changes);
2. A cell is appended into a row (which could belong to 1 but we have an
optimization not to recalc table sections if the added cell is the
last cell of the table);
3. Border style changes;
4. border-collapse CSS property changes;
This CL will reduce frame time of PerformanceTests/Mutation/large-
table-row-height-change-with-collapsed-border.html (in
https://codereview.chromium.org/2842313002/) by about 35% by avoiding
unnecessary collapsed border recalculations.
BUG=626748
Review-Url: https://codereview.chromium.org/2840723005
Cr-Commit-Position: refs/heads/master@{#467694}
Committed: https://chromium.googlesource.com/chromium/src/+/bb2388b6cee45ca8cba764245b2886727b3fafb8
Patch Set 1 #
Total comments: 2
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 14 (9 generated)
|