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

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

Issue 488353003: Specify clip rects when drawing Mac native widgets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
diff --git a/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm b/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
index db6794289f822d3d9b06432c67b173096129ba1e..83e6750298c1b686ea71b30d6a89d111a2c696c1 100644
--- a/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
+++ b/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm
@@ -89,7 +89,7 @@ void ScrollbarThemeMacOverlayAPI::paintTrackBackground(GraphicsContext* context,
GraphicsContextStateSaver stateSaver(*context);
context->translate(rect.x(), rect.y());
- LocalCurrentGraphicsContext localContext(context);
+ LocalCurrentGraphicsContext localContext(context, IntRect(0, 0, rect.width(), rect.height()));
eseidel 2014/08/21 05:13:04 IntRect(IntPoint(), rect.size()) works too.
ccameron 2014/08/21 08:50:38 Done.
CGRect frameRect = scrollbar->frameRect();
ScrollbarPainter scrollbarPainter = painterForScrollbar(scrollbar);
@@ -105,7 +105,7 @@ void ScrollbarThemeMacOverlayAPI::paintThumb(GraphicsContext* context, Scrollbar
GraphicsContextStateSaver stateSaver(*context);
context->translate(rect.x(), rect.y());
- LocalCurrentGraphicsContext localContext(context);
+ LocalCurrentGraphicsContext localContext(context, IntRect(0, 0, rect.width(), rect.height()));
ScrollbarPainter scrollbarPainter = painterForScrollbar(scrollbar);
[scrollbarPainter setEnabled:scrollbar->enabled()];
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698