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

Side by Side Diff: xfa/include/fxfa/fxfa_widget.h

Issue 1486573002: Fix a crasher due to recursion in CXFA_WidgetAcc::ExecuteScript() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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/src/fxfa/src/app/xfa_ffwidgetacc.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 #ifndef _FXFA_WIDGET_H 7 #ifndef _FXFA_WIDGET_H
8 #define _FXFA_WIDGET_H 8 #define _FXFA_WIDGET_H
9 class CXFA_Node; 9 class CXFA_Node;
10 class CXFA_FFDocView; 10 class CXFA_FFDocView;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 FX_FLOAT GetWidthWithoutMargin(FX_FLOAT fWidthCalc); 106 FX_FLOAT GetWidthWithoutMargin(FX_FLOAT fWidthCalc);
107 FX_FLOAT GetHeightWithoutMargin(FX_FLOAT fHeightCalc); 107 FX_FLOAT GetHeightWithoutMargin(FX_FLOAT fHeightCalc);
108 void CalculateTextContentSize(CFX_SizeF& size); 108 void CalculateTextContentSize(CFX_SizeF& size);
109 void CalculateAccWidthAndHeight(XFA_ELEMENT eUIType, 109 void CalculateAccWidthAndHeight(XFA_ELEMENT eUIType,
110 FX_FLOAT& fWidth, 110 FX_FLOAT& fWidth,
111 FX_FLOAT& fCalcHeight); 111 FX_FLOAT& fCalcHeight);
112 void InitLayoutData(); 112 void InitLayoutData();
113 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); 113 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight);
114 CXFA_FFDocView* m_pDocView; 114 CXFA_FFDocView* m_pDocView;
115 CXFA_WidgetLayoutData* m_pLayoutData; 115 CXFA_WidgetLayoutData* m_pLayoutData;
116 uint32_t m_nRecursionDepth;
116 }; 117 };
117 #endif 118 #endif
OLDNEW
« no previous file with comments | « no previous file | xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698