| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "CSSImageSetValue.h" | 27 #include "CSSImageSetValue.h" |
| 28 | 28 |
| 29 #if ENABLE(CSS_IMAGE_SET) | 29 #if ENABLE(CSS_IMAGE_SET) |
| 30 | 30 |
| 31 #include "CSSImageValue.h" | 31 #include "CSSImageValue.h" |
| 32 #include "CSSPrimitiveValue.h" | 32 #include "CSSPrimitiveValue.h" |
| 33 #include "CachedImage.h" | |
| 34 #include "CachedResourceLoader.h" | |
| 35 #include "CachedResourceRequest.h" | |
| 36 #include "CachedResourceRequestInitiators.h" | |
| 37 #include "Document.h" | 33 #include "Document.h" |
| 38 #include "Page.h" | 34 #include "Page.h" |
| 39 #include "WebCoreMemoryInstrumentation.h" | 35 #include "WebCoreMemoryInstrumentation.h" |
| 36 #include "core/loader/cache/CachedImage.h" |
| 37 #include "core/loader/cache/CachedResourceLoader.h" |
| 38 #include "core/loader/cache/CachedResourceRequest.h" |
| 39 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
| 40 #include "core/rendering/style/StyleCachedImageSet.h" | 40 #include "core/rendering/style/StyleCachedImageSet.h" |
| 41 #include "core/rendering/style/StylePendingImage.h" | 41 #include "core/rendering/style/StylePendingImage.h" |
| 42 #include <wtf/MemoryInstrumentationVector.h> | 42 #include <wtf/MemoryInstrumentationVector.h> |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 CSSImageSetValue::CSSImageSetValue() | 46 CSSImageSetValue::CSSImageSetValue() |
| 47 : CSSValueList(ImageSetClass, CommaSeparator) | 47 : CSSValueList(ImageSetClass, CommaSeparator) |
| 48 , m_accessedBestFitImage(false) | 48 , m_accessedBestFitImage(false) |
| 49 , m_scaleFactor(1) | 49 , m_scaleFactor(1) |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 void CSSImageSetValue::ImageWithScale::reportMemoryUsage(MemoryObjectInfo* memor
yObjectInfo) const | 205 void CSSImageSetValue::ImageWithScale::reportMemoryUsage(MemoryObjectInfo* memor
yObjectInfo) const |
| 206 { | 206 { |
| 207 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 207 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 208 info.addMember(imageURL, "imageURL"); | 208 info.addMember(imageURL, "imageURL"); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace WebCore | 211 } // namespace WebCore |
| 212 | 212 |
| 213 #endif // ENABLE(CSS_IMAGE_SET) | 213 #endif // ENABLE(CSS_IMAGE_SET) |
| OLD | NEW |