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

Unified Diff: third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.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/RoundedInnerRectClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp b/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
index 2de30e765fd5719aba9d568e970adc3ac262a609..d843959ff3585deba0df035ef86e0b7a8dc92eb3 100644
--- a/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
@@ -49,10 +49,10 @@ RoundedInnerRectClipper::RoundedInnerRectClipper(const LayoutObject& layoutObjec
}
if (m_usePaintController) {
- m_paintInfo.context->paintController().createAndAppend<ClipDisplayItem>(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips);
+ m_paintInfo.context.paintController().createAndAppend<ClipDisplayItem>(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips);
} else {
ClipDisplayItem clipDisplayItem(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips);
- clipDisplayItem.replay(*paintInfo.context);
+ clipDisplayItem.replay(paintInfo.context);
}
}
@@ -60,10 +60,10 @@ RoundedInnerRectClipper::~RoundedInnerRectClipper()
{
DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_clipType);
if (m_usePaintController) {
- m_paintInfo.context->paintController().endItem<EndClipDisplayItem>(m_layoutObject, endType);
+ m_paintInfo.context.paintController().endItem<EndClipDisplayItem>(m_layoutObject, endType);
} else {
EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType);
- endClipDisplayItem.replay(*m_paintInfo.context);
+ endClipDisplayItem.replay(m_paintInfo.context);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/ReplacedPainter.cpp ('k') | third_party/WebKit/Source/core/paint/SVGClipPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698