| 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 XFA_SRC_FDE_CSS_FDE_CSSCACHE_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSSCACHE_H_ |
| 8 #define XFA_SRC_FDE_CSS_FDE_CSSCACHE_H_ | 8 #define XFA_FDE_CSS_FDE_CSSCACHE_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "xfa/src/fde/css/fde_css.h" | 12 #include "xfa/fde/css/fde_css.h" |
| 13 #include "xfa/src/fgas/crt/fgas_memory.h" | 13 #include "xfa/fgas/crt/fgas_memory.h" |
| 14 | 14 |
| 15 class FDE_CSSCacheItem : public CFX_Target { | 15 class FDE_CSSCacheItem : public CFX_Target { |
| 16 public: | 16 public: |
| 17 explicit FDE_CSSCacheItem(IFDE_CSSStyleSheet* p); | 17 explicit FDE_CSSCacheItem(IFDE_CSSStyleSheet* p); |
| 18 ~FDE_CSSCacheItem(); | 18 ~FDE_CSSCacheItem(); |
| 19 | 19 |
| 20 IFDE_CSSStyleSheet* pStylesheet; | 20 IFDE_CSSStyleSheet* pStylesheet; |
| 21 FX_DWORD dwActivity; | 21 FX_DWORD dwActivity; |
| 22 }; | 22 }; |
| 23 | 23 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 public: | 75 public: |
| 76 virtual void OnEnterTag(IFDE_CSSTagProvider* pTag); | 76 virtual void OnEnterTag(IFDE_CSSTagProvider* pTag); |
| 77 virtual void OnLeaveTag(IFDE_CSSTagProvider* pTag); | 77 virtual void OnLeaveTag(IFDE_CSSTagProvider* pTag); |
| 78 void Clear() { m_Stack.RemoveAll(); } | 78 void Clear() { m_Stack.RemoveAll(); } |
| 79 FDE_CSSTagCache* GetTopElement() const { return m_Stack.GetTopElement(); } | 79 FDE_CSSTagCache* GetTopElement() const { return m_Stack.GetTopElement(); } |
| 80 | 80 |
| 81 protected: | 81 protected: |
| 82 CFDE_CSSTagStack m_Stack; | 82 CFDE_CSSTagStack m_Stack; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif // XFA_SRC_FDE_CSS_FDE_CSSCACHE_H_ | 85 #endif // XFA_FDE_CSS_FDE_CSSCACHE_H_ |
| OLD | NEW |