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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCol.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/LayoutTableCol.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
index 36ce08cb9b7188d09b9ff9fccdd0cbfae1b9d1ee..c9512243146cebe50c59992febd843cc6ddeb21f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
@@ -167,17 +167,17 @@ LayoutTableCol* LayoutTableCol::NextColumn() const {
return ToLayoutTableCol(next);
}
-const BorderValue& LayoutTableCol::BorderAdjoiningCellStartBorder(
+BorderValue LayoutTableCol::BorderAdjoiningCellStartBorder(
const LayoutTableCell*) const {
return Style()->BorderStart();
}
-const BorderValue& LayoutTableCol::BorderAdjoiningCellEndBorder(
+BorderValue LayoutTableCol::BorderAdjoiningCellEndBorder(
const LayoutTableCell*) const {
return Style()->BorderEnd();
}
-const BorderValue& LayoutTableCol::BorderAdjoiningCellBefore(
+BorderValue LayoutTableCol::BorderAdjoiningCellBefore(
const LayoutTableCell* cell) const {
DCHECK_EQ(Table()
->ColElementAtAbsoluteColumn(cell->AbsoluteColumnIndex() +
@@ -187,7 +187,7 @@ const BorderValue& LayoutTableCol::BorderAdjoiningCellBefore(
return Style()->BorderStart();
}
-const BorderValue& LayoutTableCol::BorderAdjoiningCellAfter(
+BorderValue LayoutTableCol::BorderAdjoiningCellAfter(
const LayoutTableCell* cell) const {
DCHECK_EQ(Table()
->ColElementAtAbsoluteColumn(cell->AbsoluteColumnIndex() - 1)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCol.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698