OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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, |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #include "config.h" | 22 #include "config.h" |
23 #include "StyleRareInheritedData.h" | 23 #include "StyleRareInheritedData.h" |
24 | 24 |
25 #include "CursorList.h" | 25 #include "CursorList.h" |
26 #include "QuotesData.h" | 26 #include "QuotesData.h" |
27 #include "RenderStyle.h" | 27 #include "RenderStyle.h" |
28 #include "RenderStyleConstants.h" | 28 #include "RenderStyleConstants.h" |
29 #include "ShadowData.h" | 29 #include "ShadowData.h" |
30 #include "StyleImage.h" | 30 #include "StyleImage.h" |
31 #include "WebCoreMemoryInstrumentation.h" | |
32 #include <wtf/MemoryObjectInfo.h> | |
33 | 31 |
34 namespace WebCore { | 32 namespace WebCore { |
35 | 33 |
36 struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
nheritedData> { | 34 struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
nheritedData> { |
37 void* styleImage; | 35 void* styleImage; |
38 Color firstColor; | 36 Color firstColor; |
39 float firstFloat; | 37 float firstFloat; |
40 Color colors[5]; | 38 Color colors[5]; |
41 void* ownPtrs[1]; | 39 void* ownPtrs[1]; |
42 AtomicString atomicStrings[5]; | 40 AtomicString atomicStrings[5]; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 247 |
250 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const | 248 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const |
251 { | 249 { |
252 if ((!textShadow && o.textShadow) || (textShadow && !o.textShadow)) | 250 if ((!textShadow && o.textShadow) || (textShadow && !o.textShadow)) |
253 return false; | 251 return false; |
254 if (textShadow && o.textShadow && (*textShadow != *o.textShadow)) | 252 if (textShadow && o.textShadow && (*textShadow != *o.textShadow)) |
255 return false; | 253 return false; |
256 return true; | 254 return true; |
257 } | 255 } |
258 | 256 |
259 void StyleRareInheritedData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | |
260 { | |
261 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | |
262 info.addMember(listStyleImage, "listStyleImage"); | |
263 info.addMember(indent, "indent"); | |
264 info.addMember(textShadow, "textShadow"); | |
265 info.addMember(highlight, "highlight"); | |
266 info.addMember(cursorData, "cursorData"); | |
267 info.addMember(hyphenationString, "hyphenationString"); | |
268 info.addMember(locale, "locale"); | |
269 info.addMember(textEmphasisCustomMark, "textEmphasisCustomMark"); | |
270 info.addMember(quotes, "quotes"); | |
271 info.addMember(m_lineGrid, "lineGrid"); | |
272 info.addMember(m_variables, "variables"); | |
273 } | |
274 | |
275 } // namespace WebCore | 257 } // namespace WebCore |
OLD | NEW |