summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/pdfwindow/PWL_Signature.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-11 14:00:52 -0700
committerLei Zhang <thestig@chromium.org>2015-06-11 14:00:52 -0700
commitcf2e4c3ecc2a66f0a01e6a1d8c20dcb73e4b8024 (patch)
treedbe0f7d7435d7abb7a939b8ce0e0745e198ee8b1 /fpdfsdk/src/pdfwindow/PWL_Signature.cpp
parent864773a57a54763b97bef7d38f65375b15c14437 (diff)
downloadpdfium-cf2e4c3ecc2a66f0a01e6a1d8c20dcb73e4b8024.tar.xz
Remove trailing whitespaces in fpdfsdk.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1173343004.
Diffstat (limited to 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp')
-rw-r--r--fpdfsdk/src/pdfwindow/PWL_Signature.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_Signature.cpp b/fpdfsdk/src/pdfwindow/PWL_Signature.cpp
index 4864cabc11..76b2bd333a 100644
--- a/fpdfsdk/src/pdfwindow/PWL_Signature.cpp
+++ b/fpdfsdk/src/pdfwindow/PWL_Signature.cpp
@@ -1,7 +1,7 @@
// Copyright 2014 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 "../../include/pdfwindow/PDFWindow.h"
@@ -42,7 +42,7 @@ void CPWL_Signature_Image::DrawThisAppearance(CFX_RenderDevice* pDevice, CPDF_Ma
FX_FLOAT x, y;
pUser2Device->Transform(rcClient.left, rcClient.top, x, y);
- pDevice->StretchDIBits(m_pImage, (int32_t)x, (int32_t)y,
+ pDevice->StretchDIBits(m_pImage, (int32_t)x, (int32_t)y,
(int32_t)rcClient.Width(), (int32_t)rcClient.Height());
}
}
@@ -61,12 +61,12 @@ void CPWL_Signature_Image::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale)
CPDF_Rect rcClient = GetClientRect();
fHScale = rcClient.Width() / fImageW;
- fVScale = rcClient.Height() / fImageH;
+ fVScale = rcClient.Height() / fImageH;
}
/* --------------------------------- CPWL_Signature --------------------------------- */
-CPWL_Signature::CPWL_Signature() :
+CPWL_Signature::CPWL_Signature() :
m_pText(NULL),
m_pDescription(NULL),
m_pImage(NULL),
@@ -136,7 +136,7 @@ void CPWL_Signature::RePosChildWnd()
CPDF_Rect rcDescription = rcClient;
FX_BOOL bTextVisible = m_bTextExist && m_pText->GetText().GetLength() > 0;
-
+
if ((bTextVisible || m_bImageExist) &&
m_pDescription->GetText().GetLength() > 0)
{
@@ -202,11 +202,11 @@ void CPWL_Signature::DrawThisAppearance(CFX_RenderDevice* pDevice, CPDF_Matrix*
path.SetPoint(1, rcClient.right, (rcClient.top + rcClient.bottom) * 0.5f, FXPT_LINETO);
CFX_GraphStateData gsd;
- gsd.SetDashCount(2);
+ gsd.SetDashCount(2);
gsd.m_DashArray[0] = 6.0f;
gsd.m_DashArray[1] = 6.0f;
- gsd.m_DashPhase = 0;
-
+ gsd.m_DashPhase = 0;
+
gsd.m_LineWidth = 10.0f;
pDevice->DrawPath(&path, pUser2Device, &gsd, 0, ArgbEncode(255,255,0,0), FXFILL_ALTERNATE);
*/