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

Unified Diff: Source/core/page/FrameView.cpp

Issue 14550002: Making GraphicsContext the owner of PlatformContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the Windows build. Created 7 years, 8 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
Index: Source/core/page/FrameView.cpp
diff --git a/Source/core/page/FrameView.cpp b/Source/core/page/FrameView.cpp
index 4757b48ee2ac59f7965506ae8056467552c12dfd..ff25a76918c6ab63d675c228822ca9dd3ae8d1b1 100644
--- a/Source/core/page/FrameView.cpp
+++ b/Source/core/page/FrameView.cpp
@@ -2990,8 +2990,7 @@ void FrameView::paintControlTints()
{
if (needsLayout())
layout();
- PlatformGraphicsContext* const noContext = 0;
- GraphicsContext context(noContext);
+ GraphicsContext context(0); // NULL canvas to get a non-painting context.
jamesr 2013/04/29 23:56:17 woah, so this does a "paint" just to update random
context.setUpdatingControlTints(true);
paint(&context, frameRect());
}

Powered by Google App Engine
This is Rietveld 408576698