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