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

Unified Diff: third_party/WebKit/WebCore/platform/graphics/chromium/TransparencyWin.cpp

Issue 46097: WebKit merge 41660:41709 (WebKit side).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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: third_party/WebKit/WebCore/platform/graphics/chromium/TransparencyWin.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/chromium/TransparencyWin.cpp (revision 11711)
+++ third_party/WebKit/WebCore/platform/graphics/chromium/TransparencyWin.cpp (working copy)
@@ -157,10 +157,18 @@
TransparencyWin::~TransparencyWin()
{
+ // This should be false, since calling composite() is mandatory.
+ ASSERT(!m_savedOnDrawContext);
+}
+
+void TransparencyWin::composite()
+{
// Matches the save() in initializeNewTextContext (or the constructor for
// SCALE) to put the context back into the same state we found it.
- if (m_savedOnDrawContext)
+ if (m_savedOnDrawContext) {
m_drawContext->restore();
+ m_savedOnDrawContext = false;
+ }
switch (m_layerMode) {
case NoLayer:
@@ -178,7 +186,8 @@
void TransparencyWin::init(GraphicsContext* dest,
LayerMode layerMode,
TransformMode transformMode,
- const IntRect& region) {
+ const IntRect& region)
+{
m_destContext = dest;
m_orgTransform = dest->getCTM();
m_layerMode = layerMode;

Powered by Google App Engine
This is Rietveld 408576698