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 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. 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 20 matching lines...) Expand all Loading... |
31 #include "QuotesData.h" | 31 #include "QuotesData.h" |
32 #include "RenderArena.h" | 32 #include "RenderArena.h" |
33 #include "RenderObject.h" | 33 #include "RenderObject.h" |
34 #include "ScaleTransformOperation.h" | 34 #include "ScaleTransformOperation.h" |
35 #include "ShadowData.h" | 35 #include "ShadowData.h" |
36 #include "StyleImage.h" | 36 #include "StyleImage.h" |
37 #include "StyleInheritedData.h" | 37 #include "StyleInheritedData.h" |
38 #include "StyleResolver.h" | 38 #include "StyleResolver.h" |
39 #include "RenderTheme.h" | 39 #include "RenderTheme.h" |
40 #include "TextAutosizer.h" | 40 #include "TextAutosizer.h" |
41 #include "WebCoreMemoryInstrumentation.h" | |
42 #include <wtf/MathExtras.h> | 41 #include <wtf/MathExtras.h> |
43 #include <wtf/MemoryInstrumentationVector.h> | |
44 #include <wtf/MemoryObjectInfo.h> | |
45 #include <wtf/StdLibExtras.h> | 42 #include <wtf/StdLibExtras.h> |
46 #include <algorithm> | 43 #include <algorithm> |
47 | 44 |
48 using namespace std; | 45 using namespace std; |
49 | 46 |
50 namespace WebCore { | 47 namespace WebCore { |
51 | 48 |
52 struct SameSizeAsBorderValue { | 49 struct SameSizeAsBorderValue { |
53 RGBA32 m_color; | 50 RGBA32 m_color; |
54 unsigned m_width; | 51 unsigned m_width; |
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 return; | 1560 return; |
1564 surround.access()->border.m_image.setOutset(outset); | 1561 surround.access()->border.m_image.setOutset(outset); |
1565 } | 1562 } |
1566 | 1563 |
1567 ExclusionShapeValue* RenderStyle::initialShapeInside() | 1564 ExclusionShapeValue* RenderStyle::initialShapeInside() |
1568 { | 1565 { |
1569 DEFINE_STATIC_LOCAL(RefPtr<ExclusionShapeValue>, sOutsideValue, (ExclusionSh
apeValue::createOutsideValue())); | 1566 DEFINE_STATIC_LOCAL(RefPtr<ExclusionShapeValue>, sOutsideValue, (ExclusionSh
apeValue::createOutsideValue())); |
1570 return sOutsideValue.get(); | 1567 return sOutsideValue.get(); |
1571 } | 1568 } |
1572 | 1569 |
1573 void RenderStyle::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
1574 { | |
1575 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | |
1576 info.addMember(m_box, "box"); | |
1577 info.addMember(visual, "visual"); | |
1578 // FIXME: m_background contains RefPtr<StyleImage> that might need to be ins
trumented. | |
1579 info.addMember(m_background, "background"); | |
1580 // FIXME: surrond contains some fields e.g. BorderData that might need to be
instrumented. | |
1581 info.addMember(surround, "surround"); | |
1582 info.addMember(rareNonInheritedData, "rareNonInheritedData"); | |
1583 info.addMember(rareInheritedData, "rareInheritedData"); | |
1584 // FIXME: inherited contains StyleImage and Font fields that might need to b
e instrumented. | |
1585 info.addMember(inherited, "inherited"); | |
1586 info.addMember(m_cachedPseudoStyles, "cachedPseudoStyles"); | |
1587 #if ENABLE(SVG) | |
1588 info.addMember(m_svgStyle, "svgStyle"); | |
1589 #endif | |
1590 info.addMember(inherited_flags, "inherited_flags"); | |
1591 info.addMember(noninherited_flags, "noninherited_flags"); | |
1592 } | |
1593 | |
1594 } // namespace WebCore | 1570 } // namespace WebCore |
OLD | NEW |