summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_boxdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_boxdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_boxdata.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/cxfa_boxdata.cpp b/xfa/fxfa/parser/cxfa_boxdata.cpp
index b8a82c2b80..8f2674cda0 100644
--- a/xfa/fxfa/parser/cxfa_boxdata.cpp
+++ b/xfa/fxfa/parser/cxfa_boxdata.cpp
@@ -21,7 +21,7 @@ std::vector<CXFA_StrokeData> GetStrokesInternal(CXFA_Node* pNode, bool bNull) {
int32_t i, j;
for (i = 0, j = 0; i < 4; i++) {
CXFA_CornerData cornerData = CXFA_CornerData(
- pNode->JSNode()->GetProperty(i, XFA_Element::Corner, i == 0));
+ pNode->JSObject()->GetProperty(i, XFA_Element::Corner, i == 0));
if (cornerData.HasValidNode() || i == 0) {
strokes[j] = cornerData;
} else if (!bNull) {
@@ -32,7 +32,7 @@ std::vector<CXFA_StrokeData> GetStrokesInternal(CXFA_Node* pNode, bool bNull) {
}
j++;
CXFA_EdgeData edgeData = CXFA_EdgeData(
- pNode->JSNode()->GetProperty(i, XFA_Element::Edge, i == 0));
+ pNode->JSObject()->GetProperty(i, XFA_Element::Edge, i == 0));
if (edgeData.HasValidNode() || i == 0) {
strokes[j] = edgeData;
} else if (!bNull) {
@@ -79,13 +79,13 @@ static XFA_AttributeEnum Style3D(const std::vector<CXFA_StrokeData>& strokes,
XFA_AttributeEnum CXFA_BoxData::GetHand() const {
if (!m_pNode)
return XFA_AttributeEnum::Even;
- return m_pNode->JSNode()->GetEnum(XFA_Attribute::Hand);
+ return m_pNode->JSObject()->GetEnum(XFA_Attribute::Hand);
}
XFA_AttributeEnum CXFA_BoxData::GetPresence() const {
if (!m_pNode)
return XFA_AttributeEnum::Hidden;
- return m_pNode->JSNode()
+ return m_pNode->JSObject()
->TryEnum(XFA_Attribute::Presence, true)
.value_or(XFA_AttributeEnum::Visible);
}
@@ -97,7 +97,7 @@ int32_t CXFA_BoxData::CountEdges() const {
}
CXFA_EdgeData CXFA_BoxData::GetEdgeData(int32_t nIndex) const {
- return CXFA_EdgeData(m_pNode ? m_pNode->JSNode()->GetProperty(
+ return CXFA_EdgeData(m_pNode ? m_pNode->JSObject()->GetProperty(
nIndex, XFA_Element::Edge, nIndex == 0)
: nullptr);
}
@@ -109,19 +109,19 @@ std::vector<CXFA_StrokeData> CXFA_BoxData::GetStrokes() const {
bool CXFA_BoxData::IsCircular() const {
if (!m_pNode)
return false;
- return m_pNode->JSNode()->GetBoolean(XFA_Attribute::Circular);
+ return m_pNode->JSObject()->GetBoolean(XFA_Attribute::Circular);
}
pdfium::Optional<int32_t> CXFA_BoxData::GetStartAngle() const {
if (!m_pNode)
return {};
- return m_pNode->JSNode()->TryInteger(XFA_Attribute::StartAngle, false);
+ return m_pNode->JSObject()->TryInteger(XFA_Attribute::StartAngle, false);
}
pdfium::Optional<int32_t> CXFA_BoxData::GetSweepAngle() const {
if (!m_pNode)
return {};
- return m_pNode->JSNode()->TryInteger(XFA_Attribute::SweepAngle, false);
+ return m_pNode->JSObject()->TryInteger(XFA_Attribute::SweepAngle, false);
}
CXFA_FillData CXFA_BoxData::GetFillData(bool bModified) const {
@@ -129,7 +129,7 @@ CXFA_FillData CXFA_BoxData::GetFillData(bool bModified) const {
return CXFA_FillData(nullptr);
CXFA_Node* pFillNode =
- m_pNode->JSNode()->GetProperty(0, XFA_Element::Fill, bModified);
+ m_pNode->JSObject()->GetProperty(0, XFA_Element::Fill, bModified);
return CXFA_FillData(pFillNode);
}