Chromium Code Reviews| 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()]; |