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

Unified Diff: Source/web/WebPluginContainerImpl.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/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginContainerImpl.cpp
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
index fffd48cf4cbf216aa12cf937684e57d8db5d9501..2767e099afb066e394f33bfdca1e4133ba2e1bd9 100644
--- a/Source/web/WebPluginContainerImpl.cpp
+++ b/Source/web/WebPluginContainerImpl.cpp
@@ -662,11 +662,9 @@ void WebPluginContainerImpl::willEndLiveResize()
bool WebPluginContainerImpl::paintCustomOverhangArea(GraphicsContext* context, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect)
{
- context->save();
- context->setFillColor(Color(0xCC, 0xCC, 0xCC));
- context->fillRect(intersection(horizontalOverhangArea, dirtyRect));
- context->fillRect(intersection(verticalOverhangArea, dirtyRect));
- context->restore();
+ Color fillColor(0xCC, 0xCC, 0xCC);
+ context->fillRect(intersection(horizontalOverhangArea, dirtyRect), fillColor);
+ context->fillRect(intersection(verticalOverhangArea, dirtyRect), fillColor);
return true;
}
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698