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

Side by Side Diff: core/include/fpdfapi/fpdf_pageobj.h

Issue 1093213002: Remove Release() from CPDF_PageObject (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page.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 _FPDF_PAGEOBJ_H_ 7 #ifndef _FPDF_PAGEOBJ_H_
8 #define _FPDF_PAGEOBJ_H_ 8 #define _FPDF_PAGEOBJ_H_
9 #ifndef _FPDF_RESOURCE_ 9 #ifndef _FPDF_RESOURCE_
10 #include "fpdf_resource.h" 10 #include "fpdf_resource.h"
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 448
449 CPDF_ColorState m_ColorState; 449 CPDF_ColorState m_ColorState;
450 450
451 CPDF_TextState m_TextState; 451 CPDF_TextState m_TextState;
452 452
453 CPDF_GeneralState m_GeneralState; 453 CPDF_GeneralState m_GeneralState;
454 }; 454 };
455 class CPDF_PageObject : public CPDF_GraphicStates 455 class CPDF_PageObject : public CPDF_GraphicStates
456 { 456 {
457 public: 457 public:
458
459 static CPDF_PageObject* Create(int type); 458 static CPDF_PageObject* Create(int type);
460 459 virtual ~CPDF_PageObject() { }
Lei Zhang 2015/04/20 19:21:59 Can we move the dtor impl, however small, into the
Tom Sepez 2015/04/20 19:29:01 Done.
461 void» » » » Release();
462 460
463 CPDF_PageObject* Clone() const; 461 CPDF_PageObject* Clone() const;
464 462
465 void Copy(const CPDF_PageObject* pSrcObject); 463 void Copy(const CPDF_PageObject* pSrcObject);
466 464
467 virtual void Transform(const CFX_AffineMatrix& matrix) = 0; 465 virtual void Transform(const CFX_AffineMatrix& matrix) = 0;
468 466
469 467
470 468
471 void RemoveClipPath(); 469 void RemoveClipPath();
(...skipping 26 matching lines...) Expand all
498 496
499 CPDF_ContentMark m_ContentMark; 497 CPDF_ContentMark m_ContentMark;
500 protected: 498 protected:
501 499
502 virtual void CopyData(const CPDF_PageObject* pSrcObject) {} 500 virtual void CopyData(const CPDF_PageObject* pSrcObject) {}
503 501
504 void RecalcBBox(); 502 void RecalcBBox();
505 503
506 CPDF_PageObject() {} 504 CPDF_PageObject() {}
507 505
508 virtual ~CPDF_PageObject() {}
509 }; 506 };
510 struct CPDF_TextObjectItem { 507 struct CPDF_TextObjectItem {
511 508
512 FX_DWORD m_CharCode; 509 FX_DWORD m_CharCode;
513 510
514 FX_FLOAT m_OriginX; 511 FX_FLOAT m_OriginX;
515 512
516 FX_FLOAT m_OriginY; 513 FX_FLOAT m_OriginY;
517 }; 514 };
518 class CPDF_TextObject : public CPDF_PageObject 515 class CPDF_TextObject : public CPDF_PageObject
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 CFX_DIBitmap* m_pBitmap; 711 CFX_DIBitmap* m_pBitmap;
715 712
716 CFX_ArrayTemplate<CFX_AffineMatrix> m_Matrices; 713 CFX_ArrayTemplate<CFX_AffineMatrix> m_Matrices;
717 714
718 void AddMatrix(CFX_AffineMatrix& matrix); 715 void AddMatrix(CFX_AffineMatrix& matrix);
719 protected: 716 protected:
720 virtual void Transform(const CFX_AffineMatrix& matrix) {} 717 virtual void Transform(const CFX_AffineMatrix& matrix) {}
721 virtual void CopyData(const CPDF_PageObject* pSrcObjet) {} 718 virtual void CopyData(const CPDF_PageObject* pSrcObjet) {}
722 }; 719 };
723 #endif 720 #endif
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698