summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_loadercontext.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-29 21:54:09 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-29 21:54:09 +0000
commit0894dc84013cd6a814136ccd40f585fc2eb895f3 (patch)
tree94c24550d43acc7f5f83e135a0a29ded680e7177 /xfa/fxfa/cxfa_loadercontext.h
parent81fcde731fe44ef5a11748536a2d6404906c80ff (diff)
downloadpdfium-0894dc84013cd6a814136ccd40f585fc2eb895f3.tar.xz
Use UnownedPtr to CXFA_Node from outside the treechromium/3477
Comment raw pointers subject to nondeterministic tree destruction order as such to avoid re-attempting to convert to the unowned mechanism. Change-Id: Ia9fe3c8a2729dc1e2b1de4a8c62ae3d2c3d7ec0a Reviewed-on: https://pdfium-review.googlesource.com/36635 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_loadercontext.h')
-rw-r--r--xfa/fxfa/cxfa_loadercontext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_loadercontext.h b/xfa/fxfa/cxfa_loadercontext.h
index 06e3f117d8..36ec95b7f3 100644
--- a/xfa/fxfa/cxfa_loadercontext.h
+++ b/xfa/fxfa/cxfa_loadercontext.h
@@ -11,6 +11,7 @@
#include "core/fxcrt/css/cfx_csscomputedstyle.h"
#include "core/fxcrt/fx_system.h"
+#include "core/fxcrt/unowned_ptr.h"
class CFX_XMLNode;
class CXFA_Node;
@@ -30,7 +31,7 @@ class CXFA_LoaderContext {
int32_t m_iTotalLines;
uint32_t m_dwFlags;
CFX_XMLNode* m_pXMLNode;
- CXFA_Node* m_pNode;
+ UnownedPtr<CXFA_Node> m_pNode;
RetainPtr<CFX_CSSComputedStyle> m_pParentStyle;
std::vector<float> m_lineHeights;
std::vector<float> m_BlocksHeight;