From 45da0f2d84c97a9856492265a1fc706d04bdfccd Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 3 Jan 2018 16:39:18 -0500 Subject: Fold CXFA_FillData into CXFA_Fill This CL removes the CXFA_FillData wrapper and puts the code directly in CXFA_Fill. Change-Id: I44ae8b53978b659480a4bb32719d086c7b91b49b Reviewed-on: https://pdfium-review.googlesource.com/22210 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- fxjs/xfa/cjx_object.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'fxjs') diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp index a6ae86ef9f..81a6c2e64e 100644 --- a/fxjs/xfa/cjx_object.cpp +++ b/fxjs/xfa/cjx_object.cpp @@ -24,7 +24,7 @@ #include "xfa/fxfa/parser/cxfa_border.h" #include "xfa/fxfa/parser/cxfa_document.h" #include "xfa/fxfa/parser/cxfa_edge.h" -#include "xfa/fxfa/parser/cxfa_filldata.h" +#include "xfa/fxfa/parser/cxfa_fill.h" #include "xfa/fxfa/parser/cxfa_layoutprocessor.h" #include "xfa/fxfa/parser/cxfa_measurement.h" #include "xfa/fxfa/parser/cxfa_node.h" @@ -1339,9 +1339,8 @@ void CJX_Object::Script_Som_FillColor(CFXJSE_Value* pValue, return; CXFA_Border* border = widget_data_->GetBorder(true); - CXFA_FillData borderfillData = border->GetFillData(true); - CXFA_Node* pNode = borderfillData.GetNode(); - if (!pNode) + CXFA_Fill* borderfill = border->GetFill(true); + if (!borderfill) return; if (bSetting) { @@ -1350,11 +1349,11 @@ void CJX_Object::Script_Som_FillColor(CFXJSE_Value* pValue, int32_t b; std::tie(r, g, b) = StrToRGB(pValue->ToWideString()); FX_ARGB color = ArgbEncode(0xff, r, g, b); - borderfillData.SetColor(color); + borderfill->SetColor(color); return; } - FX_ARGB color = borderfillData.GetColor(false); + FX_ARGB color = borderfill->GetColor(false); int32_t a; int32_t r; int32_t g; -- cgit v1.2.3