diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-03 16:23:03 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-03 21:50:51 +0000 |
commit | 8afa22d5701a6c47b3f34267a2c52948efc3d301 (patch) | |
tree | eaa6e06fe2abb5c7cf09c3bd01e1ab89b5909b1f /xfa/fxfa/parser/cxfa_value.cpp | |
parent | 4f88617ad2a4d352af87b95c2f7293d12e7bd2c8 (diff) | |
download | pdfium-8afa22d5701a6c47b3f34267a2c52948efc3d301.tar.xz |
Fold CXFA_ImageData into CXFA_Image
This CL folds the CXFA_ImageData wrapper into CXFA_Image.
Change-Id: I36596abc4dff7d17dc6ee13a857a084f41164c7a
Reviewed-on: https://pdfium-review.googlesource.com/22190
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_value.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_value.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_value.cpp b/xfa/fxfa/parser/cxfa_value.cpp index bc5f9faeff..99cca777dc 100644 --- a/xfa/fxfa/parser/cxfa_value.cpp +++ b/xfa/fxfa/parser/cxfa_value.cpp @@ -9,6 +9,7 @@ #include "fxjs/xfa/cjx_value.h" #include "third_party/base/ptr_util.h" #include "xfa/fxfa/parser/cxfa_arc.h" +#include "xfa/fxfa/parser/cxfa_image.h" #include "xfa/fxfa/parser/cxfa_line.h" #include "xfa/fxfa/parser/cxfa_rectangle.h" @@ -86,6 +87,6 @@ CXFA_ExDataData CXFA_Value::GetExData() const { return CXFA_ExDataData(GetNodeItem(XFA_NODEITEM_FirstChild)); } -CXFA_ImageData CXFA_Value::GetImageData() const { - return CXFA_ImageData(GetNodeItem(XFA_NODEITEM_FirstChild)); +CXFA_Image* CXFA_Value::GetImage() const { + return static_cast<CXFA_Image*>(GetNodeItem(XFA_NODEITEM_FirstChild)); } |