| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "CSSImageValue.h" | 22 #include "CSSImageValue.h" |
| 23 | 23 |
| 24 #include "CSSCursorImageValue.h" | 24 #include "CSSCursorImageValue.h" |
| 25 #include "CSSParser.h" | 25 #include "CSSParser.h" |
| 26 #include "CSSValueKeywords.h" | 26 #include "CSSValueKeywords.h" |
| 27 #include "CachedImage.h" | |
| 28 #include "CachedResourceLoader.h" | |
| 29 #include "CachedResourceRequest.h" | |
| 30 #include "CachedResourceRequestInitiators.h" | |
| 31 #include "Document.h" | 27 #include "Document.h" |
| 32 #include "Element.h" | 28 #include "Element.h" |
| 33 #include "MemoryCache.h" | |
| 34 #include "WebCoreMemoryInstrumentation.h" | 29 #include "WebCoreMemoryInstrumentation.h" |
| 30 #include "core/loader/cache/CachedImage.h" |
| 31 #include "core/loader/cache/CachedResourceLoader.h" |
| 32 #include "core/loader/cache/CachedResourceRequest.h" |
| 33 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
| 34 #include "core/loader/cache/MemoryCache.h" |
| 35 #include "core/rendering/style/StyleCachedImage.h" | 35 #include "core/rendering/style/StyleCachedImage.h" |
| 36 #include "core/rendering/style/StylePendingImage.h" | 36 #include "core/rendering/style/StylePendingImage.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 CSSImageValue::CSSImageValue(const String& url) | 40 CSSImageValue::CSSImageValue(const String& url) |
| 41 : CSSValue(ImageClass) | 41 : CSSValue(ImageClass) |
| 42 , m_url(url) | 42 , m_url(url) |
| 43 , m_accessedImage(false) | 43 , m_accessedImage(false) |
| 44 { | 44 { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 info.addMember(m_url, "url"); | 117 info.addMember(m_url, "url"); |
| 118 // No need to report m_image as it is counted as part of RenderArena. | 118 // No need to report m_image as it is counted as part of RenderArena. |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool CSSImageValue::knownToBeOpaque(const RenderObject* renderer) const | 121 bool CSSImageValue::knownToBeOpaque(const RenderObject* renderer) const |
| 122 { | 122 { |
| 123 return m_image ? m_image->knownToBeOpaque(renderer) : false; | 123 return m_image ? m_image->knownToBeOpaque(renderer) : false; |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace WebCore | 126 } // namespace WebCore |
| OLD | NEW |