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

Unified Diff: third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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: third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp b/third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp
index a9e5a77827f131fa4f48ba80362056b863e7a0a9..25c758da804b2fe7eae2d9c7368ad77394b51823 100644
--- a/third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp
@@ -21,7 +21,7 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
return;
}
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, paintOffset))
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, paintOffset))
return;
LayoutPoint boxOrigin(paintOffset + m_layoutDetailsMarker.location());
@@ -31,15 +31,15 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
if (!paintInfo.cullRect().intersectsCullRect(overflowRect))
return;
- LayoutObjectDrawingRecorder layoutDrawingRecorder(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, overflowRect, paintOffset);
+ LayoutObjectDrawingRecorder layoutDrawingRecorder(paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, overflowRect, paintOffset);
const Color color(m_layoutDetailsMarker.resolveColor(CSSPropertyColor));
- paintInfo.context->setStrokeColor(color);
- paintInfo.context->setStrokeStyle(SolidStroke);
- paintInfo.context->setStrokeThickness(1.0f);
- paintInfo.context->setFillColor(color);
+ paintInfo.context.setStrokeColor(color);
+ paintInfo.context.setStrokeStyle(SolidStroke);
+ paintInfo.context.setStrokeThickness(1.0f);
+ paintInfo.context.setFillColor(color);
boxOrigin.move(m_layoutDetailsMarker.borderLeft() + m_layoutDetailsMarker.paddingLeft(), m_layoutDetailsMarker.borderTop() + m_layoutDetailsMarker.paddingTop());
- paintInfo.context->fillPath(getPath(boxOrigin));
+ paintInfo.context.fillPath(getPath(boxOrigin));
}
static Path createPath(const FloatPoint* path)
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipScope.cpp ('k') | third_party/WebKit/Source/core/paint/EllipsisBoxPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698