Index: Source/platform/graphics/GraphicsContext.cpp |
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp |
index 6ec5e4130dfe01f38c39a3fe0ce0de214fe7b34b..6b37c3b0551386c217b7dcf20b67a4539b0db0fe 100644 |
--- a/Source/platform/graphics/GraphicsContext.cpp |
+++ b/Source/platform/graphics/GraphicsContext.cpp |
@@ -337,10 +337,10 @@ void GraphicsContext::setShadow(const FloatSize& offset, float blur, const Color |
return; |
} |
- DrawLooper drawLooper; |
- drawLooper.addShadow(offset, blur, color, shadowTransformMode, shadowAlphaMode); |
- drawLooper.addUnmodifiedContent(); |
- setDrawLooper(drawLooper); |
+ DrawLooper::Builder drawLooperBuilder; |
+ drawLooperBuilder.addShadow(offset, blur, color, shadowTransformMode, shadowAlphaMode); |
+ drawLooperBuilder.addUnmodifiedContent(); |
+ setDrawLooper(*drawLooperBuilder.detachDrawLooper()); |
} |
void GraphicsContext::setDrawLooper(const DrawLooper& drawLooper) |
@@ -772,10 +772,10 @@ void GraphicsContext::drawInnerShadow(const RoundedRect& rect, const Color& shad |
clip(rect.rect()); |
} |
- DrawLooper drawLooper; |
- drawLooper.addShadow(shadowOffset, shadowBlur, shadowColor, |
+ DrawLooper::Builder drawLooperBuilder; |
+ drawLooperBuilder.addShadow(shadowOffset, shadowBlur, shadowColor, |
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
- setDrawLooper(drawLooper); |
+ setDrawLooper(*drawLooperBuilder.detachDrawLooper()); |
fillRectWithRoundedHole(outerRect, roundedHole, fillColor); |
restore(); |
clearDrawLooper(); |