Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index 6e65f69ea36471d80e30018b2115098f56be64ee..5188f91459654dfd29dd8c9480edc10854cbbd90 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -42,7 +42,7 @@ |
#include "core/rendering/compositing/RenderLayerCompositor.h" |
#include "core/rendering/style/ShadowList.h" |
#include "platform/geometry/TransformState.h" |
-#include "platform/graphics/DrawLooper.h" |
+#include "platform/graphics/DrawLooperBuilder.h" |
#include "platform/graphics/GraphicsContextStateSaver.h" |
#include "platform/graphics/Path.h" |
#include "wtf/CurrentTime.h" |
@@ -477,7 +477,7 @@ static void applyBoxShadowForBackground(GraphicsContext* context, const RenderOb |
continue; |
FloatSize shadowOffset(boxShadow.x(), boxShadow.y()); |
context->setShadow(shadowOffset, boxShadow.blur(), boxShadow.color(), |
- DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
+ DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha); |
return; |
} |
} |
@@ -2526,10 +2526,10 @@ void RenderBoxModelObject::paintBoxShadow(const PaintInfo& info, const LayoutRec |
} |
// Draw only the shadow. |
- DrawLooper drawLooper; |
- drawLooper.addShadow(shadowOffset, shadowBlur, shadowColor, |
- DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
- context->setDrawLooper(drawLooper); |
+ OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create(); |
+ drawLooperBuilder->addShadow(shadowOffset, shadowBlur, shadowColor, |
+ DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha); |
+ context->setDrawLooper(drawLooperBuilder.release()); |
if (hasBorderRadius) { |
RoundedRect influenceRect(pixelSnappedIntRect(LayoutRect(shadowRect)), border.radii()); |