No need to check return value from CXFA_Graphics::GetRenderDevice(). Consequence of https://pdfium-review.googlesource.com/c/pdfium/+/48512 Change-Id: Iaf943ee8f4d5a45f75c7515d00196ee4aa0bf1c6 Reviewed-on: https://pdfium-review.googlesource.com/c/48531 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index c5aac8a..70ccd6d 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp
@@ -402,9 +402,6 @@ } CFX_RenderDevice* pRenderDev = pGraphics->GetRenderDevice(); - if (!pRenderDev) - return; - RenderText(pRenderDev, rtClip, mt); if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_CombText) {
diff --git a/xfa/fxfa/cxfa_fwltheme.cpp b/xfa/fxfa/cxfa_fwltheme.cpp index 1270025..5cb5564 100644 --- a/xfa/fxfa/cxfa_fwltheme.cpp +++ b/xfa/fxfa/cxfa_fwltheme.cpp
@@ -113,9 +113,6 @@ CXFA_Graphics* pGraphics = pParams.m_pGraphics; CFX_RenderDevice* pRenderDevice = pGraphics->GetRenderDevice(); - if (!pRenderDevice) - return; - CFX_Matrix mtPart = pParams.m_matrix; const CFX_Matrix* pMatrix = pGraphics->GetMatrix(); if (pMatrix) @@ -133,9 +130,6 @@ CXFA_Node* pNode = pWidget->GetNode(); CXFA_Graphics* pGraphics = pParams.m_pGraphics; CFX_RenderDevice* pRenderDevice = pGraphics->GetRenderDevice(); - if (!pRenderDevice) - return; - m_pTextOut->SetStyles(pParams.m_dwTTOStyles); m_pTextOut->SetAlignment(pParams.m_iTTOAlign); m_pTextOut->SetFont(pNode->GetFDEFont(pWidget->GetDoc()));