| 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 "xfa/fwl/core/ifwl_edit.h" | 7 #include "xfa/fwl/core/ifwl_edit.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "third_party/base/ptr_util.h" | 13 #include "third_party/base/ptr_util.h" |
| 14 #include "third_party/base/stl_util.h" | 14 #include "third_party/base/stl_util.h" |
| 15 #include "xfa/fde/cfde_txtedtengine.h" | 15 #include "xfa/fde/cfde_txtedtengine.h" |
| 16 #include "xfa/fde/fde_gedevice.h" | 16 #include "xfa/fde/fde_gedevice.h" |
| 17 #include "xfa/fde/fde_render.h" | 17 #include "xfa/fde/fde_render.h" |
| 18 #include "xfa/fde/ifde_txtedtpage.h" | 18 #include "xfa/fde/ifde_txtedtpage.h" |
| 19 #include "xfa/fgas/font/fgas_gefont.h" | 19 #include "xfa/fgas/font/cfgas_gefont.h" |
| 20 #include "xfa/fwl/core/cfwl_evtcheckword.h" | 20 #include "xfa/fwl/core/cfwl_evtcheckword.h" |
| 21 #include "xfa/fwl/core/cfwl_evttextchanged.h" | 21 #include "xfa/fwl/core/cfwl_evttextchanged.h" |
| 22 #include "xfa/fwl/core/cfwl_evttextfull.h" | 22 #include "xfa/fwl/core/cfwl_evttextfull.h" |
| 23 #include "xfa/fwl/core/cfwl_evtvalidate.h" | 23 #include "xfa/fwl/core/cfwl_evtvalidate.h" |
| 24 #include "xfa/fwl/core/cfwl_msgkey.h" | 24 #include "xfa/fwl/core/cfwl_msgkey.h" |
| 25 #include "xfa/fwl/core/cfwl_msgmouse.h" | 25 #include "xfa/fwl/core/cfwl_msgmouse.h" |
| 26 #include "xfa/fwl/core/cfwl_themebackground.h" | 26 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 27 #include "xfa/fwl/core/cfwl_themepart.h" | 27 #include "xfa/fwl/core/cfwl_themepart.h" |
| 28 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 28 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 29 #include "xfa/fwl/core/ifwl_app.h" | 29 #include "xfa/fwl/core/ifwl_app.h" |
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 UpdateOffset(pScrollBar, fPos - iCurPos); | 1651 UpdateOffset(pScrollBar, fPos - iCurPos); |
| 1652 UpdateCaret(); | 1652 UpdateCaret(); |
| 1653 | 1653 |
| 1654 CFX_RectF rect; | 1654 CFX_RectF rect; |
| 1655 GetWidgetRect(rect); | 1655 GetWidgetRect(rect); |
| 1656 CFX_RectF rtInvalidate; | 1656 CFX_RectF rtInvalidate; |
| 1657 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); | 1657 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); |
| 1658 Repaint(&rtInvalidate); | 1658 Repaint(&rtInvalidate); |
| 1659 return true; | 1659 return true; |
| 1660 } | 1660 } |
| OLD | NEW |