| Index: Source/core/paint/SVGForeignObjectPainter.cpp
|
| diff --git a/Source/core/paint/SVGForeignObjectPainter.cpp b/Source/core/paint/SVGForeignObjectPainter.cpp
|
| index 5b8f622016dd17231530e3a5aa3da65cd49cbd0f..75a1c9281eb60562d426b3e5aad042efca07cd58 100644
|
| --- a/Source/core/paint/SVGForeignObjectPainter.cpp
|
| +++ b/Source/core/paint/SVGForeignObjectPainter.cpp
|
| @@ -27,9 +27,9 @@ void SVGForeignObjectPainter::paint(const PaintInfo& paintInfo)
|
| // because it can be used for clipping.
|
| m_layoutSVGForeignObject.updatePaintInfoRect(paintInfoBeforeFiltering.rect);
|
|
|
| - OwnPtr<FloatClipRecorder> clipRecorder;
|
| + FloatClipRecorder clipRecorder(*paintInfoBeforeFiltering.context, m_layoutSVGForeignObject, paintInfoBeforeFiltering.phase);
|
| if (SVGLayoutSupport::isOverflowHidden(&m_layoutSVGForeignObject))
|
| - clipRecorder = adoptPtr(new FloatClipRecorder(*paintInfoBeforeFiltering.context, m_layoutSVGForeignObject, paintInfoBeforeFiltering.phase, m_layoutSVGForeignObject.viewportRect()));
|
| + clipRecorder.begin(m_layoutSVGForeignObject.viewportRect());
|
|
|
| SVGPaintContext paintContext(m_layoutSVGForeignObject, paintInfoBeforeFiltering);
|
| bool continueRendering = true;
|
|
|