summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_margin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_margin.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_margin.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/xfa/fxfa/parser/cxfa_margin.cpp b/xfa/fxfa/parser/cxfa_margin.cpp
deleted file mode 100644
index e3153f2671..0000000000
--- a/xfa/fxfa/parser/cxfa_margin.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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_margin.h"
-
-CXFA_Margin::CXFA_Margin(CXFA_Node* pNode) : CXFA_Data(pNode) {}
-
-bool CXFA_Margin::GetLeftInset(float& fInset, float fDefInset) const {
- fInset = fDefInset;
- return TryMeasure(XFA_ATTRIBUTE_LeftInset, fInset);
-}
-
-bool CXFA_Margin::GetTopInset(float& fInset, float fDefInset) const {
- fInset = fDefInset;
- return TryMeasure(XFA_ATTRIBUTE_TopInset, fInset);
-}
-
-bool CXFA_Margin::GetRightInset(float& fInset, float fDefInset) const {
- fInset = fDefInset;
- return TryMeasure(XFA_ATTRIBUTE_RightInset, fInset);
-}
-
-bool CXFA_Margin::GetBottomInset(float& fInset, float fDefInset) const {
- fInset = fDefInset;
- return TryMeasure(XFA_ATTRIBUTE_BottomInset, fInset);
-}