Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(838)

Side by Side Diff: xfa/fwl/core/cfwl_widgetmgr.cpp

Issue 2009813004: Enable chromium_code standard for XFA code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa.gyp ('k') | xfa/fxfa/parser/xfa_object_imp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/fxfa/parser/xfa_object_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698