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

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

Issue 2522923003: Reference table row via the cell for row background display item client. (Closed)
Patch Set: Integrate feedback. Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
index 4d01ab9f4c0fd5d412fe59c929d82ea8120a3405..e8195e90beb6ba30acf91563244f9fd807b29af2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
@@ -470,7 +470,7 @@ void LayoutTableCell::ensureIsReadyForPaintInvalidation() {
return;
if (!m_rowBackgroundDisplayItemClient) {
m_rowBackgroundDisplayItemClient =
- wrapUnique(new LayoutTableCell::RowBackgroundDisplayItemClient(*row()));
+ wrapUnique(new LayoutTableCell::RowBackgroundDisplayItemClient(*this));
}
}
@@ -520,15 +520,15 @@ void LayoutTableCell::styleDidChange(StyleDifference diff,
}
LayoutTableCell::RowBackgroundDisplayItemClient::RowBackgroundDisplayItemClient(
- const LayoutTableRow& layoutTableRow)
- : m_layoutTableRow(layoutTableRow) {}
+ const LayoutTableCell& layoutTableCell)
+ : m_layoutTableCell(layoutTableCell) {}
String LayoutTableCell::RowBackgroundDisplayItemClient::debugName() const {
return "RowBackground";
}
LayoutRect LayoutTableCell::RowBackgroundDisplayItemClient::visualRect() const {
- return m_layoutTableRow.visualRect();
+ return m_layoutTableCell.row()->visualRect();
}
// The following rules apply for resolving conflicts and figuring out which
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698