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

Unified Diff: Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp

Issue 671813002: Use the stateless GC::fillRect variant when possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: minor LayerPainter update Created 6 years, 2 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/core/rendering/RenderTheme.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp
diff --git a/Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp b/Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp
index bd0c1bea06fe80a308324711d266d65343279830..71b59eb65336603223c87803fc58fc569f4cd05a 100644
--- a/Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp
+++ b/Source/platform/scroll/ScrollbarThemeNonMacCommon.cpp
@@ -116,13 +116,11 @@ void ScrollbarThemeNonMacCommon::paintTickmarks(GraphicsContext* context, Scroll
// Calculate how far down (in pixels) the tick-mark should appear.
const int yPos = rect.y() + (rect.height() * percent);
- context->setFillColor(Color(0xCC, 0xAA, 0x00, 0xFF));
FloatRect tickRect(rect.x(), yPos, rect.width(), 3);
- context->fillRect(tickRect);
+ context->fillRect(tickRect, Color(0xCC, 0xAA, 0x00, 0xFF));
- context->setFillColor(Color(0xFF, 0xDD, 0x00, 0xFF));
FloatRect tickStroke(rect.x(), yPos + 1, rect.width(), 1);
- context->fillRect(tickStroke);
+ context->fillRect(tickStroke, Color(0xFF, 0xDD, 0x00, 0xFF));
}
}
« no previous file with comments | « Source/core/rendering/RenderTheme.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698