Chromium Code Reviews| 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/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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |