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

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

Issue 21430003: Implement interfaces in PaintInfo and make it a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@getterPaintInfo01
Patch Set: Second try Created 7 years, 5 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/RenderListMarker.cpp
diff --git a/Source/core/rendering/RenderListMarker.cpp b/Source/core/rendering/RenderListMarker.cpp
index f965338f7d8d7b7b636808581052f165f8c3fc56..c3d54c3b96595c48b420136a58a2ada45809b623 100644
--- a/Source/core/rendering/RenderListMarker.cpp
+++ b/Source/core/rendering/RenderListMarker.cpp
@@ -1125,7 +1125,7 @@ void RenderListMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffse
{
ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this);
- if (paintInfo.phase != PaintPhaseForeground)
+ if (paintInfo.getPhase() != PaintPhaseForeground)
return;
if (style()->visibility() != VISIBLE)
@@ -1134,9 +1134,9 @@ void RenderListMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffse
LayoutPoint boxOrigin(paintOffset + location());
LayoutRect overflowRect(visualOverflowRect());
overflowRect.moveBy(boxOrigin);
- overflowRect.inflate(maximalOutlineSize(paintInfo.phase));
+ overflowRect.inflate(maximalOutlineSize(paintInfo.getPhase()));
- if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect)))
+ if (!paintInfo.getRect().intersects(pixelSnappedIntRect(overflowRect)))
return;
LayoutRect box(boxOrigin, size());
@@ -1144,7 +1144,7 @@ void RenderListMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffse
IntRect marker = getRelativeMarkerRect();
marker.moveBy(roundedIntPoint(boxOrigin));
- GraphicsContext* context = paintInfo.context;
+ GraphicsContext* context = paintInfo.getContext();
if (isImage()) {
context->drawImage(m_image->image(this, marker.size()).get(), marker);

Powered by Google App Engine
This is Rietveld 408576698