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

Side by Side Diff: xfa/fxfa/app/xfa_ffdocview.cpp

Issue 2457673003: Fix some FX_BOOL / int noise in fxfa (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | xfa/fxfa/app/xfa_fftextedit.cpp » ('j') | xfa/fxfa/app/xfa_fftextedit.cpp » ('J')
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/fxfa/xfa_ffdocview.h" 7 #include "xfa/fxfa/xfa_ffdocview.h"
8 8
9 #include "core/fxcrt/fx_ext.h" 9 #include "core/fxcrt/fx_ext.h"
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" 10 #include "xfa/fxfa/app/xfa_ffbarcode.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 m_pDoc->GetDocEnvironment()->PageViewEvent(pFFPageView, dwEvent); 529 m_pDoc->GetDocEnvironment()->PageViewEvent(pFFPageView, dwEvent);
530 } 530 }
531 531
532 void CXFA_FFDocView::LockUpdate() { 532 void CXFA_FFDocView::LockUpdate() {
533 m_iLock++; 533 m_iLock++;
534 } 534 }
535 void CXFA_FFDocView::UnlockUpdate() { 535 void CXFA_FFDocView::UnlockUpdate() {
536 m_iLock--; 536 m_iLock--;
537 } 537 }
538 FX_BOOL CXFA_FFDocView::IsUpdateLocked() { 538 FX_BOOL CXFA_FFDocView::IsUpdateLocked() {
539 return m_iLock; 539 return m_iLock > 0;
Tom Sepez 2016/10/27 21:04:49 just in case we unlock it too many times.
Lei Zhang 2016/10/27 21:28:52 Maybe UnlockUpdate() should ASSERT...
540 } 540 }
541 void CXFA_FFDocView::ClearInvalidateList() { 541 void CXFA_FFDocView::ClearInvalidateList() {
542 m_mapPageInvalidate.clear(); 542 m_mapPageInvalidate.clear();
543 } 543 }
544 void CXFA_FFDocView::AddInvalidateRect(CXFA_FFWidget* pWidget, 544 void CXFA_FFDocView::AddInvalidateRect(CXFA_FFWidget* pWidget,
545 const CFX_RectF& rtInvalidate) { 545 const CFX_RectF& rtInvalidate) {
546 AddInvalidateRect(pWidget->GetPageView(), rtInvalidate); 546 AddInvalidateRect(pWidget->GetPageView(), rtInvalidate);
547 } 547 }
548 548
549 void CXFA_FFDocView::AddInvalidateRect(CXFA_FFPageView* pPageView, 549 void CXFA_FFDocView::AddInvalidateRect(CXFA_FFPageView* pPageView,
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 } 850 }
851 851
852 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { 852 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) {
853 return FALSE; 853 return FALSE;
854 } 854 }
855 855
856 void CXFA_WidgetAccIterator::SkipTree() { 856 void CXFA_WidgetAccIterator::SkipTree() {
857 m_ContentIterator.SkipChildrenAndMoveToNext(); 857 m_ContentIterator.SkipChildrenAndMoveToNext();
858 m_pCurWidgetAcc = nullptr; 858 m_pCurWidgetAcc = nullptr;
859 } 859 }
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/app/xfa_fftextedit.cpp » ('j') | xfa/fxfa/app/xfa_fftextedit.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698