| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } | 57 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } |
| 58 const Referrer& referrer() const { return m_referrer; } | 58 const Referrer& referrer() const { return m_referrer; } |
| 59 | 59 |
| 60 void reResolveURL(const Document&); | 60 void reResolveURL(const Document&); |
| 61 | 61 |
| 62 String customCSSText() const; | 62 String customCSSText() const; |
| 63 | 63 |
| 64 PassRefPtr<CSSValue> cloneForCSSOM() const; | 64 PassRefPtr<CSSValue> cloneForCSSOM() const; |
| 65 | 65 |
| 66 bool hasFailedOrCanceledSubresources() const; | |
| 67 | |
| 68 bool equals(const CSSImageValue&) const; | 66 bool equals(const CSSImageValue&) const; |
| 69 | 67 |
| 70 bool knownToBeOpaque(const RenderObject*) const; | 68 bool knownToBeOpaque(const RenderObject*) const; |
| 71 | 69 |
| 72 void setInitiator(const AtomicString& name) { m_initiatorName = name; } | 70 void setInitiator(const AtomicString& name) { m_initiatorName = name; } |
| 73 void restoreCachedResourceIfNeeded(Document&); | 71 void restoreCachedResourceIfNeeded(Document&); |
| 74 | 72 |
| 75 private: | 73 private: |
| 76 CSSImageValue(const String& rawValue, const KURL&, StyleImage*); | 74 CSSImageValue(const String& rawValue, const KURL&, StyleImage*); |
| 77 | 75 |
| 78 String m_relativeURL; | 76 String m_relativeURL; |
| 79 String m_absoluteURL; | 77 String m_absoluteURL; |
| 80 Referrer m_referrer; | 78 Referrer m_referrer; |
| 81 RefPtr<StyleImage> m_image; | 79 RefPtr<StyleImage> m_image; |
| 82 bool m_accessedImage; | 80 bool m_accessedImage; |
| 83 AtomicString m_initiatorName; | 81 AtomicString m_initiatorName; |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); | 84 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); |
| 87 | 85 |
| 88 } // namespace blink | 86 } // namespace blink |
| 89 | 87 |
| 90 #endif // SKY_ENGINE_CORE_CSS_CSSIMAGEVALUE_H_ | 88 #endif // SKY_ENGINE_CORE_CSS_CSSIMAGEVALUE_H_ |
| OLD | NEW |