| 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/css/CSSImageValue.h" | 29 #include "core/css/CSSImageValue.h" |
| 30 #include "core/css/CSSPrimitiveValue.h" | 30 #include "core/css/CSSPrimitiveValue.h" |
| 31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
| 32 #include "core/dom/WebCoreMemoryInstrumentation.h" | 32 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 33 #include "core/loader/cache/CachedImage.h" | 33 #include "core/loader/cache/CachedImage.h" |
| 34 #include "core/loader/cache/CachedResourceLoader.h" | 34 #include "core/loader/cache/CachedResourceLoader.h" |
| 35 #include "core/loader/cache/CachedResourceRequest.h" | 35 #include "core/loader/cache/CachedResourceRequest.h" |
| 36 #include "core/loader/cache/CachedResourceRequestInitiators.h" | 36 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
| 37 #include "core/rendering/style/StyleCachedImageSet.h" | 37 #include "core/rendering/style/StyleCachedImageSet.h" |
| 38 #include "core/rendering/style/StylePendingImage.h" | 38 #include "core/rendering/style/StylePendingImage.h" |
| 39 #include <wtf/MemoryInstrumentationVector.h> | 39 #include "wtf/MemoryInstrumentationVector.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 CSSImageSetValue::CSSImageSetValue() | 43 CSSImageSetValue::CSSImageSetValue() |
| 44 : CSSValueList(ImageSetClass, CommaSeparator) | 44 : CSSValueList(ImageSetClass, CommaSeparator) |
| 45 , m_accessedBestFitImage(false) | 45 , m_accessedBestFitImage(false) |
| 46 , m_scaleFactor(1) | 46 , m_scaleFactor(1) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 info.addMember(m_imagesInSet, "imagesInSet"); | 190 info.addMember(m_imagesInSet, "imagesInSet"); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void CSSImageSetValue::ImageWithScale::reportMemoryUsage(MemoryObjectInfo* memor
yObjectInfo) const | 193 void CSSImageSetValue::ImageWithScale::reportMemoryUsage(MemoryObjectInfo* memor
yObjectInfo) const |
| 194 { | 194 { |
| 195 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 195 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 196 info.addMember(imageURL, "imageURL"); | 196 info.addMember(imageURL, "imageURL"); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace WebCore | 199 } // namespace WebCore |
| OLD | NEW |