Reuse buffer allocation if canvas size does not change
[WebKit-https.git] / Source / WebCore / html / canvas / CanvasRenderingContext2D.cpp
index 279b2a1c309275a8499cd2dd8ac29153316b51b2..8b26574749a77571669bffbc107f60819ca69981 100644 (file)
@@ -161,11 +161,6 @@ void CanvasRenderingContext2D::reset()
     m_stateStack.resize(1);
     m_stateStack.first() = State();
     m_path.clear();
-#if USE(ACCELERATED_COMPOSITING)
-    RenderBox* renderBox = canvas()->renderBox();
-    if (renderBox && renderBox->hasLayer() && renderBox->layer()->hasAcceleratedCompositing())
-        renderBox->layer()->contentChanged(RenderLayer::CanvasChanged);
-#endif
 }
 
 CanvasRenderingContext2D::State::State()