CurrentRenderFlowThreadMaintainer(RenderFlowThread* renderFlowThread) : m_renderFlowThread(renderFlowThread) { RenderView* view = m_renderFlowThread->view(); ASSERT(!view->currentRenderFlowThread()); view->setCurrentRenderFlowThread(m_renderFlowThread); }
~CurrentRenderFlowThreadMaintainer() { RenderView* view = m_renderFlowThread->view(); ASSERT(view->currentRenderFlowThread() == m_renderFlowThread); view->setCurrentRenderFlowThread(0); }