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 "../../include/javascript/JavaScript.h" | 7 #include "../../include/javascript/JavaScript.h" |
8 #include "../../include/javascript/IJavaScript.h" | 8 #include "../../include/javascript/IJavaScript.h" |
9 #include "../../include/javascript/JS_Define.h" | 9 #include "../../include/javascript/JS_Define.h" |
10 #include "../../include/javascript/JS_Object.h" | 10 #include "../../include/javascript/JS_Object.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 ASSERT(pDoc != NULL); | 151 ASSERT(pDoc != NULL); |
152 | 152 |
153 pDoc->AttachDoc(pContext->GetReaderDocument()); | 153 pDoc->AttachDoc(pContext->GetReaderDocument()); |
154 pDoc->SetIsolate(pContext->GetJSRuntime()->GetIsolate()); | 154 pDoc->SetIsolate(pContext->GetJSRuntime()->GetIsolate()); |
155 return TRUE; | 155 return TRUE; |
156 }; | 156 }; |
157 | 157 |
158 /* --------------------------------- Document ---------------------------------
*/ | 158 /* --------------------------------- Document ---------------------------------
*/ |
159 | 159 |
160 Document::Document(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject), | 160 Document::Document(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject), |
161 » m_cwBaseURL(L""), | 161 » m_isolate(NULL), |
162 m_pIconTree(NULL), | 162 m_pIconTree(NULL), |
163 m_pDocument(NULL), | 163 m_pDocument(NULL), |
164 » m_bDelay(FALSE), | 164 » m_cwBaseURL(L""), |
165 » m_isolate(NULL) | 165 » m_bDelay(FALSE) |
166 { | 166 { |
167 } | 167 } |
168 | 168 |
169 Document::~Document() | 169 Document::~Document() |
170 { | 170 { |
171 if (m_pIconTree) | 171 if (m_pIconTree) |
172 { | 172 { |
173 m_pIconTree->DeleteIconTree(); | 173 m_pIconTree->DeleteIconTree(); |
174 delete m_pIconTree; | 174 delete m_pIconTree; |
175 m_pIconTree = NULL; | 175 m_pIconTree = NULL; |
(...skipping 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2525 | 2525 |
2526 void Document::DoAnnotDelay() | 2526 void Document::DoAnnotDelay() |
2527 { | 2527 { |
2528 CFX_DWordArray DelArray; | 2528 CFX_DWordArray DelArray; |
2529 | 2529 |
2530 for (int j=DelArray.GetSize()-1; j>=0; j--) | 2530 for (int j=DelArray.GetSize()-1; j>=0; j--) |
2531 { | 2531 { |
2532 m_DelayData.RemoveAt(DelArray[j]); | 2532 m_DelayData.RemoveAt(DelArray[j]); |
2533 } | 2533 } |
2534 } | 2534 } |
OLD | NEW |