From aa5769a417251214d1a8b3ebb5153a9251f50448 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 16 Aug 2018 21:22:42 +0000 Subject: Replace optional bool bDrawFocus with enum type. Change-Id: Ide4a972337afaf346e46edc4ede48140cd4544c1 Reviewed-on: https://pdfium-review.googlesource.com/40390 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- xfa/fxfa/cxfa_rendercontext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fxfa/cxfa_rendercontext.cpp') diff --git a/xfa/fxfa/cxfa_rendercontext.cpp b/xfa/fxfa/cxfa_rendercontext.cpp index 6667d46068..f8c59c9b8d 100644 --- a/xfa/fxfa/cxfa_rendercontext.cpp +++ b/xfa/fxfa/cxfa_rendercontext.cpp @@ -26,7 +26,8 @@ CXFA_RenderContext::~CXFA_RenderContext() {} void CXFA_RenderContext::DoRender(CXFA_Graphics* gs) { while (m_pWidget) { - CFX_RectF rtWidgetBox = m_pWidget->GetBBox(XFA_WidgetStatus_Visible); + CFX_RectF rtWidgetBox = m_pWidget->GetBBox(XFA_WidgetStatus_Visible, + CXFA_FFWidget::kDoNotDrawFocus); rtWidgetBox.width += 1; rtWidgetBox.height += 1; if (rtWidgetBox.IntersectWith(m_rtClipRect)) -- cgit v1.2.3