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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm

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/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
index 45df5b185689c2c858b445a0d2596966e1ca2e97..12e42f89f906db0c7afd389dcca59df407d5d9d2 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
@@ -148,7 +148,7 @@ void ScrollbarThemeMacOverlayAPI::paintTrackBackground(GraphicsContext& context,
GraphicsContextStateSaver stateSaver(context);
context.translate(rect.x(), rect.y());
- LocalCurrentGraphicsContext localContext(&context, IntRect(IntPoint(), rect.size()));
+ LocalCurrentGraphicsContext localContext(context, IntRect(IntPoint(), rect.size()));
CGRect frameRect = scrollbar.frameRect();
ScrollbarPainter scrollbarPainter = painterForScrollbar(scrollbar);
@@ -171,7 +171,7 @@ void ScrollbarThemeMacOverlayAPI::paintThumb(GraphicsContext& context, const Scr
GraphicsContextStateSaver stateSaver(context);
context.translate(rect.x(), rect.y());
- LocalCurrentGraphicsContext localContext(&context, IntRect(IntPoint(), rect.size()));
+ LocalCurrentGraphicsContext localContext(context, IntRect(IntPoint(), rect.size()));
ScrollbarPainter scrollbarPainter = painterForScrollbar(scrollbar);
[scrollbarPainter setEnabled:scrollbar.enabled()];

Powered by Google App Engine
This is Rietveld 408576698