Chromium Code Reviews| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const | 197 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const |
| 198 { | 198 { |
| 199 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : ! other.m_hasHotSpot | 199 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : ! other.m_hasHotSpot |
| 200 && compareCSSValuePtr(m_imageValue, other.m_imageValue); | 200 && compareCSSValuePtr(m_imageValue, other.m_imageValue); |
| 201 } | 201 } |
| 202 | 202 |
| 203 void CSSCursorImageValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryOb jectInfo) const | 203 void CSSCursorImageValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryOb jectInfo) const |
| 204 { | 204 { |
| 205 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 205 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 206 m_imageValue->reportMemoryUsage(memoryObjectInfo); | 206 m_imageValue->reportMemoryUsage(memoryObjectInfo); |
| 207 // No need to report m_image as it is counted as part of RenderArena. | 207 // TODO: report m_image. It has never been allocated from any of our renderi ng custom heaps. |
|
abarth-chromium
2013/06/20 01:39:50
TODO -> FIXME :)
| |
| 208 info.addMember(m_referencedElements, "referencedElements"); | 208 info.addMember(m_referencedElements, "referencedElements"); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace WebCore | 211 } // namespace WebCore |
| OLD | NEW |