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

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

Issue 550363004: Factor painting code out of RenderBox into a new class called BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Created 6 years, 3 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/RenderTable.cpp
diff --git a/Source/core/rendering/RenderTable.cpp b/Source/core/rendering/RenderTable.cpp
index e898b39388d5d85afff9b84b00c13d4d2e778ed9..b4351f507b718c74625bd21a8a748be93238c723 100644
--- a/Source/core/rendering/RenderTable.cpp
+++ b/Source/core/rendering/RenderTable.cpp
@@ -65,6 +65,7 @@ RenderTable::RenderTable(Element* element)
, m_vSpacing(0)
, m_borderStart(0)
, m_borderEnd(0)
+ , m_boxPainter(*this)
{
ASSERT(!childrenInline());
m_columnPos.fill(0, 1);
@@ -709,7 +710,7 @@ void RenderTable::paintBoxDecorationBackground(PaintInfo& paintInfo, const Layou
LayoutRect rect(paintOffset, size());
subtractCaptionRect(rect);
- paintBoxDecorationBackgroundWithRect(paintInfo, paintOffset, rect);
+ m_boxPainter.paintBoxDecorationBackgroundWithRect(paintInfo, paintOffset, rect);
}
void RenderTable::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
@@ -720,7 +721,7 @@ void RenderTable::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset
LayoutRect rect(paintOffset, size());
subtractCaptionRect(rect);
- paintMaskImages(paintInfo, rect);
+ m_boxPainter.paintMaskImages(paintInfo, rect);
}
void RenderTable::computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const

Powered by Google App Engine
This is Rietveld 408576698