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

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

Issue 1781463002: Fix table background painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sample code for improved collapsed border painting Created 3 years, 11 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/LayoutTableRow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
index 149d4f72a71cfbfa6ce1f74a5ab398334977cb0d..bc927ec46b7a0ed8b1a80a335823fe816ac22d21 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
@@ -255,4 +255,13 @@ void LayoutTableRow::addOverflowFromCell(const LayoutTableCell* cell)
addVisualOverflow(cellVisualOverflowRect);
}
+
+LayoutRect LayoutTableRow::positionByCellSpan() const
+{
+ LayoutTableSection * section = this->section();
+ LayoutRect position = section->getCellPhysicalPosition(rowIndex(), 0);
+ position.uniteEvenIfEmpty(section->getCellPhysicalPosition(rowIndex(), section->numEffectiveColumns() - 1));
+ return position;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698