| 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/include/pdfwindow/PWL_Utils.h" | 7 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 CPVT_WordPlace wpWordStart; | 1689 CPVT_WordPlace wpWordStart; |
| 1690 CFX_ByteString sLatinWord; | 1690 CFX_ByteString sLatinWord; |
| 1691 | 1691 |
| 1692 CFX_PathData pathSpell; | 1692 CFX_PathData pathSpell; |
| 1693 | 1693 |
| 1694 pDevice->SaveState(); | 1694 pDevice->SaveState(); |
| 1695 | 1695 |
| 1696 if (!rcClip.IsEmpty()) { | 1696 if (!rcClip.IsEmpty()) { |
| 1697 CFX_FloatRect rcTemp = rcClip; | 1697 CFX_FloatRect rcTemp = rcClip; |
| 1698 pUser2Device->TransformRect(rcTemp); | 1698 pUser2Device->TransformRect(rcTemp); |
| 1699 FX_RECT rcDevClip; | 1699 pDevice->SetClip_Rect(FX_RECT((int32_t)rcTemp.left, (int32_t)rcTemp.top, |
| 1700 rcDevClip.left = (int32_t)rcTemp.left; | 1700 (int32_t)rcTemp.right, |
| 1701 rcDevClip.right = (int32_t)rcTemp.right; | 1701 (int32_t)rcTemp.bottom)); |
| 1702 rcDevClip.top = (int32_t)rcTemp.top; | |
| 1703 rcDevClip.bottom = (int32_t)rcTemp.bottom; | |
| 1704 pDevice->SetClip_Rect(&rcDevClip); | |
| 1705 } | 1702 } |
| 1706 | 1703 |
| 1707 if (IFX_Edit_Iterator* pIterator = pEdit->GetIterator()) { | 1704 if (IFX_Edit_Iterator* pIterator = pEdit->GetIterator()) { |
| 1708 if (pEdit->GetFontMap()) { | 1705 if (pEdit->GetFontMap()) { |
| 1709 if (pRange) | 1706 if (pRange) |
| 1710 pIterator->SetAt(pRange->BeginPos); | 1707 pIterator->SetAt(pRange->BeginPos); |
| 1711 else | 1708 else |
| 1712 pIterator->SetAt(0); | 1709 pIterator->SetAt(0); |
| 1713 | 1710 |
| 1714 CPVT_WordPlace oldplace; | 1711 CPVT_WordPlace oldplace; |
| (...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3677 break; | 3674 break; |
| 3678 case COLORTYPE_RGB: | 3675 case COLORTYPE_RGB: |
| 3679 CPWL_Utils::ConvertCMYK2RGB(fColor1, fColor2, fColor3, fColor4, | 3676 CPWL_Utils::ConvertCMYK2RGB(fColor1, fColor2, fColor3, fColor4, |
| 3680 fColor1, fColor2, fColor3); | 3677 fColor1, fColor2, fColor3); |
| 3681 break; | 3678 break; |
| 3682 } | 3679 } |
| 3683 break; | 3680 break; |
| 3684 } | 3681 } |
| 3685 nColorType = other_nColorType; | 3682 nColorType = other_nColorType; |
| 3686 } | 3683 } |
| OLD | NEW |