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

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

Issue 1676933004: Table cell background painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: colgroup paint bug125336 fix Created 4 years, 10 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 3280fa909128c24ec28b6051ea503d7f296c3507..3bcce7f79edd4e16211b3768606531736519bbb4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
@@ -264,4 +264,12 @@ bool LayoutTableRow::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRe
return LayoutBox::backgroundIsKnownToBeOpaqueInRect(localRect);
}
+LayoutRect LayoutTableRow::positionByCellSpan() const
+{
+ LayoutTableSection * section = this->section();
+ LayoutRect position = section->positionOfIdealCell(rowIndex(), 0);
+ position.unite(section->positionOfIdealCell(rowIndex(), section->numColumns() - 1));
+ return position;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698