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

Unified Diff: Source/core/rendering/RenderObject.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/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 376a739140520cab245ee520d644e3c46b0efdc8..5be6a860cee2f7ff00f0339fdaa8c9f5294b72dc 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -1112,11 +1112,11 @@ void RenderObject::drawLineForBoxSide(GraphicsContext* graphicsContext, int x1,
void RenderObject::paintFocusRing(PaintInfo& paintInfo, const LayoutPoint& paintOffset, RenderStyle* style)
{
Vector<IntRect> focusRingRects;
- addFocusRingRects(focusRingRects, paintOffset, paintInfo.paintContainer);
+ addFocusRingRects(focusRingRects, paintOffset, paintInfo.getPaintContainer());
if (style->outlineStyleIsAuto())
- paintInfo.context->drawFocusRing(focusRingRects, style->outlineWidth(), style->outlineOffset(), resolveColor(style, CSSPropertyOutlineColor));
+ paintInfo.getContext()->drawFocusRing(focusRingRects, style->outlineWidth(), style->outlineOffset(), resolveColor(style, CSSPropertyOutlineColor));
else
- addPDFURLRect(paintInfo.context, unionRect(focusRingRects));
+ addPDFURLRect(paintInfo.getContext(), unionRect(focusRingRects));
}
void RenderObject::addPDFURLRect(GraphicsContext* context, const LayoutRect& rect)
@@ -1174,7 +1174,7 @@ void RenderObject::paintOutline(PaintInfo& paintInfo, const LayoutRect& paintRec
EBorderStyle outlineStyle = styleToUse->outlineStyle();
Color outlineColor = resolveColor(styleToUse, CSSPropertyOutlineColor);
- GraphicsContext* graphicsContext = paintInfo.context;
+ GraphicsContext* graphicsContext = paintInfo.getContext();
bool useTransparencyLayer = outlineColor.hasAlpha();
if (useTransparencyLayer) {
if (outlineStyle == SOLID) {

Powered by Google App Engine
This is Rietveld 408576698