OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 PassRefPtrWillBeRawPtr<CSSImageValue> valueWithURLMadeAbsolute() | 77 PassRefPtrWillBeRawPtr<CSSImageValue> valueWithURLMadeAbsolute() |
78 { | 78 { |
79 return create(KURL(ParsedURLString, m_absoluteURL), m_cachedImage.get())
; | 79 return create(KURL(ParsedURLString, m_absoluteURL), m_cachedImage.get())
; |
80 } | 80 } |
81 | 81 |
82 void setInitiator(const AtomicString& name) { m_initiatorName = name; } | 82 void setInitiator(const AtomicString& name) { m_initiatorName = name; } |
83 | 83 |
84 DECLARE_TRACE_AFTER_DISPATCH(); | 84 DECLARE_TRACE_AFTER_DISPATCH(); |
85 void restoreCachedResourceIfNeeded(Document&) const; | 85 void restoreCachedResourceIfNeeded(Document&) const; |
86 | 86 |
| 87 void purgeMemory(); |
| 88 |
87 private: | 89 private: |
88 CSSImageValue(const AtomicString& rawValue, const KURL&, StyleFetchedImage*)
; | 90 CSSImageValue(const AtomicString& rawValue, const KURL&, StyleFetchedImage*)
; |
89 CSSImageValue(const AtomicString& absoluteURL); | 91 CSSImageValue(const AtomicString& absoluteURL); |
90 | 92 |
91 AtomicString m_relativeURL; | 93 AtomicString m_relativeURL; |
92 AtomicString m_absoluteURL; | 94 AtomicString m_absoluteURL; |
93 Referrer m_referrer; | 95 Referrer m_referrer; |
94 bool m_isCachePending; | 96 bool m_isCachePending; |
95 RefPtrWillBeMember<StyleFetchedImage> m_cachedImage; | 97 RefPtrWillBeMember<StyleFetchedImage> m_cachedImage; |
96 AtomicString m_initiatorName; | 98 AtomicString m_initiatorName; |
97 }; | 99 }; |
98 | 100 |
99 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); | 101 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); |
100 | 102 |
101 } // namespace blink | 103 } // namespace blink |
102 | 104 |
103 #endif // CSSImageValue_h | 105 #endif // CSSImageValue_h |
OLD | NEW |