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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp

Issue 2861773004: Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead (Closed)
Patch Set: meade@'s suggestion 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/LayoutTableBoxComponent.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp b/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp
index 923dc90dfa4b8e72c60c0c68641c9c16ad62ca46..b8c5b92157a3238e3777371fc5eb110e224fe7d3 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp
@@ -19,6 +19,7 @@ void LayoutTableBoxComponent::InvalidateCollapsedBordersOnStyleChange(
return;
if (old_style.Border() != table_part.StyleRef().Border() ||
!old_style.RadiiEqual(table_part.StyleRef()) ||
+ !old_style.BorderSizeEquals(table_part.StyleRef()) ||
(diff.TextDecorationOrColorChanged() &&
table_part.StyleRef().HasBorderColorReferencingCurrentColor()))
table.InvalidateCollapsedBorders();
@@ -37,7 +38,7 @@ bool LayoutTableBoxComponent::DoCellsHaveDirtyWidth(
// tablePart.needsLayout().
return diff.NeedsFullLayout() && table_part.NeedsLayout() &&
table.ShouldCollapseBorders() &&
- !old_style.Border().SizeEquals(table_part.Style()->Border());
+ !old_style.BorderSizeEquals(*table_part.Style());
}
void LayoutTableBoxComponent::MutableForPainting::UpdatePaintResult(
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698