diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-14 15:03:20 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-14 19:57:00 +0000 |
commit | 2d03e604b3979db45f6f2ea8c00c8d7fe0790790 (patch) | |
tree | ca8dd7b7115e66b5e72c1367cb5ddb6923b9dc7c /xfa/fwl | |
parent | c068c8e1ac5d41ace2a89827601669e8b573ef48 (diff) | |
download | pdfium-2d03e604b3979db45f6f2ea8c00c8d7fe0790790.tar.xz |
Cleaning up the visual set iterator
This CL starts cleaning up the visual set iterator code.
Change-Id: I643dc9edeeb0c7ff06ccd34a1977f811675413d8
Reviewed-on: https://pdfium-review.googlesource.com/10615
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r-- | xfa/fwl/cfwl_edit.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index a261041534..fe4b9dad0c 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -567,12 +567,11 @@ void CFWL_Edit::DrawContent(CXFA_Graphics* pGraphics, if (!pRenderDev) return; - auto pRenderDevice = pdfium::MakeUnique<CFDE_RenderDevice>(pRenderDev); - pRenderDevice->SetClipRect(rtClip); + CFDE_RenderDevice renderDevice(pRenderDev); + renderDevice.SetClipRect(rtClip); - auto pRenderContext = pdfium::MakeUnique<CFDE_RenderContext>(); - pRenderContext->StartRender(pRenderDevice.get(), pPage, mt); - pRenderContext->DoRender(); + CFDE_RenderContext renderContext(&renderDevice); + renderContext.Render(pPage, mt); if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_CombText) { pGraphics->RestoreGraphState(); |