summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/Image.cpp')
-rw-r--r--WebCore/platform/graphics/Image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/Image.cpp b/WebCore/platform/graphics/Image.cpp
index 6f2311c..3096680 100644
--- a/WebCore/platform/graphics/Image.cpp
+++ b/WebCore/platform/graphics/Image.cpp
@@ -81,10 +81,10 @@ void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect,
if (color.alpha() <= 0)
return;
- ctxt->save();
+ CompositeOperator previousOperator = ctxt->compositeOperation();
ctxt->setCompositeOperation(!color.hasAlpha() && op == CompositeSourceOver ? CompositeCopy : op);
ctxt->fillRect(dstRect, color, styleColorSpace);
- ctxt->restore();
+ ctxt->setCompositeOperation(previousOperator);
}
static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, Image::TileRule hRule, Image::TileRule vRule)