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

Unified Diff: Source/core/rendering/RenderTableSection.cpp

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address jchaffraix remarks Created 6 years, 2 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: Source/core/rendering/RenderTableSection.cpp
diff --git a/Source/core/rendering/RenderTableSection.cpp b/Source/core/rendering/RenderTableSection.cpp
index 7984b932e6669eaa931fa0b106f7a24c60b1a60a..b0264c6f7fd92c939df76fadccf26cf87534875b 100644
--- a/Source/core/rendering/RenderTableSection.cpp
+++ b/Source/core/rendering/RenderTableSection.cpp
@@ -1290,10 +1290,10 @@ CellSpan RenderTableSection::dirtiedRows(const LayoutRect& damageRect) const
// To issue paint invalidations for the border we might need to paint invalidate the first or last row even if they are not spanned themselves.
if (coveredRows.start() >= m_rowPos.size() - 1 && m_rowPos[m_rowPos.size() - 1] + table()->outerBorderAfter() >= damageRect.y())
- --coveredRows.start();
+ coveredRows.decreaseStart();
if (!coveredRows.end() && m_rowPos[0] - table()->outerBorderBefore() <= damageRect.maxY())
- ++coveredRows.end();
+ coveredRows.increaseEnd();
return coveredRows;
}
@@ -1308,10 +1308,10 @@ CellSpan RenderTableSection::dirtiedColumns(const LayoutRect& damageRect) const
const Vector<int>& columnPos = table()->columnPositions();
// To issue paint invalidations for the border we might need to paint invalidate the first or last column even if they are not spanned themselves.
if (coveredColumns.start() >= columnPos.size() - 1 && columnPos[columnPos.size() - 1] + table()->outerBorderEnd() >= damageRect.x())
- --coveredColumns.start();
+ coveredColumns.decreaseStart();
if (!coveredColumns.end() && columnPos[0] - table()->outerBorderStart() <= damageRect.maxX())
- ++coveredColumns.end();
+ coveredColumns.increaseEnd();
return coveredColumns;
}

Powered by Google App Engine
This is Rietveld 408576698