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

Unified Diff: Source/core/paint/TableRowPainter.cpp

Issue 716023002: Paint code cleanup: remove unnecessary indirections through the Render* code in several cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/paint/TablePainter.cpp ('k') | Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/TableRowPainter.cpp
diff --git a/Source/core/paint/TableRowPainter.cpp b/Source/core/paint/TableRowPainter.cpp
index add065f6d179369ae9e963fac23cfae2129ce1cb..e840f4f8f6a500f0ba8818ab4a7459b08622abca 100644
--- a/Source/core/paint/TableRowPainter.cpp
+++ b/Source/core/paint/TableRowPainter.cpp
@@ -5,6 +5,7 @@
#include "config.h"
#include "core/paint/TableRowPainter.h"
+#include "core/paint/ObjectPainter.h"
#include "core/rendering/GraphicsContextAnnotator.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderTableCell.h"
@@ -32,7 +33,7 @@ void TableRowPainter::paintOutlineForRowIfNeeded(PaintInfo& paintInfo, const Lay
LayoutPoint adjustedPaintOffset = paintOffset + m_renderTableRow.location();
PaintPhase paintPhase = paintInfo.phase;
if ((paintPhase == PaintPhaseOutline || paintPhase == PaintPhaseSelfOutline) && m_renderTableRow.style()->visibility() == VISIBLE)
- m_renderTableRow.paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, m_renderTableRow.size()));
+ ObjectPainter(m_renderTableRow).paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, m_renderTableRow.size()));
}
} // namespace blink
« no previous file with comments | « Source/core/paint/TablePainter.cpp ('k') | Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698