Index: Source/platform/graphics/GeneratedImage.cpp |
diff --git a/Source/platform/graphics/GeneratedImage.cpp b/Source/platform/graphics/GeneratedImage.cpp |
index 27b889be0348027bd0a13250f007cafbc98c4868..76622c43d5f3a1b656e4feeed445ab9c9cdc1154 100644 |
--- a/Source/platform/graphics/GeneratedImage.cpp |
+++ b/Source/platform/graphics/GeneratedImage.cpp |
@@ -65,9 +65,12 @@ void GeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect& |
RefPtr<Pattern> picturePattern = Pattern::createPicturePattern(tilePicture); |
picturePattern->setPatternSpaceTransform(patternTransform); |
- GraphicsContextStateSaver saver(*destContext); |
- destContext->setFillPattern(picturePattern); |
- destContext->fillRect(destRect, destContext->fillColor(), compositeOp); |
+ SkPaint fillPaint = destContext->fillPaint(); |
+ fillPaint.setShader(picturePattern->shader()); |
+ fillPaint.setColor(SK_ColorBLACK); |
+ fillPaint.setXfermodeMode(compositeOp); |
+ |
+ destContext->drawRect(destRect, fillPaint); |
} |
} // namespace blink |