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

Unified Diff: third_party/WebKit/Source/core/paint/ClipScope.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/ClipScope.cpp
diff --git a/third_party/WebKit/Source/core/paint/ClipScope.cpp b/third_party/WebKit/Source/core/paint/ClipScope.cpp
index 7951cadb1730cc943fda120bff1ce3d6e7d182de..810f574b5c941de9f06f5e491578cc8edb43f8f8 100644
--- a/third_party/WebKit/Source/core/paint/ClipScope.cpp
+++ b/third_party/WebKit/Source/core/paint/ClipScope.cpp
@@ -13,14 +13,14 @@ namespace blink {
ClipScope::~ClipScope()
{
for (int i = 0; i < m_clipCount; i++) {
- m_context->restore();
+ m_context.restore();
}
}
void ClipScope::clip(const LayoutRect& clipRect, SkRegion::Op operation)
{
- m_context->save();
- m_context->clipRect(pixelSnappedIntRect(clipRect), NotAntiAliased, operation);
+ m_context.save();
+ m_context.clipRect(pixelSnappedIntRect(clipRect), NotAntiAliased, operation);
m_clipCount++;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipScope.h ('k') | third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698