| 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 #ifndef _FFL_UTILS_H_ | 7 #ifndef _FFL_UTILS_H_ | 
| 8 #define _FFL_UTILS_H_ | 8 #define _FFL_UTILS_H_ | 
| 9 | 9 | 
| 10 #define FFL_BASE_USERUNIT»      »       »       1.0f / 72.0f | 10 #include "../../../core/include/fpdfapi/fpdf_parser.h" | 
|  | 11 #include "../../../core/include/fxcrt/fx_memory.h" | 
|  | 12 | 
|  | 13 #define FFL_BASE_USERUNIT»      »       »       (1.0f / 72.0f) | 
| 11 | 14 | 
| 12 template<class T> T FFL_MIN (const T & i, const T & j) { return ((i < j) ? i : j
    ); } | 15 template<class T> T FFL_MIN (const T & i, const T & j) { return ((i < j) ? i : j
    ); } | 
| 13 template<class T> T FFL_MAX (const T & i, const T & j) { return ((i > j) ? i : j
    ); } | 16 template<class T> T FFL_MAX (const T & i, const T & j) { return ((i > j) ? i : j
    ); } | 
| 14 | 17 | 
| 15 class CFFL_Utils | 18 class CFFL_Utils | 
| 16 { | 19 { | 
| 17 public: | 20 public: | 
| 18         static CPDF_Rect                                MaxRect(const CPDF_Rect 
    & rect1,const CPDF_Rect & rect2); | 21         static CPDF_Rect                                MaxRect(const CPDF_Rect 
    & rect1,const CPDF_Rect & rect2); | 
| 19         static CPDF_Rect                                InflateRect(const CPDF_R
    ect & crRect, const FX_FLOAT & fSize); | 22         static CPDF_Rect                                InflateRect(const CPDF_R
    ect & crRect, const FX_FLOAT & fSize); | 
| 20         static CPDF_Rect                                DeflateRect(const CPDF_R
    ect & crRect, const FX_FLOAT & fSize); | 23         static CPDF_Rect                                DeflateRect(const CPDF_R
    ect & crRect, const FX_FLOAT & fSize); | 
| 21         static FX_BOOL                                  TraceObject(CPDF_Object*
     pObj); | 24         static FX_BOOL                                  TraceObject(CPDF_Object*
     pObj); | 
| 22 }; | 25 }; | 
| 23 | 26 | 
| 24 #endif  // _FFL_UTILS_H_ | 27 #endif  // _FFL_UTILS_H_ | 
| OLD | NEW | 
|---|