| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 StyleImage* image = 0) { | 51 StyleImage* image = 0) { |
| 52 return new CSSImageValue(rawValue, url, referrer, image); | 52 return new CSSImageValue(rawValue, url, referrer, image); |
| 53 } | 53 } |
| 54 static CSSImageValue* create(const AtomicString& absoluteURL) { | 54 static CSSImageValue* create(const AtomicString& absoluteURL) { |
| 55 return new CSSImageValue(absoluteURL); | 55 return new CSSImageValue(absoluteURL); |
| 56 } | 56 } |
| 57 ~CSSImageValue(); | 57 ~CSSImageValue(); |
| 58 | 58 |
| 59 bool isCachePending() const { return !m_cachedImage; } | 59 bool isCachePending() const { return !m_cachedImage; } |
| 60 StyleImage* cachedImage() const { | 60 StyleImage* cachedImage() const { |
| 61 ASSERT(!isCachePending()); | 61 DCHECK(!isCachePending()); |
| 62 return m_cachedImage.get(); | 62 return m_cachedImage.get(); |
| 63 } | 63 } |
| 64 StyleImage* cacheImage( | 64 StyleImage* cacheImage( |
| 65 const Document&, | 65 const Document&, |
| 66 CrossOriginAttributeValue = CrossOriginAttributeNotSet); | 66 CrossOriginAttributeValue = CrossOriginAttributeNotSet); |
| 67 | 67 |
| 68 const String& url() const { return m_absoluteURL; } | 68 const String& url() const { return m_absoluteURL; } |
| 69 | 69 |
| 70 const Referrer& referrer() const { return m_referrer; } | 70 const Referrer& referrer() const { return m_referrer; } |
| 71 | 71 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 102 // Cached image data. | 102 // Cached image data. |
| 103 mutable AtomicString m_absoluteURL; | 103 mutable AtomicString m_absoluteURL; |
| 104 mutable Member<StyleImage> m_cachedImage; | 104 mutable Member<StyleImage> m_cachedImage; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); | 107 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif // CSSImageValue_h | 111 #endif // CSSImageValue_h |
| OLD | NEW |