OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2006 Rob Buis <buis@kde.org> |
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "config.h" | 22 #include "config.h" |
23 #include "CSSCursorImageValue.h" | 23 #include "CSSCursorImageValue.h" |
24 | 24 |
25 #include "CSSImageValue.h" | 25 #include "CSSImageValue.h" |
26 #include "CachedImage.h" | 26 #include "CachedImage.h" |
27 #include "CachedResourceLoader.h" | 27 #include "CachedResourceLoader.h" |
28 #include "StyleCachedImage.h" | 28 #include "StyleCachedImage.h" |
29 #include "StyleImage.h" | 29 #include "StyleImage.h" |
30 #include "StylePendingImage.h" | 30 #include "StylePendingImage.h" |
31 #include "TreeScope.h" | 31 #include "TreeScope.h" |
32 #include "WebCoreMemoryInstrumentation.h" | |
33 #include <wtf/MathExtras.h> | 32 #include <wtf/MathExtras.h> |
34 #include <wtf/MemoryInstrumentationHashSet.h> | |
35 #include <wtf/UnusedParam.h> | 33 #include <wtf/UnusedParam.h> |
| 34 #include <wtf/text/StringBuilder.h> |
36 #include <wtf/text/WTFString.h> | 35 #include <wtf/text/WTFString.h> |
37 | 36 |
38 #if ENABLE(SVG) | 37 #if ENABLE(SVG) |
39 #include "SVGCursorElement.h" | 38 #include "SVGCursorElement.h" |
40 #include "SVGLengthContext.h" | 39 #include "SVGLengthContext.h" |
41 #include "SVGNames.h" | 40 #include "SVGNames.h" |
42 #include "SVGURIReference.h" | 41 #include "SVGURIReference.h" |
43 #endif | 42 #endif |
44 | 43 |
45 #if ENABLE(CSS_IMAGE_SET) | 44 #if ENABLE(CSS_IMAGE_SET) |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 m_referencedElements.remove(element); | 215 m_referencedElements.remove(element); |
217 } | 216 } |
218 #endif | 217 #endif |
219 | 218 |
220 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const | 219 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const |
221 { | 220 { |
222 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !
other.m_hasHotSpot | 221 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !
other.m_hasHotSpot |
223 && compareCSSValuePtr(m_imageValue, other.m_imageValue); | 222 && compareCSSValuePtr(m_imageValue, other.m_imageValue); |
224 } | 223 } |
225 | 224 |
226 void CSSCursorImageValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryOb
jectInfo) const | |
227 { | |
228 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | |
229 m_imageValue->reportMemoryUsage(memoryObjectInfo); | |
230 // No need to report m_image as it is counted as part of RenderArena. | |
231 #if ENABLE(SVG) | |
232 info.addMember(m_referencedElements, "referencedElements"); | |
233 #endif | |
234 } | |
235 | |
236 } // namespace WebCore | 225 } // namespace WebCore |
OLD | NEW |