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

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

Issue 2322003002: Cleanup CPDFXFA_Document. (Closed)
Patch Set: Rebase to master Created 4 years, 3 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/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_ffnotify.h » ('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/fxfa/include/xfa_ffdocview.h" 7 #include "xfa/fxfa/include/xfa_ffdocview.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" 10 #include "xfa/fxfa/app/xfa_ffbarcode.h"
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 return; 553 return;
554 } 554 }
555 CFX_RectF* pRect = new CFX_RectF; 555 CFX_RectF* pRect = new CFX_RectF;
556 pRect->Set(rtInvalidate.left, rtInvalidate.top, rtInvalidate.width, 556 pRect->Set(rtInvalidate.left, rtInvalidate.top, rtInvalidate.width,
557 rtInvalidate.height); 557 rtInvalidate.height);
558 m_mapPageInvalidate[pPageView].reset(pRect); 558 m_mapPageInvalidate[pPageView].reset(pRect);
559 } 559 }
560 560
561 void CXFA_FFDocView::RunInvalidate() { 561 void CXFA_FFDocView::RunInvalidate() {
562 for (const auto& pair : m_mapPageInvalidate) 562 for (const auto& pair : m_mapPageInvalidate)
563 m_pDoc->GetDocProvider()->InvalidateRect(pair.first, *pair.second); 563 m_pDoc->GetDocProvider()->InvalidateRect(pair.first, *pair.second, 0);
564 m_mapPageInvalidate.clear(); 564 m_mapPageInvalidate.clear();
565 } 565 }
566 566
567 FX_BOOL CXFA_FFDocView::RunLayout() { 567 FX_BOOL CXFA_FFDocView::RunLayout() {
568 LockUpdate(); 568 LockUpdate();
569 m_bInLayoutStatus = TRUE; 569 m_bInLayoutStatus = TRUE;
570 if (!m_pXFADocLayout->IncrementLayout() && 570 if (!m_pXFADocLayout->IncrementLayout() &&
571 m_pXFADocLayout->StartLayout() < 100) { 571 m_pXFADocLayout->StartLayout() < 100) {
572 m_pXFADocLayout->DoLayout(); 572 m_pXFADocLayout->DoLayout();
573 UnlockUpdate(); 573 UnlockUpdate();
(...skipping 276 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 | « xfa/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_ffnotify.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698