| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "fpdfsdk/fxedit/include/fxet_edit.h" | 7 #include "fpdfsdk/fxedit/include/fxet_edit.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 // static | 815 // static |
| 816 void CFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, | 816 void CFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, |
| 817 CFX_Matrix* pUser2Device, | 817 CFX_Matrix* pUser2Device, |
| 818 CFX_Edit* pEdit, | 818 CFX_Edit* pEdit, |
| 819 FX_COLORREF crTextFill, | 819 FX_COLORREF crTextFill, |
| 820 FX_COLORREF crTextStroke, | 820 FX_COLORREF crTextStroke, |
| 821 const CFX_FloatRect& rcClip, | 821 const CFX_FloatRect& rcClip, |
| 822 const CFX_FloatPoint& ptOffset, | 822 const CFX_FloatPoint& ptOffset, |
| 823 const CPVT_WordRange* pRange, | 823 const CPVT_WordRange* pRange, |
| 824 CFX_SystemHandler* pSystemHandler, | 824 CFX_SystemHandler* pSystemHandler, |
| 825 void* pFFLData) { | 825 CFFL_FormFiller* pFFLData) { |
| 826 const bool bContinuous = | 826 const bool bContinuous = |
| 827 pEdit->GetCharArray() == 0 && pEdit->GetCharSpace() <= 0.0f; | 827 pEdit->GetCharArray() == 0 && pEdit->GetCharSpace() <= 0.0f; |
| 828 uint16_t SubWord = pEdit->GetPasswordChar(); | 828 uint16_t SubWord = pEdit->GetPasswordChar(); |
| 829 FX_FLOAT fFontSize = pEdit->GetFontSize(); | 829 FX_FLOAT fFontSize = pEdit->GetFontSize(); |
| 830 CPVT_WordRange wrSelect = pEdit->GetSelectWordRange(); | 830 CPVT_WordRange wrSelect = pEdit->GetSelectWordRange(); |
| 831 int32_t nHorzScale = pEdit->GetHorzScale(); | 831 int32_t nHorzScale = pEdit->GetHorzScale(); |
| 832 | 832 |
| 833 FX_COLORREF crCurFill = crTextFill; | 833 FX_COLORREF crCurFill = crTextFill; |
| 834 FX_COLORREF crOldFill = crCurFill; | 834 FX_COLORREF crOldFill = crCurFill; |
| 835 | 835 |
| (...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2524 int32_t CFX_Edit_RectArray::GetSize() const { | 2524 int32_t CFX_Edit_RectArray::GetSize() const { |
| 2525 return m_Rects.GetSize(); | 2525 return m_Rects.GetSize(); |
| 2526 } | 2526 } |
| 2527 | 2527 |
| 2528 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { | 2528 CFX_FloatRect* CFX_Edit_RectArray::GetAt(int32_t nIndex) const { |
| 2529 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) | 2529 if (nIndex < 0 || nIndex >= m_Rects.GetSize()) |
| 2530 return nullptr; | 2530 return nullptr; |
| 2531 | 2531 |
| 2532 return m_Rects.GetAt(nIndex); | 2532 return m_Rects.GetAt(nIndex); |
| 2533 } | 2533 } |
| OLD | NEW |