diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-30 21:29:11 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-30 21:29:11 +0000 |
commit | c40c5aa2d7f1753dd382c35955deafdaca660020 (patch) | |
tree | b427f5516046d40b8dd63f8c7a552fac0bf278ae /xfa/fxfa/fxfa_basic.h | |
parent | 9daec60824d085db8c2f841fd389c725df1f8b0b (diff) | |
download | pdfium-c40c5aa2d7f1753dd382c35955deafdaca660020.tar.xz |
A CXFA_Node can only be in one packet
When a CXFA_Node is created it's created as part of a specific packet.
Previously the code would accept an XFA_XDPPACKET which was stored
internally. This had the potential to allow a node to exist in multiple
packets.
This CL changes the XFA_XDPPacket to the XFA_PacketType enum class and
cleans up a lot of uses to use the more specific packet type.
Change-Id: I7fc8c843bfa6bd32295ae58a26bcec311e43c4b0
Reviewed-on: https://pdfium-review.googlesource.com/20012
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fxfa_basic.h')
-rw-r--r-- | xfa/fxfa/fxfa_basic.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fxfa/fxfa_basic.h b/xfa/fxfa/fxfa_basic.h index 1f79608ff8..f4d3383ae8 100644 --- a/xfa/fxfa/fxfa_basic.h +++ b/xfa/fxfa/fxfa_basic.h @@ -86,9 +86,7 @@ enum XFA_XDPPACKET { XFA_XDPPACKET_Stylesheet = 1 << static_cast<uint8_t>(XFA_PacketType::Stylesheet), XFA_XDPPACKET_USER = 1 << static_cast<uint8_t>(XFA_PacketType::User), - XFA_XDPPACKET_XDP = 1 << static_cast<uint8_t>(XFA_PacketType::Xdp), - - XFA_XDPPACKET_LAST = XFA_XDPPACKET_ConnectionSet + 1 + XFA_XDPPACKET_XDP = 1 << static_cast<uint8_t>(XFA_PacketType::Xdp) }; enum XFA_XDPPACKET_FLAGS { |