summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 18:40:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 18:40:35 +0000
commit50132e522702dd016b83ed12e91d065357fe0b59 (patch)
treec766cd59b00885c8dd38b1e0ff2ba9e9ebde5c85 /fxjs
parente0d68541163e34cc61fcb7e7cb9f5a9887f45245 (diff)
downloadpdfium-50132e522702dd016b83ed12e91d065357fe0b59.tar.xz
Rename CXFA_Border to CXFA_BorderData
This CL renames CXFA_Border to CXFA_BorderData to make it clear it's part of the Data hierarchy. Change-Id: Icfe8dc07d527ba54413f073f5a444fb7b2a71271 Reviewed-on: https://pdfium-review.googlesource.com/17974 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjx_node.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp
index c710d31812..224d295755 100644
--- a/fxjs/cjx_node.cpp
+++ b/fxjs/cjx_node.cpp
@@ -1528,8 +1528,8 @@ void CJX_Node::Script_Som_BorderColor(CFXJSE_Value* pValue,
if (!pWidgetData) {
return;
}
- CXFA_Border border = pWidgetData->GetBorder(true);
- int32_t iSize = border.CountEdges();
+ CXFA_BorderData borderData = pWidgetData->GetBorderData(true);
+ int32_t iSize = borderData.CountEdges();
if (bSetting) {
int32_t r = 0;
int32_t g = 0;
@@ -1537,11 +1537,11 @@ void CJX_Node::Script_Som_BorderColor(CFXJSE_Value* pValue,
StrToRGB(pValue->ToWideString(), r, g, b);
FX_ARGB rgb = ArgbEncode(100, r, g, b);
for (int32_t i = 0; i < iSize; ++i) {
- CXFA_Edge edge = border.GetEdge(i);
+ CXFA_Edge edge = borderData.GetEdge(i);
edge.SetColor(rgb);
}
} else {
- CXFA_Edge edge = border.GetEdge(0);
+ CXFA_Edge edge = borderData.GetEdge(0);
FX_ARGB color = edge.GetColor();
int32_t a;
int32_t r;
@@ -1561,18 +1561,18 @@ void CJX_Node::Script_Som_BorderWidth(CFXJSE_Value* pValue,
if (!pWidgetData) {
return;
}
- CXFA_Border border = pWidgetData->GetBorder(true);
- int32_t iSize = border.CountEdges();
+ CXFA_BorderData borderData = pWidgetData->GetBorderData(true);
+ int32_t iSize = borderData.CountEdges();
WideString wsThickness;
if (bSetting) {
wsThickness = pValue->ToWideString();
for (int32_t i = 0; i < iSize; ++i) {
- CXFA_Edge edge = border.GetEdge(i);
+ CXFA_Edge edge = borderData.GetEdge(i);
CXFA_Measurement thickness(wsThickness.AsStringView());
edge.SetMSThickness(thickness);
}
} else {
- CXFA_Edge edge = border.GetEdge(0);
+ CXFA_Edge edge = borderData.GetEdge(0);
CXFA_Measurement thickness = edge.GetMSThickness();
thickness.ToString(&wsThickness);
pValue->SetString(wsThickness.UTF8Encode().AsStringView());
@@ -1586,8 +1586,8 @@ void CJX_Node::Script_Som_FillColor(CFXJSE_Value* pValue,
if (!pWidgetData) {
return;
}
- CXFA_Border border = pWidgetData->GetBorder(true);
- CXFA_Fill borderfill = border.GetFill(true);
+ CXFA_BorderData borderData = pWidgetData->GetBorderData(true);
+ CXFA_Fill borderfill = borderData.GetFill(true);
CXFA_Node* pNode = borderfill.GetNode();
if (!pNode) {
return;