| Index: Source/core/paint/EmbeddedObjectPainter.cpp
|
| diff --git a/Source/core/paint/EmbeddedObjectPainter.cpp b/Source/core/paint/EmbeddedObjectPainter.cpp
|
| index 86a3490c710e6ebfe16ce8c29566999145f7ac33..8dd5c5bc11ca175a8a1fe3f24088692756a54064 100644
|
| --- a/Source/core/paint/EmbeddedObjectPainter.cpp
|
| +++ b/Source/core/paint/EmbeddedObjectPainter.cpp
|
| @@ -44,12 +44,12 @@ void EmbeddedObjectPainter::paintReplaced(const PaintInfo& paintInfo, const Layo
|
| return;
|
|
|
| GraphicsContext* context = paintInfo.context;
|
| + if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, m_layoutEmbeddedObject, paintInfo.phase))
|
| + return;
|
| +
|
| FloatRect contentRect = m_layoutEmbeddedObject.contentBoxRect();
|
| contentRect.moveBy(roundedIntPoint(paintOffset));
|
| LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutEmbeddedObject, paintInfo.phase, contentRect);
|
| - if (drawingRecorder.canUseCachedDrawing())
|
| - return;
|
| -
|
| GraphicsContextStateSaver stateSaver(*context);
|
| context->clip(contentRect);
|
|
|
|
|