summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_textdata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 21:35:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 21:35:30 +0000
commitd4a4b038d694681b2eaadef9ad6c5e316c67f2e1 (patch)
treea34a733842415ca9a722c8d7901533238f3e0bd4 /xfa/fxfa/parser/cxfa_textdata.cpp
parentb8656256af8855c652415095438d5c932790a2b2 (diff)
downloadpdfium-d4a4b038d694681b2eaadef9ad6c5e316c67f2e1.tar.xz
Rename CXFA_Text to CXFA_TextData
This CL renames CXFA_Text to CXFA_TextData to show it is part of the data hierarchy. Change-Id: If60e480d0590a72b71e06c46aaef831a07f085da Reviewed-on: https://pdfium-review.googlesource.com/18015 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_textdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_textdata.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_textdata.cpp b/xfa/fxfa/parser/cxfa_textdata.cpp
new file mode 100644
index 0000000000..95e2c980dd
--- /dev/null
+++ b/xfa/fxfa/parser/cxfa_textdata.cpp
@@ -0,0 +1,15 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#include "xfa/fxfa/parser/cxfa_textdata.h"
+
+#include "xfa/fxfa/parser/cxfa_node.h"
+
+CXFA_TextData::CXFA_TextData(CXFA_Node* pNode) : CXFA_Data(pNode) {}
+
+void CXFA_TextData::GetContent(WideString& wsText) {
+ m_pNode->JSNode()->TryContent(wsText, false, true);
+}