| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void reResolveURL(const Document&); | 59 void reResolveURL(const Document&); |
| 60 | 60 |
| 61 String customCSSText() const; | 61 String customCSSText() const; |
| 62 | 62 |
| 63 bool hasFailedOrCanceledSubresources() const; | 63 bool hasFailedOrCanceledSubresources() const; |
| 64 | 64 |
| 65 bool equals(const CSSImageValue&) const; | 65 bool equals(const CSSImageValue&) const; |
| 66 | 66 |
| 67 bool knownToBeOpaque(const LayoutObject*) const; | 67 bool knownToBeOpaque(const LayoutObject*) const; |
| 68 | 68 |
| 69 PassRefPtrWillBeRawPtr<CSSImageValue> valueWithAbsoluteURL() |
| 70 { |
| 71 return create(KURL(ParsedURLString, m_absoluteURL), m_image.get()); |
| 72 } |
| 73 |
| 69 void setInitiator(const AtomicString& name) { m_initiatorName = name; } | 74 void setInitiator(const AtomicString& name) { m_initiatorName = name; } |
| 70 | 75 |
| 71 DECLARE_TRACE_AFTER_DISPATCH(); | 76 DECLARE_TRACE_AFTER_DISPATCH(); |
| 72 void restoreCachedResourceIfNeeded(Document&); | 77 void restoreCachedResourceIfNeeded(Document&); |
| 73 | 78 |
| 74 private: | 79 private: |
| 75 CSSImageValue(const String& rawValue, const KURL&, StyleImage*); | 80 CSSImageValue(const String& rawValue, const KURL&, StyleImage*); |
| 76 | 81 |
| 77 String m_relativeURL; | 82 String m_relativeURL; |
| 78 String m_absoluteURL; | 83 String m_absoluteURL; |
| 79 Referrer m_referrer; | 84 Referrer m_referrer; |
| 80 RefPtrWillBeMember<StyleImage> m_image; | 85 RefPtrWillBeMember<StyleImage> m_image; |
| 81 bool m_accessedImage; | 86 bool m_accessedImage; |
| 82 AtomicString m_initiatorName; | 87 AtomicString m_initiatorName; |
| 83 }; | 88 }; |
| 84 | 89 |
| 85 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); | 90 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); |
| 86 | 91 |
| 87 } // namespace blink | 92 } // namespace blink |
| 88 | 93 |
| 89 #endif // CSSImageValue_h | 94 #endif // CSSImageValue_h |
| OLD | NEW |