| 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/fwl_widgetmgrimp.h" | 7 #include "xfa/fwl/core/fwl_widgetmgrimp.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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 CFX_RectF temp(m_pWidgetMgr->m_rtScreen); | 1000 CFX_RectF temp(m_pWidgetMgr->m_rtScreen); |
| 1001 temp.Deflate(50, 50); | 1001 temp.Deflate(50, 50); |
| 1002 if (!temp.Contains(r)) { | 1002 if (!temp.Contains(r)) { |
| 1003 return FALSE; | 1003 return FALSE; |
| 1004 } | 1004 } |
| 1005 pItem->bOutsideChanged = FALSE; | 1005 pItem->bOutsideChanged = FALSE; |
| 1006 } | 1006 } |
| 1007 #endif | 1007 #endif |
| 1008 return pItem->iRedrawCounter == 0; | 1008 return pItem->iRedrawCounter == 0; |
| 1009 } | 1009 } |
| 1010 FX_BOOL FWL_WidgetIsChild(IFWL_Widget* parent, IFWL_Widget* find) { | |
| 1011 if (!find) { | |
| 1012 return FALSE; | |
| 1013 } | |
| 1014 IFWL_Widget* child = | |
| 1015 FWL_GetWidgetMgr()->GetWidget(parent, FWL_WGTRELATION_FirstChild); | |
| 1016 while (child) { | |
| 1017 if (child == find) { | |
| 1018 return TRUE; | |
| 1019 } | |
| 1020 if (FWL_WidgetIsChild(child, find)) { | |
| 1021 return TRUE; | |
| 1022 } | |
| 1023 child = FWL_GetWidgetMgr()->GetWidget(child, FWL_WGTRELATION_NextSibling); | |
| 1024 } | |
| 1025 return FALSE; | |
| 1026 } | |
| OLD | NEW |