diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-16 16:36:31 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-16 21:39:28 +0000 |
commit | a364729be3725adbc9689c1c8c23902df102243b (patch) | |
tree | 4d97b4e0a50145996f5b7b487a48c499e67eff82 /xfa/fwl | |
parent | a016857bcee1a09e67bd34e895ef639a3946fa91 (diff) | |
download | pdfium-a364729be3725adbc9689c1c8c23902df102243b.tar.xz |
Move some CFDE_TxtEdt* methods to the headerschromium/3188
This CL moves several methods from the CFDE_TxtEdt* classes from the
.cpp to .h files. As well, the GetCaretRect method is updated to return
the rect instead of using an out param.
Change-Id: I1288701f47d9ac1c413fbf06627f20b295b18b86
Reviewed-on: https://pdfium-review.googlesource.com/11270
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r-- | xfa/fwl/cfwl_edit.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index 9e38187ef8..cf0df76583 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -734,8 +734,7 @@ void CFWL_Edit::UpdateEditLayout() { } bool CFWL_Edit::UpdateOffset() { - CFX_RectF rtCaret; - m_EdtEngine.GetCaretRect(rtCaret); + CFX_RectF rtCaret = m_EdtEngine.GetCaretRect(); float fOffSetX = m_rtEngine.left - m_fScrollOffsetX; float fOffSetY = m_rtEngine.top - m_fScrollOffsetY + m_fVAlignOffset; rtCaret.Offset(fOffSetX, fOffSetY); @@ -823,8 +822,7 @@ void CFWL_Edit::UpdateVAlignment() { } void CFWL_Edit::UpdateCaret() { - CFX_RectF rtFDE; - m_EdtEngine.GetCaretRect(rtFDE); + CFX_RectF rtFDE = m_EdtEngine.GetCaretRect(); rtFDE.Offset(m_rtEngine.left - m_fScrollOffsetX, m_rtEngine.top - m_fScrollOffsetY + m_fVAlignOffset); |