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

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

Issue 2861653006: Fix LayoutTableRow::AddOverflowFromCell() (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableRowTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
index a2b8f5d5a253ddc953d75c7d6270bb10bb158fa0..3fdbf597b1d64c51c255896fbe984f5a2ed0d1be 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
@@ -306,7 +306,7 @@ void LayoutTableRow::AddOverflowFromCell(const LayoutTableCell* cell) {
// The cell and the row share the section's coordinate system. However
// the visual overflow should be determined in the coordinate system of
// the row, that's why we shift it below.
- cell_visual_overflow_rect.MoveBy(-Location());
Xianzhu 2017/05/06 00:12:47 cell_visual_overflow_rect is in cell's coordinates
+ cell_visual_overflow_rect.Move(cell->Location() - Location());
AddContentsVisualOverflow(cell_visual_overflow_rect);
// Table row paints its background behind cells. If the cell spans multiple
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableRowTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698