| 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 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 RefPtr<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m_absoluteURL
, CSSPrimitiveValue::CSS_URI); | 110 RefPtr<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m_absoluteURL
, CSSPrimitiveValue::CSS_URI); |
| 111 uriValue->setCSSOMSafe(); | 111 uriValue->setCSSOMSafe(); |
| 112 return uriValue.release(); | 112 return uriValue.release(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 bool CSSImageValue::knownToBeOpaque(const RenderObject* renderer) const | 115 bool CSSImageValue::knownToBeOpaque(const RenderObject* renderer) const |
| 116 { | 116 { |
| 117 return m_image ? m_image->knownToBeOpaque(renderer) : false; | 117 return m_image ? m_image->knownToBeOpaque(renderer) : false; |
| 118 } | 118 } |
| 119 | 119 |
| 120 void CSSImageValue::traceAfterDispatch(Visitor* visitor) | |
| 121 { | |
| 122 CSSValue::traceAfterDispatch(visitor); | |
| 123 } | |
| 124 | |
| 125 void CSSImageValue::reResolveURL(const Document& document) | 120 void CSSImageValue::reResolveURL(const Document& document) |
| 126 { | 121 { |
| 127 KURL url = document.completeURL(m_relativeURL); | 122 KURL url = document.completeURL(m_relativeURL); |
| 128 if (url == m_absoluteURL) | 123 if (url == m_absoluteURL) |
| 129 return; | 124 return; |
| 130 m_absoluteURL = url.string(); | 125 m_absoluteURL = url.string(); |
| 131 m_accessedImage = false; | 126 m_accessedImage = false; |
| 132 m_image.clear(); | 127 m_image.clear(); |
| 133 } | 128 } |
| 134 | 129 |
| 135 } // namespace blink | 130 } // namespace blink |
| OLD | NEW |