summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-22 23:07:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-22 23:07:07 +0000
commitee0c9aa662692b14ec07d21d83c80aba8a873749 (patch)
tree41330b745ca00119e47982c33d4a80d3c731bd7e
parent98982a8aacd93769162e567cdc129a598bcbe8d9 (diff)
downloadpdfium-chromium/3531.tar.xz
Use UnownedPtr<> in CXFA_RenderContext.chromium/3531
Change-Id: I0658f63a0d8fb8a5233e135dacedc4153532f01d Reviewed-on: https://pdfium-review.googlesource.com/41112 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--xfa/fxfa/cxfa_rendercontext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_rendercontext.h b/xfa/fxfa/cxfa_rendercontext.h
index 411830d87a..9338494e7b 100644
--- a/xfa/fxfa/cxfa_rendercontext.h
+++ b/xfa/fxfa/cxfa_rendercontext.h
@@ -9,6 +9,7 @@
#include <memory>
+#include "core/fxcrt/unowned_ptr.h"
#include "xfa/fxfa/fxfa.h"
class CXFA_Graphics;
@@ -24,7 +25,7 @@ class CXFA_RenderContext {
private:
std::unique_ptr<IXFA_WidgetIterator> m_pWidgetIterator;
- CXFA_FFWidget* m_pWidget;
+ UnownedPtr<CXFA_FFWidget> m_pWidget;
CFX_Matrix m_matrix;
CFX_RectF m_rtClipRect;
};