| Index: Source/core/rendering/RenderBoxModelObject.cpp
|
| diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp
|
| index 87dd6e395aa6222e2636f232c66f3b5ab71d4a9b..6cb9d71692dbfc4bdb4ff4b268b9309637a62471 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/DrawLooperBuilder.h"
|
| +#include "platform/graphics/DrawLooper.h"
|
| #include "platform/graphics/GraphicsContextStateSaver.h"
|
| #include "platform/graphics/Path.h"
|
| #include "wtf/CurrentTime.h"
|
| @@ -477,7 +477,7 @@
|
| continue;
|
| FloatSize shadowOffset(boxShadow.x(), boxShadow.y());
|
| context->setShadow(shadowOffset, boxShadow.blur(), boxShadow.color(),
|
| - DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha);
|
| + DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
|
| return;
|
| }
|
| }
|
| @@ -2512,10 +2512,10 @@
|
| }
|
|
|
| // Draw only the shadow.
|
| - OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create();
|
| - drawLooperBuilder->addShadow(shadowOffset, shadowBlur, shadowColor,
|
| - DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha);
|
| - context->setDrawLooper(drawLooperBuilder.release());
|
| + DrawLooper drawLooper;
|
| + drawLooper.addShadow(shadowOffset, shadowBlur, shadowColor,
|
| + DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
|
| + context->setDrawLooper(drawLooper);
|
|
|
| if (hasBorderRadius) {
|
| RoundedRect influenceRect(pixelSnappedIntRect(LayoutRect(shadowRect)), border.radii());
|
|
|