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

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

Issue 588483002: GridPainter::paintChild should take RenderBox reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to the latest 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
« no previous file with comments | « Source/core/paint/GridPainter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/GridPainter.cpp
diff --git a/Source/core/paint/GridPainter.cpp b/Source/core/paint/GridPainter.cpp
index fdc690a20b250a59ca14d8bd433d8fb2f6d5e56f..d9e2bffd10f2fb98cebe2df7fc9920fba08421cd 100644
--- a/Source/core/paint/GridPainter.cpp
+++ b/Source/core/paint/GridPainter.cpp
@@ -74,16 +74,16 @@ void GridPainter::paintChildren(PaintInfo& paintInfo, const LayoutPoint& paintOf
if (current == previous)
continue;
- paintChild(current, paintInfo, paintOffset);
+ paintChild(*current, paintInfo, paintOffset);
previous = current;
}
}
-void GridPainter::paintChild(RenderBox* child, PaintInfo& paintInfo, const LayoutPoint& paintOffset)
+void GridPainter::paintChild(RenderBox& child, PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
- LayoutPoint childPoint = m_renderGrid.flipForWritingModeForChild(child, paintOffset);
- if (!child->hasSelfPaintingLayer() && !child->isFloating())
- child->paint(paintInfo, childPoint);
+ LayoutPoint childPoint = m_renderGrid.flipForWritingModeForChild(&child, paintOffset);
+ if (!child.hasSelfPaintingLayer() && !child.isFloating())
+ child.paint(paintInfo, childPoint);
}
} // namespace blink
« no previous file with comments | « Source/core/paint/GridPainter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698