| 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/cfwl_widgetmgr.h" | 7 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/core/cfwl_message.h" | 9 #include "xfa/fwl/core/cfwl_message.h" |
| 10 #include "xfa/fwl/core/fwl_appimp.h" | 10 #include "xfa/fwl/core/fwl_appimp.h" |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 for (int32_t i = 0; i < kNeedRepaintHitPoints; i++) { | 809 for (int32_t i = 0; i < kNeedRepaintHitPoints; i++) { |
| 810 if (hitPoint[i].bNotContainByDirty || hitPoint[i].bNotNeedRepaint) | 810 if (hitPoint[i].bNotContainByDirty || hitPoint[i].bNotNeedRepaint) |
| 811 continue; | 811 continue; |
| 812 if (!rtDirty.Contains(hitPoint[i].hitPoint)) { | 812 if (!rtDirty.Contains(hitPoint[i].hitPoint)) { |
| 813 hitPoint[i].bNotContainByDirty = true; | 813 hitPoint[i].bNotContainByDirty = true; |
| 814 continue; | 814 continue; |
| 815 } | 815 } |
| 816 if (r.Contains(hitPoint[i].hitPoint)) | 816 if (r.Contains(hitPoint[i].hitPoint)) |
| 817 hitPoint[i].bNotNeedRepaint = true; | 817 hitPoint[i].bNotNeedRepaint = true; |
| 818 } | 818 } |
| 819 } while ( | 819 pChild = CFWL_WidgetMgr::GetInstance()->GetNextSiblingWidget(pChild); |
| 820 (pChild = CFWL_WidgetMgr::GetInstance()->GetNextSiblingWidget(pChild))); | 820 } while (pChild); |
| 821 | 821 |
| 822 if (!bChildIntersectWithDirty) | 822 if (!bChildIntersectWithDirty) |
| 823 return TRUE; | 823 return TRUE; |
| 824 if (bOrginPtIntersectWidthDirty && !bOrginPtIntersectWidthChild) | 824 if (bOrginPtIntersectWidthDirty && !bOrginPtIntersectWidthChild) |
| 825 return TRUE; | 825 return TRUE; |
| 826 if (rtChilds.IsEmpty()) | 826 if (rtChilds.IsEmpty()) |
| 827 return TRUE; | 827 return TRUE; |
| 828 | 828 |
| 829 int32_t repaintPoint = kNeedRepaintHitPoints; | 829 int32_t repaintPoint = kNeedRepaintHitPoints; |
| 830 for (int32_t i = 0; i < kNeedRepaintHitPoints; i++) { | 830 for (int32_t i = 0; i < kNeedRepaintHitPoints; i++) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 853 temp.Deflate(50, 50); | 853 temp.Deflate(50, 50); |
| 854 if (!temp.Contains(r)) | 854 if (!temp.Contains(r)) |
| 855 return FALSE; | 855 return FALSE; |
| 856 | 856 |
| 857 pItem->bOutsideChanged = FALSE; | 857 pItem->bOutsideChanged = FALSE; |
| 858 } | 858 } |
| 859 #endif | 859 #endif |
| 860 | 860 |
| 861 return pItem->iRedrawCounter == 0; | 861 return pItem->iRedrawCounter == 0; |
| 862 } | 862 } |
| OLD | NEW |